api更新
This commit is contained in:
parent
5efdf76388
commit
16e8d72d9e
46
openapi.json
46
openapi.json
@ -208,6 +208,52 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/api/users/{user_id}": {
|
"/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": {
|
"put": {
|
||||||
"tags": [
|
"tags": [
|
||||||
"users",
|
"users",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user