API testing

Understand 2xx status codes

Easy30 pts~12 min
  • 2xx semantics
  • Resource lifecycle
Practice app · Acme REST API

A live REST + GraphQL API with auth, validation, pagination, rate limiting and an interactive request console.

BASE_URL
/api/practice
Console app
/lab/qa-automation-understand-2xx-status-codes

Your starter code already declares BASE_URL — call the API relative to it.

Objective

Observe the three success codes of a resource lifecycle: 201 Created, 200 OK and 204 No Content.

Your task

  1. 1POST BASE_URL + "/users" with { "name": "Temp User", "email": <unique> } and assert 201 and a Location header.
  2. 2GET the created user (BASE_URL + "/users/{id}") and assert 200.
  3. 3DELETE the same user and assert 204 with an empty body.

Acceptance criteria

  • POST /users returns 201
  • GET /users/{id} returns 200
  • DELETE /users/{id} returns 204
  • At least 3 assertions pass

Constraints

  • Use a unique email per run, e.g. qa.<timestamp>@example.test — emails must not already exist (409 EMAIL_TAKEN).

Fixtures

apiKey
tqa_live_key_123
basicUser
admin
basicPassword
secret
username
qa@target.dev
password
Test@123

API testing · QA Automation · HTTP fundamentals