Making OData call using Refit

-- -- 872 Reputation points
2022-02-02T01:55:38.237+00:00

I have an OData query as below.

http://localhost:65202/api/odata/StaffBookings?$select=ID&$filter=Staff/ID eq 1&$expand=Staff($select=ID),Event($select=ID,EventDate;$expand=Client($select=ID,Company))

How can I call it using Refit?

Thanks

Regards

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,196 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Gargavar 1 Reputation point
    2022-05-31T12:57:13.763+00:00

    Refit is recommended by Microsoft (I forget the actual link), so that's not a really helpful MSFT answer IMHO.

    Anyway, I found this answer for OData: https://stackoverflow.com/questions/70947350/making-odata-call-using-refit

    0 comments No comments