Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functions and Actions as Interfaces #449

Closed
ralfhandl opened this issue Mar 21, 2024 · 0 comments
Closed

Functions and Actions as Interfaces #449

ralfhandl opened this issue Mar 21, 2024 · 0 comments
Labels
Vocabularies wontDo This will not be worked on

Comments

@ralfhandl
Copy link
Contributor

I would like to define an OData function or action outside of a service that serves as an interface. Such a function/action could then be invoked by a special client whenever a service implements it.

The functions isancestor and isdescendant defined in the Aggregation vocabulary would have been candidates for such treatment, if we had not assumed they are implemented by every service that uses the Aggregation.RecursiveHierarchy annotation.

If the interface has a parameter or return type of an abstract type like Edm.EntityType, its implementations MAY (or MUST) replace this with a concrete entity type.

Proposal

[https://github.com/oasis-tcs/odata-vocabularies/pull/228]

The proposed annotation

"ActionA": [{
  "$Kind": "Action",
  "@Core.ImplementsSignature": "ActionB"
}]

is not superior to currently used annotations like

"EntityType": {
  "$Kind": "EntityType",
  "@SAP.ActionB": "ActionA"
}

Therefore close this issue without further action.

Imported from ODATA-1600

@ralfhandl ralfhandl added Vocabularies wontDo This will not be worked on labels Mar 21, 2024
@ralfhandl ralfhandl closed this as not planned Won't fix, can't repro, duplicate, stale Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Vocabularies wontDo This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant