Expose etag through JSON responses for child elements

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-11-10 18:04:20 +01:00
parent 6a8e607134
commit a46d31caf2
10 changed files with 35 additions and 9 deletions
+3
View File
@@ -80,6 +80,9 @@ class RelationalEntity extends Entity implements \JsonSerializable {
$json[$property] = $value;
}
}
if ($reflection->hasMethod('getETag')) {
$json['ETag'] = $this->getETag();
}
return $json;
}