0
votes

(Moved from https://github.com/telefonicaid/fiware-orion/issues/2343)

I have doubt concerning the MIME types requirement:

In the NGSIv2 spec we have in the section MIME Types the following:

the response payloads other than application/json and test/plain are not accepted.

Although the MIME types requierement was only mentioned on the following operation:

  • section: Attribute Value, operation: Get attribute value
  • section: Attribute Value, operation: Update attribute value

So does the MIME Types requierement shall be taken into consideration in all requests having a payload response or only on the operations mentioned above?

1

1 Answers

1
votes

The "MIME Types" section defines the general rules that apply to the overall API. Thus, the types supported by the API are application/json and text/plain. No other type (e.g. application/xml) is supported in any operation.

More specifically, most of the operations support only application/json (detailo in the NGSIv2 spec itself). Only the operations related with attribute values (the ones you mention: "Get attribute value" and "Update attribute value") allows also text/plain.