OMO Online Motorcycle App
##Nama Produk : OMO (Online Motorcycle)
Omo Api adalah API untuk produk OMO (Online Motorcycle) berisi aplikasi untuk UI Android App register customer, login customer dan get custmer serta menyediakan UI untuk register driver, login driver dan get driver
https://omo-online-motorcycle-api.herokuapp.com/
Register Customer : https://omo-online-motorcycle-api.herokuapp.com/api/customer/register
Login Customer ; https://omo-online-motorcycle-api.herokuapp.com/api/customer/login
Get Customer : https://omo-online-motorcycle-api.herokuapp.com/api/customer
Register Driver : https://omo-online-motorcycle-api.herokuapp.com/api/driver/register
Login Driver : https://omo-online-motorcycle-api.herokuapp.com/api/driver/login
Get Driver: https://omo-online-motorcycle-api.herokuapp.com/api/driver
**untuk API Update Customer and Driver akan segera diupdate, thank you
Name | Endpoint | Method | Bearer Token | Body and Response |
---|---|---|---|---|
Register Customer | api/customer/register | POST | no | example |
Login Customer | api/customer/login | POST | no | example |
Get Customer | api/customer | GET | yes | example |
Register Driver | api/driver/register | POST | no | example |
Login Driver | api/driver/login | POST | no | example |
Get Driver | api/driver | GET | yes | example |
Request
{
"username" : "renata",
"password" : "1234"
}
Response
{
"status": true,
"message": "success",
"data": true
}
Request
{
"username" : "renata",
"password" : "1234"
}
Response
{
"status": true,
"message": "success",
"data": {
"token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1NTgyMGJmMC1hZmEwLTQ5YWEtYmJhMy03NmQwMmJmZGFiOTciLCJhdXRoIjpbInJlbmF0YSJdLCJleHAiOjE2NTY3MTkwMzN9.pMIEo5QfSu144YfA8AC0KiokrHMwEq7cGS22-GCG5iI"
}
}
insert auth response
{
"status": true,
"message": "success",
"data": {
"id": "478049de-5479-483b-97e6-94690cf74287",
"username": "viola",
"password": null
}
}
request
{
"username" : "leo",
"password" : "1111",
"vehicleType" : "Supra",
"vehicleRegistNumber" : "AB4313YK"
}
response
{
"status": true,
"message": "success",
"data": true
}
request
{
"username" : "leo",
"password" : "1111"
}
response
{
"status": true,
"message": "success",
"data": {
"token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJmMDM0YmZlZi0zOTVjLTQxYmItOTAzYS1mMzFmOThlMWQwYzkiLCJhdXRoIjpbImxlbyJdLCJleHAiOjE2NTY3MTcxNjZ9.HeqZv7X2g-urmqpYI_6Ut_n8rQqt88gOx6ZpNB31JkU"
}
}
request insert auth response
{
"status": true,
"message": "success",
"data": {
"id": "5399066e-13bd-44e9-a884-aa5848a5f457",
"username": "Ari",
"password": null,
"vehicleType": "Supra",
"vehicleRegistNumber": "AB4313YK"
}
}