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/{id} endpoint looks up a single user document in the MongoDB local.user collection by its ObjectId. The id path parameter must be a valid 24-character hexadecimal string matching a stored document’s _id. If no document is found for the given ID, the controller raises an HTTP 404 exception with the detail "User Not Found!".
GET /users/{id}
Path Parameters
MongoDB ObjectId (24-character hex string) identifying the user document to retrieve. Example:
64a1b2c3d4e5f6789abcdef0.Response Fields
The MongoDB ObjectId serialized as a 24-character hexadecimal string.
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 single user object.
Error Responses
404 Not Found
Returned when no user document exists for the providedid.