Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Most services respond to the HTTP HTTPS method GET while certain others respond to both GET and POST. The applicable methods per service are described under each service group. Either protocol HTTP or HTTPs is acceptable.

Responses

The response serialization for each service is dictated by the HTTP header HTTPS header Accept. The following table lists the possible return formats. Each format is described in the response section of the respective service method. Not all formats are applicable to all requests.

...

CDWS determines the serialization method of the output in the following order:

  1. HTTP HTTPS header:   Accept
  2. Query parameter: content-type
  3. Pre-defined default per service (JSON with the exception of /text which defaults to XML)

Typically, clients have their own method of setting request HTTP HTTPS headers.


The following examples use the UNIX wget command line utility.

...

Code Block
wget -O- \
  --header 'x-user: x' \
  --header 'x-password: y' \
  --header="Accept:text/xml"
'httphttps://cdws21.ificlaims.com/search/query?q=pn:ep-0700000-b1'

...

Code Block
wget -O- \
  --header 'x-user: x' \
  --header 'x-password: y' \
'httphttps://cdws21.ificlaims.com/search/query?q=solr&content-type=text/xml'

...

Although the serialization is predetermined by the request content-type, the response format for each service group differs. The response formats are described under their respective service groups:

Children Display
pageAPI Service Groups