Starters Web API

Monday, October 21, 2013

File New Project ASP.NET MVC 4 HelloWebApi, Select Web Api Template, Create class Employee in model folder

Create Employee controller with static field and seed some data

Add 5 HTTP Methods

Employees HTTP Get in the browser in json format

Issue post request in fiddler

View response

Change Post method to adhere to Http rules

View Response message

Modify Put to Http rules

View Request

View Response message

Delete Request

Response from server

A new Project: Create a blank solution named RunManager

Add a new ASP.NET MVC 4, Web API template project named RunManager.Web

Add a new ClassLibrary Project named RunManager.Data

Repeat above instruction name the project RunManager.Domain. Delete Class1 in both projects

Default Success Warning Important Info Inverse
B S W I ? O