I am quite new to Web API . Though I understand the concepts and how they work. But what I really would like to know is the best practices for creating Web API for our project.
User Scenario
I need to create an application that will allow people to search for Properties available from our database. There will be a web application(MVC4), Jquery Mobile application and possibly external web applications.
Wat are the recommendation on creating Web API's? Do you recommend to create a API controller inside the MVC4 application, or would you recommend to create a seperate Web API solution within the project or would you recommend an entire different project
just to host the web api.
The main purpose of Web API is to serve more and more clients on multiplatfom. So it's recommended using Web-API on a separate project. For internal functionality test and help or manual reference of our Web API we can make it at the same project.
libin.eferns
Member
40 Points
55 Posts
Web API architecture - Best Practices
Jul 07, 2012 02:16 AM|LINK
I am quite new to Web API . Though I understand the concepts and how they work. But what I really would like to know is the best practices for creating Web API for our project.
User Scenario
I need to create an application that will allow people to search for Properties available from our database. There will be a web application(MVC4), Jquery Mobile application and possibly external web applications.
Wat are the recommendation on creating Web API's? Do you recommend to create a API controller inside the MVC4 application, or would you recommend to create a seperate Web API solution within the project or would you recommend an entire different project just to host the web api.
Look forward for your replies
jsiahaan
Contributor
2550 Points
645 Posts
Re: Web API architecture - Best Practices
Jul 07, 2012 02:47 AM|LINK
Hi,
The main purpose of Web API is to serve more and more clients on multiplatfom. So it's recommended using Web-API on a separate project. For internal functionality test and help or manual reference of our Web API we can make it at the same project.
Just a small help and have fun.
Indonesian Humanitarian Foundation
libin.eferns
Member
40 Points
55 Posts
Re: Web API architecture - Best Practices
Jul 08, 2012 12:43 PM|LINK
Thank You.