Skip to content

Commit 2ff7f24

Browse files
authored
Update README.md
1 parent 31cf8b9 commit 2ff7f24

File tree

1 file changed

+3
-3
lines changed
  • .learn/exercises/07.2-finish-post-todo

1 file changed

+3
-3
lines changed

.learn/exercises/07.2-finish-post-todo/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ def add_new_todo():
1313

1414
Now... if we want to finish our `POST` method, we have to perform the following specific actions:
1515

16-
+ First: Make sure that you are converting the request body into a real python data structure, like a dictionary. You can see that we already used `request.json` for that since we know the request will be in application/json. However, if that is not known, you may want to use `request.get_json(force=True)` to ignore the content type and treat it like json.
16+
+ First: Make sure that you are converting the request body into a real Python data structure, like a dictionary. You can see that we already used `request.json` for that since we know the request will be in `application/json`. However, if that is not known, you may want to use `request.get_json(force=True)` to ignore the content type and treat it like json.
1717

1818
+ Second: Add the dictionary into the list of `todos`.
1919

2020
+ Last: Return the new list of `todos`.
2121

22-
Currently, this endopint is not adding anything new to our 'database' (the `todo` list).
22+
Currently, this endppint is not adding anything new to our 'database' (the `todos` list).
2323

2424
Let's complete our code so the endpoint can do its job - add a new task to the `todos` list.
2525

@@ -30,4 +30,4 @@ Let's complete our code so the endpoint can do its job - add a new task to the `
3030

3131
2. Return the updated list `todos` to the front end.
3232

33-
3. Do not forget to `jsonify` your return. Why is this necessary? Ask instructor to discuss with the class.
33+
3. Do not forget to `jsonify` your return. Why is this necessary? Ask the instructor to discuss this with the class.

0 commit comments

Comments
 (0)