{ "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 } } } }