Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Latest commit

 

History

History
14 lines (8 loc) · 402 Bytes

README.md

File metadata and controls

14 lines (8 loc) · 402 Bytes

Sample ASP.NET WebApi

A simple Asp.Net WebAPI with CRUD Operations, using modelstate, OData enabled & returning correct statuscodes

I used mapper here to map from a DTO to an entity to show how to handle this case.

You can fire normal queries like GET/POST/PUT/PATCH/DELETE

But also do OData-Queries like

http://.../api/house?$orderby=Id desc

or

http://.../api/house/1?$select=Street, Id