{ "openapi": "3.1.0", "info": { "title": "mizan Channels", "version": "1.0.0", "description": "Auto-generated schema for mizan channels" }, "paths": { "/channels/chat/params": { "post": { "operationId": "chatParams", "summary": "Chat channel params", "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BaseModel" } } } } }, "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChatParams" } } }, "required": true } } }, "/channels/chat/react": { "post": { "operationId": "chatReactMessage", "summary": "Chat React→Django message", "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BaseModel" } } } } }, "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChatReactMessage" } } }, "required": true } } }, "/channels/chat/django": { "post": { "operationId": "chatDjangoMessage", "summary": "Chat Django→React message", "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChatDjangoMessage" } } } } } } }, "/channels/notifications/django": { "post": { "operationId": "notificationsDjangoMessage", "summary": "Notifications Django→React message", "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationsDjangoMessage" } } } } } } }, "/channels/presence/django": { "post": { "operationId": "presenceDjangoMessage", "summary": "Presence Django→React message", "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PresenceDjangoMessage" } } } } } } }, "/channels/private/django": { "post": { "operationId": "privateDjangoMessage", "summary": "Private Django→React message", "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PrivateDjangoMessage" } } } } } } } }, "components": { "schemas": { "BaseModel": { "properties": {}, "title": "BaseModel", "type": "object" }, "ChatParams": { "properties": { "room": { "title": "Room", "type": "string" } }, "required": [ "room" ], "title": "ChatParams", "type": "object" }, "ChatReactMessage": { "properties": { "text": { "title": "Text", "type": "string" } }, "required": [ "text" ], "title": "ChatReactMessage", "type": "object" }, "ChatDjangoMessage": { "properties": { "text": { "title": "Text", "type": "string" } }, "required": [ "text" ], "title": "ChatDjangoMessage", "type": "object" }, "NotificationsDjangoMessage": { "properties": { "text": { "title": "Text", "type": "string" } }, "required": [ "text" ], "title": "NotificationsDjangoMessage", "type": "object" }, "PresenceDjangoMessage": { "properties": { "value": { "title": "Value", "type": "integer" } }, "required": [ "value" ], "title": "PresenceDjangoMessage", "type": "object" }, "PrivateDjangoMessage": { "properties": { "text": { "title": "Text", "type": "string" } }, "required": [ "text" ], "title": "PrivateDjangoMessage", "type": "object" } } }, "servers": [], "x-mizan-channels": [ { "name": "chat", "pascalName": "Chat", "hasParams": true, "hasReactMessage": true, "hasDjangoMessage": true, "paramsType": "ChatParams", "reactMessageType": "ChatReactMessage", "djangoMessageType": "ChatDjangoMessage" }, { "name": "notifications", "pascalName": "Notifications", "hasParams": false, "hasReactMessage": false, "hasDjangoMessage": true, "djangoMessageType": "NotificationsDjangoMessage" }, { "name": "presence", "pascalName": "Presence", "hasParams": false, "hasReactMessage": false, "hasDjangoMessage": true, "djangoMessageType": "PresenceDjangoMessage" }, { "name": "private", "pascalName": "Private", "hasParams": false, "hasReactMessage": false, "hasDjangoMessage": true, "djangoMessageType": "PrivateDjangoMessage" } ] }