Grokking Modern API Design Interview
Vote

0% completed

Request and Response Shapes

What should this operation return?

GET /orders?status=confirmed&limit=20

The shortest answer is a JSON array:

[ { "id": "ord_7M2K", "status": "confirmed" } ]

This course returns something slightly larger:

{ "items": [ { "id": "ord_7M2K", "status": "confirmed" } ], "next_cursor": "eyJhZnRlciI6Im9yZF83TTJLIn0" }

One of those two shapes can grow later and the other cannot. That is the subject of the first half of this lesson.

.....

.....

.....

Like the course? Get enrolled and start learning!