Buildings service for DarwinEd
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
db
models
spec
tmp
.gitignore
.rspec
.travis.yml
.yardopts
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
environments.rb
service.rb

README.md

Darwined Core Buildings

Build Status Dependency Status

Description

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",

}

About