Rest - relationships and stage

Let's say I have two root resources:

/organizations
/persons

A GETcall /persons/idreturns all the information about a specific person.

A GETcall /persons/id/organizationsreturns an array of all organizations to which the person belongs.

A GETcall /persons/id/organizations/idreturns all the information of a particular organization to which a person belongs. It returns the same content as in /organizations/id.

There is an opportunity to disseminate information about individuals with the information of their organizations, to combine two GETinto one GET:

/persons/id/?expand=organizations

My question is about ETags in the last request.

When accessing /persons/id, ETag is added to the response headers. Similarly, when accessing /persons/id/organizations/idETag is added to the response headers.

: ETag /persons/id?expand=organizations?

, ETag , ?

0
1

. ETag, . ETag ( ), ETags , ... ETags IRI (URI), . ( , ), .

0

All Articles