Expose etag through JSON responses for child elements
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -80,6 +80,9 @@ class RelationalEntity extends Entity implements \JsonSerializable {
|
||||
$json[$property] = $value;
|
||||
}
|
||||
}
|
||||
if ($reflection->hasMethod('getETag')) {
|
||||
$json['ETag'] = $this->getETag();
|
||||
}
|
||||
return $json;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user