Module 04 Β· HTTP From the Ground Up β Lesson 2 of 3 Β· ~8 min
REST conventions & status codes
Resources and verbs
A REST API is a discipline for shaping endpoints: you expose resources (walkers, bookings) at noun paths, and act on them with HTTP verbs. The verb says what; the path names the thing.
GET /walkersβ read the listGET /walkers/42β read one walkerPOST /walkersβ create a walkerPUT /walkers/42β replace walker 42 wholesalePATCH /walkers/42β update part of walker 42DELETE /walkers/42β remove it
Red flag in an interview:
POST /getWalkersorGET /deleteBooking?id=42. Putting the verb in the path, or usingGETto change data, tells a senior you haven't internalized REST. The method is the verb.