50 lines
1.4 KiB
JSON
50 lines
1.4 KiB
JSON
|
{
|
||
|
"swagger": "2.0",
|
||
|
"info": {
|
||
|
"contact": {},
|
||
|
"license": {}
|
||
|
},
|
||
|
"paths": {
|
||
|
"/user/regist": {
|
||
|
"post": {
|
||
|
"produces": [
|
||
|
"application/x-www-form-urlencoded"
|
||
|
],
|
||
|
"summary": "创建用户",
|
||
|
"parameters": [
|
||
|
{
|
||
|
"description": "用户注册接口",
|
||
|
"name": "data",
|
||
|
"in": "body",
|
||
|
"required": true,
|
||
|
"schema": {
|
||
|
"type": "object",
|
||
|
"$ref": "#/definitions/api.RegistStuct"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"responses": {
|
||
|
"200": {
|
||
|
"description": "{\"code\":200,\"data\":{},\"msg\":\"ok\"}",
|
||
|
"schema": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"definitions": {
|
||
|
"api.RegistStuct": {
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"passWord": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"userName": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|