Grokking Modern API Design Interview
Vote

0% completed

Filtering, Sorting, and Search

An API receives:

GET /orders?statsu=confirmed

The caller misspelled status.

If the server ignores the parameter it did not recognize, it returns every order. The JSON is valid, the status is 200 OK, and the caller may ship code believing the list was filtered. Accepting a query the server did not understand is more dangerous than refusing it, because nothing anywhere reports a problem.

This lesson designs how callers narrow, order, and search a collection. Every query you publish is a promise about performance as well as syntax.

.....

.....

.....

Like the course? Get enrolled and start learning!