|
|
@ -1,12 +1,14 @@ |
|
|
|
@token = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvYXBpLXN0YWdpbmctYWR3Lm9zcHJvLmlkXC9hcGlcL2xvZ2luIiwiaWF0IjoxNjU5NDc0MDY3LCJleHAiOjE2NjAwNzg4NjcsIm5iZiI6MTY1OTQ3NDA2NywianRpIjoia0ljaHBFOEpiaFI0TjN3UyIsInN1YiI6MSwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9.PxGL0NcRtxzhG2J21Ca-zgMbr1anY7vhNzEOpZHSNOk |
|
|
|
@token = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3Q6ODA3NFwvYWR3LWJhY2tlbmRcL2FwaVwvbG9naW4iLCJpYXQiOjE2NzU3NjY2NzcsImV4cCI6MTY3NjM3MTQ3NywibmJmIjoxNjc1NzY2Njc3LCJqdGkiOiJwODNpWG1kU3pTV2ZVMGs3Iiwic3ViIjoxMjQ3LCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.I9Q6uI-IOHR8JKaMJfjfAizOM8KNPQsm8EyWM8f6Qbk |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# @hostname = https://kit-api.ospro.id/api |
|
|
|
# @hostname = https://kit-api.ospro.id/api |
|
|
|
|
|
|
|
# @hostname = https://adw-api.ospro.id/api |
|
|
|
# @hostname = https://ospro-api.ospro.id/api |
|
|
|
# @hostname = https://ospro-api.ospro.id/api |
|
|
|
# @hostname = https://api-iu.ospro.id/api |
|
|
|
# @hostname = https://api-iu.ospro.id/api |
|
|
|
# @hostname = https://api-staging-adw.ospro.id/api |
|
|
|
# @hostname = https://api-staging-adw.ospro.id/api |
|
|
|
@hostname = http://localhost:8099/api |
|
|
|
# @hostname = http://localhost:8099/api |
|
|
|
# @hostname = http://103.73.125.81:8444/api |
|
|
|
# @hostname = http://103.73.125.81:8444/api |
|
|
|
|
|
|
|
@hostname = http://localhost:8074/adw-backend/api |
|
|
|
|
|
|
|
|
|
|
|
###### login |
|
|
|
###### login |
|
|
|
POST {{hostname}}/login |
|
|
|
POST {{hostname}}/login |
|
|
@ -15,8 +17,8 @@ POST {{hostname}}/login |
|
|
|
content-type: application/json |
|
|
|
content-type: application/json |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
"username": "admin", |
|
|
|
"username": "demo", |
|
|
|
"password": "admin123" |
|
|
|
"password": "demo123" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
###### Tools Req |
|
|
|
###### Tools Req |
|
|
@ -810,3 +812,80 @@ content-type: application/json |
|
|
|
"type": "out", |
|
|
|
"type": "out", |
|
|
|
"user_id": 262 |
|
|
|
"user_id": 262 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###### |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
POST {{hostname}}/waypoint/add |
|
|
|
|
|
|
|
Authorization: Bearer {{token}} |
|
|
|
|
|
|
|
content-type: application/json |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"user_id": 1247, |
|
|
|
|
|
|
|
"lat": -6.2622811, |
|
|
|
|
|
|
|
"lng": 106.7881746, |
|
|
|
|
|
|
|
"wptime": "2023-02-07T10:40:17+07:00", |
|
|
|
|
|
|
|
"speed": 0, |
|
|
|
|
|
|
|
"angle": 0, |
|
|
|
|
|
|
|
"satelite": 0 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###### |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
POST {{hostname}}/waypoint/add-bulk |
|
|
|
|
|
|
|
Authorization: Bearer {{token}} |
|
|
|
|
|
|
|
content-type: application/json |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"wp_records": [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"user_id": 1247, |
|
|
|
|
|
|
|
"lon": 106.88702067952579, |
|
|
|
|
|
|
|
"lat": -6.193331793510694, |
|
|
|
|
|
|
|
"wptime": "2023-02-07T10:40:17+07:00", |
|
|
|
|
|
|
|
"speed": 0, |
|
|
|
|
|
|
|
"angle": 0, |
|
|
|
|
|
|
|
"satelite": 0, |
|
|
|
|
|
|
|
"datesend": "2023-02-07T10:40:17+07:00" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"user_id": 1247, |
|
|
|
|
|
|
|
"lon": 106.88731982052337, |
|
|
|
|
|
|
|
"lat": -6.1933255977790225, |
|
|
|
|
|
|
|
"wptime": "2023-02-07T10:41:17+07:00", |
|
|
|
|
|
|
|
"speed": 0, |
|
|
|
|
|
|
|
"angle": 0, |
|
|
|
|
|
|
|
"satelite": 0, |
|
|
|
|
|
|
|
"datesend": "2023-02-07T10:41:17+07:00" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"user_id": 1247, |
|
|
|
|
|
|
|
"lon": 106.88765896352822, |
|
|
|
|
|
|
|
"lat": -6.193328086924183, |
|
|
|
|
|
|
|
"wptime": "2023-02-07T10:42:17+07:00", |
|
|
|
|
|
|
|
"speed": 0, |
|
|
|
|
|
|
|
"angle": 0, |
|
|
|
|
|
|
|
"satelite": 0, |
|
|
|
|
|
|
|
"datesend": "2023-02-07T10:42:17+07:00" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"user_id": 1247, |
|
|
|
|
|
|
|
"lon": 106.88812637133634, |
|
|
|
|
|
|
|
"lat": -6.1933373805197505, |
|
|
|
|
|
|
|
"wptime": "2023-02-07T10:43:17+07:00", |
|
|
|
|
|
|
|
"speed": 0, |
|
|
|
|
|
|
|
"angle": 0, |
|
|
|
|
|
|
|
"satelite": 0, |
|
|
|
|
|
|
|
"datesend": "2023-02-07T10:43:17+07:00" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"user_id": 1247, |
|
|
|
|
|
|
|
"lon": 106.88867721532353, |
|
|
|
|
|
|
|
"lat": -6.1933448515770095, |
|
|
|
|
|
|
|
"wptime": "2023-02-07T10:44:17+07:00", |
|
|
|
|
|
|
|
"speed": 0, |
|
|
|
|
|
|
|
"angle": 0, |
|
|
|
|
|
|
|
"satelite": 0, |
|
|
|
|
|
|
|
"datesend": "2023-02-07T10:44:17+07:00" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|