Skip to content
This repository has been archived by the owner on Jan 4, 2018. It is now read-only.

API Reference

Henri Knochenhauer edited this page Dec 10, 2013 · 23 revisions

Information

  • get information about all possible actions

curl -XGET http://localhost:8080/app/info

Staff

  • get information for ALL the staff/professors

curl -XGET http://localhost:8080/app/info/staff

  • get detailed information for a special staff-member/professor

curl -XGET http://localhost:8080/app/info/staff/{cuid}

  • get pic information a special the staff-member/professor

curl -XGET http://localhost:8080/app/info/staff/{cuid}/pic

Buildings

  • get information for ALL buildings

curl -XGET http://localhost:8080/app/info/building

  • get information for a special building

curl -XGET http://localhost:8080/app/info/building/{id}

Sports

  • get information for ALL sport courses

curl -XGET http://localhost:8080/app/info/sport

  • get detailed information for a special sport course

curl -XGET http://localhost:8080/app/info/sport/{id}

  • get pic information for a special sport course

curl -XGET http://localhost:8080/app/info/sport/{id}/pic

News

  • get default rss feed collection (with feddIds)

curl -XGET http://localhost:8080/app/news

  • get default rss feed by feedId (optional parameter: offset, limit)

curl -XGET http://localhost:8080/app/news?feed={feedIds}<&offset={offset}&limit={limit}>

Mensa

  • get list of all canteens

curl -XGET http://localhost:8080/app/mensa

  • get menu of today

curl -XGET http://localhost:8080/app/mensa/{location}

  • get menu for the given day (yyyyMMdd)

curl -XGET http://localhost:8080/app/mensa/{location}/{date}

Timetable

  • get the calendar of the current semester

curl -XGET http://localhost:8080/app/timetable/cal

  • get all courses of the current semester (ws/ss)

curl -XGET http://localhost:8080/app/timetable/{semester}

  • get all courses for the requested faculty of the current semester (ws/ss)

curl -XGET http://localhost:8080/app/timetable/{semester}/{fac}

  • get the timetable for the requested SemGroup

curl -XGET http://localhost:8080/app/timetable/{semester}/{fac}/timetable?semgroup={semGroup}

  • get a list of all Subjects for the requested SemGroup

curl -XGET http://localhost:8080/app/timetable/{semester}/{fac}/courses?semgroup={semGroup}

  • get description for the requested Subject

curl -XGET http://localhost:8080/app/timetable/{semester}/{fac}/courses/{id}?semgroup={semGroup}

  • get the timetable for the requested SemGroup and calendar week

curl -XGET http://localhost:8080/app/timetable/{semester}/{fac}/week/{kw}?semgroup={semGroup}

  • get the timetable for the requested SemGroup, calendar week and day (0 = Mo, 6=Su)

curl -XGET http://localhost:8080/app/timetable/{semester}/{fac}/week/{kw}/{day}?semgroup={semGroup}

Authentication

  • get credentials for MailBox and QIS

curl -XPOST http://localhost:8080/app/auth?username={username}&password={password}

  • get username & password from encryptedCredentials (for debugging)

curl -XGET http://localhost:8080/app/auth?credentials={encryptedCredentials}

QIS

  • get current marks and information from QIS

curl -XGET http://localhost:8080/app/qis/get?credentials={credentials}

Mail

  • get the last {offset,default 10} mails

curl -XGET http://localhost:8080/app/mailbox/get?credentials={credentials}&offset={offset}

  • get the attachment of an email

curl -XGET http://localhost:8080/app/mailbox/get/{mailId}?attachmentName={attachmentName}&credentials={credentials}

  • get all new mails

curl -XGET http://localhost:8080/app/mailbox/new?credentials={credentials}

  • send a new mail (cc optional)

curl -XPOST http://localhost:8080/app/mailbox/send?credentials={credentials}&to={to[]}&cc={cc[]}&subject={subject}&message={message}

Clone this wiki locally