From 036432c1dfea6ec3469cace5bf14fbe42c512317 Mon Sep 17 00:00:00 2001 From: Dercraker Date: Thu, 28 Mar 2024 22:05:13 +0100 Subject: [PATCH] fix : Add swagger schema --- Map.Api/wwwroot/swagger/swagger.json | 124 +++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) diff --git a/Map.Api/wwwroot/swagger/swagger.json b/Map.Api/wwwroot/swagger/swagger.json index 2586f17..c0daa73 100644 --- a/Map.Api/wwwroot/swagger/swagger.json +++ b/Map.Api/wwwroot/swagger/swagger.json @@ -4176,6 +4176,130 @@ } } }, + "/api/v1/User/{userId}/profile": { + "get": { + "tags": [ + "User" + ], + "summary": "Get user by id", + "operationId": "GetUserByIdGET", + "parameters": [ + { + "name": "userId", + "in": "path", + "description": "Id of user", + "required": true, + "style": "simple", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/MapUserDto" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/MapUserDto" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/MapUserDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/Error" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/Error" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/Error" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Server Error", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/Error" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, "/api/v1/User/{userId}/Username": { "patch": { "tags": [