Changes between Version 16 and Version 17 of api_v1
- Timestamp:
- 2012-10-02T20:33:44Z (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
api_v1
v16 v17 16 16 || ||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"}]|| 17 17 || ||status (failure)||HTTP/1.1 404 Not Found|| 18 || ||output (failure)||n ull||18 || ||output (failure)||none|| 19 19 ||GET||/v1/users/{id}||get a user with id|| 20 20 || ||parameter||USER_ID|| … … 23 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 || ||output (failure)||n ull||25 || ||output (failure)||none|| 26 26 ||POST||/v1/users||create a user|| 27 27 || ||parameter||none|| … … 30 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 || ||output (failure)||n ull||32 || ||output (failure)||none|| 33 33 ||POST||/v1/users||create users|| 34 34 || ||parameter||none|| … … 37 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 || ||output (failure)||n ull||39 || ||output (failure)||none|| 40 40 ||DELETE||/v1/users/{id}||remove a user with id|| 41 41 || ||parameter||USER_ID|| 42 42 || ||input||none|| 43 43 || ||status (success)||HTTP/1.1 204 No Content|| 44 || ||output (success)||n ull||44 || ||output (success)||none|| 45 45 || ||status (failure)||HTTP/1.1 500 Internal Server Error|| 46 || ||output (failure)||n ull||46 || ||output (failure)||none|| 47 47 ||PUT||/v1/users/{id}||update a user with id|| 48 48 || ||parameter||COURSE_ID|| … … 51 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 || ||output (failure)||n ull||53 || ||output (failure)||none|| 54 54 55 55 === Courses === … … 106 106 107 107 ||GET||/v1/courses/{course_id}/groups||get a list of groups in course {course_id}|| 108 || ||parameter||COURSE_ID|| 109 || ||input||none|| 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"}] 112 || ||status (failure)||HTTP/1.0 404 Not Found|| 113 || ||output (failure)||none|| 108 114 ||GET||/v1/courses/{course_id}/groups/id||get a group in course by group id, course_id will be ignored|| 109 115 ||POST||/v1/courses{course_id}/groups||create a group in course {course_id}||