Then the REST API should be available

Assert the REST API is available at /wp-json/ and serves the core namespace wp/v2. It is what the block editor and every headless client depend on.

Examples

Then the REST API should be available
And the REST API should be available
Then the REST API should not be available
And the REST API should not be available
But the REST API should be available

Pattern

Then(/^the REST API should( not)* be available$/, …)

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