Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/natalia-bp/todolist_api
To do list with GET, POST, DELETE methods using python & flask
https://github.com/natalia-bp/todolist_api
Last synced: 13 days ago
JSON representation
To do list with GET, POST, DELETE methods using python & flask
- Host: GitHub
- URL: https://github.com/natalia-bp/todolist_api
- Owner: Natalia-BP
- Created: 2021-02-25T00:15:38.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-25T00:16:57.000Z (almost 4 years ago)
- Last Synced: 2024-11-14T07:43:49.281Z (2 months ago)
- Language: Python
- Size: 6.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Todo List API in Python Flask
This is an interactive tutorial that will teach you how to create an API using the Python Flask framework using Python and Pipenv. Please click here to start the tutorial:
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/breatheco-de/python-flask-api-tutorial)
## About the project we are going to build
In this tutorial we are going to be building a REST API that exposes 3 endpoints to the internet:
```txt
GET /todos
POST /todos
DELETE /todos/
```### GET /todos
Will return the list of all todos like this:
```javascript
[
{
"done": true,
"label": "Sample Todo 1"
},
{
"done": true,
"label": "Sample Todo 2"
}
]
```### POST /todos
It's going to add a new todo to the list, it will receive the following request body:
```javascript
{
"done": true,
"label": "Sample Todo 1"
}
```And return the updated list of todos
### DELETE /todos/
It's going to remove one todo based on a given position at the end of the url, and return the updated list of todos.