About us

Learning library

For all the self-taught geeks out there, here our content library with most of the learning materials we have produces throughout the years.

It makes sense to start learning by reading and watching videos about fundamentals and how things work.

Machine Learning Engineering (16 weeks)

Full-Stack Software Developer

Search from all Lessons

Social & live learning

The most efficient way to learn: Join a cohort with classmates just like you, live streams, impromptu coding sessions, live tutorials with real experts, and stay motivated.

From zero to getting paid as a developer, learn the skills of today and tomorrow. Boost your professional career and be hired by a technology company.

Start Coding

← Back to Projects

Todo List API with Python Flask Interactive

Goal

4Geeks Coding Projects tutorials and exercises for people learning to code or improving their coding skills

Difficulty

easy

Repository

Click to open

Video

Not available

Live demo

Not available

Average duration

6 hrs

Technologies

This is an interactive tutorial that will teach you how to create an API using the Python Flask framework using Python and Pipenv.

🌱 How to start this project

This project comes with the necessary files to start working, but you have two options to start:

a) Open this link in your browser to clone it with gitpod: https://gitpod.io#https://github.com/breatheco-de/python-flask-api-tutorial

b) You can clone this repository on your local computer:

1$ git clone https://github.com/breatheco-de/python-flask-api-tutorial

💡 Important: Remember to create a new repository, update the remote (git remote set-url origin <your new url>), and upload the code to your new repository using add, commit and push.

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:

1GET /todos 2POST /todos 3DELETE /todos/<int:position>

GET /todos

Will return the list of all todos like this:

1[ 2 { 3 "done": true, 4 "label": "Sample Todo 1" 5 }, 6 { 7 "done": true, 8 "label": "Sample Todo 2" 9 } 10]

POST /todos

It's going to add a new todo to the list, it will receive the following request body:

1{ 2 "done": true, 3 "label": "Sample Todo 1" 4}

And return the updated list of todos.

DELETE /todos/int:position

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.

Goal

4Geeks Coding Projects tutorials and exercises for people learning to code or improving their coding skills

Difficulty

easy

Repository

Click to open

Video

Not available

Live demo

Not available

Average duration

6 hrs