{ "openapi": "3.0.3", "info": { "title": "Minimal API", "version": "0.1.0" }, "paths": { "/items": { "get": { "operationId": "listItems", "summary": "List items", "responses": { "200": { "description": "A list of items", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ItemList" } } } } } }, "post": { "operationId": "createItem", "summary": "Create item", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Item" } } } }, "responses": { "201": { "description": "Item created", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Item" } } } } } } }, "/items/{id}": { "get": { "operationId": "getItem", "summary": "Get item by ID", "parameters": [ { "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "A single item", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Item" } } } } } } } }, "components": { "schemas": { "Item": { "type": "object", "required": ["id", "name"], "properties": { "id": { "type": "integer", "format": "int64" }, "name": { "type": "string" } } }, "ItemList": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/Item" } }, "total": { "type": "integer" } } } } } }