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
alfet81
changed the title
[REQ] Add support of @ResposeStatus for spring-http-interface library
[REQ] Add support of @ResponseStatus for spring-http-interface library
Nov 9, 2024
Is your feature request related to a problem? Please describe.
The spring-http-interface library doesn't allow to use @ResponseStatus when option useResponseEntity is disabled.
Describe the solution you'd like
When useResponseEntity is set to false the generator should add @ResponseStatus similar it does for default spring generator.
Additional context
Here is what api.mustache should look like after the change:
`/**
*/
package {{package}};
{{#imports}}import {{import}};
{{/imports}}
{{^useResponseEntity}}
import org.springframework.http.HttpStatus;
{{/useResponseEntity}}
import org.springframework.http.ResponseEntity;
{{#useResponseEntity}}
import org.springframework.http.ResponseEntity;
{{/useResponseEntity}}
import org.springframework.web.bind.annotation.;
import org.springframework.web.service.annotation.;
import org.springframework.web.multipart.MultipartFile;
{{#reactive}}
import org.springframework.http.codec.multipart.Part;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
{{/reactive}}
import java.util.List;
import java.util.Map;
import java.util.Optional;
import {{javaxPackage}}.annotation.Generated;
{{>generatedAnnotation}}
{{#operations}}
public interface {{classname}} {
{{#operation}}
{{/operation}}
}
{{/operations}}`
The text was updated successfully, but these errors were encountered: