Get Country List
Description
Get the list of countries
URL
/api/v1/country/list
Method: GET
Request Header
Key |
Value |
Type |
Description |
---|---|---|---|
Authorization | Bearer <Authorization Token> | String | Authorization credential generated by FortiCWP |
Content-Type | application/json | String |
Sample Request
Request URL |
GET https://www.forticwp.com/api/v1/country/list |
Request Header |
Authorization: Bearer <Authorization_Token> Content-Type: application/json |
Response Variable
Name |
Type |
Description |
---|---|---|
id | String | country code |
country | String | country name |
Sample Response
[
{
"id":"AU",
"country":"Australia"
},
{
"id":"CN",
"country":"China"
},
{
"id":"DE",
"country":"Germany"
},
{
"id":"ES",
"country":"Spain"
},
{
"id":"JP",
"country":"Japan"
},
{
"id":"US",
"country":"United States of America"
},
]