Solved

ASP.NET REST Service without Controllers

Posted on 2013-06-11
8
172 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 75

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 75

Expert Comment

by:käµfm³d 👽
ID: 39238941
What do you mean by "Entity?"
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 
LVL 75

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

735 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