JDEE8297
asked on
developing a restful server in .net
What is the best approach to develop a restful service application, I read some stuff about asp.net web api, but was wondering if anyone has gone that approach on it or what else is out there.
If you are familiar with MVC, then WebAPI is nice to use. Even if you're not familiar with MVC, I think WebAPI makes rest pretty straight-forward.You can do REST in WCF, buf it takes a bit of setup.
ASKER
So if I was building something from the ground up, and wanted it to be restful, web api may be the way to go. I am at the very start of this project, and I have being playing around with trying to set up restful services using various examples, and I keep coming back to web api when I am doing my research.
Is there anything about WebAPI that you don't understand? Have you successfully set up a WebAPI project?
ASKER
Another question on this same topic, any time I have worked with the database, I have used datatables. Is that a no no and if it is a no no, what is a better approach. Was looking EF but that just seems like a lot of set up and wondering how efficient it is.
I really want to keep all of the database related things inside stored procedures, and not so much in backend application code (c# or vb.net).
I really want to keep all of the database related things inside stored procedures, and not so much in backend application code (c# or vb.net).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your help so far on this, it has been greatly appreciated, I am starting to like this new web api more and more. Although, I will admit this MVC approach is a little confusing to me.
For example I have two public methods in my controller, where one of them takes a string as the parameter and another takes a numeric value. How does the webapi know which one to route my traffic to the appropriate method?
For example I have two public methods in my controller, where one of them takes a string as the parameter and another takes a numeric value. How does the webapi know which one to route my traffic to the appropriate method?
ASKER
thank you for your help, greatly appreciated.