API to manage courses, events, locations, and attendance tracking.
All routes return JSON.
- GET
/: Root route shows if Web API is running - GET
api/v1/courses: Get list of all courses - POST
api/v1/courses: Create a new course - GET
api/v1/courses/[course_id]: Get a single course - GET
api/v1/courses/[course_id]/events: Get list of events for a course - POST
api/v1/courses/[course_id]/events: Create a new event for a course - GET
api/v1/courses/[course_id]/events/[event_id]: Get a single event - GET
api/v1/courses/[course_id]/locations: Get list of locations for a course - POST
api/v1/courses/[course_id]/locations: Create a new location for a course - GET
api/v1/courses/[course_id]/locations/[location_id]: Get a single location
Install this API by cloning the relevant branch and use bundler to install
specified gems from Gemfile.lock:
bundle installCopy config/secrets-example.yml to config/secrets.yml and adjust as needed.
Setup development database once:
rake db:migrateRun this API using:
pumaSetup test database once:
RACK_ENV=test rake db:migrateRun the test specification:
rake specBefore submitting pull requests, please check if specs, style, and dependency audits pass:
rake release_check