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 a single town in the urban region of a state #8

Open
theterminalguy opened this issue Nov 5, 2016 · 0 comments

Comments

@theterminalguy
Copy link
Collaborator

theterminalguy commented Nov 5, 2016

URL: api/v2/states/:state_id/urban/towns/:town_id or api/v2/states/:state_name/urban/towns/:town_id or api/v2/states/:state_code/urban/towns/:town_id
Parameters: state_id/urban/towns/:town_id or state_name/urban/towns/:town_id or state_code/urban/towns/:town_id
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 a single town in the urban region of a state Add endpoint that returns a single town 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

2 participants