โ† All API Flashcard Decks

REST API Fundamentals 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 Fundamentals flashcards as text
  1. Which HTTP method is idempotent and used to fully replace a resource?

    Answer: PUT

    PUT is idempotent and replaces the entire resource at the specified URI.

  2. What HTTP status code indicates a resource was successfully created?

    Answer: 201 Created

    201 Created is the standard response when a POST request successfully creates a new resource.

  3. Which HTTP status code means the client is not authorized and must authenticate?

    Answer: 401

    401 Unauthorized indicates that authentication is required and has failed or not been provided.

  4. What does a 404 HTTP status code indicate?

    Answer: Resource not found

    404 Not Found means the server cannot locate the requested resource at the given URI.

  5. Which HTTP method should be used for partial updates to a resource?

    Answer: PATCH

    PATCH is designed for partial modifications to an existing resource.

  6. What does REST stand for?

    Answer: Representational State Transfer

    REST stands for Representational State Transfer, an architectural style for distributed hypermedia systems.