File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments