File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 - name : Post a user
2222 # Send a HTTP POST request to create a user to the mongo DB.
2323 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\"}'"
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\"}'''
2626 - name : Get Users
2727 run : curl http://localhost:3001/api/users
2828
You can’t perform that action at this time.
0 commit comments