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
From the video [Vue Tutorial #5 - AJAX data and Lifecycle Methods](https://youtu.be/inJDWcHmsss) you could notice there is REST service at `http://rest.learncode.academy/api/vue-5/friends`
4
+
From the video [Vue Tutorial #5 - AJAX data and Lifecycle Methods](https://youtu.be/inJDWcHmsss) you could notice there is REST service:
5
5
6
-
Infact "vue-5" is only user name...
6
+
`http://rest.learncode.academy/api/vue-5/friends`
7
7
8
-
The common link is `http://rest.learncode.academy/api/`**{username}**`/friends`
8
+
Infact "vue-5" is only user name. The common link is:
If data isn't there, move to the next chapter and create it!
29
20
30
21
## Add data via curl
@@ -37,6 +28,7 @@ Open console and run commands:
37
28
38
29
`curl -H "Content-Type:application/json" -X POST -d '{"name":"Bill"}' http://rest.learncode.academy/api/someuser/friends`
39
30
31
+
40
32
Then visit [http://rest.learncode.academy/api/someuser/friends](http://rest.learncode.academy/api/someuser/friends) and ensure the data has been added.
41
33
42
34
NOTE! Use `http://rest.learncode.academy/api/someuser/friends` in you main.js
0 commit comments