Presence_Desktop/presence_api/obj/Debug/net8.0/EndpointInfo/presence_api.json
2024-12-23 14:26:41 +03:00

183 lines
3.9 KiB
JSON

{
"openapi": "3.0.1",
"info": {
"title": "presence_api",
"version": "1.0"
},
"paths": {
"/api/admin/student/{userGuid}": {
"get": {
"tags": [
"Admin"
],
"parameters": [
{
"name": "userGuid",
"in": "path",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/admin/groups": {
"get": {
"tags": [
"Admin"
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GroupWithStudentsDto"
}
}
},
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GroupWithStudentsDto"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GroupWithStudentsDto"
}
}
}
}
}
}
}
},
"/api/admin/presence/clear": {
"delete": {
"tags": [
"Admin"
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/admin/groups/{groupId}": {
"delete": {
"tags": [
"Admin"
],
"parameters": [
{
"name": "groupId",
"in": "path",
"required": true,
"style": "simple",
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/admin/users/{userGuid}": {
"delete": {
"tags": [
"Admin"
],
"parameters": [
{
"name": "userGuid",
"in": "path",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/admin/groups/add": {
"post": {
"tags": [
"Admin"
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GroupWithStudentsDto"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/GroupWithStudentsDto"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/GroupWithStudentsDto"
}
}
}
},
"responses": {
"200": {
"description": "Success"
}
}
}
}
},
"components": {
"schemas": {
"GroupWithStudentsDto": {
"type": "object",
"properties": {
"groupName": {
"type": "string",
"nullable": true
},
"students": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true
}
},
"additionalProperties": false
}
}
}
}