Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 615 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 615 Bytes

Tripbook API

API to store and share a calendar, to facilitate users organise events.

Routes

All routes return Json

  • GET /: Root route shows if Web API is running
  • GET api/v1/events/: returns all configuration IDs
  • GET api/v1/events/[ID]: returns details about a single event with given ID
  • POST api/v1/events/: creates a new event

Install

Install this API by cloning the relevant branch and installing required gems from Gemfile.lock:

bundle install

Test

Run the test script:

ruby spec/api_spec.rb

Execute

Run this API using:

rackup