Get available courses
Get list of available courses for a course provider. Note that The course provider does not have an interface for creating courses. Creation of new courses, including setting the course provider's ID on the course, is done by Mintra Trainingportal.
Resource URL
URL: v1/courses/get
Request Method
POST | GET |
Parameters
string username | Username |
string password | Password |
Return value
Returns list of course objects. Each object contains the following information:
externalCourseId | The course provider's ID for the course (in their booking system) | ||
names | List of names for the course. Each name consist of:
| ||
courseCode | Trainingportal's course code for the course |
Example request
URL | https://www.trainingportal.no/mintra/api/courseprovider/rest/v1/courses/get |
POST DATA | username=username&password=secret |
[ { "externalCourseId" : "4" , "names" :[ { "locale" : "en" , "name" : "GSK - Basic Safety and Emergency Course" }, { "locale" : "no" , "name" : "Grunnleggende sikkerhets- og beredskapskurs" } ], "courseCode" : "OLF-GSK" }, { "externalCourseId" : "6" , "names" :[ { "locale" : "en" , "name" : "GSK- Basic Safety and Emergency Course - Refresher Course" }, { "locale" : "no" , "name" : "Grunnleggende sikkerhets- og beredskap - repetisjonskurs" }], "courseCode" : "OLF-GSK-REP" } ] |