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.
0
votes
0answers
6 views
iOS calling public web service using token authentication
We're building a iOS application which integrates with a web service for data storage and retrieval.
Currently there are several endpoints which require no authentication, meaning there is no login ...
0
votes
0answers
11 views
Profiling WebAPI controllers?
Is there a mini-profiler-like tool for WebAPI, where I can record how long transactions take serverside and just open up a rich interface that shows me which queries took longest and why? If not, ...
1
vote
1answer
15 views
Autofac - Mvc 5 beta - DependencyResolver fails to get type
I just converted an MVC 4 project to MVC 5 beta (and a Web Api project to Web Api 2) and I'm having some issues with DependencyResolver not being able to resolve the class I need.
Here is the class I ...
0
votes
0answers
11 views
Real time video streaming with ASP.net Web API
My task is to pick up a video stream from an AXIS M1011 IP-camera and relay it to multiple clients with a REST web service.
The reason I'm using such a thing is because the camera can hold only up to ...
1
vote
1answer
25 views
How to structure Web API routes with a MongoDB storage solution
My data structure is fairly simple but I am getting a little confused with how to structure my Web API controllers and routes.
In my data structure a City has a list of Venues and each venue has a ...
0
votes
1answer
25 views
WebApi Syntax Anomaly
The following code compiles, though I didn't try running it yet. Why is the space being accepted ?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ...
1
vote
1answer
27 views
Asp.net Web API - Where to Save Custom Handlers?
I just started to get into ASP.net Web API (created MVC 4 project, Web API application, in .net 4.5).
I need to make custom handlers in particular. All I know is that we create one (inherit ...
0
votes
0answers
9 views
flex connect to data http service of asp.net mvc4 web api show error on test InvocationTargetException:The URL is not valid
I am trying to connect to Http Service using flex wizard
The server side is Asp.net MVC4 Web Api, I used the templates to create simple CRUD controller.
The problem is that test operation gives back: ...
0
votes
1answer
14 views
RestSharp for PCL not returning data from ASP.NET Web API
I use this sample tutorial to create a simple Web API.
Then I downloaded the PCL version of RestSharp from here, compiled and tried to execute this test code:
[TestFixture]
public class ...
0
votes
1answer
28 views
ASP.NET MVC 4 Web API fails to map path containing the string “con”?
What is so wrong about the string "con"?
OK, my api route configuration is rather uninteresting:
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
...
0
votes
1answer
36 views
Posting complex types with WebApi Client
I'm using the WebApi Client to post to a WebApi test project. My post method on my controller accepts a single parameter (a model).
If I post using json, it all works. If I post using XML, the ...
1
vote
1answer
46 views
Two ASP.NET web applications - Cross origin request always succeeds without discretion
I created a new solution with two ASP.NET web applications, one MVC application and one Web API.
I wanted to access the api using a subdomain like api.hybridwebapp.com/values so I implemented an ...
0
votes
1answer
22 views
Using pocos to update database
Using ASP.NET WebAPI, and EF 5.0. I've created a data provider that will query the database and then return an object or collection of objects to my client, which happens to be an html5/angularjs ...
1
vote
3answers
138 views
WebApi: verification of json signing
I am working on and Web API in ASP.NET MVC4 using ApiController classes. The API will have authentication checks based on signature verification. Every request has to be signed using POST body and ...
0
votes
3answers
82 views
C# asynchronous method - help needed
I have an asynchronous method that consumes a Web API action. It appears to be stuck in a loop. My reasoning for this is because if I put a break point on line 1 of the catch block, and step into, it ...