C#C
C#3y ago
muskagap

❔ How should I correctly interact .NET Core App with client-side app?

Hello guys. I'm trying to resolve some issue and would like you to explain me how some things work. I created Vue2 app. I also created .NET Core app which serves as my backend. Now I want both apps to interact with each other. I know that they need to communicate through API. However, I have more technical questions regarding how technically this should be done (I developed Vue app but I think the pattern works for Angular, React and other frameworks):

  1. Does my backend need any API proxy/API gateway to make calls through axios from Vue? So the question is if axios should communicate to API gateway or directly to services endpoints (every single API service)?
  2. Should I need to use other tools e.g. NSwag to auto-generate code which interact with backend API? Is NSwag code a kind of API Gateway in this case?
Was this page helpful?