REST API steps (short form). Same backend coverage as api with terser phrasings.
Step phrasings in this group
The book sidebar lists each individual step page under this group.
Given a REST header "Authorization" with value "Bearer abc123"Add an HTTP header to subsequent REST requests.
When I send a REST "GET" request to "/api/users"Send an HTTP request without a body.
When I send a REST "POST" request to "/api/users" with body:Send an HTTP request with a doc-string body (raw text, JSON, or form-encoded).
Then the REST response status code should be 200Assert the most recent REST response carried an expected status code.
Then the REST response should contain "Alice"Assert the most recent REST response body contains a substring.