Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fuwensun committed Jun 14, 2020
1 parent 9ba1add commit fef8337
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions eRedis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ curl localhost:8080/ping
# 使用 http 方法 GET /ping, 参数 message=xxx
curl localhost:8080/ping?message=xxx
# 使用 http 方法 POST /user/user, 参数 name=xxx sex=0
curl -X POST -d "uid=123&name=xxx&sex=1" localhost:8080/user
# 使用 http 方法 POST /users, 参数 name=xxx sex=0
curl -X POST -d "uid=123&name=xxx&sex=1" localhost:8080/users
# 使用 http 方法 PUT /user/user, 参数 uid=123 name=yyy sex=1
curl -X PUT -d "name=xxx&sex=1" localhost:8080/user/123
# 使用 http 方法 PUT /users, 参数 uid=123 name=yyy sex=1
curl -X PUT -d "name=xxx&sex=1" localhost:8080/users/123
# 使用 http 方法 GET /user/user, 参数 uid=123
curl -X GET localhost:8080/user/123
curl -X GET localhost:8080/user?uid=123
# 使用 http 方法 GET /users, 参数 uid=123
curl -X GET localhost:8080/users/123
curl -X GET localhost:8080/users?uid=123
# 使用 http 方法 DELETE /user/user, 参数 uid=123
curl -X DELETE localhost:8080/user/123
# 使用 http 方法 DELETE /users, 参数 uid=123
curl -X DELETE localhost:8080/users/123
```

grpc
Expand Down
18 changes: 9 additions & 9 deletions eTest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ curl localhost:8080/ping -w "\n"
# 使用 http 方法 GET /ping, 参数 message=xxx
curl localhost:8080/ping?message=xxx -w "\n"
# 使用 http 方法 POST /user/user, 参数 name=xxx sex=0
curl -X POST -d "name=xxx&sex=1" localhost:8080/user -w "\n"
# 使用 http 方法 POST /users, 参数 name=xxx sex=0
curl -X POST -d "name=xxx&sex=1" localhost:8080/users -w "\n"
# 使用 http 方法 PUT /user/user, 参数 uid=123 name=yyy sex=1
curl -X PUT -d "name=xxx&sex=1" localhost:8080/user/123 -w "\n"
# 使用 http 方法 PUT /users, 参数 uid=123 name=yyy sex=1
curl -X PUT -d "name=xxx&sex=1" localhost:8080/users/123 -w "\n"
# 使用 http 方法 GET /user/user, 参数 uid=123
curl -X GET localhost:8080/user/123 -w "\n"
curl -X GET localhost:8080/user?uid=123 -w "\n"
# 使用 http 方法 GET /users, 参数 uid=123
curl -X GET localhost:8080/users/123 -w "\n"
curl -X GET localhost:8080/users?uid=123 -w "\n"
# 使用 http 方法 DELETE /user/user, 参数 uid=123
curl -X DELETE localhost:8080/user/123 -w "\n"
# 使用 http 方法 DELETE /users, 参数 uid=123
curl -X DELETE localhost:8080/users/123 -w "\n"
```

grpc
Expand Down

0 comments on commit fef8337

Please sign in to comment.