Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add endpoint that returns one state #5

Open
osioke opened this issue Nov 4, 2016 · 0 comments
Open

Add endpoint that returns one state #5

osioke opened this issue Nov 4, 2016 · 0 comments

Comments

@osioke
Copy link
Contributor

osioke commented Nov 4, 2016

URL: api/v2/states/:state_id or api/v2/states/:state_name or api/v2/states/:state_code
Parameters: state_id or state_name or state_code
reponse(200):
E.g: curl -X GET /api/v2/states/ab

{
 id: 1, 
 code: "AB", 
 name: "Abia", 
 capital: "Umuahia",
 lat: 5.4308921,
 lng: 7.5247243,
 zone_id: 4
}

For more details, check https://github.com/devcenter-square/states-and-cities/wiki/List-of-Endpoints

@osioke osioke changed the title Add endpoint to return one state Add endpoint that returns one state Nov 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant