Backendintermediate

REST API

A set of rules for how apps communicate over the internet using standard HTTP methods like GET and POST.

Detailed Explanation

REST (Representational State Transfer) is an architectural pattern for building APIs — rules for how to request and send data over the internet. REST APIs use standard HTTP methods (GET, POST, PUT, DELETE) on URLs called endpoints to perform CRUD operations.

A GET to /api/users retrieves users. POST to /api/users creates one. PUT updates, DELETE removes. Data is exchanged as JSON. Each request is stateless — the server doesn't remember previous requests (you send a token for authentication).

Supabase auto-generates REST APIs for every table in your database. When you call supabase.from('posts').select(), it's making a REST API call under the hood. Claude Code can build custom REST endpoints using Edge Functions.

Code Example

javascript
Free forever

Start building software you actually own.

Learn the concepts, fix things with confidence, and ship real products with AI beside you. No coding background required, and we're with you from the first idea to launch.

Free to start. No card. Leave whenever you want.