API to store and retrieve problem location
All routes return Json
- GET /: Root route shows if Web API is running
- GET api/v1/location/: returns all locations IDs
- GET api/v1/location/[ID]: returns details about a single location with given ID
- POST api/v1/location/: creates a new location
Install this API by cloning the relevant branch and installing required gems from Gemfile.lock:
bundle install
Run the test script:
ruby spec/location_api_spec.rb
Run this API using:
rackup