Skip to content

Commit 938400a

Browse files
committed
Add readme to vue-5 lesson
1 parent f364501 commit 938400a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

vue-5-dynamic-data/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Check if data exists
2+
3+
Visit [http://rest.learncode.academy/api/vue-5/friends](http://rest.learncode.academy/api/vue-5/friends) to see the data.
4+
5+
## Add data via curl
6+
7+
Open console and perform commands:
8+
9+
1. `curl -H "Content-Type:application/json" -X POST -d '{"name":"Will"}' http://rest.learncode.academy/api/vue-5/friends`
10+
2. `curl -H "Content-Type:application/json" -X POST -d '{"name":"Will"}' http://rest.learncode.academy/api/vue-5/friends`
11+
3. `curl -H "Content-Type:application/json" -X POST -d '{"name":"Will"}' http://rest.learncode.academy/api/vue-5/friends`
12+
13+
Then visit [http://rest.learncode.academy/api/vue-5/friends](http://rest.learncode.academy/api/vue-5/friends) and ensure the data has been added.

0 commit comments

Comments
 (0)