API Documentation

GET /api/v1/vendors

Retrieve a list of vendors.

Method: GET

curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/vendors

POST /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"}'

GET /api/v1/vendors/(:num)

Retrieve a specific vendor by ID.

Method: GET

Parameters:

curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/vendors/1

PUT /api/v1/vendors/(:num)

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 /api/v1/vendors/(:num)

Delete a vendor by ID.

Method: DELETE

Parameters:

curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/vendors/1

GET /api/v1/budgets

Retrieve a list of budgets.

Method: GET

curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/budgets

POST /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}'

GET /api/v1/budgets/(:num)

Retrieve a specific budget by ID.

Method: GET

Parameters:

curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/budgets/1

PUT /api/v1/budgets/(:num)

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 /api/v1/budgets/(:num)

Delete a budget by ID.

Method: DELETE

Parameters:

curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/budgets/1

GET /api/v1/kecamatan

Retrieve a list of kecamatan.

Method: GET

curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/kecamatan

POST /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"}'

GET /api/v1/kecamatan/(:num)

Retrieve a specific kecamatan by ID.

Method: GET

Parameters:

curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/kecamatan/1

PUT /api/v1/kecamatan/(:num)

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 /api/v1/kecamatan/(:num)

Delete a kecamatan by ID.

Method: DELETE

Parameters:

curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/kecamatan/1

GET /api/v1/programs

Retrieve a list of programs.

Method: GET

curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/programs

POST /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"}'

GET /api/v1/programs/(:num)

Retrieve a specific program by ID.

Method: GET

Parameters:

curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/programs/1

PUT /api/v1/programs/(:num)

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 /api/v1/programs/(:num)

Delete a program by ID.

Method: DELETE

Parameters:

curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/programs/1

GET /api/v1/users

Retrieve a list of users.

Method: GET

curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/users

POST /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"}'

GET /api/v1/users/(:num)

Retrieve a specific user by ID.

Method: GET

Parameters:

curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/users/1

PUT /api/v1/users/(:num)

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 /api/v1/users/(:num)

Delete a user by ID.

Method: DELETE

Parameters:

curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/users/1

GET /api/v1/projects

Retrieve a list of projects.

Method: GET

curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/projects

POST /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"}'

GET /api/v1/projects/(:num)

Retrieve a specific project by ID.

Method: GET

Parameters:

curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/projects/1

PUT /api/v1/projects/(:num)

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 /api/v1/projects/(:num)

Delete a project by ID.

Method: DELETE

Parameters:

curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/projects/1

PUT /api/v1/projects/update-status/(:num)

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 /api/v1/projects/get-graph/(:num)

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

GET /api/v1/vendor-history

Retrieve a list of vendor history records.

Method: GET

curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/vendor-history

POST /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"}'

GET /api/v1/vendor-history/(:num)

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

PUT /api/v1/vendor-history/(:num)

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 /api/v1/vendor-history/(:num)

Delete a vendor history record by ID.

Method: DELETE

Parameters:

curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/vendor-history/1

GET /api/v1/project-progress

Retrieve a list of project progress records.

Method: GET

curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/project-progress

POST /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"}'

GET /api/v1/project-progress/(:num)

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

PUT /api/v1/project-progress/(:num)

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 /api/v1/project-progress/(:num)

Delete a project progress record by ID.

Method: DELETE

Parameters:

curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/project-progress/1

PUT /api/v1/project-progress/update-status/(:num)

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"}'

GET /api/v1/project-payments

Retrieve a list of project payment records.

Method: GET

curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/project-payments

POST /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}'

GET /api/v1/project-payments/(:num)

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

PUT /api/v1/project-payments/(:num)

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 /api/v1/project-payments/(:num)

Delete a project payment record by ID.

Method: DELETE

Parameters:

curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/project-payments/1

PUT /api/v1/project-payments/update-status/(:num)

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"}'

GET /api/v1/documents

Retrieve a list of documents.

Method: GET

curl -X GET https://api.pbg-kukar.digireglabs.cloud/api/v1/documents

POST /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 /api/v1/documents/(:num)

Delete a document by ID.

Method: DELETE

Parameters:

curl -X DELETE https://api.pbg-kukar.digireglabs.cloud/api/v1/documents/1

POST /api/v1/auth/login

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"}'

POST /api/v1/auth/logout

Logout from the application.

Method: POST

curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/auth/logout

POST /api/v1/auth/reset-password/(:num)

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"}'

POST /api/v1/auth/change-password/(:num)

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"}'

POST /api/v1/auth/verify-otp/(:any)

Verify OTP for a user.

Method: POST

Parameters:

curl -X POST https://api.pbg-kukar.digireglabs.cloud/api/v1/auth/verify-otp/otp_code

POST /api/v2/projects

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"}'