Changes between Version 27 and Version 28 of api_v1


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

--

Legend:

Unmodified
Added
Removed
Modified
  • api_v1

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