Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 946 Bytes

README.md

File metadata and controls

38 lines (33 loc) · 946 Bytes

GET all todos: Method: GET URL: http://127.0.0.1:5000/todos

GET a specific todo by ID: Method: GET URL: http://127.0.0.1:5000/todos/<todo_id> Replace <todo_id> with the ID of the todo you want to retrieve.

Create a new todo: Method: POST URL: http://127.0.0.1:5000/todos/<todo_id> Replace <todo_id> with a unique ID for the new todo. Body (JSON): json Copy code { "task": "Your task here", "summary": "Your summary here" }

Update an existing todo: Method: PUT URL: http://127.0.0.1:5000/todos/<todo_id> Replace <todo_id> with the ID of the todo you want to update. Body (JSON): json Copy code { "task": "Updated task", "summary": "Updated summary" }

Delete a todo: Method: DELETE URL: http://127.0.0.1:5000/todos/<todo_id> Replace <todo_id> with the ID of the todo you want to delete.