| KEY | VALUE |
|---|---|
| IP | 134.209.100.251 |
| PORT | 8081 |
| KEY | VALUE |
|---|---|
| Username | multec |
| Password | mult3c |
method:GET
[host]:[port]/master
RESPONSE
{
"current_page": 1,
"data": [
{
"_id": "MASTER1551420909141211116",
"jalan": "COBA JALAN",
"latitude": "-74567434532",
"longitude": "74567434532"
},
dst...
],
"from": 1,
"last_page": 1,
"next_page": "",
"per_page": 5,
"prev_page": "",
"status": "ok",
"to": 5,
"total": 1
}
method:POST
ip:port/master/add
JSON POST
{
"jalan":"COBA JALAN",
"id_machine":"1234567890",
"latitude":"-74567434532",
"longitude":"74567434532"
}
RESPONSE
{
"codeMaster": "1551425993402179753",
"msg": "Created Master Success",
"status": "SUCCESS"
}
method:GET
[host]:[port]/master/id/:idmaster
RESPONSE
{
"data": {
"_id": "MASTER1551420909141211116",
"jalan": "COBA JALAN",
"id_machine":"1234567890",
"latitude": "-74567434532",
"longitude": "74567434532"
},
"status": "SUCCESS"
}
method:GET
[host]:[port]/master/machine/:id_machine
RESPONSE
{
"data": {
"_id": "MASTER1551420909141211116",
"jalan": "COBA JALAN",
"id_machine":"1234567890",
"latitude": "-74567434532",
"longitude": "74567434532"
},
"status": "SUCCESS"
}
method:PUT
ip:port/master/update/:id
JSON POST
{
"jalan":"COBA JALAN",
"latitude":"-74567434532",
"longitude":"74567434532"
}
RESPONSE
{
"msg": "Update Master Success",
"status": "SUCCESS"
}
method:DELETE
[host]:[port]/master/delete/:id
RESPONSE
{
"msg": "Delete Master Success",
"status": "SUCCESS"
}
method:GET
[host]:[port]/data/master/:index/:idmachine
RESPONSE
{
"current_page": 1,
"data": [
{
"_id": "5c78dd1eec31166656704bd1",
"jam": "2:19 PM",
"tanggal": "2019-03-01",
"car": 1,
"truck": 1,
"motorbike": 1,
"human": 1,
"bus": 1
},
dst...
],
"from": 1,
"last_page": 2,
"next_page": "",
"per_page": 5,
"prev_page": "",
"status": "ok",
"to": 5,
"total": 7
}
method:POST
ip:port/data/add/:index/:idmachine
JSON POST
{
"car":1,
"truck":12,
"motorbike":2,
"human":31,
"bus":2
}
RESPONSE
{
"codeData": "COLMASTER1551420909141211116",
"data": {
"car": 1,
"truck": 12,
"motorbike": 2,
"human": 31,
"bus": 2
},
"msg": "Created Data Success",
"status": "SUCCESS"
}
method:GET
[host]:[port]/data/grafikday/:index/:idmachine/:tanggal
RESPONSE
{
"data": {
"car": [7],
"truck": [9],
"motorbike": [3],
"human": [22],
"bus": [6]
},
"status": "SUCCESS",
"tanggal": "2019-05-31"
}
method:POST
ip:port/kereta/add
JSON POST
{
"kota":"kediri",
"lokasi":"jongbiru",
"timeline":["asd","asd"],
"status":"asd",
"kereta_lewat":"2012-04-23T18:25:43.511Z"
}
RESPONSE
{
"message": "kereta Created",
"status": "Ok"
}
method:GET
[host]:[port]/kereta/list
RESPONSE
{
"current_page": 1,
"data": [
{
"_id": "1575535984604768122",
"kota": "kediri",
"lokasi": "jongbiru",
"cam": {
"_id": "86a7b697-07f9-4c77-9085-f46adfe52c57",
"no": 1,
"liveRTMP": "rtmp://167.71.210.116:1991/live/86a7b697-07f9-4c77-9085-f46adfe52c57",
"urlRtmp": "",
"liveM3u8": "https://stream.multec-client.com/live/86a7b697-07f9-4c77-9085-f46adfe52c57.m3u8",
"indicator": false
},
"timeline": [
"asd",
"asd"
],
"status": "asd",
"kereta_lewat": "2012-04-24T01:25:43.511+07:00"
}
],
"from": 1,
"last_page": 1,
"next_page": "",
"per_page": 5,
"prev_page": "",
"status": "ok",
"to": 5,
"total": 1
}
method:GET
[host]:[port]/kereta/get/1575535984604768122
RESPONSE
{
"data": {
"_id": "1575535984604768122",
"kota": "kediri",
"lokasi": "jongbiru",
"cam": {
"_id": "86a7b697-07f9-4c77-9085-f46adfe52c57",
"no": 1,
"liveRTMP": "rtmp://167.71.210.116:1991/live/86a7b697-07f9-4c77-9085-f46adfe52c57",
"urlRtmp": "",
"liveM3u8": "https://stream.multec-client.com/live/86a7b697-07f9-4c77-9085-f46adfe52c57.m3u8",
"indicator": false
},
"timeline": [
"asd",
"asd"
],
"status": "asd",
"kereta_lewat": "2012-04-24T01:25:43.511+07:00"
},
"status": "ok"
}
method:PUT
[host]:[port]/kereta/update/1575596998184213102
RESPONSE
{
"message": "Success Update Kereta",
"status": "ok"
}
method:DELETE
[host]:[port]/kereta/delete/1575596998184213102
RESPONSE
{
"message": "Kereta Deleted",
"status": "Ok"
}
Content type
Image
Digest
Size
508 MB
Last updated
over 4 years ago
docker pull gsense/lhr_api