Changes between Version 26 and Version 27 of api_v1


Ignore:
Timestamp:
2012-10-13T20:13:52Z (12 years ago)
Author:
Pan Luo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • api_v1

    v26 v27  
    9696||POST||/v1/courses{course_id}/users||associate users to the course by {course_id}||
    9797|| ||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"}]||
     98|| ||input||[{"username":"username1"}, {"username":"username2"},{"username":"username3"}], other fields in json will be ignored||
     99|| ||status (success)||HTTP/1.1 201 Created||
     100|| ||output (success)||[{"username":"username1"}, {"username":"username2"},{"username":"username3"}]||
    101101|| ||status (failure)||HTTP/1.1 500 Internal Server Error||
    102102|| ||output (failure)|| none ||