{
  "swagger": "2.0",
  "info": {
    "version": "1.0",
    "description": "<h3>Cafcass API Documentation </h3> <b>Published Date:</b> 15-September-2022 <b>Author: </b> Jegan Maharajan, Yashar Rahvar <b> Requirement:</b> This document present details of third-party organisations to retrieve case data and documents from the CFT case management system  <b>Version History:</b> Cafcass  API is added",
    "title": "Cafcass APIs "
  },
  "host": "cft-api-mgmt-demo.azure-api.net",
  "basePath": "/",
  "schemes": [
    "https"
  ],
  "securityDefinitions": {
    "apiKeyHeader": {
      "type": "apiKey",
      "name": "Ocp-Apim-Subscription-Key",
      "in": "header"
    },
    "apiKeyQuery": {
      "type": "apiKey",
      "name": "auth-token",
      "in": "header"
    }
  },
  "security": [
    {
      "apiKeyHeader": [

      ]
    }
  ],
  "paths": {
    "/cases/searchCases": {
      "get": {
        "description": "Search and return cases according to the provided parameters",
        "operationId": "get case data",
        "summary": "This API retrieve case data",
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "description": "start date timestamp",
            "type": "string"
          },
          {
            "name": "end_date",
            "in": "query",
            "description": "end date timestamp",
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "search results matching criteria",
            "examples": {
              "application/json": [
                {
                "id": "d290f1ee-6c54-4b01-90e6-d701748f0851"
                }
              ]
            }
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Failed authorisation"
          },
          "429": {
            "description": "rate limit error or too many requests"
          },
          "500": {
            "description": "Internal server error"
          }
        }
      }
    }
  }
}
