From 00140a256150b17f18daee8a427cf4bec4ee827a Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Sat, 2 Nov 2024 18:22:46 +0100 Subject: [PATCH] Add the OAS3 spec --- src/OAS3.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/OAS3.yml b/src/OAS3.yml index e69de29..e3facc6 100644 --- a/src/OAS3.yml +++ b/src/OAS3.yml @@ -0,0 +1,41 @@ +openapi: 3.0.0 +info: + title: Netz39 Ampel Controller API + description: Microservice to provide the Controller for our Traffic Light and Space Status. + version: 1.0.0 +servers: + - url: http://localhost:8080 + description: Local server +paths: + /v0/health: + get: + summary: Get health status + description: Returns the health status of the application. + responses: + '200': + description: A JSON object containing the health status. + content: + application/json: + schema: + type: object + properties: + api_version: + type: string + git_version: + type: string + timestamp: + type: string + format: date-time + uptime: + type: string + /v0/oas3: + get: + summary: Get OpenAPI 3.0 specification + description: Returns the OpenAPI 3.0 specification in plain text format. + responses: + '200': + description: The OpenAPI 3.0 specification. + content: + text/plain: + schema: + type: string