Commit 9642e091 authored by Antonio Gines Buendia Lopez's avatar Antonio Gines Buendia Lopez
Browse files

Fix H-RAT OpenAPI specification adding Health operations and permissons

parent 22bb16c8
Loading
Loading
Loading
Loading
+38 −16
Original line number Diff line number Diff line
@@ -143,22 +143,22 @@
          "required": true
        },
        "responses": {
          "200": {
            "description": "Ok",
          "409": {
            "description": "No matching optical slice; call POST /transport-optical-slice first",
            "content": {
              "application/json": {
              "*/*": {
                "schema": {
                  "type": "string"
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "No matching optical slice; call POST /transport-optical-slice first",
          "200": {
            "description": "Ok",
            "content": {
              "*/*": {
              "application/json": {
                "schema": {
                  "type": "object"
                  "type": "string"
                }
              }
            }
@@ -465,22 +465,22 @@
          }
        ],
        "responses": {
          "200": {
            "description": "Ok",
          "404": {
            "description": "Transport network slice L3 not found",
            "content": {
              "application/json": {
              "*/*": {
                "schema": {
                  "type": "string"
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Transport network slice L3 not found",
          "200": {
            "description": "Ok",
            "content": {
              "*/*": {
              "application/json": {
                "schema": {
                  "type": "object"
                  "type": "string"
                }
              }
            }
@@ -694,6 +694,28 @@
          }
        }
      }
    },
    "/api/resource-allocation/health": {
      "get": {
        "tags": [
          "Health"
        ],
        "summary": "Health check endpoint",
        "description": "Returns the health status of the H-RAT API service with current server time in UTC.",
        "operationId": "health",
        "responses": {
          "200": {
            "description": "Service is healthy",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {