So'rov url : api/accounts/info. Barcha Malumotlari qaytadi


Download 8.19 Kb.
Sana09.09.2020
Hajmi8.19 Kb.
#128891
Bog'liq
accounts



Accounts Info (GET)

So'rov url : api/accounts/info . Barcha Malumotlari qaytadi .

Natija

{error: " Bunaqa foydalanuvchi mavjudmas !."}



{ error: "Serverda xatolik !."}

{data: {.....}};

Natija Misol :

{
"data": {


"id": 28,
"fam": "admin",
"ismi": "admin",
"otasi": "admin",
"telefon": "111111111",
"email": "admin@mail.ru",
"manzil": 1,
"manzil2": "Buxoro",
"ful_manzil": "Buxoro",
"regdate": "2020-08-27T12:32:45.020Z",
"editdate": "2020-08-27T12:32:45.020Z",
"status": 1,
"aktiv_date": "2020-08-27T12:32:45.020Z",
"image": "bd98acd7341bdb8bc55f5758e21d35971b445480f437d67c39951ffb8cee53b1.jpeg"
}
}

Update (PUT)


So'rov url : /api/accounts/update . Statusi 2 bo'lganda Update qilish kerag .

Parameter

Validate

Required

Description



telfon

Raqamlar , min : 9 , max : 12 , required

Yes

...

manzil2

String , required

Yes

Qo'lda kirtilgan manzil ..

ful_manzil

String , required

Yes

...

manzil

Raqam

Yes

Ful_manzil oxirgisni ID si ...

Natija


{error: " Bunaqa foydalanuvchi mavjudmas !."}

{ error: "Serverda xatolik !."}

{ message: 'Mufaqayatli bajarildi!.'};

Image Yuklash (POST)


So'rov url : /api/accounts/upload/image . Statusi 2 bo'lganda Update qilish kerag .

Parameter

Validate

Required

Description



img

img yuborish kerag .

Yes

Rasim image/jpeg image/png , type da bo'lishi kerag .

Natija


{error: " Bunaqa foydalanuvchi mavjudmas !."}

{error:'File Mavjud emas !. '}

{error:"File turi image bo'lshi kerag!."}

{error:"File hajmi Juda kata !."}

{error: "Bunaqa foydalanuvchi mavjudmas !."}

{error:"File Yuklanmadi !."

{error: "Serverda xatolik !."}

{message:'File yuklandi', image : image}


Image accounts (GET)


So'rov url : image/:image . Rasim image = rasimning manzili .

Natija


Rasim qaytadi .


Download 8.19 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling