apigee-127 / swagger-tools

A Node.js and browser module that provides tooling around Swagger.
MIT License
701 stars 374 forks source link

swagger-route returning incorrect status code on POST and DELETE #592

Open Muldec opened 5 years ago

Muldec commented 5 years ago

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.