Grokking the System Design Interview, Volume II
Vote

0% completed

​

Step 4: API Design

Six calls cover the functional requirements from Step 2. They form a REST API over HTTPS. Every request carries a bearer token, and the server takes the caller's identity from that token, never from a field in the body. A body field would let any client answer an invitation on someone else's behalf.

1. Create Event

  • Method: POST /v1/events
  • Headers: Idempotency-Key, a unique value the client generates for this one creation, so a retried request does not create a second event.
  • Body:

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content