天天看點

how is OData url select option implemented in the backend

Created by Jerry Wang, last modified on Sep 22, 2015

使用如下url 進行測試:

https://:4080/sap/opu/odata/sap/CRM_OPPORTUNITY/Opportunities?KaTeX parse error: Expected 'EOF', got '&' at position 22: …=Id,Description&̲top=1

傳回結果隻包含request的id和description:

how is OData url select option implemented in the backend

但是在backend傳回給gateway的entity response裡,包含了整個opp header的所有資料:

how is OData url select option implemented in the backend
how is OData url select option implemented in the backend

那麼這個selection的filter隻能是在gateway上做的:

how is OData url select option implemented in the backend
how is OData url select option implemented in the backend
how is OData url select option implemented in the backend
how is OData url select option implemented in the backend

lo_expand_select包含我們url傳入的id和description資訊:

how is OData url select option implemented in the backend
how is OData url select option implemented in the backend
how is OData url select option implemented in the backend

在這裡指定隻将id和description這兩個property寫回http response裡:

how is OData url select option implemented in the backend

繼續閱讀