Get available course classes
Get list of available courses classes for a given course
Resource URL
URL: v1/courses/get/{externalCourseId}/courseClasses/get
Request Method
POST | GET |
Parameters
string username | Username |
string password | Password |
string externalCourseId required | Course provider's ID for the course |
Return value
Returns list of course class objects. Each object contains the following information:
cancelled | True if the course class has been cancelled | ||
courseExternalId | The course provider's ID for the course (in their booking system) | ||
externalId | The course provider's ID for the course class (in their booking system) | ||
location | Location for the course class | ||
availableSeats | Number of available seats | ||
enrollmentDeadline | Enrollment deadline | ||
cancellationDeadline | Cancellation deadline | ||
startDate | Start date | ||
startTime | Start time | ||
endDate | End date | ||
endTime | End time | ||
address | Address consists of:
| ||
price | Price consists of:
|
Example request
URL | https://www.trainingportal.no/mintra/api/courseprovider/rest/v1/courses/get/4/courseClasses/get |
POST DATA | username=username&password=secret |
[ { "cancelled" : false , "courseExternalId" : "4" , "externalId" : "203" , "location" : "Rjukan" , "availableSeats" :6, "enrollmentDeadline" : "2015-07-02" , "cancellationDeadline" : "2015-07-01" , "startDate" : "2015-07-09" , "startTime" : "00:00:00" , "endDate" : "2015-07-12" , "endTime" : "00:00:00" , "address" : { "addressLine1" : "Breivikveien 25" , "addressLine2" : "" , "city" : "Rjukan" , "zipCode" : "3120" , "country" : "Norway" }, "price" : { "amount" :18690.00, "currency" : "NOK" } } ] |