ASP.NET Web API is a framework for building HTTP services for clients like browsers and mobile devices. It is based on the Microsoft .NET Framework and ideal choice for building RESTful services.
62
votes
10answers
16k views
JSONP with ASP.NET Web API
I am working on creating a new set of services in ASP.MVC MVC 4 using the Web API. So far, it's great. I have created the service and gotten it to work, and now I am trying to consume it using ...
67
votes
6answers
18k views
How to secure an ASP.NET Web API
I'm wanting to build a RESTful web service using ASP.NET Web API that third-party developers will use to access my application's data.
I've read quite a lot about OAuth and it seems to be the ...
99
votes
10answers
45k views
How do I get ASP.NET Web API to return JSON instead of XML using Chrome?
Using the newer ASP.NET Web API, in Chrome I am seeing XML - how can I change it to request JSON so I can view it in the browser? I do believe it is just part of the request headers, am I correct in ...
19
votes
1answer
13k views
ASP.NET MVC 4 Web API Authentication with Membership Provider
I have an ASP.NET MVC 4 Project using the Web API. On the controller I have set the class to require authorization using the [Authorize] attribute. For Authentication I am using the ASP.NET Membership ...
18
votes
5answers
3k views
WCF Service or Web API
I'm going to be working on a project that involves a number of elements:
ASP.NET MVC website
C# console application
iPhone App
To get all these separate applications talking to the database, my ...
11
votes
4answers
5k views
ASP.NET Web API returns 404 for PUT only on some servers
(cross post from Server Fault. I realised afterwards that I probably should have asked on stackoverflow first)
Ok, I have been racking my brain and the internet for a solution to this. I just can't ...
143
votes
1answer
19k views
ServiceStack vs ASP.Net Web API
I am wanting to write a new REST style API and have looked at ServiceStack and quite like it. However, I have seen that Microsoft has released the ASP.Net Web API project as part of the new MVC 4 ...
36
votes
4answers
15k views
Mvc 4 vs. Wcf Web Api
What are the pros and cons of using each technology?
WCF Web Api is now merged into Asp.net
Asp.net web api now supports self hosting.
I still imagine if I want to expose multiple protocol schemas ...
9
votes
4answers
11k views
Accessing Session Using ASP.NET Web API
I realize session and REST don't exactly go hand in hand but is it not possible to access session state using the new Web API? HttpContext.Current.Session is always null.
54
votes
2answers
12k views
ASP.NET Web API Authentication
I'm really depressed by googling a lot on Web API authentication. I need to know how to authenticate a user from a client application while using ASP.NET Web API. I have seen all the videos on its ...
23
votes
6answers
13k views
Single controller with multiple GET methods in ASP.NET Web API
In WCF Web API I had a class of similar structure:
public class SomeController : ApiController
{
[WebGet(UriTemplate = "{itemSource}/Items")]
public SomeValue GetItems(CustomParam parameter) ...
22
votes
4answers
10k views
Whats the difference between WCF Web API and ASP.NET Web API
Ive done a bit of work in the past using WCF WebAPI and really liked a lot of its features, Im just playing with ASP.NET Web API at the moment and it seems completely different (IE completely removed ...
9
votes
3answers
5k views
Ember-Data: How do “mappings” work
I'm currently trying to put something together with ember + emberdata + router + asp.net web api. Most of it seem to work, however I stuck in an error message I get when ember-data tries to findAll ...
7
votes
2answers
6k views
How does a method in MVC WebApi map to an http verb?
In the 5-minute video at the following link, at the 1:10 mark, Jon Galloway says that adding a method called DeleteComment to his CommentsController controller class will by convention map ...
39
votes
4answers
10k views
WCF vs ASP.NET Web API
I've spent a few months trying to grasp the concepts behind WCF and recently I've developed my first WCF service application.
I've struggled quite a bit to understand all the settings in the config ...