Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I'm to develop a new ASP.NET project that will use HTML5 + jQuery to provide data...since the visual part (call views for semplicity) will probably be done by a partner and not direcly but us (we'll provide the services) what's the best approach for that kind of solution? Initially I was thinking of ASP.NET MVC4 but in that way we've to give our partner the whole solution that has our core-businness logic.... is there a way I can hide it? or it's best to expose a ASP.NET Project where I give via ApiController the data?

Another question in a MVC pattern can I divide my project into different assemblies?
Thanks
Posted

For first question, just write back-end code as web services and then they can be used by JQuery on client without them seeing implementations.
 
Share this answer
 
Web API is a good choice. You can just expose only what is required for them through the API service. You will have to just give them a sample client application that demonstrates how to use your API and an API overview manual that explain the fundamental concepts and design of your API. And an API reference manual that contains the list of the operations supported by your API. Also, the reference manual should describe the response formats and Lookup values (if any).

You will have to provide a sandbox environment for the developers to use your service to develop and test their application. Your API Service should be able to handle the following.. registering an external application, proper authentication & authorization, error reporting mechanism.

IMO, It is not a good idea to share the whole solution that has core-business logic.
 
Share this answer
 
Hello,
Thanks for your reply.... since I think we'll have to share the project in some way... I was just on my side planning of creating a WebApi service (really more than one)... my question was more like...how can I avoid of sharing the whole solution?It's better I use asp.net classical so they will develop the UI on their side and at the end I'll merge with my project... If I use MVC I'll have to share the whole project...
 
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