[
https://issues.apache.org/jira/browse/OLINGO-567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14537924#comment-14537924
]
Ramesh Reddy commented on OLINGO-567:
-------------------------------------
The above is not entirely correct, according to
[http://docs.oasis-open.org/odata/odata-json-format/v4.0/errata02/os/odata-json-format-v4.0-errata02-os-complete.html#_Toc403940605]
the spec says
{code}
In addition, odata annotations MUST appear in the payload for cases where
actual values are not the same as the computed values and MAY appear otherwise.
When odata annotations appear in the payload, they are treated as exceptions to
the computed values.Media entities and stream properties MAY in addition
contain the following annotations:
· odata.mediaEtag: the ETag of the stream, as appropriate
· odata.mediaContentType: the content type of the stream
{code}
so, whether you include the mediaEtag, mediaContentType for Media properties
and Stream properties is an decision that a particular framework can make. As I
mentioned on OLINGO-641, I read above as "mediaReadLink" and mediaEditLink as
MUST have links for both media and stream properties, and mediaETag,
mediaContentType as MAY.
> Support odata.metadata=full on server side serialization
> --------------------------------------------------------
>
> Key: OLINGO-567
> URL: https://issues.apache.org/jira/browse/OLINGO-567
> Project: Olingo
> Issue Type: Improvement
> Components: odata4-server
> Affects Versions: (Java) V4 4.0.0-beta-02
> Reporter: Christian Amend
> Assignee: Christian Amend
> Fix For: (Java) V4 4.0.0
>
> Attachments:
> odata_metadata=full_support_for_V4_4_0_0-beta-02-Version2.patch,
> odata_metadata=full_support_for_V4_4_0_0-beta-02-Version2_examples.txt,
> odata_metadata=full_support_for_V4_4_0_0-beta-02-Version3.patch,
> odata_metadata=full_support_for_V4_4_0_0-beta-02-Version4.patch,
> odata_metadata=full_support_for_V4_4_0_0-beta-02.patch
>
>
> Support odata.metadata=full on server side serialization. Currently we throw
> a not supported exception during serializer creation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)