Issue Details (XML | Word | Printable)

Key: KENAI-735
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: lea_wang
Reporter: Nick Sieger
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Kenai

Project API Improvements

Created: 29/May/09 12:48 PM   Updated: 01/Sep/09 11:46 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 20090828

Time Tracking:
Original Estimate: 2 days
Original Estimate - 2 days
Remaining Estimate: 2 days
Remaining Estimate - 2 days
Time Spent: Not Specified
Remaining Estimate - 2 days

Tags: aut-test-complete


 Description  « Hide
From the NetBeans team – request for new APIs to accomplish the following:

1. Get list of members of project
2. API for joining (or bookmarking) projects



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Nick Sieger added a comment - 01/Jul/09 02:24 PM
Honza requested this be done earlier if possible – moving to next sprint.

lea_wang added a comment - 01/Aug/09 04:42 AM

lea_wang added a comment - 01/Sep/09 12:11 AM - edited
For now, added a member_href link in the api/projects and also create a list of members w/ roles for a particular project via api/projects/<project_name>/members.

Ex:

URL: http://localhost:3000/api/projects/glassfish/members

HTML output:

{
"href": "http:\/\/localhost:3000\/api\/projects\/glassfish\/members",
"prev": null,
"next": null,
"total": 2,
"members": [
{ "href": "http:\/\/localhost:3000\/api\/projects\/glassfish\/members\/7", "user_name": "craigmcc", "first_name": "lea", "last_name": "McClanahan", "role": "admin", "created_at": "2009-04-16T00:42:33Z", "updated_at": "2009-08-10T04:12:40Z" },

{ "href": "http:\/\/localhost:3000\/api\/projects\/glassfish\/members\/25", "user_name": "mehdi", "first_name": "Mehdi", "last_name": "Ghazizadeh", "role": "admin", "created_at": "2009-04-16T00:42:38Z", "updated_at": "2009-04-16T00:42:39Z" }

],
"content_type": "application\/vnd.com.kenai.members+json"
}

Will update the API doc accordingly...

Move the 2nd part of bookmarking work to be part of KENAI-455


marfous added a comment - 01/Sep/09 08:02 AM
Yes, it's implemented. Good work. Verified in revision 20090828.c91d8304.
I think that there should be link for next page, but I will create for it another (small) issue. The feature was implemented, so that's the reason why i'm closing this now.

marfous added a comment - 01/Sep/09 08:15 AM
Sorry, I was wrong. The link for next, href and prev are right.