Skip to content

Commit a15f75d

Browse files
bound actions
1 parent f047619 commit a15f75d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/providing-services.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ POST .../sue/Foo(2)/Sue.order {"x":3} // bound action
11691169
```
11701170

11711171
> Note: You always need to add the `()` for functions, even if no arguments are required. The OData standard specifies that bound actions/functions need to be prefixed with the service's name. In the previous example, entity `Foo` has a bound action `order`. That action must be called via `/Foo(2)/Sue.order` instead of simply `/Foo(2)/order`.
1172-
> For convenience, the CAP Node.js runtime also allows the following:
1172+
> For convenience, both CAP runtimes, Node.js and Java, also allow the following:
11731173
> - Call bound actions/functions without prefixing them with the service name.
11741174
> - Omit the `()` if no parameter is required.
11751175
> - Use query options to provide function parameters like `sue/sum?x=1&y=2`

0 commit comments

Comments
 (0)