Data Formats

  Date Updated: Aug 12th 2013

JSON

JSON (javascript object notation)

The AccountRight Live API v2 by default returns JSON and you don't need to explicitly tell the API to return in this format.

However if you like to be sure you are receiving JSON you can pass the ?format=json flag in the URL.


{domain}/accountright/?format=json

Note if you are passing data back to the AccountRight Live API using PUT or POST format you must set 'Content-Type: application/json' in your header.

HTML

HTML

It some cases it makes sense to be able to return the data in a HTML format. If you browse the local URL eg: http://localhost:8080/ in a web browser you are returned a simple webpage allowing you to navigate through the AccountRight Live API. To force this format you simply pass the ?format=html flag in the URL.


{domain}/accountright/?format=html