Porta Plus 2 Web Services

<back to all web services

Country

The following routes are available for this service:
GET/getallcountries/{License}/
GET/getCountryByISO31661A2/{License}/{ISO31661A2}
GET/getCountryByName/{License}/{Name}
GET/getCountrySubdivisionByName/{License}/{CountrySubdivisionName}
GET/getCountrySubdivisionByISO31661A2/{License}/{ISO3166_1_A2}

To override the Content-type in your clients HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/Country HTTP/1.1 
Host: 7el.co 
Content-Type: text/csv
Content-Length: length

Name,ISO31661Num,ISO31661A3,ISO31661A2,ISO3166_1_A2,CountrySubdivisionName,License,ContentId,FeatureName
String,0,String,String,String,String,String,0,String

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

PortaCountries,PortaCountriesSubdivison,License,ContentId,FeatureName
"[{Name:String,ISO31661A2:String,ISO31661A3:String,ISO31661Num:0,CountryCode:String}]","[{ICountrySubdivsion:0,CountrySubdivisonName:String,ISO31661A2:String,ISO31662:String}]",String,0,String