Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

ODate Create Entity or Create Stream

$
0
0

Hi,

 

I have a entity which contains a media link. So i have implemented the methods create entity and create stream. Since

I have to use POST against the collection URL for both cases I am wondering how I can decide what happens? In my case always

create stream is called. I found out that there is a flag in IS_REQUEST_DETAILS called "type" which always contains "stream" in my case.

If it would contain something else the create entity method would have been called.

 

So my question is how can I change this flag in my request?

 

I also do not understand why I have to use the same URL for both cases. For an update(PUT) of the media I have to use the URL that ends with "$value" with a specific entity of the collection.

 

 

Thanks in advance


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>