Get all disbursement (returns all if staff, and returns only receiver's disbursement if it is regular user)
GET /api/disburse/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Authorization: Bearer
Get the active cart (or it creates a new one for the user if no active cart)
GET /api/disburse/active/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Authorization: Bearer
Post a disbursement to a cart
POST /api/disburse/disbursements/create/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Authorization: Bearer
Request:
Delete a disbursement from a cart
DELETE /api/disburse/disbursements/HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Authorization: Bearer
Returns a HTTP_204_NO_CONTENT on success 🗡
All the calls are protected against you can only act on an active cart
Get all disbursement (returns all if staff, and returns only receiver's disbursement if it is regular user) GET /api/disburse/ HTTP/1.1 Host: localhost:8000 Content-Type: application/json Authorization: Bearer
Cart Submission PATCH /api/disburse/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Authorization: Bearer
Returns HTTP_200_OK if it works
Get the active cart (or it creates a new one for the user if no active cart) GET /api/disburse/active/ HTTP/1.1 Host: localhost:8000 Content-Type: application/json Authorization: Bearer
Response:
Response:
Returns a HTTP_204_NO_CONTENT on success 🗡
All the calls are protected against you can only act on an active cart