{
  "openapi": "3.0.2", 
  "info": {
    "title": "Gramex Microservices", 
    "description": "[Gramex](https://gramener.com/gramex/) OpenAPIHandler\n", 
    "version": "0.1.2"
  }, 
  "servers": [
    {
      "url": "..", 
      "description": "Gramex OpenAPIHandler demo"
    }
  ], 
  "paths": {
    "/openapihandler/compare": {
      "get": {
        "description": "\nReturn True if the first list (x) is larger than the second list (y)\n", 
        "parameters": [
          {
            "in": "query", 
            "name": "x", 
            "description": "First list", 
            "schema": {
              "default": [], 
              "type": "array", 
              "items": {
                "type": "number"
              }
            }
          }, 
          {
            "in": "query", 
            "name": "y", 
            "description": "Second list", 
            "schema": {
              "default": [], 
              "type": "array", 
              "items": {
                "type": "number"
              }
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Successful Response", 
            "content": {
              "application/json": {}
            }
          }, 
          "400": {
            "description": "Bad request", 
            "content": {
              "text/html": {
                "example": "Bad request"
              }
            }
          }, 
          "401": {
            "description": "Not authorized", 
            "content": {
              "text/html": {
                "example": "Not authorized"
              }
            }
          }, 
          "403": {
            "description": "Forbidden", 
            "content": {
              "text/html": {
                "example": "Forbidden"
              }
            }
          }, 
          "404": {
            "description": "Not found", 
            "content": {
              "text/html": {
                "example": "Not found"
              }
            }
          }, 
          "500": {
            "description": "Internal server error", 
            "content": {
              "text/html": {
                "example": "Internal server error"
              }
            }
          }
        }, 
        "summary": "Openapihandler Compare: FunctionHandler"
      }
    }, 
    "/openapihandler/flagdata": {
      "get": {
        "summary": "Openapihandler Flagdata: FormHandler", 
        "description": "Query data from 1 data source(s)", 
        "parameters": [
          {
            "in": "query", 
            "name": "Name", 
            "description": "Filter by value", 
            "schema": {
              "type": "string", 
              "min": 0
            }
          }, 
          {
            "in": "query", 
            "name": "Continent", 
            "description": "Filter by value", 
            "schema": {
              "type": "string", 
              "min": 0
            }
          }, 
          {
            "in": "query", 
            "name": "Symbols", 
            "description": "Filter by value", 
            "schema": {
              "type": "string", 
              "min": 0
            }
          }, 
          {
            "in": "query", 
            "name": "Shapes", 
            "description": "Filter by value", 
            "schema": {
              "type": "string", 
              "min": 0
            }
          }, 
          {
            "in": "query", 
            "name": "Stripes", 
            "description": "Filter by value", 
            "schema": {
              "type": "string", 
              "min": 0
            }
          }, 
          {
            "in": "query", 
            "name": "_sort", 
            "schema": {
              "type": "array", 
              "items": {
                "type": "string", 
                "enum": [
                  "Name", 
                  "-Name", 
                  "Continent", 
                  "-Continent", 
                  "Symbols", 
                  "-Symbols", 
                  "Shapes", 
                  "-Shapes", 
                  "Stripes", 
                  "-Stripes"
                ]
              }
            }
          }, 
          {
            "in": "query", 
            "name": "_c", 
            "schema": {
              "type": "array", 
              "items": {
                "type": "string", 
                "enum": [
                  "Name", 
                  "Continent", 
                  "Symbols", 
                  "Shapes", 
                  "Stripes"
                ]
              }
            }
          }, 
          {
            "in": "query", 
            "name": "_offset", 
            "description": "No. of rows to skip at the start", 
            "schema": {
              "type": "number", 
              "min": 0
            }
          }, 
          {
            "in": "query", 
            "name": "_limit", 
            "description": "Maximum number of rows to return", 
            "schema": {
              "type": "number", 
              "min": 0, 
              "default": 10000
            }
          }, 
          {
            "in": "query", 
            "name": "_limit", 
            "description": "Return metadata in headers?", 
            "schema": {
              "type": "boolean"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Successful Response", 
            "content": {
              "application/json": {}
            }
          }, 
          "400": {
            "description": "Bad request", 
            "content": {
              "text/html": {
                "example": "Bad request"
              }
            }
          }, 
          "401": {
            "description": "Not authorized", 
            "content": {
              "text/html": {
                "example": "Not authorized"
              }
            }
          }, 
          "403": {
            "description": "Forbidden", 
            "content": {
              "text/html": {
                "example": "Forbidden"
              }
            }
          }, 
          "404": {
            "description": "Not found", 
            "content": {
              "text/html": {
                "example": "Not found"
              }
            }
          }, 
          "500": {
            "description": "Internal server error", 
            "content": {
              "text/html": {
                "example": "Internal server error"
              }
            }
          }
        }
      }
    }
  }
}