Last updated January 20, 2010 08:29, by lea_wang
Feedicon  

« Back to API Home

Members Resource

Member List

Enables the client to receive a paginated list of project members. Each member element in the list contains information such as member id, username, role and a link to the individual member resource.

Version 1.0
Authentication required
URI /api/projects/{project-name}/members.json
Request GET /api/projects/{project-name}/members.json
Response Success: 200 OK
Content-Type: application/vnd.com.kenai.members+json

Member Info

Enables the client to receive information for a single member given the member id.

Version 1.0
Authentication required
URI /api/projects/{project-name}/members/{member-id}.json
Request GET /api/projects/{project-name}/members/{member-id}.json
Response Success: 200 OK
Failure: 404 Not Found
Content-Type: application/vnd.com.kenai.member+json

Create Member

Enables the client to add a new member to a project. A project administrator can add any user with any role to the project. Otherwise, the user can only add himself as an observer to the project.

Version 1.0
Authentication required
URI /api/projects/{project-name}/members.json
Request POST /api/projects/{project-name}/members.json
Response Success: 200 OK
Failure: 403 if permission denied Content-Type: application/vnd.com.kenai.member.create+json

Update Member

Enables the client to update the role of a member. Only a project administrator can update a member including himself to any role. Note that a project owner's role cannot be updated.

Version 1.0
Authentication required
URI /api/projects/{project-name}/members/{member-id}.json
Request PUT /api/projects/{project-name}/members/{member-id}.json
Response Success: 200 OK
Failure: 403 if permission denied. 404 if not found.
Content-Type: application/vnd.com.kenai.member.update+json

Delete Member

Enables the client to delete a member from a project. A project administrator can delete any member including himself except for the project owner. Otherwise, the user can only delete himself from the project.

Version 1.0
Authentication required
URI /api/projects/{project-name}/members/{member-id}.json
Request DELETE /api/projects/{project-name}/members/{member-id}.json
Response Success: 200 OK
Failure: 403 if permission denied. 404 if not found

     

  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2014, Oracle Corporation and/or its affiliates
(revision 20160708.bf2ac18)
 
 
Close
loading
Please Confirm
Close