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
Implementing the endpoints for restservice-spring I realized that there is a "contradiction" in the docs and the implementation. The docs of the REST API says:
Returns the type dictionary as plain text.
In fact it is a plain text, since its return type is a plain string:
0000000000000000001 byte{
primitive 8 bit integer signed,
}
0000000000000000002 boolean{
primitive 8 bit boolean,
}
0000000000000000003 short{
primitive 16 bit integer signed,
}
and so on
If I look on the implementation of the SparkJava Rest Service the response type is set to application/text (I believe this doesn't exist as contentType)
At the same time, the Jersey Client expects the content type to be application/json.
Expected behavior
Clarify which content type should be delivered.
The text was updated successfully, but these errors were encountered:
Environment Details
Describe the bug
Implementing the endpoints for
restservice-spring
I realized that there is a "contradiction" in the docs and the implementation. The docs of the REST API says:In fact it is a plain text, since its return type is a plain string:
If I look on the implementation of the SparkJava Rest Service the response type is set to
application/text
(I believe this doesn't exist as contentType)At the same time, the Jersey Client expects the content type to be
application/json
.Expected behavior
Clarify which content type should be delivered.
The text was updated successfully, but these errors were encountered: