1927 active members
  194 are Online

Year

28

Day

2

Time

17:15:52

Guest
Login

Web Services Hub » Response Formats

Response Formats

Resources respond in XML or JSON. XML is the default. CSV can also be asked for, but only resources with flat data can be written as CSV. There are three ways to ask for a format, and the first one given wins:

  1. An extension on the path: /ws/v2.0/inventory/{uid}/ships/owner.json. The extension replaces the trailing slash.
  2. The format query string parameter: /ws/v2.0/inventory/{uid}/ships/owner/?format=json. It takes json, xml or csv; any other value is ignored.
  3. The Accept header: Accept: application/json, application/xml or text/csv.

Following next_page

Lists paged by start_id give the URL of the following page as next_page. It keeps the extension or format parameter of the request it came from, so the next page is in the same format. An Accept header is not part of a URL, so send it again with each request. Other links in responses, such as href, do not carry the format.