Changes between Version 16 and Version 17 of api_v1


Ignore:
Timestamp:
2012-10-02T20:33:44Z (12 years ago)
Author:
michael
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • api_v1

    v16 v17  
    1616|| ||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"}]||
    1717|| ||status (failure)||HTTP/1.1 404 Not Found||
    18 || ||output (failure)||null||
     18|| ||output (failure)||none||
    1919||GET||/v1/users/{id}||get a user with id||
    2020|| ||parameter||USER_ID||
     
    2323|| ||output (success)||[{"id":"USER0_ID","role_id":"ROLE_ID","username":"USERNAME0","last_name":"LAST_NAME","first_name":"FIRST_NAME"}]||
    2424|| ||status (failure)||HTTP/1.1 404 Not Found||
    25 || ||output (failure)||null||
     25|| ||output (failure)||none||
    2626||POST||/v1/users||create a user||
    2727|| ||parameter||none||
     
    3030|| ||output (success)||[{"id":"USER_ID","role_id":"ROLE_ID","username":"USERNAME","last_name":"LAST_NAME","first_name":"FIRST_NAME"}]||
    3131|| ||status (failure)||HTTP/1.1 500 Internal Server Error||
    32 || ||output (failure)||null||
     32|| ||output (failure)||none||
    3333||POST||/v1/users||create users||
    3434|| ||parameter||none||
     
    3737|| ||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"}]||
    3838|| ||status (failure)||HTTP/1.1 500 Internal Server Error||
    39 || ||output (failure)||null||
     39|| ||output (failure)||none||
    4040||DELETE||/v1/users/{id}||remove a user with id||
    4141|| ||parameter||USER_ID||
    4242|| ||input||none||
    4343|| ||status (success)||HTTP/1.1 204 No Content||
    44 || ||output (success)||null||
     44|| ||output (success)||none||
    4545|| ||status (failure)||HTTP/1.1 500 Internal Server Error||
    46 || ||output (failure)||null||
     46|| ||output (failure)||none||
    4747||PUT||/v1/users/{id}||update a user with id||
    4848|| ||parameter||COURSE_ID||
     
    5151|| ||output (success)||[{"id":"USER_ID","username":"USERNAME","last_name":"LAST_NAME","first_name":"FIRST_NAME","role_id":"ROLE_ID"}]||
    5252|| ||status (failure)||HTTP/1.1 500 Internal Server Error||
    53 || ||output (failure)||null||
     53|| ||output (failure)||none||
    5454
    5555=== Courses ===
     
    106106
    107107||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||
    108114||GET||/v1/courses/{course_id}/groups/id||get a group in course by group id, course_id will be ignored||
    109115||POST||/v1/courses{course_id}/groups||create a group in course {course_id}||