Api explorer and swagger.json should show the configured status code 201, but they show 204 which is the default value when no response is configured.
Additional information
The addRoute method of the rest adapter does not forward the http parameter of the route configuration. Which would be read by the swagger-spec-generator to configure the status code.
Description/Steps to reproduce
Create a model with custom method:
Link to reproduction sandbox
https://github.com/tylkomat/loopback-lost-status
Expected result
Api explorer and swagger.json should show the configured status code 201, but they show 204 which is the default value when no response is configured.
Additional information
The addRoute method of the rest adapter does not forward the
http
parameter of the route configuration. Which would be read by the swagger-spec-generator to configure the status code.