Back to Contents

Resource Formats

Zafiro RESTful API allows one to specify the format in which the resources are answered. The default format is JSON so in this case you don't need to specify a format if the default is ok. You can specify the requested format appending ".<formatName>" (a dot followed by the format name) to the end of the method, i.e.

Currently supported formats are:

FormatAppend extension
JSONjson
HTMLhtml

Date and Time formats

To send and receive Dates and TimeStamps, the Zafiro REST API will adopt the ISO8601 standard in the following formats.

NamePatternExample
DateYYYY-MM-DD2012-08-20
TimestampYYYY-MM-DDThh:mm:ss
YYYY-MM-DDThh:mm:ssZ
1997-07-16T19:20:30
1997-07-16T19:20:30Z
Timehh:mm:ss
hh:mm:ssZ
19:20:35
19:20:35Z

Reference: