Changes between Version 37 and Version 38 of api_v1


Ignore:
Timestamp:
2012-11-15T02:13:18Z (12 years ago)
Author:
john
Comment:

add details on how to add users to groups

Legend:

Unmodified
Added
Removed
Modified
  • api_v1

    v37 v38  
    251251=== Get a list of users associated within the group {group_id} ===
    252252GET /v1/groups/{group_id}/users
     253||parameter||GROUP_ID||
     254||input||none||
     255||status (success)||HTTP/1.1 200 OK||
     256||output (success)||[{"id":"5","role_id":"5","username":"111111","last_name":"Student","first_name":"Ed"},{"id":"6","role_id":"5","username":"222222","last_name":"Student","first_name":"Alex"}]||
     257||status (failure)||HTTP/1.1 400 Bad Request||
     258||output (failure)||none||
     259
    253260
    254261=== Associate users to the group by {group_id} ===
    255262POST /v1/groups{group_id}/users
     263||parameter||GROUP_ID||
     264||input||[{"username":"111111"},{"username":"222222"}]||
     265||status (success)||HTTP/1.1 200 OK||
     266||output (success)||[{"id":"5","role_id":"5","username":"111111","last_name":"Student","first_name":"Ed"},{"id":"6","role_id":"5","username":"222222","last_name":"Student","first_name":"Alex"}]||
     267||status (failure)||HTTP/1.1 500 Internal Server Error||
     268||output (failure, return users that were successfully saved)||[{"username":"111111"},{"username":"222222"}]||
    256269
    257270=== Remove a user from the group ===