Examples of data retrieved via the REST service

This page shows examples of data (all cms.country objects) obtained from the REST service in various formats.

XML

All cms.country objects retrieved in XML format.

The data was obtained using the following URL: ~/rest/cms.country

<cms_countries>
	<cms_country>
		<CountryID>272</CountryID>
		<CountryDisplayName>Afghanistan</CountryDisplayName>
		<CountryName>Afghanistan</CountryName>
		<CountryGUID>12d61676-7541-4a4e-88f6-f02098b637fe</CountryGUID>
		<CountryLastModified>2013-10-21T14:20:12.293+02:00</CountryLastModified>
		<CountryTwoLetterCode>AF</CountryTwoLetterCode>
		<CountryThreeLetterCode>AFG</CountryThreeLetterCode>
	</cms_country>
	<cms_country>
		<CountryID>273</CountryID>
		<CountryDisplayName>Albania</CountryDisplayName>
		<CountryName>Albania</CountryName>
		<CountryGUID>af056090-4477-4826-ad41-7ce8e8d45d3a</CountryGUID>
		<CountryLastModified>2013-02-07T15:08:05.117+01:00</CountryLastModified>
		<CountryTwoLetterCode>AL</CountryTwoLetterCode>
		<CountryThreeLetterCode>ALB</CountryThreeLetterCode>
	</cms_country>

	...

	<TotalRecords>
		<TotalRecords>246</TotalRecords>
	</TotalRecords>
</cms_countries>
On this page

Related pages

JSON

The code below is an extract from data of the cms.country objects retrieved in JSON format.

The data was obtained using the following URL: ~/rest/cms.country?format=json

{
"cms_countries": 
[
	{
	"cms_country": 
	[
		{
		"CountryGUID":"12d61676-7541-4a4e88f6-f02098b637fe",
		"CountryID":272,
		"CountryName":"Afghanistan",
		"CountryDisplayName":"Afghanistan",
		"CountryLastModified":"2013-10-21T14:20:12.293+02:00",
		"CountryTwoLetterCode":"AF",
		"CountryThreeLetterCode":"AFG"
		},
		{
		"CountryGUID":"af056090-4477-4826-ad41-7ce8e8d45d3a",
		"CountryID":273,
		"CountryName":"Albania",
		"CountryDisplayName":"Albania",
		"CountryLastModified":"2013-02-07T15:08:05.117+01:00",
		"CountryTwoLetterCode":"AL",
		"CountryThreeLetterCode":"ALB"
		},

		...

	]
	},
	{
	"TotalRecords": 
	[
		{
		"TotalRecords":"246"
		}
	]
	}
]
}

RSS 2.0

All cms.country objects retrieved in RSS 2.0 format.

The data was obtained using the following URL: ~/rest/cms.country?format=rss20

Data retrieved via the Kentico REST service in RSS 2.0 format

Atom 1.0

All cms.country objects retrieved in Atom 1.0 format.

The data was obtained using the following URL: ~/rest/cms.country?format=atom10

Data retrieved via the Kentico REST service in Atom 1.0 format


Was this page helpful?