{
  "swagger" : "2.0",
  "info" : {
    "description" : "caDSR II Domain Class APIs that mimic the Legacy caDSR APIs but return results in JSON<br/>\r\n<b>query examples: </b><br/>\r\n    DataElement[@publicId=62]<br/>\r\n    Form[@publicId=2392775]",
    "version" : "1.0",
    "title" : "caDSR getJSON"
  },
  "host" : "cadsrapi.cancer.gov",
  "basePath" : "/caDSR5.0/rest/getJSON",
  "schemes" : [ "https" ],
  "consumes" : [ "application/json" ],
  "produces" : [ "application/json" ],
  "paths" : {
    "/GetJSON" : {
      "get" : {
        "operationId" : "GetJSON_GET_1",
        "parameters" : [ {
          "name" : "query",
          "in" : "query",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "schema" : {
              "$ref" : "#/definitions/GetJSON_GET_response"
            }
          },
          "401" : {
            "description" : "Access Denied"
          }
        }
      }
    }
  },
  "definitions" : {
    "getXMLDoc" : {
      "type" : "object",
      "required" : [ "@encoding", "xlink:httpQuery" ],
      "properties" : {
        "@encoding" : {
          "type" : "string"
        },
        "xlink:httpQuery" : {
          "$ref" : "#/definitions/xlink"
        }
      },
      "description" : "generated by webMethods"
    },
    "classDocTypeRef" : {
      "type" : "object",
      "required" : [ "@name", "@recordNumber", "field" ],
      "properties" : {
        "@name" : {
          "type" : "string"
        },
        "@recordNumber" : {
          "type" : "string"
        },
        "field" : {
          "type" : "array",
          "items" : {
            "$ref" : "#/definitions/fieldsDocTypeRef"
          }
        }
      }
    },
    "xlink_2" : {
      "type" : "object",
      "required" : [ "@count", "page" ],
      "properties" : {
        "@count" : {
          "type" : "string"
        },
        "page" : {
          "$ref" : "#/definitions/xlink_4"
        }
      }
    },
    "xlink_4" : {
      "type" : "object",
      "required" : [ "*body", "@number", "@xlink:href", "@xlink:type" ],
      "properties" : {
        "@number" : {
          "type" : "string"
        },
        "@xlink:type" : {
          "type" : "string"
        },
        "@xlink:href" : {
          "type" : "string"
        },
        "*body" : {
          "type" : "string"
        }
      }
    },
    "queryRequest" : {
      "type" : "object",
      "properties" : {
        "query" : {
          "$ref" : "#/definitions/query"
        },
        "criteria" : {
          "type" : "string"
        }
      }
    },
    "xlink_1" : {
      "type" : "object",
      "properties" : {
        "recordCounter" : {
          "type" : "array",
          "items" : {
            "type" : "string"
          }
        },
        "class" : {
          "type" : "array",
          "items" : {
            "$ref" : "#/definitions/classDocTypeRef"
          }
        },
        "pages" : {
          "$ref" : "#/definitions/xlink_2"
        },
        "start" : {
          "type" : "string"
        },
        "end" : {
          "type" : "string"
        },
        "Errors" : {
          "$ref" : "#/definitions/xlink_3"
        }
      }
    },
    "GetJSON_GET_response" : {
      "type" : "object",
      "required" : [ "getXMLDocnew" ],
      "properties" : {
        "getXMLDocnew" : {
          "$ref" : "#/definitions/getXMLDoc"
        }
      }
    },
    "query" : {
      "type" : "object",
      "properties" : {
        "queryString" : {
          "type" : "string"
        },
        "class" : {
          "type" : "string"
        }
      }
    },
    "xlink" : {
      "type" : "object",
      "required" : [ "queryResponse" ],
      "properties" : {
        "queryRequest" : {
          "$ref" : "#/definitions/queryRequest"
        },
        "queryResponse" : {
          "$ref" : "#/definitions/xlink_1"
        }
      }
    },
    "xlink_3" : {
      "type" : "object",
      "required" : [ "Error" ],
      "properties" : {
        "Error" : {
          "type" : "array",
          "items" : {
            "$ref" : "#/definitions/xlink_5"
          }
        }
      }
    },
    "fieldsDocTypeRef" : {
      "type" : "object",
      "required" : [ "@name" ],
      "properties" : {
        "@name" : {
          "type" : "string"
        },
        "*body" : {
          "type" : "string"
        },
        "@xlink:type" : {
          "type" : "string"
        },
        "@xlink:href" : {
          "type" : "string"
        }
      }
    },
    "xlink_5" : {
      "type" : "object",
      "required" : [ "ErrorMessage" ],
      "properties" : {
        "ErrorMessage" : {
          "type" : "string"
        }
      }
    }
  }
}