Skills101
← All practice quizzes

Quiz: REST Assured

5 questionsNo time limitPass: 60%+10 XP on first pass

Test REST APIs in Java with REST Assured: the given/when/then style, checking status codes, headers and JSON fields with Hamcrest matchers, logging in and sending Bearer tokens, chaining requests, and negative tests — run against a real API.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    In REST Assured, where do you put the request body and headers?

  2. Question 2

    A logged-in student is refused when creating a course. Which status do the tests expect?

  3. Question 3

    What does .extract().path("token") do?

  4. Question 4

    What does body("title", hasItems("Java Full Stack", "DSA in Python")) check on a list response?

  5. Question 5

    Why are API tests usually faster and more stable than UI tests?