Changes between Version 25 and Version 26 of api_v1


Ignore:
Timestamp:
2012-10-11T22:52:27Z (12 years ago)
Author:
Pan Luo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • api_v1

    v25 v26  
    9595||GET||/v1/courses/{course_id}/users||get a list of users associated within the course {course_id}||
    9696||POST||/v1/courses{course_id}/users||associate users to the course by {course_id}||
     97|| ||parameter||COURSE_ID||
     98|| ||input||[{"id":0,"role_id":1,"username":"username1","first_name":"Test","last_name":"User1","email":"username1@ubc.ca","student_id":"12345671"}, {"id":0,"role_id":1,"username":"username2","first_name":"Test","last_name":"User2","email":"username2@ubc.ca","student_id":"12345672"},{"id":0,"role_id":1,"username":"username3","first_name":"Test","last_name":"User3","email":"username3@ubc.ca","student_id":"12345673"}]||
     99|| ||status (success)||HTTP/1.1 201 Created||
     100|| ||output (success)||{"id":1,"role_id":1,"username":"username1","first_name":"Test","last_name":"User1","email":"username1@ubc.ca","student_id":"12345671"}, {"id":2,"role_id":1,"username":"username2","first_name":"Test","last_name":"User2","email":"username2@ubc.ca","student_id":"12345672"},{"id":3,"role_id":1,"username":"username3","first_name":"Test","last_name":"User3","email":"username3@ubc.ca","student_id":"12345673"}]||
     101|| ||status (failure)||HTTP/1.1 500 Internal Server Error||
     102|| ||output (failure)|| none ||
    97103||DELETE||/v1/courses/{course_id}/users||remove a user from the course||
    98104|| ||parameter||COURSE_ID||