{ "openapi": "3.0.3", "info": { "title": "Patagia Controller", "version": "1.0.0" }, "paths": { "/users": { "get": { "tags": [ "user" ], "summary": "List users", "operationId": "list_users", "parameters": [ { "in": "query", "name": "limit", "description": "Maximum number of items returned by a single call", "schema": { "nullable": true, "type": "integer", "format": "uint32", "minimum": 1 } }, { "in": "query", "name": "page_token", "description": "Token returned by previous call to retrieve the subsequent page", "schema": { "nullable": true, "type": "string" } } ], "responses": { "200": { "description": "successful operation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserResultsPage" } } } }, "4XX": { "$ref": "#/components/responses/Error" }, "5XX": { "$ref": "#/components/responses/Error" } }, "x-dropshot-pagination": { "required": [] } } }, "/users/{userId}": { "get": { "tags": [ "user" ], "summary": "Fetch user info.", "operationId": "get_user_by_id", "parameters": [ { "in": "path", "name": "userId", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "successful operation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/User" } } } }, "4XX": { "$ref": "#/components/responses/Error" }, "5XX": { "$ref": "#/components/responses/Error" } } } }, "/version": { "get": { "summary": "Fetch version info.", "operationId": "version", "responses": { "200": { "description": "successful operation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VersionInfo" } } } }, "4XX": { "$ref": "#/components/responses/Error" }, "5XX": { "$ref": "#/components/responses/Error" } } } } }, "components": { "schemas": { "Error": { "description": "Error information from a response.", "type": "object", "properties": { "error_code": { "type": "string" }, "message": { "type": "string" }, "request_id": { "type": "string" } }, "required": [ "message", "request_id" ] }, "User": { "description": "User", "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" } }, "required": [ "id", "name" ] }, "UserResultsPage": { "description": "A single page of results", "type": "object", "properties": { "items": { "description": "list of items on this page of results", "type": "array", "items": { "$ref": "#/components/schemas/User" } }, "next_page": { "nullable": true, "description": "token used to fetch the next page of results (if any)", "type": "string" } }, "required": [ "items" ] }, "VersionInfo": { "description": "Version and build information", "type": "object", "properties": { "name": { "type": "string" }, "version": { "type": "string" } }, "required": [ "name", "version" ] } }, "responses": { "Error": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } }, "tags": [ { "name": "user" } ] }