{ "openapi": "3.1.0", "info": { "title": "chdrms_server", "description": "", "license": { "name": "" }, "version": "0.1.0" }, "servers": [ { "url": "/api/v1" } ], "paths": { "/auth/providers": { "get": { "operationId": "list_providers", "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "array", "items": { "$ref": "#/components/schemas/ProviderInfo" } } } } } } } } }, "/health": { "get": { "summary": "Get health of the API.", "operationId": "health", "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } } } } } }, "head": { "summary": "Get health of the API.", "operationId": "health", "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string" } } } } } } }, "/user/@me": { "get": { "operationId": "current_user", "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserInfo" } } } } } } } } }, "components": { "schemas": { "ProviderInfo": { "type": "object", "required": [ "id", "name" ], "properties": { "id": { "type": "string" }, "name": { "type": "string" } } }, "UserInfo": { "type": "object", "required": [ "id", "email", "name" ], "properties": { "email": { "type": "string" }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" } } } } } }