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.
819 lines
21 KiB
819 lines
21 KiB
@token = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3Q6ODQ0NFwvYXBpXC9sb2dpbiIsImlhdCI6MTY3NTgzNTM3NSwiZXhwIjoxNjc2NDQwMTc1LCJuYmYiOjE2NzU4MzUzNzUsImp0aSI6IlhyVjlkTW55TXpOazlrTUIiLCJzdWIiOjEsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.41uAX7bnRwftkC_daRiVwwKcFIN7EDV0Ly_zDuq4_MY |
|
|
|
# @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:8444/api |
|
# @hostname = http://103.73.125.81:8444/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 |
|
|
|
|
|
### 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_in_lat": -6.2622811, |
|
"clock_in_lng": 106.7881746, |
|
"clock_time": "2023-02-06T16: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
|
|
|