{ "openapi": "3.1.0", "info": { "title": "backend-pull-notifications", "version": "0.1.0" }, "paths": { "/notifications/pull": { "post": { "summary": "Pull Notifications", "operationId": "pull_notifications_notifications_pull_post", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "X-User-Id", "in": "header", "required": true, "schema": { "type": "integer", "exclusiveMinimum": 0, "title": "X-User-Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PullResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } } }, "components": { "schemas": { "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "type": "array", "title": "Detail" } }, "type": "object", "title": "HTTPValidationError" }, "PullResponse": { "properties": { "messages": { "items": { "additionalProperties": true, "type": "object" }, "type": "array", "title": "Messages" }, "count": { "type": "integer", "title": "Count" }, "has_more": { "type": "boolean", "title": "Has More" } }, "type": "object", "required": [ "messages", "count", "has_more" ], "title": "PullResponse" }, "ValidationError": { "properties": { "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "type": "array", "title": "Location" }, "msg": { "type": "string", "title": "Message" }, "type": { "type": "string", "title": "Error Type" }, "input": { "title": "Input" }, "ctx": { "type": "object", "title": "Context" } }, "type": "object", "required": [ "loc", "msg", "type" ], "title": "ValidationError" } }, "securitySchemes": { "HTTPBearer": { "type": "http", "scheme": "bearer" } } } }