DevPrep

All topics › Networking & APIs

REST

Junior PRO

Essence

REST (Representational State Transfer) is an architectural style for client–server systems described by Roy Fielding. An API is called RESTful when it's built on resources addressed by URLs, standard HTTP methods and stateless interaction: every request carries everything needed (including the auth token), and the server keeps no "client session" between requests. A resource representation is usually JSON.

The rest of this answer, with code and interview follow-ups, is in the DevPrep app.

Read the full answer in DevPrep

Practice this before your interview

DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.

Get DevPrep on the App Store