{
  "openapi": "3.0.2",
  "info": {
    "title": "Select Query",
    "description": "This API allows for balancing queries between storage nodes",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "http://0.0.0.0:6986",
      "description": "Default server in SCC"
    }
  ],
  "paths": {
    "/select": {
      "post": {
        "summary": "Select a storage node and resend the query to that node",
        "description": "Select query",
        "requestBody": {
          "description": "Select query type",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "https://schemas.fermihdi.io/hd/select_query_schema.json"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Query was received, validated, and Batch was found in this cluster."
          },
          "204": {
            "description": "Query was received, validated, but Batch was not found in this cluster."
          },
          "400": {
            "description": "Query was received, but failed to be validated."
          },
          "default": {
            "description": "Unexpected error"
          }
        }
      }
    }
  }
}

