File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 steps :
2121 - name : Post a user
2222 # Send a HTTP POST request to create a user to the mongo DB.
23- run : " curl -X POST http://localhost:3001/api/user -H 'Content-Type: application: application/json' -d '{\" username\" : \" hello\" , \" address\" : \" dwded\" }'"
24- run : " curl -X POST http://localhost:3001/api/user -H 'Content-Type: application: application/json' -d '{\" username\" : \" hello\" , \" address\" : \" pluk\" }'"
23+ run : |
24+ "curl -X POST http://localhost:3001/api/user -H 'Content-Type: application: application/json' -d '{\"username\": \"hello\", \"address\": \"dwded\"}'"
25+ "curl -X POST http://localhost:3001/api/user -H 'Content-Type: application: application/json' -d '{\"username\": \"hello\", \"address\": \"pluk\"}'"
2526 - name : Get Users
2627 run : curl http://localhost:3001/api/users
2728
You can’t perform that action at this time.
0 commit comments