{"swagger": "2.0", "basePath": "/", "paths": {"/ipasn_history/": {"get": {"responses": {"200": {"description": "Success"}}, "operationId": "get_ipasn_proxy", "tags": ["BGP Ranking API"]}, "post": {"responses": {"200": {"description": "Success"}}, "operationId": "post_ipasn_proxy", "tags": ["BGP Ranking API"]}}, "/ipasn_history/{path}": {"parameters": [{"name": "path", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success"}}, "operationId": "get_ipasn_proxy", "tags": ["BGP Ranking API"]}, "post": {"responses": {"200": {"description": "Success"}}, "operationId": "post_ipasn_proxy", "tags": ["BGP Ranking API"]}}, "/json/asn": {"post": {"responses": {"200": {"description": "Success"}}, "operationId": "post_asn_rank", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ASNQueryFields"}}], "tags": ["BGP Ranking API"]}}, "/json/asn_descriptions": {"post": {"responses": {"200": {"description": "Success"}}, "operationId": "post_asn_description", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ASNDescriptionsFields"}}], "tags": ["BGP Ranking API"]}}, "/json/asn_history": {"get": {"responses": {"200": {"description": "Success"}}, "operationId": "get_asn_history", "tags": ["BGP Ranking API"]}, "post": {"responses": {"200": {"description": "Success"}}, "operationId": "post_asn_history", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ASNQueryFields"}}], "tags": ["BGP Ranking API"]}}, "/json/asns_global_ranking": {"post": {"responses": {"200": {"description": "Success"}}, "operationId": "post_as_ns_global_ranking", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ASNsGlobalRankingFields"}}], "tags": ["BGP Ranking API"]}}, "/json/country_history": {"get": {"responses": {"200": {"description": "Success"}}, "operationId": "get_country_history", "tags": ["BGP Ranking API"]}, "post": {"responses": {"200": {"description": "Success"}}, "operationId": "post_country_history", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CountryHistoryFields"}}], "tags": ["BGP Ranking API"]}}, "/redis_up": {"get": {"responses": {"200": {"description": "Success"}}, "description": "Check if redis is up and running", "operationId": "get_redis_up", "tags": ["BGP Ranking API"]}}}, "info": {"title": "BGP Ranking API", "version": "2.1", "description": "API to query BGP Ranking."}, "produces": ["application/json"], "consumes": ["application/json"], "tags": [{"name": "BGP Ranking API", "description": "API to query BGP Ranking."}], "definitions": {"ASNQueryFields": {"required": ["asn"], "properties": {"asn": {"type": "string", "description": "The Autonomus System Number to search"}}, "type": "object"}, "ASNDescriptionsFields": {"required": ["asn"], "properties": {"asn": {"type": "string", "description": "The Autonomus System Number to search"}, "all_descriptions": {"type": "boolean", "description": "If true, returns all the descriptions instead of only the last one", "default": false}}, "type": "object"}, "CountryHistoryFields": {"required": ["country"], "properties": {"country": {"type": "string", "description": "The Country Code"}}, "type": "object"}, "ASNsGlobalRankingFields": {"properties": {"date": {"type": "string", "description": "The date"}}, "type": "object"}}, "responses": {"ParseError": {"description": "When a mask can't be parsed"}, "MaskError": {"description": "When any error occurs on mask"}}}
