Dynamic Web API works great but I was wondering whether dynamic OData is also available or not?
If it is available, please share the link for ASPNET Zero documentation.
I checked ASPNET Boilerplate documentation and it looks like we have to write OData for every entity unlike web api which are generated automatically.
Thanks
3 Answer(s)
-
0
Hi @smartlayer
ABP helps you to create OData Controllers but they are not dynamic. You can check below documents for details;
MVC 5.x: https://aspnetboilerplate.com/Pages/Documents/OData-Integration ASP.NET Core: https://aspnetboilerplate.com/Pages/Documents/OData-AspNetCore-Integration
-
0
Hi @ismcagdas
I was able to follow that article and successfully implemented it. But it looks like there is no authentication to odata this way. Any idea on how we can add authentication to it?
-
0
What do you mean by no authentication?
If you mean authorization, see AspNet Core - Authorization Filter:
- Use the AbpMvcAuthorize attribute on actions or controllers to check the desired permissions before the action execution.