diff --git a/backend/README.md b/backend/README.md index a7e5c32..f9883fb 100644 --- a/backend/README.md +++ b/backend/README.md @@ -4,4 +4,24 @@ curl -X POST "127.0.0.1:20000/user/register" \ "account": "test", "password": "test12341234" }' - --- \ No newline at end of file + --- + # 创建美国 +curl -X POST "127.0.0.1:20000/country/create" \ + -H "Content-Type: application/json" \ + -d '{"name": "美国", "code": "US"}' + +# 创建中国 +curl -X POST "127.0.0.1:20000/country/create" \ + -H "Content-Type: application/json" \ + -d '{"name": "中国", "code": "CN"}' + +# 创建日本 +curl -X POST "127.0.0.1:20000/country/create" \ + -H "Content-Type: application/json" \ + -d '{"name": "日本", "code": "JP"}' + +# 创建香港 +curl -X POST "127.0.0.1:20000/country/create" \ + -H "Content-Type: application/json" \ + -d '{"name": "香港", "code": "HK"}' +--- \ No newline at end of file