Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear REST service endpoint content type for /dictionary #135

Open
zambrovski opened this issue Feb 6, 2024 · 0 comments
Open

Unclear REST service endpoint content type for /dictionary #135

zambrovski opened this issue Feb 6, 2024 · 0 comments

Comments

@zambrovski
Copy link
Contributor

Environment Details

  • EclipseStore Version: 1.1.0
  • JDK version: 17
  • OS: ubuntu 22.04
  • Used frameworks: Spring, SparkJava

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:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant