{
  "openapi": "3.0.4",
  "info": {
    "title": "GB5 Enterprise Gateway API",
    "description": "Unified API Gateway for the GoodBooks ERP microservices platform. Routes and proxies all module traffic with real-time health monitoring and observability.",
    "contact": {
      "name": "GB5 Platform Team",
      "email": "support@goodbooks.in"
    },
    "license": {
      "name": "GoodBooks Enterprise License",
      "url": "https://goodbookserp.in/license"
    },
    "version": "v1"
  },
  "servers": [
    {
      "url": "http://api-dev.goodbookserp.in"
    }
  ],
  "paths": {
    "/Auth/Login": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequestDTO"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequestDTO"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequestDTO"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Auth/Users": {
      "get": {
        "tags": [
          "Auth"
        ],
        "parameters": [
          {
            "name": "X-GB5-Role",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/GatewayConfig": {
      "get": {
        "tags": [
          "GatewayConfigEndpoint"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/InfraHealth": {
      "get": {
        "tags": [
          "InfraHealth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/ModuleHealth": {
      "get": {
        "tags": [
          "ModuleHealth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/ModuleHealth/TrackRestart": {
      "post": {
        "tags": [
          "ModuleHealth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/ModuleHealth/ServerInfo": {
      "get": {
        "tags": [
          "ModuleHealth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Modules": {
      "get": {
        "tags": [
          "Modules"
        ],
        "parameters": [
          {
            "name": "X-GB5-Role",
            "in": "header",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-GB5-AllowedModules",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/SystemStats": {
      "get": {
        "tags": [
          "SystemStats"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "LoginRequestDTO": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}