Formats (json, XML)

Two formats are supported with the REST APIs: json and xml. Each request must include the format in the query string of the url (the default format is xml, so technically it is only required for json requests).

http://restapi.lucity.net/gbaMS/Work/WorkOrders.svc/?format=json

Returns data in json

http://restapi.lucity.net/gbaMS/Work/WorkOrders.svc/?format=xml or

http://restapi.lucity.net/gbaMS/Work/WorkOrders.svc/

Returns data in xml.

For posting and putting (creating and updating) data, the format must be included both in the query string

http://restapi.lucity.net/gbaMS/Work/WorkOrders.svc/?format=json

And in the Content-Type of the request header. The content type for json is "application/json" or "text/javascript" and the content type for xml is "text/xml".

See Also

Welcome

Installation and Configuration

Basics

Working with Data

Special Requirements for XML

Errors

Expected return codes and behavior

Lists

Etags

Query Parameters

Special Functions

Other Notes