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

Ready to Build Something Real?

We give you the skills to build, deploy, and own a full product. Professional stack, AI co-pilot, no coding background required.