{ "openapi": "3.0.0", "info": {"title": "Acme CRM API", "version": "1.0.0"}, "servers": [{"url": "https://api.acmecrm.com/v1"}], "components": { "securitySchemes": { "ApiKeyAuth": { "type": "apiKey", "in": "header", "name": "X-Api-Key" } }, "schemas": { "Customer": { "type": "object", "required": ["id", "email"], "properties": { "id": {"type": "integer", "format": "int64"}, "email": {"type": "string"}, "name": {"type": "string"}, "created_at": {"type": "string", "format": "date-time"}, "updated_at": {"type": "string", "format": "date-time"}, "is_active": {"type": "boolean"}, "balance": {"type": "number", "format": "double"}, "metadata": {"type": "object"} } }, "Order": { "type": "object", "required": ["id"], "properties": { "id": {"type": "integer", "format": "int64"}, "customer_id": {"type": "integer", "format": "int64"}, "total": {"type": "number"}, "status": {"type": "string"}, "created_at": {"type": "string", "format": "date-time"} } }, "CustomerList": { "type": "object", "properties": { "results": { "type": "array", "items": {"$ref": "#/components/schemas/Customer"} }, "next": {"type": "string"} } } } }, "paths": { "/customers": { "get": { "summary": "List customers", "parameters": [ {"name": "cursor", "in": "query", "schema": {"type": "string"}}, {"name": "limit", "in": "query", "schema": {"type": "integer"}} ], "responses": { "200": { "content": { "application/json": { "schema": {"$ref": "#/components/schemas/CustomerList"} } } } } } }, "/customers/{id}": { "get": { "summary": "Get customer by ID", "parameters": [ {"name": "id", "in": "path", "schema": {"type": "integer"}} ], "responses": { "200": { "content": { "application/json": { "schema": {"$ref": "#/components/schemas/Customer"} } } } } } }, "/orders": { "get": { "summary": "List orders", "parameters": [ {"name": "cursor", "in": "query", "schema": {"type": "string"}} ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": {"$ref": "#/components/schemas/Order"} } } } } } }, "post": { "summary": "Create order", "responses": {"201": {}} } }, "/health": { "get": { "summary": "Health check", "responses": {"200": {}} } } } }