Skip to content
KALANBLON
Show contents

Chapter 7 of 7 · 10 min

Quiz: building a REST API

Resources, CRUD, validation, tokens, 401, 403 and 409 codes, and tests: let's check that you can build a REST API. You need 70% correct answers, and every answer is explained.

Quiz

6 questions · pass mark: 70%

  1. 1.Which address follows REST conventions for creating a book?

    One answer

  2. 2.What is the difference between PATCH and PUT?

    One answer

  3. 3.A signed-in user who is a regular member tries to delete a book reserved to the board. Which code should you return?

    One answer

  4. 4.A student registers for a workshop that is already full. Which code should you return?

    One answer

  5. 5.Which checks must be done on the server?

    Several answers possible

  6. 6.A test passes alone but fails when all the tests run. What is the most likely cause?

    One answer

Your progress is saved on this device. Create a free account to keep your progress on all your devices.