834 B
834 B
Sample OData usage with ASP.NET Boilerplate
- This is a sample project to show usage of OData within an ABP based application. It uses Abp.AspNetCore.OData nuget package (https://www.nuget.org/packages/Abp.AspNetCore.OData)
- It also shows how to host a Web API in an empty web application.
How to test
- Restore all nuget packages.
- Set AbpODataDemo.Web.Host as startup project
- Open Package Manager Console, set AbpODataDemo.EntityFrameworkCore as default project and run Update-Database command.
- Run the application.
- Perform a GET request to http://localhost:21021/odata/Persons to get list of people.
- Perform a GET request to http://localhost:21021/odata/$metadata#Persons to get person metadata.
Documentation
See http://aspnetboilerplate.com/Pages/Documents/OData-AspNetCore-Integration