swagger-tools icon indicating copy to clipboard operation
swagger-tools copied to clipboard

swagger-route returning incorrect status code on POST and DELETE

Open Muldec opened this issue 6 years ago • 0 comments

Related to #518 but not quite the same thing.

swagger-router should return 201 status code for POST and 204 for DELETE (coming from https://github.com/apigee-127/swagger-tools/blob/master/middleware/swagger-router.js#L257).

However, 200 status code is always returned.

Muldec avatar Nov 30 '18 10:11 Muldec