1.7 define /todo/{id} DELETE endpoint
wb todoMVC Master >> 1.7 define /todo/{id} DELE…
Update 7/19
OpenAPI3 (aka swagger3) is just about ready for official release. This means steps 1.1–1.x will need to be rewritten soon. The folks over at swagger-api are working hard updating the many swag tools to work with the latest spec.
Gotchas
If you have not implemented CORS this step will fail. See how to implement CORS here.
Regarding returning 204 responses: some legacy browsers (IE11, various SmartTVs) choke on 204. Swagger editor in mock mode also chokes on 204 As a result we will use a 200 with some string response to represent a successful delete
Steps
Run swagger editor & server in mock mode if not running already.
Define DELETE action under Paths: /todo/{id} in swagger.yaml
Test
Tutorial Navigation
The master tutorial doc is located here: WB todoMVC MASTER
Previous Step: 1.6 define /todo/{id} path and define GET endpoint.
Next Step: 1.8 define /todo/{id} PUT endpoint