โ† All API Flashcard Decks

REST API Testing Flashcards

6 cards from real API practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 6 REST API Testing flashcards as text
  1. Which HTTP method is used to fully update an existing resource in REST?

    Answer: PUT

    PUT replaces the entire resource with the provided payload, making it the method for full updates.

  2. What is the purpose of query parameters in a REST API URL?

    Answer: Filter or paginate results

    Query parameters, appended after '?', are used to filter, sort, or paginate the data returned by the API.

  3. Which status code range represents client-side errors in REST API responses?

    Answer: 4xx

    The 4xx range covers client errors, such as 400 Bad Request, 401 Unauthorized, and 404 Not Found.

  4. What header should a REST API client set when sending a JSON body?

    Answer: Content-Type: application/json

    Content-Type: application/json tells the server that the request body is formatted as JSON.

  5. What does it mean for a REST API to be 'stateless'?

    Answer: Each request contains all information needed to process it

    Statelessness means every HTTP request must carry all context needed; the server retains no client session state between calls.

  6. Which REST API testing assertion checks that a response arrives within an acceptable time frame?

    Answer: Response time assertion

    A response time assertion verifies that the API replies within a defined latency threshold, ensuring performance SLAs are met.