The Worker resource represents a Ferreandina store employee. Each worker document stores personal details (name, age, weight, email, phone), a job speciality (e.g.,Documentation Index
Fetch the complete documentation index at: https://mintlify.com/tutosrive/ferreandina-nosql/llms.txt
Use this file to discover all available pages before exploring further.
"stock clerk", "store manager", "electrical specialist"), a salary, and a profile image URL. Workers are associated with a branch — when a worker is assigned to a branch, a lightweight summary (_id, name, image) is embedded inside that branch document’s workers array. All CRUD operations are available at /api/workers.
Document Schema
Unique integer identifier for the worker.
Full name of the worker (e.g.,
"Beau Jackson", "Eduardo Sánchez").URL of the worker’s profile photo.
Age of the worker in years.
Job role or specialisation (e.g.,
"stock clerk", "plumbing specialist", "store manager", "electrical specialist").Body weight of the worker in kilograms (float).
Work email address.
Contact phone number.
Monthly salary (float, in local currency).
Endpoints
GET /api/workers
Returns an array of all worker documents.GET /api/workers/{id}
Returns a single worker by their integer_id.
POST /api/workers
Creates a new worker document. Request BodyUnique integer ID for the new worker.
Full name of the worker.
URL of the worker’s profile photo.
Age of the worker.
Job role or specialisation.
Body weight in kg (float).
Work email address.
Contact phone number.
Monthly salary (float).
PATCH /api/workers/{id}
Partially updates a worker record. Include only the fields to change. Request BodyUpdated name.
Updated profile image URL.
Updated age.
Updated job role.
Updated weight.
Updated email.
Updated phone.
Updated salary.
DELETE /api/workers/{id}
Deletes the worker with the given integer_id.
Example Documents
| Speciality | Example worker ID |
|---|---|
| stock clerk | 1 |
| warehouse worker | 2 |
| customer service representative | 3 |
| paint specialist | 4 |
| accountant | 7 |
| forklift operator | 8 |
| inventory supervisor | 9 |
| store manager | 45 |
| electrical specialist | 54 |
| plumbing specialist | 21 |
| power tools specialist | 17 |
| locksmithing specialist | 47 |