4242import org .springframework .web .bind .annotation .PutMapping ;
4343import org .springframework .web .bind .annotation .RequestBody ;
4444import org .springframework .web .bind .annotation .RequestMapping ;
45- import org .springframework .web .bind .annotation .ResponseBody ;
4645import org .springframework .web .bind .annotation .ResponseStatus ;
4746import org .springframework .web .bind .annotation .RestController ;
4847
4948import jakarta .validation .Valid ;
49+
5050import java .util .List ;
5151
5252/**
@@ -80,7 +80,6 @@ public class OcppTagsRestController {
8080 @ ApiResponse (responseCode = "500" , description = "Internal Server Error" , content = {@ Content (mediaType = "application/json" , schema = @ Schema (implementation = ApiErrorResponse .class ))})}
8181 )
8282 @ GetMapping (value = "" )
83- @ ResponseBody
8483 public List <OcppTagOverview > get (@ ParameterObject OcppTagQueryFormForApi params ) {
8584 log .debug ("Read request for query: {}" , params );
8685
@@ -100,7 +99,6 @@ public List<OcppTagOverview> get(@ParameterObject OcppTagQueryFormForApi params)
10099 @ ApiResponse (responseCode = "500" , description = "Internal Server Error" , content = {@ Content (mediaType = "application/json" , schema = @ Schema (implementation = ApiErrorResponse .class ))})}
101100 )
102101 @ GetMapping ("/{ocppTagPk}" )
103- @ ResponseBody
104102 public OcppTagOverview getOne (@ PathVariable ("ocppTagPk" ) Integer ocppTagPk ) {
105103 log .debug ("Read request for ocppTagPk: {}" , ocppTagPk );
106104
@@ -122,7 +120,6 @@ public OcppTagOverview getOne(@PathVariable("ocppTagPk") Integer ocppTagPk) {
122120 @ ApiResponse (responseCode = "500" , description = "Internal Server Error" , content = {@ Content (mediaType = "application/json" , schema = @ Schema (implementation = ApiErrorResponse .class ))})}
123121 )
124122 @ PostMapping
125- @ ResponseBody
126123 @ ResponseStatus (HttpStatus .CREATED )
127124 public OcppTagOverview create (@ RequestBody @ Valid OcppTagForm params ) {
128125 log .debug ("Create request: {}" , params );
@@ -145,7 +142,6 @@ public OcppTagOverview create(@RequestBody @Valid OcppTagForm params) {
145142 @ ApiResponse (responseCode = "500" , description = "Internal Server Error" , content = {@ Content (mediaType = "application/json" , schema = @ Schema (implementation = ApiErrorResponse .class ))})}
146143 )
147144 @ PutMapping ("/{ocppTagPk}" )
148- @ ResponseBody
149145 public OcppTagOverview update (@ PathVariable ("ocppTagPk" ) Integer ocppTagPk , @ RequestBody @ Valid OcppTagForm params ) {
150146 params .setOcppTagPk (ocppTagPk ); // the one from incoming params does not matter
151147 log .debug ("Update request: {}" , params );
@@ -169,7 +165,6 @@ public OcppTagOverview update(@PathVariable("ocppTagPk") Integer ocppTagPk, @Req
169165 @ ApiResponse (responseCode = "500" , description = "Internal Server Error" , content = {@ Content (mediaType = "application/json" , schema = @ Schema (implementation = ApiErrorResponse .class ))})}
170166 )
171167 @ DeleteMapping ("/{ocppTagPk}" )
172- @ ResponseBody
173168 public OcppTagOverview delete (@ PathVariable ("ocppTagPk" ) Integer ocppTagPk ) {
174169 log .debug ("Delete request for ocppTagPk: {}" , ocppTagPk );
175170
0 commit comments