Kodkollektivet / UniTime-server

This is an old version and not used in production.
1 stars 0 forks source link

OLD REPO!

New repo is here: https://github.com/Kodkollektivet/unitime-api

UniTime server

http://unitime.se (AngularJS app not maintained!)

This is out "main" server in the UniTime project.

This server gets data from TimeEdit and publish the data with a JSON Rest API.

We Rest API is consumed by a native Android app and a Ionic webapp that is developed for iOS.

The server also publish a AngularJS web app.

The AngularJS webapp is at the moment not maintained


If you would like to contrib to this project, we would be more than happy



API Endpoints


HEAD

/api/course/

Returns: Length of all course objects stored in db.


GET

/api/course/

Returns: List with course objects thats stored in db. Objects has attributes: course_code, name_sv, name_en


POST

/api/course/

{'course':'1DV008'}

Returns a single object in a list. Object has attributes: syllabus_en, semester, year, course_id, name_en, name_sv, course_location, course_language, course_points, syllabus_sv, url, course_speed, course_code


GET

/api/course/[1DV008]

Returns a single object in a list. Object has attributes: syllabus_en, semester, year, course_id, name_en, name_sv, course_location, course_language, course_points, syllabus_sv, url, course_speed, course_code


POST

/api/event/

{'course':'1DV008'}

Returns a list of events objects. Object has attributes: info, startdate, name_sv, room, starttime, name_en, course_code, endtime, teacher, desc


GET

/api/event/[1BD105]

Returns a list of events objects. Object has attributes: info, startdate, name_sv, room, starttime, name_en, course_code, endtime, teacher, desc