Returns a single type.
Status: 200 OK
<type>
<id type="integer">1</id>
<description>Vehicles</description>
</type>
Returns a collection of types.
Status: 200 OK
<types>
<type>
...
</type>
<type>
...
</type>
</types>
Creates a new type. The XML for the new type is returned on a successful request with the timestamps recorded and ids for the type. Atention! Due to a bug in Rails (view the ticket) the XML must be hacked a little bit to create/update types in Gastus. So you must change the standar "type" root node by "ttype" root node, unless you would recieve an ugly 500 Internal Server Error.
<ttype> # Note the ttype instead of type
<description>Vehicles</description>
</ttype>
Status: 201 Created
Location: http://test.gastus.com/types/#{new-type-id}.xml
<type>
...
</type>
Updates an existing type with new details from the submitted XML.
<ttype> # Note the ttype instead of type
<description>Vehicles</description>
</ttype>
Status: 200 OK
Destroys the type at the referenced URL.
Status: 200 OK