Changes between Version 28 and Version 29 of api_v1
- Timestamp:
- 2012-10-13T22:01:24Z (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
api_v1
v28 v29 96 96 ||POST||/v1/courses{course_id}/users||associate users to the course by {course_id}|| 97 97 || ||parameter||COURSE_ID|| 98 || ||input||[{"username":"username1", "role_id":1}, {"username":"username2", "role_id":1},{"username":"username3", "role_id":2}], other fields in jsonwill 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|| 99 99 || ||status (success)||HTTP/1.1 201 Created|| 100 100 || ||output (success)||[{"username":"username1", "role_id":1}, {"username":"username2", "role_id":1},{"username":"username3", "role_id":2}]|| … … 147 147 || ||input||none|| 148 148 || ||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|| 151 151 || ||output (failure)||none|| 152 152 ||GET||/v1/courses/{course_id}/groups/id||get a group in course by group id, course_id will be ignored||