Skip to content
avinashraja98 edited this page Apr 3, 2018 · 4 revisions

Welcome to the munapi wiki!

Routes available now:

1. Class Schedule

Used to fetch the current class schedule of the student from my.mun.ca

  • URL

    /schedule

  • Method

    GET

  • Authentication

    Required:

      Basic Auth Header -> MUN Username and Password
    
  • Success Response

    Code: 200

    Content: { schedule : <student's current schedule> } -> TODO: Format response

  • Error Response

    • Code: 401 UNAUTHORIZED

      Content: { error: "No Login Details Sent!!!" }

    • Code: 422 UNPROCESSABLE ENTRY

      Content: { error : "Invalid Login Data"} -> TODO

  • Sample Call

     curl -u mymunusername:mymunsecretpassword http://localhost:3000/schedule