OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: [OASIS Issue Tracker] Commented: (ODATA-159) Handling inline attachments in requests/responses

    [ http://tools.oasis-open.org/issues/browse/ODATA-159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31604#action_31604 ] 

Ralf Handl commented on ODATA-159:

I do not propose to violate the pairing of requests and responses in a batch request. If for example an Employee entity type has two named stream properties Photo and IntroVideo, then to get an Employee entity together with the photo and the video you'd submit a batch request with three parts:

    GET ~/Employees(42)
    GET ~/Employees(42)/Photo
    GET ~/Employees(42)IntroVideo

(multipart wrapper omitted) and you will receive a response with three parts: the first an OData entity, the second a picture, the third a video.

This seems to be one way of solving your problem without any changes to the OData specification.

Another way would be to use properties of type Edm.Binary instead of named stream properties.

> Handling inline attachments in requests/responses
> -------------------------------------------------
>                 Key: ODATA-159
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-159
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: New Feature
>          Components: OData Protocol v1.0
>            Reporter: Anila Kumar GVN
> The only way of dealing with attachments (streams) as per the current OData spec seems to be using Media Entities or Named Stream Properties, where a media link is provided to download the attachment. Is there a way to get properties and attachments in one call?

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]