add create user method

This commit is contained in:
2024-11-20 15:32:43 +07:00
parent 074a202dc2
commit bd6b5fe4a8
10 changed files with 467 additions and 87 deletions
+53
View File
@@ -148,6 +148,39 @@
"SmmCore"
]
}
},
"/users": {
"post": {
"summary": "users",
"operationId": "SmmCore_AddUser",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/smm_coreUser"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/smm_coreCreateUserReq"
}
}
],
"tags": [
"SmmCore"
]
}
}
},
"definitions": {
@@ -229,8 +262,28 @@
}
}
},
"smm_coreCreateUserReq": {
"type": "object",
"properties": {
"username": {
"type": "string"
}
}
},
"smm_corePingRsp": {
"type": "object"
},
"smm_coreUser": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"username": {
"type": "string"
}
}
}
}
}