Darwined Core Locations

Build Status Dependency Status


This is a web service for storing locations. It exposes a REST interface (with all the CRUD actions) using JSON as its message format.

It's built using Sinatra and ActiveRecord and uses RSpec for its tests.

A location has a name, a code

  • name of the location, like Location A.
  • code of the location, like THE, should be unique across different locations

A JSON representation of a building should be:

    "id": 23,
    "name": "Location A",
    "code": "L-A",
    "created_at": "2013-07-11T00:03:11-04:00",
    "updated_at": "2013-07-11T00:03:11-04:00",