-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Milestone
Description
Add simple API for parkings, that allows to get a list of parkings and individual parking details in JSON format.
Things to do:
- The
showandindexmethod inParkingsControllershould respond tohtmlandjsonformats. - The JSON representation of
Parkingmodel should consist of id, kind, hour price, day price, number of places, and the address. - The JSON representation of
Addressmodel 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
curlorwget.