Documentation
Difficulty level:
What formats are supported?
The following formats are currently supported:
The formats are all present at all times. The client can easily switch format by including it in the URL to be invoked.
Insert the format directly after "api/rest/" and directly before the entity. Should no format be requested, JSON will be used.
GET http://localhost/trunk/src/api/rest/booking/1582
Identical:
GET http://localhost/trunk/src/api/rest/json/booking/1582
Result:
{ "booking_id":"1363", "object_desc":"Cursus Schrijven", "status":"Open", "fromdate":"090000", "tilldate":"120000", "number":"1" }
The same request in XML format:
GET http://localhost/trunk/src/api/rest/xml/booking/1582
Result:
<?xml version="1.0"?> <response> <booking_id>1363</booking_id> <object_desc>Cursus Schrijven</object_desc> <status>Open</status> <fromdate>090000</fromdate> <tilldate>120000</tilldate> <number>1</number> </response> </xml>