{ "apiVersion" : "4.0", "swaggerVersion" : "1.2", "basePath" : "http://localhost:8080", "resourcePath" : "/Countries", "apis" : [ { "path" : "/countries/", "description" : "", "operations" : [ { "method" : "GET", "nickname" : "getCountries", "responseClass" : "countries", "parameters" : [ ], "summary" : "Gets all countries geo data.", "notes" : null, "responseMessages" : [ { "code" : "200", "message" : "OK" }, { "code" : "400", "message" : "Bad Request" }, { "code" : "404", "message" : "Not Found" }, { "code" : "500", "message" : "Internal Server Error" } ], "consumes" : [ "application/json" ], "produces" : [ "application/json" ] } ] }, { "path" : "/countries/{country_code}/", "description" : "", "operations" : [ { "method" : "GET", "nickname" : "getCountryByCode", "responseClass" : "country", "parameters" : [ { "paramType" : "path", "name" : "country_code", "type" : "string", "required" : "true", "allowMultiple" : "false" } ], "summary" : "Gets country geo data by country code.", "notes" : null, "responseMessages" : [ { "code" : "200", "message" : "OK" }, { "code" : "400", "message" : "Bad Request" }, { "code" : "404", "message" : "Not Found" }, { "code" : "500", "message" : "Internal Server Error" } ], "consumes" : [ "application/json" ], "produces" : [ "application/json" ] } ] }, { "path" : "/countries/{country_code}/states/", "description" : "", "operations" : [ { "method" : "GET", "nickname" : "getStates", "responseClass" : "states", "parameters" : [ { "paramType" : "path", "name" : "country_code", "type" : "string", "required" : "true", "allowMultiple" : "false" } ], "summary" : "Gets all states/provinces of given country", "notes" : null, "responseMessages" : [ { "code" : "200", "message" : "OK" }, { "code" : "400", "message" : "Bad Request" }, { "code" : "404", "message" : "Not Found" }, { "code" : "500", "message" : "Internal Server Error" } ], "consumes" : [ "application/json" ], "produces" : [ "application/json" ] } ] }, { "path" : "/countries/{country_code}/states/{state_code}/", "description" : "", "operations" : [ { "method" : "GET", "nickname" : "getStateByCode", "responseClass" : "state", "parameters" : [ { "paramType" : "path", "name" : "country_code", "type" : "string", "required" : "true", "allowMultiple" : "false" }, { "paramType" : "path", "name" : "state_code", "type" : "string", "required" : "true", "allowMultiple" : "false" } ], "summary" : "Gets state data given country code and state code", "notes" : null, "responseMessages" : [ { "code" : "200", "message" : "OK" }, { "code" : "400", "message" : "Bad Request" }, { "code" : "404", "message" : "Not Found" }, { "code" : "500", "message" : "Internal Server Error" } ], "consumes" : [ "application/json" ], "produces" : [ "application/json" ] } ] }, { "path" : "/countries/{country_code}/states/{state_code}/cities/", "description" : "", "operations" : [ { "method" : "GET", "nickname" : "getCities", "responseClass" : "cities", "parameters" : [ { "paramType" : "path", "name" : "country_code", "type" : "string", "required" : "true", "allowMultiple" : "false" }, { "paramType" : "path", "name" : "state_code", "type" : "string", "required" : "true", "allowMultiple" : "false" } ], "summary" : "Gets all cities of given state/province code.", "notes" : null, "responseMessages" : [ { "code" : "200", "message" : "OK" }, { "code" : "400", "message" : "Bad Request" }, { "code" : "404", "message" : "Not Found" }, { "code" : "500", "message" : "Internal Server Error" } ], "consumes" : [ "application/json" ], "produces" : [ "application/json" ] } ] } ], "models" : { "countries" : { "id" : "countries", "properties" : { "country" : { "type" : "array", "items" : { "$ref" : "country" } } } }, "country" : { "id" : "country", "properties" : { "countryCode" : { "type" : "string" }, "countryName" : { "type" : "string" }, "states" : { "$ref" : "states" } } }, "states" : { "id" : "states", "properties" : { "state" : { "type" : "array", "items" : { "$ref" : "state" } } } }, "state" : { "id" : "state", "properties" : { "stateCode" : { "type" : "string" }, "stateName" : { "type" : "string" }, "cities" : { "$ref" : "cities" } } }, "cities" : { "id" : "cities", "properties" : { "city" : { "type" : "array", "items" : { "$ref" : "city" } } } }, "city" : { "id" : "city", "properties" : { "cityCode" : { "type" : "string" }, "cityName" : { "type" : "string" } } } }, "authorizations" : { } }