{ "openapi": "3.0.3", "info": { "title": "Boilerplate API", "description": "API documentation", "version": "1.0.0" }, "components": { "schemas": {} }, "paths": { "/docs/openapi.json": { "get": { "summary": "Get OpenAPI specification in JSON format", "tags": [ "Docs" ], "responses": { "200": { "description": "Default Response" } } } }, "/1/auth/register": { "post": { "summary": "Register a new user", "tags": [ "Auth" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "email": { "type": "string" }, "password": { "type": "string", "minLength": 6 }, "name": { "type": "string", "minLength": 1 }, "surname": { "type": "string", "minLength": 1 } }, "required": [ "email", "password", "name", "surname" ] } } } }, "responses": { "200": { "description": "Default Response", "content": { "application/json": { "schema": { "type": "object", "properties": { "status": { "type": "string", "minLength": 1 }, "code": { "type": "string", "minLength": 1 }, "data": { "type": "object", "properties": {} } }, "required": [ "status", "code", "data" ] } } } } } } }, "/1/users/{userId}": { "get": { "summary": "Get user by ID", "tags": [ "User" ], "parameters": [ { "schema": { "type": "string" }, "in": "path", "name": "userId", "required": true } ], "responses": { "200": { "description": "Default Response" } } } }, "/1/health": { "get": { "summary": "Get service health status", "tags": [ "Health" ], "responses": { "200": { "description": "Default Response" } } } } }, "tags": [ { "name": "Auth", "description": "Auth related end-points" }, { "name": "User", "description": "User related end-points" }, { "name": "Health", "description": "Service health check" }, { "name": "Docs", "description": "API Documentation" } ] }