Custom Backend OSPRO Surveyor Indonesia
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

891 lines
22 KiB

@token = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3Q6ODA3NFwvYWR3LWJhY2tlbmRcL2FwaVwvbG9naW4iLCJpYXQiOjE2NzU3NjY2NzcsImV4cCI6MTY3NjM3MTQ3NywibmJmIjoxNjc1NzY2Njc3LCJqdGkiOiJwODNpWG1kU3pTV2ZVMGs3Iiwic3ViIjoxMjQ3LCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.I9Q6uI-IOHR8JKaMJfjfAizOM8KNPQsm8EyWM8f6Qbk
# @hostname = https://kit-api.ospro.id/api
# @hostname = https://adw-api.ospro.id/api
# @hostname = https://ospro-api.ospro.id/api
# @hostname = https://api-iu.ospro.id/api
# @hostname = https://api-staging-adw.ospro.id/api
# @hostname = http://localhost:8099/api
# @hostname = http://103.73.125.81:8444/api
@hostname = http://localhost:8074/adw-backend/api
###### login
POST {{hostname}}/login
# Authorization: Bearer xxx
# X-REQUEST-TYPE: GraphQL
content-type: application/json
{
"username": "demo",
"password": "demo123"
}
###### Tools Req
### add
POST {{hostname}}/req-tools/add
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvb3Nwcm8tYXBpLm9zcHJvLmlkXC9hcGlcL2xvZ2luIiwiaWF0IjoxNjUyODYzNzM4LCJleHAiOjE2NTI5NTAxMzgsIm5iZiI6MTY1Mjg2MzczOCwianRpIjoia2ZwNnhwc0ZZZ0dFNEtGSSIsInN1YiI6MSwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9.f7a0M-GKYgacXtaEmZJUs2UOPFXaigEwGu8OfZ117kI
content-type: application/json
{
"asset_type": "Alat Berat 1",
"asset_name": "Beco",
"required_date":"2021-12-16",
"qty": 10,
"uom": "Kg",
"description": "test Data",
"created_by":"admin",
"proyek_id":1
}
### update
PUT {{hostname}}/req-tools/update/3
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
{
"qty": 332,
}
### search
POST {{hostname}}/req-tools/search
Authorization: Bearer {{token}}
content-type: application/json
{
"paging":{
"start":0,
"length":10
},
"columns":[
{
"name":"asset_type",
"logic_operator":"like",
"value":"",
"operator":"AND"
},
{
"name":"status",
"logic_operator":"<>",
"value":"receipt to site",
"operator":"AND"
}
],
"joins":[],
"orders":{
"columns":[
"id"
],
"ascending":false
}
}
### delete
DELETE {{hostname}}/req-tools/delete/13
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
###### Menu
### add
POST {{hostname}}/menu/add
Authorization: {{token}}
content-type: application/json
{
"alias_name": "Alat Berat 1",
"icon": "#",
"name":"2021-12-16",
"parent_id": 23,
"sequence": 100,
"url": "test Data"
}
### update
PUT {{hostname}}/req-tools/update/3
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
{
"qty": 332,
}
### search
POST {{hostname}}/menu/search
Authorization: Bearer {{token}}
content-type: application/json
{
"paging":{
"start":0,
"length":10
},
"columns":[
{
"name":"name",
"logic_operator":"like",
"value":"",
"operator":"AND"
}
],
"joins":[
{
"name":"m_menu",
"column_join":"parent_id",
"column_results":["name"],
}
],
"orders":{
"columns":[
"id"
],
"ascending":false
}
}
### delete
DELETE {{hostname}}/req-tools/delete/13
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
###### Material Req
### add
POST {{hostname}}/request-material/add
Authorization: Bearer {{token}}
content-type: application/json
{
"description": "Lempengan Besi",
"required_date": "2022-05-04",
"qty": "1000",
"uom": "Lembar",
"fom_date": "2022-05-04",
"proyek_id": 29,
"price":10
}
### update
PUT {{hostname}}/request-material/update/20
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvb3Nwcm8tYXBpLm9zcHJvLmlkXC9hcGlcL2xvZ2luIiwiaWF0IjoxNjQyMTE1NjQyLCJleHAiOjE2NDIyMDIwNDIsIm5iZiI6MTY0MjExNTY0MiwianRpIjoiVWt1UjRnZjVUMHQ5YXRQWSIsInN1YiI6MSwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9.ftCrSs5v7GxqxW64ZcfZn40Opxom5YoFcDMMF1TvWrk
Content-Type: application/x-www-form-urlencoded
Accept: application/json
{
"description": "Pebble",
"fom_date": "2022-01-12T09:59:26.190Z",
"id": 20,
"po_date": null,
"pr_date": null,
"qty": "10",
"qty_received": "100",
"received_date": null,
"required_date": "2022-01-12T09:59:07.739Z",
"status": "fom",
"uom": "kg"
}
### search
POST {{hostname}}/request-material/search
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
{
"paging":{
"start":0,
"length":10
},
"columns":[
{
"name":"description",
"logic_operator":"like",
"value":"",
"operator":"AND"
}
],
"joins":[],
"orders":{
"columns":[
"id"
],
"ascending":false
}
}
### delete
DELETE {{hostname}}/request-material/delete/2
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
###### Human Resource
### add
POST {{hostname}}/human-resource/add
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
{
"role_id" : 1,
"username" : "ibnu",
"password" : "test",
"name" : "ibnu",
"phone_number" : "083823134569",
"email" : "ibnu@gmail.com",
"address" : "gria pesona madani",
"ktp_number" : "3212141105950004",
"employee_type" : "freelance"
}
### update
PUT {{hostname}}/human-resource/update/8
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
{
"address" : "gria pesona madani 1"
}
### delete
DELETE {{hostname}}/human-resource/delete/8
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
### search
POST {{hostname}}/human-resource/search
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
{
"paging":{
"start":0,
"length":10
},
"columns":[
{
"name":"name",
"logic_operator":"like",
"value":"",
"operator":"AND"
}
],
"joins":[],
"orders":{
"columns":[
"id"
],
"ascending":false
}
}
###### Material Resource
### add
POST {{hostname}}/material-resource/add
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
{
"id": 3,
"name": "Batangan Besi",
"uom": "truck",
"unit_price": 500000,
"description": "Pasir",
"qty": 1000
}
### update
PUT {{hostname}}/material-resource/update/5
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
{
"uom" : "Batang"
}
### delete
DELETE {{hostname}}/material-resource/delete/5
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
### search
POST {{hostname}}/material-resource/search
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
{
"paging":{
"start":0,
"length":10
},
"columns":[
{
"name":"name",
"logic_operator":"like",
"value":"",
"operator":"AND"
}
],
"joins":[],
"orders":{
"columns":[
"id"
],
"ascending":false
}
}
###### Tools Resource
### add
POST {{hostname}}/tools-resource/add
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
{
"name": "Excavator Belco",
"description": "Excavator Belco",
"uom":"unit",
"qty": "100",
"asset_type": "Alat Berat"
}
### update
PUT {{hostname}}/tools-resource/update/5
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
{
"name" : "Excavator Kobelco"
}
### delete
DELETE {{hostname}}/tools-resource/delete/5
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
### search
POST {{hostname}}/tools-resource/search
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
{
"paging":{
"start":0,
"length":10
},
"columns":[
{
"name":"name",
"logic_operator":"like",
"value":"",
"operator":"AND"
}
],
"joins":[],
"orders":{
"columns":[
"id"
],
"ascending":false
}
}
###### Project
### list
GET {{hostname}}/project/list
Authorization: Bearer {{token}}
content-type: application/json
### add
POST {{hostname}}/project/add
Authorization: Bearer {{token}}
content-type: application/json
{
"nama": "Excavator Belco",
"keterangan": "Excavator Belco",
"mulai_proyek":"2022/01/11",
"akhir_proyek": "2022/05/11"
}
### update
PUT {{hostname}}/project/update/5
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
{
"name" : "Excavator Kobelco"
}
### delete
DELETE {{hostname}}/project/delete/19
Authorization: Bearer {{token}}
content-type: application/json
### search
POST {{hostname}}/tools-resource/search
Authorization: Bearer dFWBXe6qQQm_s4DyH68yVt:APA91bFTms-pjqm-9OkugufLF2yjtOTJZQBlVxY8FC5iYq3owmWzGZtlPSSHholMeUxeE0TRQ6pFfEKvy5xRHnufPu4dJNiY-2gRGHKch6o4iWU9gp3GDHQ7sm-ySsE9keCMKzmQ11aM
content-type: application/json
{
"paging":{
"start":0,
"length":10
},
"columns":[
{
"name":"name",
"logic_operator":"like",
"value":"",
"operator":"AND"
}
],
"joins":[],
"orders":{
"columns":[
"id"
],
"ascending":false
}
}
### dashboard
GET {{hostname}}/project/dashboard/47
Authorization: Bearer {{token}}
content-type: application/json
###### Divisi
### list
GET {{hostname}}/divisi/list
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvb3Nwcm8tYXBpLm9zcHJvLmlkXC9hcGlcL2xvZ2luIiwiaWF0IjoxNjQxNDYwNDcyLCJleHAiOjE2NDE0NjQwNzIsIm5iZiI6MTY0MTQ2MDQ3MiwianRpIjoiRjRxYmJ3U25YcEw0OXN0QyIsInN1YiI6MSwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9.CLm_ZOEW5GCyGJuIcRNIRD8m1XxIeSCH60QK2HxF8d0
content-type: application/json
###### Activity
### get data by id version
GET {{hostname}}/activity/33/29/get
Authorization: Bearer {{token}}
content-type: application/json
###### Rate Sallary
### list
GET {{hostname}}/project-role/list
Authorization: Bearer {{token}}
content-type: application/json
###### Rate Sallary
### list
GET {{hostname}}/rate-sallary/list
Authorization: Bearer {{token}}
content-type: application/json
### add
POST {{hostname}}/rate-sallary/add
Authorization: Bearer {{token}}
content-type: application/json
{
"project_role_id" : 4,
"cost" : 2000,
"type_rate" : "UMR Jatim"
}
### update
PUT {{hostname}}/rate-sallary/update/{id}
Authorization: Bearer {{token}}
content-type: application/json
{
"project_role_id" : 4,
"cost" : 2000,
"type_rate" : "UMR Jatim"
}
### delete
POST {{hostname}}/rate-sallary/delete/{id}
Authorization: Bearer {{token}}
content-type: application/json
{
"project_role_id" : 4,
"cost" : 2000,
"type_rate" : "UMR Jatim"
}
### search
POST {{hostname}}/dashboard/percentage-planning-actual
Authorization: Bearer {{token}}
content-type: application/json
{
"paging":{
"start":0,
"length":10
},
"columns":[
{
"name":"proyek_id",
"logic_operator":"in",
"value":[7,6,4],
"operator":"AND"
},
{
"name":"version_gantt_id",
"logic_operator":"=",
"value":3,
"operator":"AND"
}
],
"joins":[],
"orders":{
"columns":[
"proyek_id"
],
"ascending":true
}
}
###
POST {{hostname}}/dashboard/cost-planning-actual
Authorization: Bearer {{token}}
content-type: application/json
{
"project_id" : [11]
}
###
POST {{hostname}}/dashboard/percentage-planning-actual
Authorization: Bearer {{token}}
content-type: application/json
{
"project_id" : [11]
}
###### project participants
### add
POST {{hostname}}/project-participants/add
Authorization: Bearer {{token}}
content-type: application/json
{
"proyek_id" : 11,
"tittle" : "investor",
"name" : "ibnu"
}
# get('/project-participants/edit/{id}', 'ProjectParticipantsController@edit');
### update
# PUT {{hostname}}//project-participants/update/11
# POST {{hostname}}/project-participants/search
# DELETE {{hostname}}/project-participants/delete/{id}
# GET {{hostname}}/project-participants/list
###
GET {{hostname}}/project-participants/list
Authorization: Bearer {{token}}
content-type: application/json
###
GET {{hostname}}/project-participants/proyek_id/11
Authorization: Bearer {{token}}
content-type: application/json
###
DELETE {{hostname}}/project-participants/delete/1
Authorization: Bearer {{token}}
content-type: application/json
###
DELETE {{hostname}}/project-participants/delete-by-proyek/7
Authorization: Bearer {{token}}
content-type: application/json
###### project-approval
POST {{hostname}}/project-approval/add
Authorization: Bearer {{token}}
content-type: application/json
{
"proyek_id" : 7,
"tittle" : "investor",
"name" : "koko",
"date_approval" : "2022/01/21"
}
###
get {{hostname}}/project-approval/edit/{id}
put {{hostname}}/project-approval/update/{id}
post {{hostname}}/project-approval/search
delete {{hostname}}/project-approval/delete/{id}
get {{hostname}}/project-approval/list
###### project-milestone
post {{hostname}}/project-milestone/add
Authorization: Bearer {{token}}
content-type: application/json
{
"proyek_id" : 7,
"status" : "Build 2. Finish eksekusi",
"due_date" : "2022/01/21",
"deadline" : "2022/01/21"
}
###
get {{hostname}}/project-milestone/edit/{id}
put {{hostname}}/project-milestone/update/{id}
post {{hostname}}/project-milestone/search
delete {{hostname}}/project-milestone/delete/{id}
get {{hostname}}/project-milestone/list
get {{hostname}}/project-milestone/select
###
GET {{hostname}}/template-gantt/get-tree/3
Authorization: Bearer {{token}}
content-type: application/json
###
POST {{hostname}}/folder-document-proyek/add
Authorization: Bearer {{token}}
content-type: application/json
{
"proyek_id": "12",
"name_folder": "test 1",
"parent_id" : 1
}
###
GET {{hostname}}/folder-document-proyek/list
Authorization: Bearer {{token}}
content-type: application/json
###
GET {{hostname}}/folder-document-proyek/get-tree/12
Authorization: Bearer {{token}}
content-type: application/json
###
POST {{hostname}}/human-resource/select
Authorization: Bearer {{token}}
content-type: application/json
{
"idact" : "362",
"idProyek": "11"
}
###
POST https://ospro-api.ospro.id/api/dashboard/status-proyek
Authorization: Bearer {{token}}
content-type: application/json
{
"project_id": [11]
}
###
POST {{hostname}}/activity/get-percentage
Authorization: Bearer {{token}}
content-type: application/json
{
"project_id": [11]
}
###
POST {{hostname}}/activity/get-curva-s
Authorization: Bearer {{token}}
content-type: application/json
{
"project_id": [47],
"period": "week"
}
###
POST {{hostname}}/dashboard/curva-s
Authorization: Bearer {{token}}
content-type: application/json
{
"project_id": [15]
}
###
POST {{hostname}}/presence/search
Authorization: Bearer {{token}}
content-type: application/json
{
"paging":{
"start":0,
"length":10
},
"columns":[],
"joins": [
{
"name": "m_users",
"column_join": "user_id",
"column_results": [
"name",
"ktp_number"
]
}
],
"orders":{
"columns":[
"id"
],
"ascending":true
}
}
###
POST {{hostname}}/assign-material/ForReportActivityByMaterial
Authorization: Bearer {{token}}
content-type: application/json
{
"idact": 387
}
######
GET {{hostname}}/presence/clockinout/262
Authorization: Bearer {{token}}
content-type: application/json
######
POST {{hostname}}/presence/add
Authorization: Bearer {{token}}
content-type: application/json
{
"clock_out_lat": -6.2622811,
"clock_out_lng": 106.7881746,
"clock_time": "2022-04-25T16:40:17+07:00",
"type": "out",
"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"
}
]
}