feat: Adding alert_list to branches/loads

This commit is contained in:
Josepablo C
2025-06-04 13:03:50 -06:00
parent 270a1accee
commit 12e192b4d2
4 changed files with 7 additions and 1 deletions

View File

@@ -296,6 +296,7 @@ Returns a company object
- truck_type
- zipcode
- type (unloading, loading, both)
- alert_list: List of emails to notify whenever there is a change to the object.
- `POST /new` : Creates a new element.
- `PATCH /:id` : Updates data from specific element.
- `DELETE /:id` : Delete element from company. Returns the element data.
@@ -379,6 +380,7 @@ This endpoint is part of /loads endpoint
- 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
- alert_list: List of emails to notify whenever there is a change to the object.
- `GET /calendar` : Find a list of elements with any of the following fields:
- date[gte] : Date grater than.
- date[lte] : Date less than.