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

100 lines
2.1 KiB
JSON
Raw Permalink Normal View History

2024-12-05 09:30:01 +00:00
{
"openapi": "3.0.1",
"info": {
"title": "presence_api",
"version": "1.0"
},
"paths": {
"/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"
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Group": {
"required": [
"id",
"name"
],
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"name": {
"type": "string",
"nullable": true
},
"users": {
"type": "array",
"items": {
"$ref": "#/components/schemas/User"
},
"nullable": true
}
},
"additionalProperties": false
},
"User": {
"required": [
"fio"
],
"type": "object",
"properties": {
"fio": {
"type": "string",
"nullable": true
},
"guid": {
"type": "string",
"format": "uuid"
},
"groupId": {
"type": "integer",
"format": "int32"
},
"group": {
"$ref": "#/components/schemas/Group"
}
},
"additionalProperties": false
}
}
}
}