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 simple API for parkings #132

Open
staszek opened this issue Feb 26, 2013 · 0 comments
Open

Add simple API for parkings #132

staszek opened this issue Feb 26, 2013 · 0 comments

Comments

@staszek
Copy link
Collaborator

staszek commented Feb 26, 2013

Add simple API for parkings, that allows to get a list of parkings and individual parking details in JSON format.

Things to do:

  • The show and index method in ParkingsController should respond to html and json formats.
  • The JSON representation of Parking model should consist of id, kind, hour price, day price, number of places, and the address.
  • The JSON representation of Address model should consist of id, city, street, ZIP code.
  • Add functional test to verify the returned JSON data.
  • [Optionally] Exercise the API with a command line tool like curl or wget.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant