CatalinaID/tokobat-api

Login untuk Apotek

ichakid opened this issue · 7 comments

Request:
apotekID
password

Response:
success

Contoh:

SUCCESS

[POST] .../tokobat-api/apotek/login?username=apotek_plesiran&password=apotek_plesiran

Response:

{
"name": "Apotek Plesiran",
"message": "success",
"id": 3,
"code": 0
}

SALAH PWD

.../tokobat-api/apotek/login?username=apotek_plesiran&password=apotek_plesiran1

Response:

{
"name": "Apotek Plesiran",
"message": "invalid",
"id": 3,
"code": 1
}

NOT USER

.../tokobat-api/apotek/login?username=apotek_plesiran1&password=apotek_plesiran1

Response:

{
"name": null,
"message": "error",
"id": 0,
"code": 1
}

afik commented

kak. code nya kebalik ya? kalo sukses 1 kalo failed 0

afik commented

kalo aku mau minta dia sukses 200 ga sukses 400 boleh ngga? wkwkwk kalo ga juga gpp sih

Hello afik. Jadi itu id bukan kode. Default response balikin message n id.
Klo failed id nya pke default which is 0
On Feb 21, 2016 10:29 PM, "Khoirunnisa Afifah" notifications@github.com
wrote:

kalo aku mau minta dia sukses 200 ga sukses 400 boleh ngga? wkwkwk kalo
ga juga gpp sih


Reply to this email directly or view it on GitHub
#2 (comment)
.

afik commented

oalah, jadi bedain sukses login sama engga kalo code nya ga 0 ya

messagenya aja fik, ya sama aja sih

2016-02-21 23:20 GMT+07:00 Khoirunnisa Afifah notifications@github.com:

oalah, jadi bedain sukses login sama engga kalo code nya ga 0 ya


Reply to this email directly or view it on GitHub
#2 (comment)
.

Alifa Nurani Putri
Teknik Informatika ITB 2011

@afik

the password is "milikalifa"