Replies: 1 comment
-
Hi @xclaim494, the 'key-fields' can be thought of as "primary keys." Wouldn't the primary key in this case be
https://learn.microsoft.com/en-us/azure/data-api-builder/rest#filter |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a View called 'Quotes_V'
i need to build a rest endpoint on the quotes View with parameters for "underlying", "option_type", "strike", "expiration_date" and the payload returned needs to be bid, ask (+ others)
I am absolutely new to this so please excuse my ignorance :
I got as far as building a simple config file with a key-fields like below :
when i run the rest URL I use :
http://localhost:5000/api/Quote/underlying/aapl/option_type/call/strike/100/expiration_date/2024-07-12
and the payload that is retuned is correct :
my question is : does the rest url look right ? I thought the parameters to query the fields needed to be structured differently ?
any guidance is much appreciated
example in curl I am used to something like this ?
curl -X GET "http://localhost:5000/api/Quote/?underlying=aapl&option_type=call&strike=100&expiration_date=2024-07-12"
Beta Was this translation helpful? Give feedback.
All reactions