{%extends "base.html"%} {% block body %} {% endblock %} {%block content%}



This is Tripboard API



If you want to build a custom client, please read the following documentation about how our API works. It's build in a REST style, meaning that you will use unified CRUD method interface instead of different method for each actions. Please note that HTTP method used have semantic meaning.

Trips:



Action

HTTP method

URL

XML schema(for POST and PUT)

Returns

Representations

get list of trip GET /trip/ list of trip html, xml
get certain trip GET /trip/{trip id} details of a trip html, xml
get people in certain trip GET /trip/{trip id}/people list of people in the trip html, xml
add a trip POST /trip/ JSON schema link to a newly created trip
delete a trip DELETE /trip/{trip id} link to the trip collection
update a trip PUT /trip/ JSON schema link to an updated trip


Places:



Action

HTTP method

URL

XML schema(for POST and PUT)

Returns

Representations

get places of certain trip GET /trip/{trip id}/places list of places in the trip html, xml
get certain place GET /trip/{trip id}/places/{place id} trip details html, xml
delete a place DELETE /trip/{trip id}/places/{place id} link to the trip
create a place for a trip POST /trip/{trip id}/places/ JSON schema link to the newly created place
update a place PUT /trip/{trip id}/places/{place id} JSON schema link to the updated place


People:



Action

HTTP method

URL

XML schema(for POST and PUT)

Returns

Representations

get all people GET /people list of all people html, xml
get people for certain trip GET /trip/{trip id}/people/ list of link for people for certain trip html, xml
delete a person DELETE /people/{person id} link to all people collection
create a new person POST /people/ JSON schema link to the newly created person
update a person PUT /people/{person id}/ JSON schema link to the updated person
{%endblock%}