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

[ENH] Change Content-Type Header to application/json when calling Service #96

Open
Siminho opened this issue Nov 30, 2021 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@Siminho
Copy link

Siminho commented Nov 30, 2021

I wanted to create an external Endpoint of a Servcie which is called by the service manager. Then I realized, the service manager always sends the corresponding data (msg, botName, channel, ...) as a json string in the body, but with the Content-Type Header set to text/html. This leads to a problem, that I have to define my Endpoint in way, that I expect a String, which is then transformed into json and then eventually transformed into an object. It could be much easier, if the Content-Type is set to application/json and the Endpoint directly expects an object which can be derived from the json.
An Endpoint could look like this:
image

@Siminho Siminho added the enhancement New feature or request label Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant