Changes between Version 17 and Version 18 of api_v1
- Timestamp:
- 2012-10-02T23:04:35Z (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
api_v1
v17 v18 21 21 || ||input||none|| 22 22 || ||status (success)||HTTP/1.1 200 OK|| 23 || ||output (success)|| [{"id":"USER0_ID","role_id":"ROLE_ID","username":"USERNAME0","last_name":"LAST_NAME","first_name":"FIRST_NAME"}]||23 || ||output (success)||{"id":"USER0_ID","role_id":"ROLE_ID","username":"USERNAME0","last_name":"LAST_NAME","first_name":"FIRST_NAME"}|| 24 24 || ||status (failure)||HTTP/1.1 404 Not Found|| 25 25 || ||output (failure)||none|| 26 26 ||POST||/v1/users||create a user|| 27 27 || ||parameter||none|| 28 || ||input|| [{"role_id":"ROLE_ID","username":"USERNAME","last_name":"LAST_NAME","first_name":"FIRST_NAME"}]||28 || ||input||{"role_id":"ROLE_ID","username":"USERNAME","last_name":"LAST_NAME","first_name":"FIRST_NAME"}|| 29 29 || ||status (success)||HTTP/1.1 201 CREATED|| 30 || ||output (success)|| [{"id":"USER_ID","role_id":"ROLE_ID","username":"USERNAME","last_name":"LAST_NAME","first_name":"FIRST_NAME"}]||30 || ||output (success)||{"id":"USER_ID","role_id":"ROLE_ID","username":"USERNAME","last_name":"LAST_NAME","first_name":"FIRST_NAME"}|| 31 31 || ||status (failure)||HTTP/1.1 500 Internal Server Error|| 32 32 || ||output (failure)||none|| 33 33 ||POST||/v1/users||create users|| 34 34 || ||parameter||none|| 35 || ||input|| [{"role_id":"ROLE_ID","username":"USERNAME0","last_name":"LAST_NAME","first_name":"FIRST_NAME"},{"role_id":"ROLE_ID","username":"USERNAME1","last_name":"LAST_NAME","first_name":"FIRST_NAME"}]||35 || ||input||{"role_id":"ROLE_ID","username":"USERNAME0","last_name":"LAST_NAME","first_name":"FIRST_NAME"},{"role_id":"ROLE_ID","username":"USERNAME1","last_name":"LAST_NAME","first_name":"FIRST_NAME"}|| 36 36 || ||status (success)||HTTP/1.1 201 CREATED|| 37 || ||output (success)|| [{"id":"USER0_ID","role_id":"ROLE_ID","username":"USERNAME0","last_name":"LAST_NAME","first_name":"FIRST_NAME"},{"id":"USER1_ID","role_id":"ROLE_ID","username":"USERNAME1","last_name":"LAST_NAME","first_name":"FIRST_NAME"}]||37 || ||output (success)||{"id":"USER0_ID","role_id":"ROLE_ID","username":"USERNAME0","last_name":"LAST_NAME","first_name":"FIRST_NAME"},{"id":"USER1_ID","role_id":"ROLE_ID","username":"USERNAME1","last_name":"LAST_NAME","first_name":"FIRST_NAME"}|| 38 38 || ||status (failure)||HTTP/1.1 500 Internal Server Error|| 39 39 || ||output (failure)||none|| … … 47 47 ||PUT||/v1/users/{id}||update a user with id|| 48 48 || ||parameter||COURSE_ID|| 49 || ||input|| [{"id":"USER_ID","username":"USERNAME","last_name":"LAST_NAME","first_name":"FIRST_NAME","role_id":"ROLE_ID"}]||49 || ||input||{"id":"USER_ID","username":"USERNAME","last_name":"LAST_NAME","first_name":"FIRST_NAME","role_id":"ROLE_ID"}|| 50 50 || ||status (success)||HTTP/1.1 200 OK|| 51 || ||output (success)|| [{"id":"USER_ID","username":"USERNAME","last_name":"LAST_NAME","first_name":"FIRST_NAME","role_id":"ROLE_ID"}]||51 || ||output (success)||{"id":"USER_ID","username":"USERNAME","last_name":"LAST_NAME","first_name":"FIRST_NAME","role_id":"ROLE_ID"}|| 52 52 || ||status (failure)||HTTP/1.1 500 Internal Server Error|| 53 53 || ||output (failure)||none|| … … 109 109 || ||input||none|| 110 110 || ||status (success)||HTTP/1.0 200 OK|| 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"}] 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 112 || ||status (failure)||HTTP/1.0 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 ||POST||/v1/courses{course_id}/groups||create a group in course {course_id}|| 115 || ||parameter||COURSE_ID|| 116 || ||parameter||GROUP_ID|| 117 || ||status (success)||HTTP/1.0 200 OK|| 118 || ||output (success)||{"id":"GROUP_ID","group_num":"GROUP_NUM","group_name":"GROUP_NAME","course_id":"COURSE_ID"}|| 119 || ||status (failure)||HTTP/1.0 404 Not Found|| 120 || ||output (failure)||none|| 121 ||POST||/v1/courses/{course_id}/groups||create a group in course {course_id}|| 122 || ||parameter||COURSE_ID|| 123 || ||input||{"group_num":"GROUP_NUM","group_name":"GROUP_NAME","course_id":"COURSE_ID"}|| 124 || ||status (success)||HTTP/1.0 201 Created|| 125 || ||output (success)||{"id":"GROUP_ID","group_num":"GROUP_NUM","group_name":"GROUP_NAME","course_id":"COURSE_ID"}|| 126 || ||status (failure)||HTTP/1.0 500 Internal Server Error|| 127 || ||output (failure)||none|| 116 128 ||DELETE||/v1/courses/{course_id}/groups/{id}||remove a group in course by group id, course_id will be ignored|| 129 || ||parameter||COURSE_ID|| 130 || ||parameter||GROUP_ID|| 131 || ||status (success)||HTTP/1.0 204 No Content|| 132 || ||output (success)||none|| 133 || ||status (failure)||HTTP/1.0 500 Internal Server Error|| 134 || ||output (failure)||none|| 117 135 ||PUT||/v1/courses/{course_id}/groups/{id}||update a group in course by group id, course_id will be ignored|| 136 || ||parameter||COURSE_ID|| 137 || ||parameter||GROUP_ID|| 138 || ||input||{"id":"GROUP_ID","course_id":"COURSE_ID","group_num":"GROUP_NUM","group_name":"GROUP_NAME"}|| 139 || ||status (success)||HTTP/1.0 200 OK|| 140 || ||output (success)||{"id":"GROUP_ID","group_num":"GROUP_NUM","group_name":"GROUP_NAME","course_id":"COURSE_ID"}|| 141 || ||status (failure)||HTTP/1.0 200 OK|| 142 || ||output (failure)||none|| 118 143 119 144 === !Groups/Users ===