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

remove @Produces(MediaType. MediaType.APPLICATION_JSON) #2413

Merged

Conversation

sdelamo
Copy link
Collaborator

@sdelamo sdelamo commented May 21, 2024

see: https://docs.micronaut.io/4.4.8/guide/#producesAnnotation

A Micronaut controller action produces application/json by default.

see: https://docs.micronaut.io/4.4.8/guide/#producesAnnotation

> A Micronaut controller action produces application/json by default.
@mkimberlin mkimberlin merged commit e30dd95 into develop May 24, 2024
1 check passed
@mkimberlin mkimberlin deleted the feature-2408/remove-unnecessary-produces-and-consumes branch May 24, 2024 16:39
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

Successfully merging this pull request may close these issues.

Micronaut controllers produce and consume JSON by default no need to specify it
4 participants