Retrieve a list of vendors.
Method: GET
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/vendors
Create a new vendor.
Method: POST
Request Body:
curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/vendors -H "Content-Type: application/json" -d '{"name": "Vendor Name", "address": "Vendor Address"}'
Retrieve a specific vendor by ID.
Method: GET
Parameters:
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/vendors/1
Update an existing vendor by ID.
Method: PUT
Parameters:
Request Body:
curl -X PUT https://api.pbg-kukar.digireglabs.cloud/api/v1/vendors/1 -H "Content-Type: application/json" -d '{"name": "Updated Vendor Name", "address": "Updated Vendor Address"}'
Delete a vendor by ID.
Method: DELETE
Parameters:
curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/vendors/1
Retrieve a list of budgets.
Method: GET
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/budgets
Create a new budget.
Method: POST
Request Body:
curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/budgets -H "Content-Type: application/json" -d '{"name": "Budget Name", "amount": 1000}'
Retrieve a specific budget by ID.
Method: GET
Parameters:
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/budgets/1
Update an existing budget by ID.
Method: PUT
Parameters:
Request Body:
curl -X PUT https://api.pbg-kukar.digireglabs.cloud/api/v1/budgets/1 -H "Content-Type: application/json" -d '{"name": "Updated Budget Name", "amount": 1500}'
Delete a budget by ID.
Method: DELETE
Parameters:
curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/budgets/1
Retrieve a list of kecamatan.
Method: GET
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/kecamatan
Create a new kecamatan.
Method: POST
Request Body:
curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/kecamatan -H "Content-Type: application/json" -d '{"name": "Kecamatan Name"}'
Retrieve a specific kecamatan by ID.
Method: GET
Parameters:
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/kecamatan/1
Update an existing kecamatan by ID.
Method: PUT
Parameters:
Request Body:
curl -X PUT https://api.pbg-kukar.digireglabs.cloud/api/v1/kecamatan/1 -H "Content-Type: application/json" -d '{"name": "Updated Kecamatan Name"}'
Delete a kecamatan by ID.
Method: DELETE
Parameters:
curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/kecamatan/1
Retrieve a list of programs.
Method: GET
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/programs
Create a new program.
Method: POST
Request Body:
curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/programs -H "Content-Type: application/json" -d '{"name": "Program Name"}'
Retrieve a specific program by ID.
Method: GET
Parameters:
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/programs/1
Update an existing program by ID.
Method: PUT
Parameters:
Request Body:
curl -X PUT https://api.pbg-kukar.digireglabs.cloud/api/v1/programs/1 -H "Content-Type: application/json" -d '{"name": "Updated Program Name"}'
Delete a program by ID.
Method: DELETE
Parameters:
curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/programs/1
Retrieve a list of users.
Method: GET
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/users
Create a new user.
Method: POST
Request Body:
curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/users -H "Content-Type: application/json" -d '{"name": "User Name", "email": "[email protected]", "password": "password"}'
Retrieve a specific user by ID.
Method: GET
Parameters:
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/users/1
Update an existing user by ID.
Method: PUT
Parameters:
Request Body:
curl -X PUT https://api.pbg-kukar.digireglabs.cloud/api/v1/users/1 -H "Content-Type: application/json" -d '{"name": "Updated User Name", "email": "[email protected]", "password": "newpassword"}'
Delete a user by ID.
Method: DELETE
Parameters:
curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/users/1
Retrieve a list of projects.
Method: GET
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/projects
Create a new project.
Method: POST
Request Body:
curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/projects -H "Content-Type: application/json" -d '{"name": "Project Name"}'
Retrieve a specific project by ID.
Method: GET
Parameters:
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/projects/1
Update an existing project by ID.
Method: PUT
Parameters:
Request Body:
curl -X PUT https://api.pbg-kukar.digireglabs.cloud/api/v1/projects/1 -H "Content-Type: application/json" -d '{"name": "Updated Project Name"}'
Delete a project by ID.
Method: DELETE
Parameters:
curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/projects/1
Update the status of a project by ID.
Method: PUT
Parameters:
Request Body:
curl -X PUT https://api.pbg-kukar.digireglabs.cloud/api/v1/projects/update-status/1 -H "Content-Type: application/json" -d '{"status": "new_status"}'
Get data for a project graph by ID.
Method: GET
Parameters:
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/projects/get-graph/1
Retrieve a list of vendor history records.
Method: GET
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/vendor-history
Create a new vendor history record.
Method: POST
Request Body:
curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/vendor-history -H "Content-Type: application/json" -d '{"vendor_id": 1, "description": "Description"}'
Retrieve a specific vendor history record by ID.
Method: GET
Parameters:
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/vendor-history/1
Update an existing vendor history record by ID.
Method: PUT
Parameters:
Request Body:
curl -X PUT https://api.pbg-kukar.digireglabs.cloud/api/v1/vendor-history/1 -H "Content-Type: application/json" -d '{"vendor_id": 1, "description": "Updated Description"}'
Delete a vendor history record by ID.
Method: DELETE
Parameters:
curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/vendor-history/1
Retrieve a list of project progress records.
Method: GET
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/project-progress
Create a new project progress record.
Method: POST
Request Body:
curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/project-progress -H "Content-Type: application/json" -d '{"project_id": 1, "description": "Description"}'
Retrieve a specific project progress record by ID.
Method: GET
Parameters:
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/project-progress/1
Update an existing project progress record by ID.
Method: PUT
Parameters:
Request Body:
curl -X PUT https://api.pbg-kukar.digireglabs.cloud/api/v1/project-progress/1 -H "Content-Type: application/json" -d '{"project_id": 1, "description": "Updated Description"}'
Delete a project progress record by ID.
Method: DELETE
Parameters:
curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/project-progress/1
Update the status of a project progress record by ID.
Method: PUT
Parameters:
Request Body:
curl -X PUT https://api.pbg-kukar.digireglabs.cloud/api/v1/project-progress/update-status/1 -H "Content-Type: application/json" -d '{"status": "new_status"}'
Retrieve a list of project payment records.
Method: GET
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/project-payments
Create a new project payment record.
Method: POST
Request Body:
curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/project-payments -H "Content-Type: application/json" -d '{"project_id": 1, "amount": 1000}'
Retrieve a specific project payment record by ID.
Method: GET
Parameters:
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/project-payments/1
Update an existing project payment record by ID.
Method: PUT
Parameters:
Request Body:
curl -X PUT https://api.pbg-kukar.digireglabs.cloud/api/v1/project-payments/1 -H "Content-Type: application/json" -d '{"project_id": 1, "amount": 1500}'
Delete a project payment record by ID.
Method: DELETE
Parameters:
curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/project-payments/1
Update the status of a project payment record by ID.
Method: PUT
Parameters:
Request Body:
curl -X PUT https://api.pbg-kukar.digireglabs.cloud/api/v1/project-payments/update-status/1 -H "Content-Type: application/json" -d '{"status": "new_status"}'
Retrieve a list of documents.
Method: GET
curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/documents
Upload a new document.
Method: POST
Request Body:
curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/documents -H "Content-Type: multipart/form-data" -F "file=@path/to/document"
Delete a document by ID.
Method: DELETE
Parameters:
curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/documents/1
Login to the application.
Method: POST
Request Body:
curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/auth/login -H "Content-Type: application/json" -d '{"email": "[email protected]", "password": "password"}'
Logout from the application.
Method: POST
curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/auth/logout
Reset a user's password.
Method: POST
Parameters:
Request Body:
curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/auth/reset-password/1 -H "Content-Type: application/json" -d '{"new_password": "newpassword"}'
Change a user's password.
Method: POST
Parameters:
Request Body:
curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/auth/change-password/1 -H "Content-Type: application/json" -d '{"current_password": "currentpassword", "new_password": "newpassword"}'
Verify OTP for a user.
Method: POST
Parameters:
curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/auth/verify-otp/otp_code
Create a new project (version 2).
Method: POST
Request Body:
curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v2/projects -H "Content-Type: application/json" -d '{"name": "Project Name"}'