File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
.learn/exercises/00-intro Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 11# Welcome to Flask!
22
3- In this tutorial we are going to be building a REST API that exposes 3 endpoints to the internet:
3+ In this tutorial, we are going to be building a REST API that exposes 3 endpoints to the internet:
44
55``` txt
66GET /todos
77POST /todos
88DELETE /todos/<int:position>
99```
1010
11- ## ** GET /todos**
11+ ## GET /todos
1212
1313It will return the list of all todos in a JSON format like this:
1414
@@ -25,7 +25,7 @@ It will return the list of all todos in a JSON format like this:
2525]
2626```
2727
28- ## ** POST /todos**
28+ ## POST /todos
2929
3030The POST method is going to add a new todo to the list by sending the following request body:
3131
@@ -36,7 +36,7 @@ The POST method is going to add a new todo to the list by sending the following
3636}
3737```
3838
39- And then, it returns the updated list of todos:
39+ And then it returns the updated list of todos:
4040
4141``` javascript
4242[
@@ -55,6 +55,6 @@ And then, it returns the updated list of todos:
5555]
5656```
5757
58- ## ** DELETE /todos/< int:position > **
58+ ## DELETE /todos/< int:position >
5959
60- The DELETE method is going to remove one todo based on a given position at the end of the url, and return the updated list of todos.
60+ The DELETE method is going to remove one todo based on a given position at the end of the URL and return the updated list of todos.
You can’t perform that action at this time.
0 commit comments