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 all towns in the urban region of a state #7

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

Comments

@osioke
Copy link
Contributor

osioke commented Nov 4, 2016

URL: api/v2/states/:state_id/urban/towns or api/v2/states/:state_name/urban/towns or api/v2/states/:state_code/urban/towns
Parameters: state_id/urban/towns or state_name/urban/towns or state_code/urban/towns.
Response(200)

[
  {
    id: 1, 
    state: "Ab", 
    towns: 
    [
       {id: 1, name: "Umahia"}, 
       {id: 2, name: "Aba"}
    ]
  }, 
  {...}
]

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 all towns in the urban region of a state Add endpoint that returns all towns in the urban region of a 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