Then the backend should document "POST /v1/products"

The backend's OpenAPI document documents an operation: its method and its path as the document writes it (with the global prefix and its {parameters}), or a path the backend answers ("/v1/products/4").

Examples

Then the backend should document "POST /v1/products"
And the backend should document "GET /v1/products/{id}"
Then the backend should document "DELETE /v1/products/4"
And the backend should document "POST /v1/auth/login"
Then the backend should document "GET /v1/health"

Pattern

Then(/^the backend should document "([A-Z]+) ([^"]+)"$/, …)

Part of @webship-js/nestjs-steps (github.com/webship/nestjs-steps), a step pack for Webship-js 2.0.x.