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 /tasks/ endpoint retrieves every task document stored in MongoDB and returns them as a JSON array. No filtering, pagination, or authentication parameters are required. If no tasks exist in the collection yet, the endpoint returns an empty array ([]) rather than an error — making it safe to call at any time without defensive handling on the client.
GET /tasks/
Response Fields
MongoDB ObjectId serialised as a 24-character hex string. Generated automatically by MongoDB on insert.
The short title of the task.
A detailed description of what the task involves.
Whether the task has been completed. Defaults to
false when a task is first created.Identifier for the user who created the task (e.g. an email address or username).
Example Request
Example Response
Error Responses
| Status | Detail | Cause |
|---|---|---|
500 Internal Server Error | Server error message | Database connection failure or unexpected exception. |