Skip to content

Commit 8097587

Browse files
committed
chore: add client call at makefile
1 parent 033b0e2 commit 8097587

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

example/user/server/Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,21 @@ build:
44

55
run:
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'

0 commit comments

Comments
 (0)