Skip to content

Commit 7692d98

Browse files
authored
Update README.md
1 parent 0632748 commit 7692d98

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

vue-5-dynamic-data/README.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,21 @@
11

22
## Intro
33

4-
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:
55

6-
Infact "vue-5" is only user name...
6+
`http://rest.learncode.academy/api/vue-5/friends`
77

8-
The common link is `http://rest.learncode.academy/api/`**{username}**`/friends`
8+
Infact "vue-5" is only user name. The common link is:
9+
10+
`http://rest.learncode.academy/api/{username}/friends`
911

1012
## Check if data exists
1113

1214
It's possible that data has been deleted before you run an example and see this tutorial.
13-
Please check the data:
14-
15-
Visit one of the link below to see the data:
16-
17-
[http://rest.learncode.academy/api/vue-5/friends](http://rest.learncode.academy/api/vue-5/friends);
18-
19-
[http://rest.learncode.academy/api/john/friends](http://rest.learncode.academy/api/john/friends);
20-
21-
[http://rest.learncode.academy/api/bobby/friends](http://rest.learncode.academy/api/bobby/friends);
15+
Visit link below to see the data:
2216

2317
[http://rest.learncode.academy/api/someuser/friends](http://rest.learncode.academy/api/someuser/friends);
2418

25-
etc.
26-
27-
2819
If data isn't there, move to the next chapter and create it!
2920

3021
## Add data via curl
@@ -37,6 +28,7 @@ Open console and run commands:
3728

3829
`curl -H "Content-Type:application/json" -X POST -d '{"name":"Bill"}' http://rest.learncode.academy/api/someuser/friends`
3930

31+
4032
Then visit [http://rest.learncode.academy/api/someuser/friends](http://rest.learncode.academy/api/someuser/friends) and ensure the data has been added.
4133

4234
NOTE! Use `http://rest.learncode.academy/api/someuser/friends` in you main.js

0 commit comments

Comments
 (0)