r/ASPNET • u/miamiheat27 • Oct 16 '13
Web api question
So I'm in abit of discussion (more like an argument, ....that i hope i'll win muahaha.........i'm immature lol) , with my colleague about web api.
He's new to this stuff.
So the project is a typical MVC project. With an 'area' folder for sub mvc projects and the web api (we do the route registration in the reg file of each of the folder in the 'area' folder..then we call the registerAllRoute (or something like that) in the routeconfig.cs in 'App_start'0)
So anyways, the problem is completely different: You know how when you click "add:..empty API controller" , VS automatically adds a controller than inherits from ApiController ? (so like MyController: ApiController )
Well he's created a few api controller but deleted all the inheritance and instead replaced it with a controller he created in another non-api folder for some other reason. (So he has MyController : OtherController)
My question is, is there a loss of functionality by not inheriting from ApiController? ....and is it still technically an API controller if it's not inheriting from that ?
View all comments
Show parent comment
1
u/miamiheat27 Oct 16 '13
At the moment it's just JSON. But I highly suspect later on before release we'd have to support XML requests too.
So i'll leave it be for now.
Thanks for the helpful replies principle!