Skip to content

Actions and functions with the same name are not supported. #964

Answered by commonsensesoftware
zelins asked this question in Q&A
Discussion options

You must be logged in to vote

There are multiple things going on here. The signature for an OData Function and OData Action are quite different. An OData Action with parameters defined in the EDM are always in the body, which would look like:

POST odata/dosomestuff HTTP/2
Host: localhost
Content-Type: application/json
Content-Length: 42

{"param1": "Unit", "param2": "Test"}

The stack trace for the error you are showing is related to the API Explorer, which suggests you are trying to integrate this configuration with OpenAPI. There might be an issue there, but I'm not 100% sure - yet. It might be irrelevant though.

It wasn't clear if it's a supported scenario so I removed the API Versioning bits to take it out of the e…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zelins
Comment options

Answer selected by zelins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants