Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Operation

Returns a List of StateProv from a Country

Style
table {
width: 100%;
}
body.page-gadget {
padding-top: 20px;
}
.separator{
margin: 5px 0;
}



Div
style background-color: green; color: white; display: inline-block; padding: 5px; border-radius: 3px;

GET



Div
stylebackground-color: #0a2b1d; padding: 10px 1em; display: inline-block; color: white; border-radius: 3px;

https://{environment}.ulysescloud.com/public/api/{version}/country/{countryId}/stateProv



Request

Example request

Code Block
languagepowershell
themeDJango
GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/stateProv



Response

Entity

Insert excerpt
SpaceStateProvSpace
StateProv
nopaneltrue


Example response

Code Block
themeDJango
[
	{
		"id": 1,
		"code": "ES-C",
		"name": "La Coruña",
		"nameI18n": null,
		"country": {
			"id": 199,
			"code": "ESP",
			"name": "SPAIN",
			"nameI18n": "SPAIN"
		}
	},
	{
		"id": 2,
		"code": "ES-VI",
		"name": "Álava",
		"nameI18n": null,
		"country": {
			"id": 199,
			"code": "ESP",
			"name": "SPAIN",
			"nameI18n": "SPAIN"
		}
	},
	{
		"id": 3,
		"code": "ES-AB",
		"name": "Albacete",
		"nameI18n": null,
		"country": {
			"id": 199,
			"code": "ESP",
			"name": "SPAIN",
			"nameI18n": "SPAIN"
		}
	},
	{
		"id": 4,
		"code": "ES-A",
		"name": "Alicante",
		"nameI18n": null,
		"country": {
			"id": 199,
			"code": "ESP",
			"name": "SPAIN",
			"nameI18n": "SPAIN"
		}
	}...
]