Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need some clarification on MVC web api.

1. use of MVC web Api
2. how to implement MVC web Api
3. diff b/w normal MVC and MVC web Api
Posted
Comments
Mathew Soji 12-Nov-14 9:34am    
Just curious , have you googled and did not find any relevant help?
Mohan Subramanian 14-Nov-14 1:22am    
yes, i search but i can't get clear idea on that.

1 solution

Allrighty, in order, by depth of question:

1. A WebAPI app provides XML or JSON data, but not actual views to the client. All logic to parse the data into a view must be on the client side, normally as a JavaScript framework like jQuery or Angular.

2. WebAPI can be implemented on IIS, on OWIN Katana(which can self-host or fall under any standard webserver, middleware dependent), or as a self-hosted process. The IIS implementation is basically identical to an MVC implementation.

3. MVC serves views for consumption and is relatively heavy-weight. WebAPI does not serve views, and is light-weight, but requires more capability from the coder or a better separation of areas of responsibility from a team.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900