File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 44
55run :
66 docker run -d -p 8000:8000 goose-user:v1
7+
8+ create_user :
9+ curl --location ' http://localhost:8000/v1/user' --header ' Content-Type: application/json' --data ' {"name":"Leo"}'
10+
11+ delete_user :
12+ curl --location --request DELETE ' http://localhost:8000/v1/user/10000'
13+
14+ modify_user :
15+ curl --location --request PUT ' http://localhost:8000/v1/user/10000' --header ' Content-Type: application/json' --data ' {"name":"Leo"}'
16+
17+ update_user :
18+ curl --location --request PATCH ' http://localhost:8000/v1/user/10000' --header ' Content-Type: application/json' --data ' {"id":"99999","name":"Leo"}'
19+
20+ get_user :
21+ curl --location ' http://localhost:8000/v1/user/10000'
22+
23+ list_user :
24+ curl --location ' http://localhost:8000/v1/users?page_num=1&page_size=10'
You can’t perform that action at this time.
0 commit comments