Skip to content

Commit 2da52b4

Browse files
committed
fix: add API playground config and authMethod for interactive Try It on all endpoints
1 parent 27401b1 commit 2da52b4

12 files changed

Lines changed: 24 additions & 1 deletion

.claude/settings.local.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"permissions": {
33
"allow": [
4-
"WebFetch(domain:countrystatecity.org)"
4+
"WebFetch(domain:countrystatecity.org)",
5+
"Bash(git push:*)"
56
]
67
}
78
}

api/endpoints/get-all-countries.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Get All Countries"
33
api: "GET https://api.countrystatecity.in/v1/countries"
4+
authMethod: "key"
45
description: "Retrieve a complete list of all countries with basic information"
56
---
67

api/endpoints/get-all-regions.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Get All Regions"
33
api: "GET https://api.countrystatecity.in/v1/regions"
4+
authMethod: "key"
45
description: "Retrieve a list of geographic regions"
56
---
67

api/endpoints/get-all-states.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Get All States"
33
api: "GET https://api.countrystatecity.in/v1/states"
4+
authMethod: "key"
45
description: "Retrieve a complete list of all states, provinces, and regions worldwide"
56
---
67

api/endpoints/get-cities-by-country.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Get Cities by Country"
33
api: "GET https://api.countrystatecity.in/v1/countries/{iso2}/cities"
4+
authMethod: "key"
45
description: "Retrieve all cities within a specific country"
56
---
67

api/endpoints/get-cities-by-state.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Get Cities by State"
33
api: "GET https://api.countrystatecity.in/v1/countries/{country_iso2}/states/{state_iso2}/cities"
4+
authMethod: "key"
45
description: "Retrieve all cities within a specific state/province of a country"
56
---
67

api/endpoints/get-countries-by-subregion.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Get Countries by Subregion"
33
api: "GET https://api.countrystatecity.in/v1/subregions/{id}/countries"
4+
authMethod: "key"
45
description: "Retrieve countries belonging to a specific subregion"
56
---
67

api/endpoints/get-country-details.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Get Country Details"
33
api: "GET https://api.countrystatecity.in/v1/countries/{iso2}"
4+
authMethod: "key"
45
description: "Retrieve detailed information for a specific country using its ISO2 code"
56
---
67

api/endpoints/get-state-details.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Get State Details"
33
api: "GET https://api.countrystatecity.in/v1/countries/{country_iso2}/states/{state_iso2}"
4+
authMethod: "key"
45
description: "Retrieve detailed information for a specific state using country and state ISO2 codes"
56
---
67

api/endpoints/get-states-by-country.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Get States by Country"
33
api: "GET https://api.countrystatecity.in/v1/countries/{iso2}/states"
4+
authMethod: "key"
45
description: "Retrieve all states/provinces for a specific country"
56
---
67

0 commit comments

Comments
 (0)