You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the underlying problem you're trying to solve?
It seems content-type request header in REST APIs is not well-documented and documentations could become more clear. Some APIs do not mention content-type request header and some of them do not specify all possible options.
Describe the ideal solution
Ideally all REST APIs could be reviewed to:
add missing headers
specify required/optional request headers and query parameters
Describe a "Good Enough" solution
1. Missing application/json content-type headers
The following APIs:
Partially Evaluate a Query
accept request body, while did not mention content-type header.
Moreover, regarding gzip headers (Content-Encoding: gzip & Accept-Encoding: gzip), only Partially Evaluate a Query mentioned them, while they could be applicable for other requests.
If some headers (e.g. gzip headers) are common for all requests with body, they could be specified at the beginning of the document and then reference to them in the related APIs.
Additional Context
The text was updated successfully, but these errors were encountered:
What is the underlying problem you're trying to solve?
It seems
content-type
request header in REST APIs is not well-documented and documentations could become more clear. Some APIs do not mentioncontent-type
request header and some of them do not specify all possible options.Describe the ideal solution
Ideally all REST APIs could be reviewed to:
Describe a "Good Enough" solution
1. Missing
application/json
content-type headersThe following APIs:
specified in the
Request Headers
section:This description could be misleading, since:
application/json
content-type is not mentionedThis could be improved by specifying
application/json
as a valid content-type.2. Missing headers
The following APIs:
accept request body, while did not mention
content-type
header.Moreover, regarding
gzip
headers (Content-Encoding: gzip
&Accept-Encoding: gzip
), only Partially Evaluate a Query mentioned them, while they could be applicable for other requests.If some headers (e.g.
gzip
headers) are common for all requests with body, they could be specified at the beginning of the document and then reference to them in the related APIs.Additional Context
The text was updated successfully, but these errors were encountered: