TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/tutosrive/fastapi-CRUD-MongoDB/llms.txt
Use this file to discover all available pages before exploring further.
GET /users/ endpoint retrieves every user document stored in the MongoDB local.user collection and returns them as a JSON array. Each element is serialized through the user_entity schema, which maps MongoDB’s internal _id field to a plain string id. If no users have been created yet, the endpoint returns an empty array rather than an error.
GET /users/
Response Fields
The MongoDB ObjectId serialized as a 24-character hexadecimal string. Assigned automatically by MongoDB on document insertion.
The user’s full name.
The user’s age.
The user’s email address.
Example Request
Example Response
A successful request returns HTTP200 OK with a JSON array of user objects.