Grokking the System Design Interview, Volume II
Vote
0% completed
Google Calendar: API Design
Step 4: API Specifications
We will use a REST API. We assume HTTPS for security.
1. Create Event
- Method:
POST /v1/events - Body:
{ "title": "Team Sync", "start_time": "2023-10-27T10:00:00Z", "end_time": "2023-10-27T11:00:00Z", "attendees": ["userA_id", "userB_id"], "recurrence_rule": "..." } - Response:
201 Created(returns the newevent_id).
2. Get Calendar View
- Method:
GET /v1/events - Params:
user_id,time_min,time_max(e.g., fetch one month range). - Response: JSON list of event objects.
3. Update Event
- Method:
.....
.....
.....
Like the course? Get enrolled and start learning!