reading-notes

These are my reading notes for Code Fellows


Project maintained by taegorov Hosted on GitHub Pages — Theme by mattgraham

Home

Reading Notes Code 301: Day 8

API Design Best Practices

“Organize the API around resources”

“Define operations in terms of HTTP methods”

Common conventions:

image (source)

Conform to HTTP semantics

Consider supporting query strings that specify the maximum number of items to retrieve and a starting offset into the collection. For example:

/orders?limit=25&offset=50

Also consider imposing an upper limit on the number of items returned, to help prevent Denial of Service attacks

(source)

Versioning