Darwined Core Buildings

Build Status Dependency Status


This is a web service for storing buildings. 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 building has a name, a code and a location

  • name of the building, like Thermodynamics Building.
  • code of the building, like THE, should be unique
  • location this building belongs to

A JSON representation of a building should be:

    "id": 15,
    "name": "Physics Building",
    "code": "PHYSICS-EB69",
    "location": "L-A",
    "created_at": "2013-07-11T00:03:11-04:00",
    "updated_at": "2013-07-11T00:03:11-04:00",