Professional Documents
Culture Documents
1. Login Username
URL: https://test.printsoft.co.id/api/login
TIPE API: POST
PARAMETER:
Contoh:
1. username: lutfi
password: 1234
2. username: hadi
Password: 1234
Output:
Jika username password benar
{
"error": false,
"message": "User login successful.",
"data": {
"iduser": "12",
"idrole": "4",
"username": "lutfi",
"password": "81dc9bdb52d04dc20036dbd8313ed055",
"name": "Lutfi Customer changed 234",
"email": "lutfi@mail.2com",
"phone": "12345",
"address": "",
"auth_key": "",
"access_token": null,
"created": "0000-00-00 00:00:00",
"createdby": "lutfi",
"updated": "2019-05-21 08:42:40",
"updatedby": "superadmin",
"status": "1",
"photo":
"http://test.printsoft.co.id/services/application/services/test/assets/user/de536c4f8a4d2aac2a077f
7f6457f389.jpg",
"name_business": "lutfi bisnis",
"idcity": "",
"description": "",
"salary": "",
"rating": "",
"point": "",
"count_service": "",
"count_reject": "",
"count_accept": "",
"current_location": "",
"name_outlet": ""
}
}
Jika username password tidak ditemukan
{
"error": true,
"message": "Wrong username or password."
}
{
"error": true,
"message": "Provide username and password."
}
2. List outlet
URL: https://test.printsoft.co.id/api/list_outlet?iduser=12
TIPE API: GET
PARAMETER:
Contoh
1. iduser: 12
2. iduser: 44
Output:
Jika data ditemukan
{
"error": false,
"message": "Success",
"data": [
{
"idoutlet": "1",
"idprintshop": "1",
"idcity": "5",
"idregional": "12",
"name_outlet": "Outlet 1",
"address": "Surabaya",
"phone": "",
"photo":
"http://test.printsoft.co.id/services/application/services/test/assets/outlet/381504a0b7e441ea2cd5
189e233f589f.jpg",
"created": "0000-00-00 00:00:00",
"createdby": "superadmin",
"updated": "2019-05-21 09:14:24",
"updatedby": "superadmin",
"status": "1",
"name_business": "lutfi bisnis",
"name_phone": "Lutfi Customer changed 234"
},
{
"idoutlet": "3",
"idprintshop": "1",
"idcity": "1",
"idregional": "1",
"name_outlet": "Outlet 2",
"address": "Surabaya",
"phone": null,
"photo": "http://test.printsoft.co.id/services/application/services/test/assets/outlet/",
"created": "0000-00-00 00:00:00",
"createdby": "superadmin",
"updated": "0000-00-00 00:00:00",
"updatedby": "superadmin",
"status": "1",
"name_business": "lutfi bisnis",
"name_phone": "otlet admin"
},
{
"idoutlet": "7",
"idprintshop": "1",
"idcity": "2",
"idregional": "2",
"name_outlet": "Outlet baru",
"address": "Surabaya",
"phone": "0823676322476",
"photo": "http://test.printsoft.co.id/services/application/services/test/assets/outlet/",
"created": "2019-05-16 12:58:40",
"createdby": "superadmin",
"updated": "2019-05-16 12:59:20",
"updatedby": "superadmin",
"status": "1",
"name_business": "lutfi bisnis",
"name_phone": "Lutfi Customer changed 234"
}
]
}
{
"error": true,
"message": "Data not found"
}
{
"error": true,
"message": "Provide complete data info"
}
3. Detail Outlet
URL: https://test.printsoft.co.id/api/detail_outlet?idoutlet=1
TIPE API: GET
PARAMETER:
Contoh
1. idoutlet: 1
2. idoutlet: 3
Output:
Jika data ditemukan
{
"error": false,
"message": "Success",
"data": {
"idoutlet": "1",
"idprintshop": "1",
"idcity": "5",
"idregional": "12",
"name_outlet": "Outlet 1",
"address": "Surabaya",
"phone": "",
"photo": "http://test.printsoft.co.id/services/application/services/test/assets/outlet/",
"created": "0000-00-00 00:00:00",
"createdby": "superadmin",
"updated": "2019-05-21 09:14:24",
"updatedby": "superadmin",
"status": "1",
"name_phone": "Lutfi Customer changed 234"
}
}
{
"error": true,
"message": "Data not found"
}
{
"error": true,
"message": "Provide complete data info"
}
TAMPILAN APLIKASI