{
    "swagger": "2.0",
    "info": {
        "title": "Real time Air Quality Index from various locations",
        "desc": "Real time Air Quality Index from various locations",
        "version": null,
        "license": {
            "name": "Government Open Data License - India",
            "url": "https:\/\/data.gov.in\/government-open-data-license-india"
        }
    },
    "host": "api.data.gov.in",
    "basePath": "\/",
    "schemes": [
        "https"
    ],
    "paths": {
        "\/resource\/3b01bcb8-0b14-4abf-b6f2-c1bfd384ba69": {
            "get": {
                "tags": [
                    "Resource"
                ],
                "summary": "Get data of Real time Air Quality Index from various locations",
                "description": "By passing in the appropriate options, you can get resource level data\n",
                "produces": [
                    "application\/xml",
                    "application\/json",
                    "text\/csv"
                ],
                "parameters": [
                    {
                        "name": "api-key",
                        "in": "query",
                        "description": "User API Key to test this API is: \"579b464db66ec23bdd000001cdd3946e44ce4aad7209ff7b23ac571b\". This is a sample key, which will return maximum of 10 records at a time. To avail your key, please login to the portal and goto \"My Account\" section.",
                        "required": true,
                        "type": "string",
                        "default": "579b464db66ec23bdd000001cdd3946e44ce4aad7209ff7b23ac571b"
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "description": "output format(i.e. json\/xml\/csv) (default json)",
                        "required": true,
                        "type": "string",
                        "enum": [
                            "xml",
                            "json",
                            "csv"
                        ],
                        "example": "xml"
                    },
                    {
                        "name": "offset",
                        "in": "query",
                        "description": "number of records to skip for pagination",
                        "required": false,
                        "type": "integer",
                        "minimum": 0,
                        "format": "int32",
                        "example": "0"
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "maximum number of records to return",
                        "required": false,
                        "type": "integer",
                        "maximum": 1000,
                        "minimum": 0,
                        "format": "int32",
                        "example": 10
                    }
                ],
                "responses": {
                    "200": {
                        "description": "search results matching criteria"
                    },
                    "400": {
                        "description": "bad input parameter"
                    },
                    "403": {
                        "description": "Forbidden"
                    }
                }
            }
        }
    }
}