api更新

This commit is contained in:
carry 2025-02-14 16:00:56 +08:00
parent 5efdf76388
commit 16e8d72d9e

View File

@ -208,6 +208,52 @@
}
},
"/api/users/{user_id}": {
"get": {
"tags": [
"users",
"users"
],
"summary": "Get User",
"operationId": "get_user_api_users__user_id__get",
"parameters": [
{
"required": true,
"schema": {
"title": "User Id",
"type": "integer"
},
"name": "user_id",
"in": "path"
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
},
"security": [
{
"OAuth2PasswordBearer": []
}
]
},
"put": {
"tags": [
"users",