HTTP Methods
HTTP
Methods
Different HTTP methods
will result in different results on the same endpoint.
GET /item/{id} # e.g. gets data POST /item/{id} # e.g. creates data PUT /item/{id} # e.g. updates data
GET
for retrieving (as in "cRud" abbreviation)
PUT
for updating (as in "crUd")
Interview questions related to API
How do you address throttling to ensure a RESTful API performs well under spikes in calls?
- rate limiting
- IP-level whitelist
- concurrent connection limit
- limit users and save services to reduce spike
- resource-level limit
- limit users from specific resources