Changes between Version 18 and Version 19 of api_v1
- Timestamp:
- 2012-10-03T18:29:52Z (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
api_v1
v18 v19 108 108 || ||parameter||COURSE_ID|| 109 109 || ||input||none|| 110 || ||status (success)||HTTP/1. 0200 OK||110 || ||status (success)||HTTP/1.1 200 OK|| 111 111 || ||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"}]|| 112 || ||status (failure)||HTTP/1. 0404 Not Found||112 || ||status (failure)||HTTP/1.1 404 Not Found|| 113 113 || ||output (failure)||none|| 114 114 ||GET||/v1/courses/{course_id}/groups/id||get a group in course by group id, course_id will be ignored|| 115 115 || ||parameter||COURSE_ID|| 116 116 || ||parameter||GROUP_ID|| 117 || ||status (success)||HTTP/1. 0200 OK||117 || ||status (success)||HTTP/1.1 200 OK|| 118 118 || ||output (success)||{"id":"GROUP_ID","group_num":"GROUP_NUM","group_name":"GROUP_NAME","course_id":"COURSE_ID"}|| 119 || ||status (failure)||HTTP/1. 0404 Not Found||119 || ||status (failure)||HTTP/1.1 404 Not Found|| 120 120 || ||output (failure)||none|| 121 121 ||POST||/v1/courses/{course_id}/groups||create a group in course {course_id}|| 122 122 || ||parameter||COURSE_ID|| 123 123 || ||input||{"group_num":"GROUP_NUM","group_name":"GROUP_NAME","course_id":"COURSE_ID"}|| 124 || ||status (success)||HTTP/1. 0201 Created||124 || ||status (success)||HTTP/1.1 201 Created|| 125 125 || ||output (success)||{"id":"GROUP_ID","group_num":"GROUP_NUM","group_name":"GROUP_NAME","course_id":"COURSE_ID"}|| 126 || ||status (failure)||HTTP/1. 0500 Internal Server Error||126 || ||status (failure)||HTTP/1.1 500 Internal Server Error|| 127 127 || ||output (failure)||none|| 128 128 ||DELETE||/v1/courses/{course_id}/groups/{id}||remove a group in course by group id, course_id will be ignored|| 129 129 || ||parameter||COURSE_ID|| 130 130 || ||parameter||GROUP_ID|| 131 || ||status (success)||HTTP/1. 0204 No Content||131 || ||status (success)||HTTP/1.1 204 No Content|| 132 132 || ||output (success)||none|| 133 || ||status (failure)||HTTP/1. 0500 Internal Server Error||133 || ||status (failure)||HTTP/1.1 500 Internal Server Error|| 134 134 || ||output (failure)||none|| 135 135 ||PUT||/v1/courses/{course_id}/groups/{id}||update a group in course by group id, course_id will be ignored|| … … 137 137 || ||parameter||GROUP_ID|| 138 138 || ||input||{"id":"GROUP_ID","course_id":"COURSE_ID","group_num":"GROUP_NUM","group_name":"GROUP_NAME"}|| 139 || ||status (success)||HTTP/1. 0200 OK||139 || ||status (success)||HTTP/1.1 200 OK|| 140 140 || ||output (success)||{"id":"GROUP_ID","group_num":"GROUP_NUM","group_name":"GROUP_NAME","course_id":"COURSE_ID"}|| 141 || ||status (failure)||HTTP/1. 0200 OK||141 || ||status (failure)||HTTP/1.1 200 OK|| 142 142 || ||output (failure)||none|| 143 143 … … 157 157 158 158 ||GET||/v1/events/{event_id}/grades||get a list of grades in event {event_id}|| 159 || ||parameter||EVENT_ID|| 160 || ||status (success)||HTTP/1.1 200 OK|| 161 || ||output (success)||[{"evaluatee":"EVALUATEE_ID","score":"SCORE"},{"evaluatee":"EVALUATEE_ID","score":"SCORE"}]|| 162 || ||status (failure)||HTTP/1.1 404 Not Found|| 163 || ||output (failure)||none|| 159 164 ||GET||/v1/events/{event_id}/grades/{user_id}||get a grades for a user with {user_id} in the event {event_id}|| 165 || ||parameter||EVENT_ID|| 166 || ||parameter||USER_ID|| 167 || ||status (success)||HTTP/1.1 200 OK|| 168 || ||output (success)||{"evaluatee":"USER_ID","score":"SCORE"} 169 || ||status (failure)||HTTP/1.1 404 Not Found|| 170 || ||output (failure)||none|| 160 171 161 172 * Grades are read-only