Grokking the System Design Interview, Volume II
0% completed
Gmail: RESTful APIs
Step 4: RESTful APIs
With the scale in view, we can define what the service actually exposes. A RESTful email service needs clear, stateless endpoints for the core email operations. Stateless means each request carries everything the server needs, so no server keeps session data between calls. Every API uses standard HTTP methods and JSON, which web and mobile clients handle easily.
I. Send Email API (POST /emails/send)
This endpoint lets the client compose and send an email.
Request structure
- Endpoint:
POST /emails/send
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%