pr1/presence/presence_api/obj/Debug/net8.0/EndpointInfo/presence_api.json

746 lines
17 KiB
JSON
Raw Normal View History

2024-12-19 17:36:57 +00:00
{
"openapi": "3.0.1",
"info": {
"title": "presence_api",
"version": "1.0"
},
"paths": {
2024-12-23 09:12:26 +00:00
"/AddStudent": {
"post": {
"tags": [
"Admin"
],
"parameters": [
{
"name": "GroupName",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "students",
"in": "query",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
},
"application/json": {
"schema": {
"type": "string"
}
},
"text/json": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/GetStudentInfo": {
"get": {
"tags": [
"Admin"
],
"parameters": [
{
"name": "userId",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/UserResponse"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserResponse"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/UserResponse"
}
}
}
}
}
}
},
"/GetAllGroupsWithStudents": {
"get": {
"tags": [
"Admin"
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GroupResponse"
}
}
},
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GroupResponse"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GroupResponse"
}
}
}
}
}
}
}
},
"/DeleteUserId": {
"delete": {
"tags": [
"Admin"
],
"parameters": [
{
"name": "userId",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "groupId",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
},
"application/json": {
"schema": {
"type": "string"
}
},
"text/json": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/DeleteGroupId": {
"delete": {
"tags": [
"Admin"
],
"parameters": [
{
"name": "groupId",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
},
"application/json": {
"schema": {
"type": "string"
}
},
"text/json": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
2024-12-19 17:36:57 +00:00
"/api/Group": {
"get": {
"tags": [
"Group"
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Group"
}
}
},
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Group"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Group"
}
}
}
}
}
}
}
2024-12-23 09:12:26 +00:00
},
"/IsAttendence": {
"post": {
"tags": [
"Presence"
],
"parameters": [
{
"name": "FirstClass",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "LastClass",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "Data",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "UserId",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/PresenceResponse"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/PresenceResponse"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/PresenceResponse"
}
}
}
}
}
}
},
"/AddPresence": {
"post": {
"tags": [
"Presence"
],
"parameters": [
{
"name": "GroupId",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "StartData",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "EndData",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "UserId",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Presence"
}
}
},
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Presence"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Presence"
}
}
}
}
}
}
}
},
"/api/Presence": {
"get": {
"tags": [
"Presence"
],
"parameters": [
{
"name": "groupId",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "startDataString",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "endDataString",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "userId",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Presence"
}
}
},
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Presence"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Presence"
}
}
}
}
}
}
}
},
"/DeleteByUser": {
"delete": {
"tags": [
"Presence"
],
"parameters": [
{
"name": "UserId",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PresenceResponse"
}
}
},
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PresenceResponse"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PresenceResponse"
}
}
}
}
}
}
}
},
"/DeleteByGroup": {
"delete": {
"tags": [
"Presence"
],
"parameters": [
{
"name": "GroupId",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PresenceResponse"
}
}
},
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PresenceResponse"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PresenceResponse"
}
}
}
}
}
}
}
},
"/DeleteByDate": {
"delete": {
"tags": [
"Presence"
],
"parameters": [
{
"name": "StartData",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "EndData",
"in": "query",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PresenceResponse"
}
}
},
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PresenceResponse"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PresenceResponse"
}
}
}
}
}
}
}
2024-12-19 17:36:57 +00:00
}
},
"components": {
"schemas": {
"Group": {
"required": [
"id",
"name"
],
2024-12-23 09:12:26 +00:00
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"name": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"GroupResponse": {
2024-12-19 17:36:57 +00:00
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"name": {
"type": "string",
"nullable": true
},
2024-12-23 09:12:26 +00:00
"user": {
2024-12-19 17:36:57 +00:00
"type": "array",
"items": {
2024-12-23 09:12:26 +00:00
"$ref": "#/components/schemas/UserResponse"
2024-12-19 17:36:57 +00:00
},
"nullable": true
}
},
"additionalProperties": false
},
2024-12-23 09:12:26 +00:00
"Presence": {
"required": [
"date",
"user"
],
"type": "object",
"properties": {
"date": {
"type": "string",
"format": "date"
},
"classNumber": {
"type": "integer",
"format": "int32"
},
"isAttendence": {
"type": "boolean"
},
"user": {
"$ref": "#/components/schemas/User"
}
},
"additionalProperties": false
},
"PresenceResponse": {
"required": [
"date",
"user"
],
"type": "object",
"properties": {
"date": {
"type": "string",
"format": "date"
},
"classNumber": {
"type": "integer",
"format": "int32"
},
"isAttendence": {
"type": "boolean"
},
"user": {
"$ref": "#/components/schemas/UserResponse"
}
},
"additionalProperties": false
},
2024-12-19 17:36:57 +00:00
"User": {
"required": [
2024-12-23 09:12:26 +00:00
"fio",
"groupId"
2024-12-19 17:36:57 +00:00
],
"type": "object",
"properties": {
"fio": {
"type": "string",
"nullable": true
},
2024-12-23 09:12:26 +00:00
"id": {
"type": "integer",
"format": "int32"
},
"groupId": {
"$ref": "#/components/schemas/Group"
}
},
"additionalProperties": false
},
"UserResponse": {
"required": [
"fio"
],
"type": "object",
"properties": {
"fio": {
2024-12-19 17:36:57 +00:00
"type": "string",
2024-12-23 09:12:26 +00:00
"nullable": true
},
"id": {
"type": "integer",
"format": "int32"
2024-12-19 17:36:57 +00:00
},
"groupId": {
"type": "integer",
"format": "int32"
},
"group": {
2024-12-23 09:12:26 +00:00
"$ref": "#/components/schemas/GroupResponse"
2024-12-19 17:36:57 +00:00
}
},
"additionalProperties": false
}
}
}
}