[
https://issues.apache.org/jira/browse/OLINGO-919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Amend resolved OLINGO-919.
------------------------------------
Resolution: Not A Problem
Assignee: Christian Amend
[~rareddy] this already works as long as the function is composable.
See this example url:
/odata-server-tecsvc/odata.svc/FICRTCollESTwoKeyNavParam(ParameterInt16=2)/$count
The default value for "isComposable" is false which means that no further path
segments must come after the function call. Not even system query options.
See here in the specification:
http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part3-csdl/odata-v4.0-errata02-os-part3-csdl-complete.html#_Toc406398014
Actions must not be followed by any path segments like $value or $count as
stated in the ABNF. You can of course specify $count=true as a uri parameter in
the query options part if the returned resource is a collection. This should
already work as well.
> $count is not supported as last segment on Functions/Actions
> ------------------------------------------------------------
>
> Key: OLINGO-919
> URL: https://issues.apache.org/jira/browse/OLINGO-919
> Project: Olingo
> Issue Type: Bug
> Components: odata4-server
> Affects Versions: (Java) V4 4.1.0
> Reporter: Ramesh Reddy
> Assignee: Christian Amend
>
> See more details on OLINGO-915
> When function (including function imports) and action (and AI ) return
> collection values, then that url can end with $count. For reference see [1]
> [1]
> http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part2-url-conventions/odata-v4.0-errata02-os-part2-url-conventions-complete.html#_Toc406398093
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)