REST Anti Patterns
medium.com
REST Anti Patterns
1–3 of 3 posts
Re: REST Anti Patterns
#2Re: REST Anti Patterns
#3In REST, URIs aren't expected to carry meaningful data, the context in which links are presented conveys the information about what the link is doing, the URI isn't required to do that and can be an opaque identifier (you might use a URI pattern that provides information in the URI for various other reasons, but it has nothing to with being RESTful, and relying on the URI as the main carrier of information is definitely not RESTful.)
> Hurting Idempotency > No matter how many times you call GET on the same resource, the response should always be the same and no change in application state should occur.
Idempotence is defined in terms of application state requested by the call, not results; DELETE is by definition idempotent, but the definition of idepomtence is such that whether you return a 200, 404, or 410 on a subsequent DELETE, idempotence is preserved.