Changes between Version 5 and Version 6 of api_v1


Ignore:
Timestamp:
2012-08-28T23:54:59Z (12 years ago)
Author:
michael
Comment:

added details to the HTTP Requsts for Courses

Legend:

Unmodified
Added
Removed
Modified
  • api_v1

    v5 v6  
    1919
    2020||GET||/v1/courses||get a list of courses for current logged in user||
     21|| ||parameter||none||
     22|| ||input||none||
     23|| ||response||success (200) or could not find (404)||
     24|| ||output||course list (json), or error message||
    2125||GET||/v1/courses/{id}||get a course with id||
     26|| ||parameter||course id||
     27|| ||input||none||
     28|| ||response||success (200) or could not find (404)||
     29|| ||output||course (json), or error message||
    2230||POST||/v1/courses||create a course||
     31|| ||parameter||none||
     32|| ||input||{"Course":{"course":"COURSE_CODE","title":"COURSE_TITLE"},"Department":{"Department":[DEPARTMENT_ID]}}||
     33|| ||response||created (201) or error (500)||
     34|| ||output||id of created course, or error message||
    2335||DELETE||/v1/courses/{id}||remove a course with id||
     36|| ||parameter||course id||
     37|| ||input||none||
     38|| ||response||success (204) or error (500)||
     39|| ||output||id of deleted course, or error message||
    2440||PUT||/v1/courses/{id}||update a course with id||
     41|| ||parameter||none||
     42|| ||input||{"Course":{"id":"COURSE_ID","course":"COURSE_CODE","title":"COURSE_TITLE"}}||
     43|| ||response||success (200) or error (500)||
     44|| ||output||id of updated course, or error message||
    2545
    2646=== Groups ===