C
C#2y 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
Kouhai2y ago
If you use a vue frontend you would use web api as the backend And call your endpoints from the vue frontend
Dasic
DasicOP2y ago
So, I don't need MVC Controllers at all, do I?
Kouhai
Kouhai2y ago
well, MVC is for server side rendering with razor pages. You wouldn't use it with Vue
Dasic
DasicOP2y ago
Thank you so much!
Accord
Accord2y 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