From 16e8d72d9e90e5608f0098b025cd065abec2721f Mon Sep 17 00:00:00 2001 From: carry <2641257231@qq.com> Date: Fri, 14 Feb 2025 16:00:56 +0800 Subject: [PATCH] =?UTF-8?q?api=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openapi.json | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/openapi.json b/openapi.json index 3c0c7ab..7f040f0 100644 --- a/openapi.json +++ b/openapi.json @@ -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",