Latihan 1 dari materi HTTP Method di API — praktek dengan editor kode interaktif, test case otomatis, dan hint terpandu. Langsung jalan di browser.
Buat 4 endpoint untuk resource books:
/books, return JSON {"method": "GET"}/books, return JSON {"method": "POST"} dengan status 201/books/:id, return JSON {"method": "PUT", "id": req.params.id}/books/:id, return status 204 tanpa body