Embercode
✕
How the Internet WorksQuick quiz

REST and JSON

7 questions. Covers JSON APIs and REST basics.

Questions 1 to 5 of 7

  1. 1. Match each HTTP method to what it does in a REST API.

    Choose the matching item for each row.

  2. 2. A client sends POST /posts/1/delete to remove post 1. Which request fits the REST style?
  3. 3. This body is sent with POST /notes. What is the bug? ``json { 'id': 3, "title": "call mum", "done": false } ``
  4. 4. This body is sent with PUT /notes/4. What is the bug? ``json {"id": 4, "title": "pay rent", "done": True} ``
  5. 5. This body is sent with PUT /notes/5. What is the bug? ``json {"id": 5, "title": "water plants" "done": false} ``

5 question(s) left on this page.