######################### Townships ######################### GET Townships **************************************** Obtiene los municipios dependiendo de un pais y estado. Resource URL ============ .. http:get:: http://api.next-cloud.mx/v1/catalogs/country/(string:country_id)/state/(int:state_id).(format) :param format: json o xml. :param country_id: Clave del pais :param state_id: Identificador del estado :reqheader Authorization: Token del usuario :>json string estado_id: Clave del estado. :>json int id: Clave del pais. :>json string delegacion: Nombre del estado. :statuscode 200: Ningún error. :statuscode 401: Token no válido o no enviado. :statuscode 404: No existe el pais / No existe el estado / No existen municipios. Example Request =============== .. sourcecode:: http GET v1/catalogs/country/mex/state/30.json HTTP/1.1 Host: api.next-cloud.mx Accept: application/json Authorization: Token ( token del usuario ) Example Response ================ .. sourcecode:: http HTTP/1.1 200 OK Vary: Accept Content-Type: application/json Allow: GET, OPTIONS .. literalinclude:: example_township_01.json :language: json Example XML =========== Example request --------------- .. sourcecode:: http GET v1/catalogs/country/mex/state/30.xml HTTP/1.1 Host: api.next-cloud.mx Accept: application/xml Authorization: Token ( token del usuario ) Example Response ---------------- .. sourcecode:: http HTTP/1.1 200 OK Vary: Accept Content-Type: application/xml; charset=utf-8 Allow: GET, OPTIONS .. literalinclude:: example_township_01.xml :language: xml