Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 7.6.0

...

Multiexcerpt include
MultiExcerptNamecontent_types
PageWithExcerptREST

Examples

MIME StringDeduced Type
text/plain; charset=utf-8-
application/jsonJSON
application/json+xmlJSON
application/vnd.github+jsonJSON
application/vnd.github.v3.raw+jsonJSON
application/vnd.github.v3.raw+xmlXML
text/xml; charset=utf-8XML
application/soap+xmlXML

Arrays

Having an array as output may lead to interoperability problems. There are also known vulnerabilities in browsers regarding top-level JSON arrays.
In case of an array as output parameter, the array will be wrapped in an enclosing XML element, if you choose text/xml for your response, nevertheless. The name of the element is deduced from the output parameter name.

<supportCases>
  <SupportCase id="000089c00002cb0d2e5ea" customerID="4711" customerName="Wishes Unltd" [...]></SupportCase>
  <SupportCase id="0089c00000fccd3bae4d4" customerID="4711" customerName="Wishes Unltd" [...]></SupportCase>
  <SupportCase id="170324000026a400000dd" customerID="4712" customerName="AllYouWant AG" [...]></SupportCase>
  <SupportCase id="70fb1000026a400002e18" customerID="4712" customerName="AllYouWant AG" [...]></SupportCase>
</supportCases>

HTTP Headers

Multiexcerpt include
MultiExcerptNamehttp_headers
PageWithExcerptINTERNAL:_bridge_excerpts

HTTP Status Codes

For HTTP success status codes (2xx), it may be doubtful which status code is return on a specific combination of REST operation and parameter. Find below a list that describes which status codes are returned under which conditions.

OrderConditionStatus Code Returned
1.no output parameter204 (= no content)
2.POST request201 (= created)
3.else200 (= OK)