In this repository I want to give a plain starting point at how to build a WebAPI with ASP.NET Core 1.0.
This repository contains a controller which is dealing with houses. You can GET/POST/PUT/PATCH and DELETE them.
Hope this helps.
See the examples here:
http://localhost:29435/api/house
http://localhost:29435/api/house/1
http://localhost:29435/api/house
{
"street": "MyNewStreet",
"city": "MyHomeTown",
"zipCode": 1234
}
```
![ASPNETCOREWebAPIGET](./_gitAssets/post.jpg)
## PUT a house
``` http://localhost:29435/api/house/5 ```
````javascript
{
"id": 5,
"street": "HAAALELUJAH",
"city": "HAAALELUJAH-TOWN",
"zipCode": 1234657
}
```
![ASPNETCOREWebAPIGET](./_gitAssets/put.jpg)
## PATCH a house
``` http://localhost:29435/api/house/4 ```
````javascript
[
{ "op": "replace", "path": "/street", "value": "PatchStreet" }
]
```
![ASPNETCOREWebAPIGET](./_gitAssets/patch.jpg)
## DELETE a house
``` http://localhost:29435/api/house ```
![ASPNETCOREWebAPIGET](./_gitAssets/delete.jpg)