You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/2/en/part2d.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ When creating notes in our application, we would naturally want to store them in
13
13
14
14
The json-server does not exactly match the description provided by the textbook [definition](https://en.wikipedia.org/wiki/Representational_state_transfer) of a REST API, but neither do most other APIs claiming to be RESTful.
15
15
16
-
We will take a closer look at REST in the [next part](/en/part3) of the course. But it's important to familiarize ourselves at this point with some of the [conventions](https://en.wikipedia.org/wiki/Representational_state_transfer#Applied_to_web_services) used by json-server and REST APIs in general. In particular, we will be taking a look at the conventional use of [routes](https://github.com/typicode/json-server#routes), aka URLs and HTTP request types, in REST.
16
+
We will take a closer look at REST in the [next part](/en/part3) of the course. But it's important to familiarize ourselves at this point with some of the [conventions](https://en.wikipedia.org/wiki/REST#Applied_to_web_services) used by json-server and REST APIs in general. In particular, we will be taking a look at the conventional use of [routes](https://github.com/typicode/json-server#routes), aka URLs and HTTP request types, in REST.
17
17
18
18
### REST
19
19
@@ -73,7 +73,7 @@ Also the tab <i>response</i> is useful, it shows what was the data the server re
73
73
74
74

75
75
76
-
The new note is not rendered to the screen yet. This is because we did not update the state of the <i>App</i> component when we created the new note. Let's fix this:
76
+
The new note is not rendered to the screen yet. This is because we did not update the state of the <i>App</i> component when we created it. Let's fix this:
77
77
78
78
```js
79
79
addNote=event=> {
@@ -706,25 +706,25 @@ Full stack development is <i> extremely hard</i>, that is why I will use all the
706
706
- I will progress with small steps
707
707
- I will write lots of _console.log_ statements to make sure I understand how the code behaves and to help pinpoint problems
708
708
- If my code does not work, I will not write more code. Instead, I start deleting the code until it works or just return to a state when everything was still working
709
-
- When I ask for help in the course Discord or Telegram channel or elsewhere I formulate my questions properly, see [here](https://fullstackopen.com/en/part0/general_info#how-to-get-help-in-discord-telegram) how to ask for help
709
+
- When I ask for help in the course Discord or Telegram channel or elsewhere I formulate my questions properly, see [here](/en/part0/general_info#how-to-get-help-in-discord-telegram) how to ask for help
710
710
711
711
</div>
712
712
713
713
<div class="tasks">
714
714
715
715
<h3>Exercises 2.12.-2.15.</h3>
716
716
717
-
<h4>2.12: The Phonebook step7</h4>
717
+
<h4>2.12: The Phonebook step 7</h4>
718
718
719
719
Let's return to our phonebook application.
720
720
721
721
Currently, the numbers that are added to the phonebook are not saved to a backend server. Fix this situation.
722
722
723
-
<h4>2.13: The Phonebook step8</h4>
723
+
<h4>2.13: The Phonebook step 8</h4>
724
724
725
725
Extract the code that handles the communication with the backend into its own module by following the example shown earlier in this part of the course material.
726
726
727
-
<h4>2.14: The Phonebook step9</h4>
727
+
<h4>2.14: The Phonebook step 9</h4>
728
728
729
729
Make it possible for users to delete entries from the phonebook. The deletion can be done through a dedicated button for each person in the phonebook list. You can confirm the action from the user by using the [window.confirm](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm) method:
730
730
@@ -743,7 +743,7 @@ const delete = (id) => {
743
743
}
744
744
```
745
745
746
-
<h4>2.15*: The Phonebook step10</h4>
746
+
<h4>2.15*: The Phonebook step 10</h4>
747
747
748
748
<i>Why is there a star in the exercise? See [here](/en/part0/general_info#taking-the-course) for the explanation.</i>
0 commit comments