Grokking the System Design Interview, Volume II
Vote

0% completed

Google Calendar: API Design

Step 4: API Specifications

Step 3 sized the load. Step 4 turns the functional requirements into a concrete API. We use a REST API, and assume HTTPS for security throughout.

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 new event_id).

2. Get Calendar View

  • Method: GET /v1/events
  • Params: user_id, time_min, `time_max

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content