API testing

Chain a multi-step integration flow

Hard120 pts~45 min
  • Integration testing
  • Workflows
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/api-testing-chain-a-multi-step-integration-flow

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

Objective

Automate a full admin workflow: authenticate, create, read, update and delete a user.

Your task

  1. 1POST BASE_URL + "/auth/token" with the admin fixture and verify GET BASE_URL + "/auth/me" is 200.
  2. 2POST BASE_URL + "/users" (unique email) → 201; capture id.
  3. 3PATCH BASE_URL + "/users/{id}" { "role": "editor" } → 200; GET it back → role "editor".
  4. 4DELETE the user → 204.

Acceptance criteria

  • POST /auth/token and GET /auth/me return 200
  • POST /users returns 201
  • PATCH /users/{id} returns 200
  • DELETE /users/{id} returns 204
  • At least 4 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 · API Testing · Integration, performance & CI