File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,12 @@ Visit [http://rest.learncode.academy/api/vue-5/friends](http://rest.learncode.ac
4
4
5
5
## Add data via curl
6
6
7
- Open console and perform commands:
7
+ Open console and run commands:
8
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 `
9
+ ` curl -H "Content-Type:application/json" -X POST -d '{"name":"Will"}' http://rest.learncode.academy/api/vue-5/friends `
10
+
11
+ ` curl -H "Content-Type:application/json" -X POST -d '{"name":"John"}' http://rest.learncode.academy/api/vue-5/friends `
12
+
13
+ ` curl -H "Content-Type:application/json" -X POST -d '{"name":"Bill"}' http://rest.learncode.academy/api/vue-5/friends `
12
14
13
15
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