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.
1230 lines
29 KiB
1230 lines
29 KiB
@token = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9iYWNrZW5kLnRlc3RcL2FwaVwvbG9naW4iLCJpYXQiOjE3MDA0NTA1ODYsImV4cCI6MTcwMTA1NTM4NiwibmJmIjoxNzAwNDUwNTg2LCJqdGkiOiJack9MMU04UGdKWGkwTUU1Iiwic3ViIjoxLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.fyg6CyiCAcX3GD4iSy8urkHpZEJ4mnXSXQc4NKC8U9A |
|
|
|
@tokenS = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9hZHctYXBpLm9zcHJvLmlkXC9hcGlcL2xvZ2luIiwiaWF0IjoxNjkxNTcyMTIwLCJleHAiOjE2OTIxNzY5MjAsIm5iZiI6MTY5MTU3MjEyMCwianRpIjoiVUdqbnhLRVdlZzYyTTBnayIsInN1YiI6MSwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9.5QqK0dLW5jzbVOkSCSW0mFo0K7ycGOBW9NCG_2Zldm4 |
|
|
|
|
|
# @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://backend.test/api |
|
# @hostname = http://103.73.125.81:8444/api |
|
# @hostname = http://localhost:8444/adw-backend/api |
|
|
|
###### login |
|
POST {{hostname}}/login |
|
# Authorization: Bearer xxx |
|
# X-REQUEST-TYPE: GraphQL 1123150023 |
|
content-type: application/json |
|
|
|
{ |
|
"username": "admin", |
|
"password": "1nt3gr4s14" |
|
} |
|
|
|
###### 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 |
|
|
|
### |
|
POST {{hostname}}/project/search |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
{ |
|
"columns": [ |
|
{ |
|
"name": "nama", |
|
"logic_operator": "ilike", |
|
"value": "", |
|
"operator": "AND" |
|
} |
|
], |
|
"select": ["id", "nama", "rencana_biaya", "type_proyek_id", "currency_symbol", "mulai_proyek", "akhir_proyek"], |
|
"joins": [ |
|
{ |
|
"name": "m_users", |
|
"column_join": "pm_id", |
|
"column_results": [ |
|
"name", |
|
"username" |
|
] |
|
}, |
|
{ |
|
"name": "m_type_proyek", |
|
"column_join": "type_proyek_id", |
|
"column_results": [ |
|
"name", |
|
"description" |
|
] |
|
} |
|
], |
|
"orders": { |
|
"columns": [ |
|
"id" |
|
], |
|
"ascending": false |
|
}, |
|
"paging": { |
|
"start": 0, |
|
"length": 10 |
|
} |
|
} |
|
|
|
### |
|
POST https://adw-api.ospro.id/api/project/search |
|
Authorization: Bearer {{tokenS}} |
|
content-type: application/json |
|
|
|
{ |
|
"columns": [ |
|
{ |
|
"name": "nama", |
|
"logic_operator": "ilike", |
|
"value": "", |
|
"operator": "AND" |
|
} |
|
], |
|
"select": ["id", "nama", "rencana_biaya", "color_progress", "currency_symbol", "mulai_proyek", "akhir_proyek"], |
|
"joins": [ |
|
{ |
|
"name": "m_users", |
|
"column_join": "pm_id", |
|
"column_results": [ |
|
"name", |
|
"username" |
|
] |
|
}, |
|
{ |
|
"name": "m_type_proyek", |
|
"column_join": "type_proyek_id", |
|
"column_results": [ |
|
"name", |
|
"description" |
|
] |
|
} |
|
], |
|
"orders": { |
|
"columns": [ |
|
"id" |
|
], |
|
"ascending": false |
|
}, |
|
"paging": { |
|
"start": 0, |
|
"length": 10 |
|
} |
|
} |
|
|
|
### 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/550/137/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}}/dashboard/curva-s |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
{ |
|
"project_id": [15] |
|
} |
|
|
|
### |
|
POST {{hostname}}/project/s-curve-command-test |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
{"period":"week","project_id":"129","gantt_id":"862"} |
|
### {"period":"week","project_id":"129","gantt_id":"862"} |
|
|
|
### |
|
POST {{hostname}}/project/calculate-s-curve |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
{"period":"week","project_id":"129","gantt_id":"862"} |
|
### {"period":"week","project_id":"135","gantt_id":"891"} |
|
|
|
####### |
|
POST {{hostname}}/project/get-s-curve |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
{"period":"week","project_id":"129","gantt_id":"800"} |
|
### {"period":"week","project_id":"135","gantt_id":"891"} |
|
|
|
### |
|
GET https://adw-api.ospro.id/api/request-material/get-material-integration?name=c |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
### |
|
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": [ |
|
"username", |
|
"name" |
|
] |
|
} |
|
], |
|
"orders":{ |
|
"columns":[ |
|
"id" |
|
], |
|
"ascending":true |
|
} |
|
} |
|
|
|
|
|
### |
|
POST {{hostname}}/report-k3/search |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
{ |
|
"paging": { |
|
"start": 0, |
|
"length": 10 |
|
}, |
|
"filter_columns": [ |
|
{ |
|
"name": "name", |
|
"value": "", |
|
"table_name": "m_users" |
|
} |
|
], |
|
"columns": [ |
|
{ |
|
"name": "report_date", |
|
"logic_operator": "range", |
|
"value": "2023-02-21 00:00:00", |
|
"value1": "2023-02-21 23:59:59", |
|
"operator": "AND" |
|
}, |
|
{ |
|
"name": "name", |
|
"logic_operator": "ilike", |
|
"value": "", |
|
"operator": "AND", |
|
"table_name": "m_users" |
|
}, |
|
{ |
|
"name": "proyek_id", |
|
"logic_operator": "in", |
|
"value": [ |
|
80, |
|
79, |
|
78, |
|
76, |
|
75, |
|
74, |
|
73, |
|
72, |
|
71, |
|
66, |
|
64, |
|
63, |
|
62, |
|
58, |
|
57, |
|
49, |
|
48, |
|
47, |
|
37, |
|
31 |
|
] |
|
} |
|
], |
|
"joins": [ |
|
{ |
|
"name": "m_users", |
|
"column_join": "user_id", |
|
"column_results": [ |
|
"name" |
|
] |
|
}, |
|
{ |
|
"name": "m_proyek", |
|
"column_join": "proyek_id", |
|
"column_results": [ |
|
"nama" |
|
] |
|
} |
|
], |
|
"orders": { |
|
"columns": [ |
|
"id" |
|
], |
|
"ascending": false |
|
}, |
|
"child_data": { |
|
"table_name": "t_report_k3_detail", |
|
"column_table": "report_k3_id", |
|
"column_name": "id" |
|
} |
|
} |
|
|
|
|
|
|
|
### |
|
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_in_lat": -6.16678379060529, |
|
"clock_in_lng": 106.9175039866567, |
|
"clock_time": "2023-02-16T14:48:17+07:00", |
|
"type": "in", |
|
"user_id": 1247 |
|
} |
|
|
|
|
|
# -6.226761,106.809311 jkarta |
|
# -6.465806,106.760559 |
|
# -6.356175,108.336182 indramayu |
|
# -6.266805,106.468048, tigaraksa |
|
# -6.205115,106.918373 jatinegara |
|
###### |
|
POST {{hostname}}/presence/test |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
{ |
|
"clock_in_out": { |
|
"clock_out_lat": -6.356175, |
|
"clock_out_lng": 108.336182, |
|
"type" : "out" |
|
}, |
|
"time": "2023-08-15T14:48:17+07:00", |
|
"user_id": 1566 |
|
} |
|
|
|
###### |
|
POST {{hostname}}/presence/add |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
{ |
|
"clock_in_lat": -1.4264273154149407, |
|
"clock_in_lng": 113.98530036945851, |
|
"clock_time": "2023-02-13T16:40:17+07:00", |
|
"type": "in", |
|
"user_id": 1 |
|
} |
|
|
|
###### |
|
# POST {{hostname}}/ |
|
GET {{hostname}}/assign-material/datatablesForReportActivity?draw=2&columns[0][data]=material_name&columns[0][name]=material_name&columns[0][searchable]=true&columns[0][orderable]=true&columns[0][search][value]=&columns[0][search][regex]=false&columns[1][data]=type&columns[1][name]=type&columns[1][searchable]=true&columns[1][orderable]=true&columns[1][search][value]=&columns[1][search][regex]=false&columns[2][data]=qty_planning&columns[2][name]=&columns[2][searchable]=true&columns[2][orderable]=true&columns[2][search][value]=&columns[2][search][regex]=false&columns[3][data]=qty_sum&columns[3][name]=&columns[3][searchable]=true&columns[3][orderable]=true&columns[3][search][value]=&columns[3][search][regex]=false&columns[4][data]=uom&columns[4][name]=uom&columns[4][searchable]=true&columns[4][orderable]=true&columns[4][search][value]=&columns[4][search][regex]=false&columns[5][data]=action&columns[5][name]=action&columns[5][searchable]=true&columns[5][orderable]=true&columns[5][search][value]=&columns[5][search][regex]=false&order[0][column]=0&order[0][dir]=asc&start=0&length=10&search[value]=&search[regex]=false&idact=2511&_=1675418553660 |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
###### |
|
GET {{hostname}}/dashboard/get-total-project-per-schedule-health |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
###### |
|
GET {{hostname}}/dashboard/get-detail-expenditure |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
|
|
###### |
|
GET {{hostname}}/presence/bulk-update-location |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
|
|
##### |
|
GET https://nominatim.oslogdev.com/reverse?lat=-6.2622811&lon=106.7881746&format=json |
|
|
|
###### |
|
|
|
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}}/map-monitoring/search |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
{"project_id":[140,138,132,130]} |
|
|
|
###### |
|
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" |
|
} |
|
] |
|
} |
|
|
|
##### |
|
POST {{hostname}}/map-monitoring/search |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
{ |
|
"time_from": "2023-02-10 00:00:00", |
|
"time_to": "2023-02-10 23:59:00", |
|
} |
|
|
|
# { |
|
# "columns": [ |
|
# { |
|
# "logic_operator": "range", |
|
# "name": "created_at", |
|
# "operator": "AND", |
|
# "value": "2023-02-10 00:00:00", |
|
# "value1": "2023-02-10 23:59:00" |
|
# } |
|
# ], |
|
# "joins": [ |
|
# { |
|
# "column_join": "user_id", |
|
# "column_results": [ |
|
# "username", "name" |
|
# ], |
|
# "name": "m_users" |
|
# } |
|
# ], |
|
# "orders": { |
|
# "ascending": false, |
|
# "columns": [ |
|
# "created_at" |
|
# ] |
|
# }, |
|
# "paging": { |
|
# "length": 25, |
|
# "start": 0 |
|
# } |
|
# } |
|
|
|
|
|
<<<<<<< HEAD |
|
GET /stock_master?name=SEARCH |
|
|
|
###### |
|
GET {{hostname}}/request-material/get-material-integration |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
|
|
###### |
|
POST {{hostname}}/presence/reportk3 |
|
Authorization: Bearer {{token}} |
|
content-type: application/json |
|
|
|
{ |
|
"time" : "2023-02-16T14:48:17+07:00", // untuk report date, time_clockin/out |
|
"user_id": 1247, |
|
"clock_in_out": { |
|
"clock_in_lat": -6.16678379060529, |
|
"clock_in_lng": 106.9175039866567, |
|
"type": "in" |
|
}, |
|
"report_k3": { |
|
"proyek_id": "", |
|
"description": "", |
|
"detail": [{ |
|
"checklist_id": 1, |
|
"checklist_name": "" |
|
}, |
|
{ |
|
"checklist_id": 2, |
|
"checklist_name": "" |
|
}] |
|
|
|
} |
|
} |
|
|
|
|