Commit 14f8c1d0 authored by Zac Wood's avatar Zac Wood

get rid of API descriptor

parent 545fa3fd
Pipeline #5203 passed with stage
in 7 minutes and 57 seconds
class API::SchedulesController < ApplicationController
resource_description do
short 'Endpoints for generating iCal files'
end
# Render an iCal file containing the schedules of all the
# course sections with the given CRNs.
api :GET, '/schedules', 'Generate an iCal file with events for the given CRNs'
param :crns, String, desc: 'Comma separated list of crns to include as events in the calendar', required: true
def index
crns = params["crns"].split ','
@schedule = Schedule.new(crns, @semester.season)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment