Exam-style question
Try this first
Which REST and SQL mapping is correct?.
- A.GET maps to SELECT
- B.POST maps to SELECT
- C.PUT maps to INSERT
- D.DELETE maps to UPDATE
Model answer
What a good answer should say
- GET maps to SELECT
Explanation
Why this works
In the specified REST mapping, GET corresponds to retrieving data using SQL SELECT. POST maps to INSERT, DELETE maps to DELETE, and PUT maps to UPDATE.
Common mistake
No common mistake is linked to this question yet.
