Skip to content

Commit

Permalink
fix : Add swagger schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Dercraker committed Mar 28, 2024
1 parent 74d7f34 commit 036432c
Showing 1 changed file with 124 additions and 0 deletions.
124 changes: 124 additions & 0 deletions Map.Api/wwwroot/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 036432c

Please sign in to comment.