This is the ChitChat API.
/
: Root route shows if Web API is runningapi/v1/postits/[postit_id]
: Get a postitapi/v1/postits/[postit_id]
: Create a new postitapi/v1/postits/
: Get a list of postitsapi/v1/events/[event_id]
: Get an eventapi/v1/events/
: Get a list of eventsapi/v1/events/
: Create a new eventapi/v1/events/[event_id]/accounts
: All the accounts that is in an event (within radius)api/v1/events/[event_id]/applicant
: Apply for an eventapi/v1/events/[event_id]/applicant
: Cancel the application for the eventapi/v1/events/[event_id]/participant
: Make an applicant an participantapi/v1/events/[event_id]/participant
: Remove participantapi/v1/events/[event_id]/co_organizer
: Add co-organizerapi/v1/events/[event_id]/co_organizer
: Remove co-organizerapi/v1/events/[event_id]/postits/[postit_id]
: Get a postitapi/v1/events/[event_id]/postits
: Create a new postitapi/v1/events/[event_id]/postits
: Get a list of postitsapi/v1/accounts/[username]
: Get account detailsapi/v1/accounts
: Create a new accountapi/v1/accounts/[account_id]/location
: updates account locationInstall required gems through bundle
.
bundle install
Create a secrets.yml
file in the config folder, see example at config/secrets.example.yml
Run database migrations to setup test database
export RACK_ENV=test
rake db:migrate
rake spec
Run migration files to setup development database
RACK_ENV=development rake db:migrate
Run this API server using puma
at project root.
puma
Server would listen on http://0.0.0.0:9292.