feat: Adding load-templates endpoint
This commit is contained in:
31
v1/README.md
31
v1/README.md
@@ -84,7 +84,7 @@ Public resources:
|
||||
Private resources:
|
||||
|
||||
- Company and members: `/companies`, `/users`
|
||||
- Operations: `/loads`, `/proposals`, `/vehicles`, `/branches`, `/budgets`
|
||||
- Operations: `/loads`, `/load-templates`, `/proposals`, `/vehicles`, `/branches`, `/budgets`
|
||||
- Files and alerts: `/load-attachments`, `/notifications`
|
||||
- Company private list: `/groups`
|
||||
|
||||
@@ -308,6 +308,7 @@ Get public fields from registered vehicles.
|
||||
The following list of endpoints requires a JWT.
|
||||
|
||||
- `GET /loads`: List loads related to my company.
|
||||
- `GET /load-templates/all`: List load templates from my company.
|
||||
- `GET /load-attachments`: List load attachments related to my company or load id.
|
||||
- `GET /groups/private`: Get the private group for my company.
|
||||
|
||||
@@ -445,6 +446,34 @@ This endpoint is part of /loads endpoint
|
||||
- `GET /:id` : Get attachment file.
|
||||
- `GET /` : Get attachment list from company.
|
||||
|
||||
### /load-templates
|
||||
|
||||
- `POST /new` : Create a new load template for my company.
|
||||
- `GET /all` : Get all load templates from my company.
|
||||
- `GET /:id` : Get a single load template by id.
|
||||
- `PATCH /:id` : Update a load template by id.
|
||||
- `DELETE /:id` : Delete a load template by id.
|
||||
|
||||
Fields accepted for create/update:
|
||||
|
||||
- template_name
|
||||
- alert_list
|
||||
- origin_warehouse
|
||||
- destination_warehouse
|
||||
- origin
|
||||
- origin_geo
|
||||
- destination
|
||||
- destination_geo
|
||||
- categories
|
||||
- product
|
||||
- truck_type
|
||||
- tyre_type
|
||||
- weight
|
||||
- estimated_cost
|
||||
- distance
|
||||
- actual_cost
|
||||
- notes
|
||||
|
||||
### /loads
|
||||
|
||||
- `GET /find` : Find a list of elements with any of the following fields:
|
||||
|
||||
Reference in New Issue
Block a user