Changes between Version 5 and Version 6 of api_v1
- Timestamp:
- 2012-08-28T23:54:59Z (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
api_v1
v5 v6 19 19 20 20 ||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|| 21 25 ||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|| 22 30 ||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|| 23 35 ||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|| 24 40 ||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|| 25 45 26 46 === Groups ===