URL
GET
/api/v1/countries/list
Parameters
Name |
Type |
Method |
Required |
Default |
Description |
page |
int |
GET |
no |
1 |
Stránkovanie. |
Response
HTTP 200 - OK
Host: example.org
Content-Type: application/vnd.shoptec.v1.0+json; charset=utf-8
{
"page": 1,
"pages": 1,
"itemsCount": 2,
"itemsPerPage": 10,
"countries": [
{
"id": 1,
"code": "sk",
"name": "Slovensko"
},
{
"id": 2,
"code": "cz",
"name": "\u010cesko"
}
]
}
URL
GET
/api/v1/countries/count
Response
HTTP 200 - OK
Host: example.org
Content-Type: application/vnd.shoptec.v1.0+json; charset=utf-8
{
"count": 195
}