feat(v1:vehicles): Adding vehicles search by company_name and filters

This commit is contained in:
Josepablo C
2024-08-16 21:34:46 -06:00
parent bed21badb9
commit e676a98476
3 changed files with 10 additions and 4 deletions

View File

@@ -448,6 +448,7 @@ __This endpoint is only valid for carriers.__
- state,
- status,
- destino
- $sort[ field ] : -1/1 ; Sort result by field name
- `GET /global/find` : Find a list of elements (from all the system) with any of the following fields:
- company, (company id)
- categories,
@@ -464,6 +465,9 @@ __This endpoint is only valid for carriers.__
- state,
- status,
- destino
- company_name[$regex] : Regex string to find company_name
- company_name[$options] : Regex options from MongoDB filter description
- $sort[ field ] : -1/1 ; Sort result by field name
- `POST /new` : Creates a new element.
- `PATCH /:id` : Updates data from specific element.
- `DELETE /:id` : Delete element from company. Returns the element data.