3 ms·
> it does not need to reflect your underlying data model. Absolutely! In the REST parlance, resources (which are what URIs point at) do not map 1-1 with entiti
by steveklabnik 14y ago
> it does not need to reflect your underlying data model.
Absolutely! In the REST parlance, resources (which are what URIs point at) do not map 1-1 with entities (which is your internal representation of business objects). If they do, you're quite possibly exposing too many internal details and making your application brittle.
> More precisely, a resource R is a temporally varying membership function MR(t), which for time t maps to a set of entities, or values, which are equivalent.
http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm#sec_5_2_1_1 http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch...
This is actually one of the more readable parts of Fielding's dissertation, read the whole section. The examples are great.