Changes between Version 28 and Version 29 of api_v1


Ignore:
Timestamp:
2012-10-13T22:01:24Z (12 years ago)
Author:
Pan Luo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • api_v1

    v28 v29  
    9696||POST||/v1/courses{course_id}/users||associate users to the course by {course_id}||
    9797|| ||parameter||COURSE_ID||
    98 || ||input||[{"username":"username1", "role_id":1}, {"username":"username2", "role_id":1},{"username":"username3", "role_id":2}], other fields in json will be ignored||
     98|| ||input||[{"username":"username1", "role_id":1}, {"username":"username2", "role_id":1},{"username":"username3", "role_id":2}], other fields in request will be ignored||
    9999|| ||status (success)||HTTP/1.1 201 Created||
    100100|| ||output (success)||[{"username":"username1", "role_id":1}, {"username":"username2", "role_id":1},{"username":"username3", "role_id":2}]||
     
    147147|| ||input||none||
    148148|| ||status (success)||HTTP/1.1 200 OK||
    149 || ||output (success)||[{"id":"GROUP_IDO","group_num":"GROUP_NUM0","group_name":"GROUP_NAME0","course_id":"COURSE_ID"},{"id":"GROUP_ID1","group_num":"GROUP_NUM1","group_name":"GROUP_NAME1","course_id":"COURSE_ID"}]||
    150 || ||status (failure)||HTTP/1.1 404 Not Found||
     149|| ||output (success)||[{"id":"GROUP_IDO","group_num":"GROUP_NUM0","group_name":"GROUP_NAME0","course_id":"COURSE_ID"},{"id":"GROUP_ID1","group_num":"GROUP_NUM1","group_name":"GROUP_NAME1","course_id":"COURSE_ID"}], or [] if there is no group||
     150|| ||status (failure)||HTTP/1.1 500 Internal Error||
    151151|| ||output (failure)||none||
    152152||GET||/v1/courses/{course_id}/groups/id||get a group in course by group id, course_id will be ignored||