The Despachos API exposes five endpoints for managing dispatch records. All endpoints are served under the base pathDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/DevOpsDuoc/Evaluacion02_Devop_Innovatech/llms.txt
Use this file to discover all available pages before exploring further.
/api/v1/despachos. See the overview page for base URLs, the data model, and error handling.
POST /api/v1/despachos
Creates a new dispatch record. Returns201 Created with the created object and a Location header pointing to the new resource.
Body parameters
Dispatch date in ISO-8601 format (
YYYY-MM-DD).Truck license plate assigned to carry out the delivery.
Delivery attempt number.
ID of the associated sale (
Venta) that originated this dispatch.Delivery address, copied from the associated sale.
Purchase value, copied from the associated sale.
Whether the delivery has been completed. Defaults to
false.Example
| Status | Description |
|---|---|
201 Created | Dispatch created successfully. Location header contains the URI of the new resource. |
The
POST endpoint does not enforce bean validation constraints. All fields are optional. Validation (@Valid) is only applied on PUT requests.GET /api/v1/despachos
Returns a list of all dispatch records in the system.Example
| Status | Description |
|---|---|
200 OK | Returns an array of all dispatches. Returns an empty array when no records exist. |
GET /api/v1/despachos/
Returns the details of a single dispatch record by its ID.Path parameters
The unique identifier of the dispatch to retrieve.
Example
| Status | Description |
|---|---|
200 OK | Dispatch found and returned. |
404 Not Found | No dispatch exists with the given idDespacho. |
PUT /api/v1/despachos/
Updates an existing dispatch record with new field values. All body fields are replaced with the provided values.Path parameters
The unique identifier of the dispatch to update.
Body parameters
Updated dispatch date in ISO-8601 format (
YYYY-MM-DD).Updated truck license plate.
Updated delivery attempt number.
Updated sale ID reference.
Updated delivery address.
Updated purchase value.
Updated delivery completion status.
Example
| Status | Description |
|---|---|
200 OK | Dispatch updated successfully. Returns the updated object. |
400 Bad Request | Validation failed on one or more fields. |
404 Not Found | No dispatch exists with the given idDespacho. |
DELETE /api/v1/despachos/
Permanently deletes a dispatch record. Returns no body on success.Path parameters
The unique identifier of the dispatch to delete.
Example
| Status | Description |
|---|---|
204 No Content | Dispatch deleted successfully. No response body. |
404 Not Found | No dispatch exists with the given idDespacho. |