Client application headers

Client application headers can use XML or JSON.

The base URI for the web service is http://server:port/madappsvcs/. The paths for the objects shown in the RESTdoc are relative to this application root.

Authentication is provided through HTTP headers. The REST services accept the following MIME headers:

  • Accept header - the format the client would like returned
  • Content-Type header - the format in which the client is passing data

We support XML and JSON only. Valid types for the headers are:

  • XML: application/xml and text/xml
  • JSON: application/json and text/json

Instead of sending in the Accept or Content-Type headers, the type can also be specified on the URL, for example:

http://localhost:7378/madappsvcs/rest/record/RMC/4567.json/

The .json or .xml extension must follow the last element in the URL.