C
C#16mo ago
Dasic

❔ Web API, ASP.NET and Vue.js

Please, can anyone explain for what I should use Web API? I cannot figure out when I should use MVC Controllers and API Controllers. Can I build a whole project without MVC Controllers at all or is it a code smell? I mean something like Vue.js + ASP.NET back-end
5 Replies
Kouhai
Kouhai16mo ago
If you use a vue frontend you would use web api as the backend And call your endpoints from the vue frontend
Dasic
Dasic16mo ago
So, I don't need MVC Controllers at all, do I?
Kouhai
Kouhai16mo ago
well, MVC is for server side rendering with razor pages. You wouldn't use it with Vue
Dasic
Dasic16mo ago
Thank you so much!
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts