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

I needed a clear clarification for my question.

I am having one application. It was divided in to 4 major projects.

Quote:

1.Libraries Projects: genericized classes for use across applications.
2.Windows services: (Agent, Broker).
3.Admin Interface: WinForms administrator interface. This is for admin users.
4.UI: Web interface for users submitting requests. This User Interface Implemented using vs2010 and extJS 3.5



Application works fine very well,
But the problem here know we got the latest request like we wanted to implement the API for the current application. The main reason for creating the API is, we wanted to use the above application by calling this newly implemented API in any other projects.
We can say by calling the API we have to submit the requests from any other applications

Any ideas or suggestions n above mentioned scenario kindly post me.

What I have tried:

Nothing tried as of now, now I am struggling where to start and how to start, whether do I need to create separate application or do I need to add the API project to the our current UI Project.
Posted
Updated 24-Nov-17 1:42am
v2

1 solution

It's mostly a deployment issue, if you want your api to coexist. Depends on also if it's serving any of the other applications in effect. so say your 2. 3. or 4. would also need to use it, that could advocate as to why to co-locate it, but often people choose to seperate the concerns, i personally have been going both ways, depending on aforemetioned, often we're serving http to devices etc and it makes sense not to have to deploy and debug seperate instances.

Anyway, most of us using .net use web api 2, unless .net core is an option. That's as easy as adding it from nuget and it works on webforms and mvc alike

NuGet Gallery | Microsoft.AspNet.WebApi 5.2.3[^]
 
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