Solved

ASP.NET REST Service without Controllers

Posted on 2013-06-11
8
169 Views
Last Modified: 2013-06-18
I've been reading many articles about ASP.NET using REST. The articles always use a MVC Web Service project template and use Interfaces and Controllers. I've also read postings which comment that MVC web service and REST is more a hybrid than a pure REST service.

What are the EE thoughts on this matter?
0
Comment
Question by:WorknHardr
  • 5
  • 3
8 Comments
 
LVL 74

Expert Comment

by:käµfm³d 👽
ID: 39238746
REST is an architectural style, and it is not tied to any technology, language, or web server. WEB API (formerly REST Starter Kit) is just Microsoft's approach at making REST easier to throw together. You certainly don't have to use MVC (a design pattern as well as a framework developed by MS that implements the MVC pattern) in order to build a RESTful service.
0
 

Author Comment

by:WorknHardr
ID: 39238810
Okay. Do you think the MVC project templates are also used for Entity purposes too?
0
 
LVL 74

Expert Comment

by:käµfm³d 👽
ID: 39238941
What do you mean by "Entity?"
0
 

Author Comment

by:WorknHardr
ID: 39239058
The examples I've downloaded all used the Entity framework to communicate with a database. Just thought maybe using a MVC web project made it easier.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 39239142
Entity Framework is not restricted to only being used with the MVC Framework, nor is the MVC Framework required to use Entity Framework. Both are templating/scaffolding utilities that help you create extensible and manageable applications. The reason you often see these two together is that the goals that each accomplish are often realized across many similar applications (and they are the hottest buzz words in MS land right now).
0
 

Author Comment

by:WorknHardr
ID: 39239346
Can you point me to a asp.net REST web service code example that doesn't use MVC web templates?
0
 

Author Comment

by:WorknHardr
ID: 39239644
0
 

Author Closing Comment

by:WorknHardr
ID: 39257225
thank you
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now