{ "openapi": "3.0.1", "info": { "title": "Sailhouse Public Schema", "description": "", "license": { "name": "MIT" }, "version": "1.0.0" }, "servers": [ { "url": "https://api.sailhouse.dev" } ], "security": [ { "bearerAuth": [], "apiKey": [] } ], "paths": { "/topics/{topic}/events": { "post": { "description": "Posts an event to a topic", "security": [ { "apiKey": [] } ], "parameters": [ { "name": "topic", "in": "path", "description": "The topic to post to", "required": true, "schema": { "type": "string" } } ], "requestBody": { "description": "Event to post", "content": { "application/json": { "schema": { "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object" }, "metadata": { "type": "object" } } } } }, "required": true }, "responses": { "200": { "description": "Event posted", "content": {} }, "400": { "description": "unexpected error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } } }, "components": { "schemas": { "Error": { "required": [ "error", "message" ], "type": "object", "properties": { "error": { "type": "integer", "format": "int32" }, "message": { "type": "string" } } } }, "securitySchemes": { "bearerAuth": { "type": "http", "scheme": "bearer" }, "apiKey": { "type": "apiKey", "in": "header", "name": "Authorization" } } } }