Replies: 1 comment 1 reply
-
@komdil Would you please share a repro for me to dig more? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My controller and configuration:
My action is working good, I am sending request with queries ($select and $expand), like: https://localhost:44383/odata/Student/aefea1de-9043-4c0b-88a2-04f77918ffef/Run?$expand=Address&$select=Id
It is returning me response like:
It is expected.
Now, I want when client sends request with some prefix, for example: abcRun, commandRun, .... it should use that route. To do that I created custom routing convention:
Now, I added this method on my controller:
Now, When I send request like: https://localhost:44383/odata/Student/aefea1de-9043-4c0b-88a2-04f77918ffef/abcRun?$expand=Address&$select=Id
It is returning this response:
I was expecting that both should return the same response, but it didn't. It seems expand is not working. Does someone know how to make it work?
Beta Was this translation helpful? Give feedback.
All reactions