API testing

Send a GET request and assert 200

Easy30 pts~12 min
  • HTTP GET
  • Status codes
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/sdet-send-a-get-request-and-assert-200

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

Objective

Send your first request to the live practice API and assert that it succeeds with HTTP 200.

Your task

  1. 1Use the BASE_URL constant from the starter — never hardcode a host.
  2. 2Send GET BASE_URL + "/users/1".
  3. 3Assert the status code is 200.

Acceptance criteria

  • GET /users/1 is sent and returns 200
  • At least 1 assertion passes

Fixtures

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

API testing · SDET · HTTP fundamentals