API

Differences between revisions 2 and 3
Revision 2 as of 2010-06-21 15:15:35
Size: 5746
Editor: rrcs-24-227-64-126
Comment: Wiki markup fixes
Revision 3 as of 2010-06-21 15:18:34
Size: 5747
Editor: rrcs-24-227-64-126
Comment: Fixed broken example link in Attendee section
Deletions are marked like this. Additions are marked like this.
Line 78: Line 78:
 * http://loco.ubuntu.com/services/attendees/?attendee=32&teamevent__date_begin__gte=2010-06-21 - List of registrations for a specific user for events starting on or after June 21st, 2010.  * http://loco.ubuntu.com/services/attendees/?attendee=32&team_event__date_begin__gte=2010-06-21 - List of registrations for a specific user for events starting on or after June 21st, 2010.

Starting in version 0.2.11, the Ubuntu LoCo Directory provides a collection of Restful/JSON APIs for accessing the data it provides.

Available Services

All services support GET requests only, there is no write-support available at this time. Service URLs return Collections of objects if no id is given, or an individual Entity if the entity's id is appended to the end of the url. When using a Collection path, a query string may be used to filter the results using fieldname=value.

Teams

URL: http://loco.ubuntu.com/services/teams/

Returns a collections of LoCo Team objects. An individual team can be referenced by appending the team id to the end of the url.

Examples:

Global Events

URL: http://loco.ubuntu.com/services/global/

Returns a collections of Global Event objects. An individual event can be referenced by appending the event id to the end of the url.

Examples:

Team Events

URL: http://loco.ubuntu.com/services/events/

Returns a collections of Team Event objects. An individual event can be referenced by appending the event id to the end of the url.

Examples:

Venues

URL: http://loco.ubuntu.com/services/venues/

Returns a collections of Event Venue objects. An individual venue can be referenced by appending the venue id to the end of the url.

Examples:

Comments

URL: http://loco.ubuntu.com/services/comments/

Returns a collections of user Comment objects. An individual comment can be referenced by appending the comment id to the end of the url.

Examples:

Attendees

URL: http://loco.ubuntu.com/services/attendees/

Returns a collections of registration Attendee objects. An individual attendee can be referenced by appending the attendee id to the end of the url.

Examples:

Users

URL: http://loco.ubuntu.com/services/users/

Returns a collections of User objects, these contain only Launchpad user name and team membership information. An individual user can be referenced by appending the user id to the end of the url.

Examples:

Groups

URL: http://loco.ubuntu.com/services/groups/

Returns a collections of Group objects, these contain only Launchpad team name. An individual group can be referenced by appending the group id to the end of the url.

Examples:

Admins

URL: http://loco.ubuntu.com/services/admins/

Returns a collections of Admin objects, these contain only Launchpad username of a Team admin. An individual admin can be referenced by appending the admin id to the end of the url.

Examples:

LoCoTeamPortal/API (last edited 2011-11-12 01:57:36 by ip72-196-101-83)