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.

learn more… | top users | synonyms

1
vote
0answers
11 views

Is this the right way to check the hash of uploaded file in web api?

I don't find any example about how to upload file and the file hash in one request. So I think I should break it to two requests. But I don't know if it is right to do like below. Client send the ...
1
vote
2answers
18 views

Web api is not call my dependency resolver

i've set up a very simple dependency resolver but it is not being called for my controllers. when I hit the HomeController GetService is called:( http:localhost:xxxx/) but (h ...
0
votes
0answers
28 views

OWIN with WebAPI and SignalR

I've got the following setup I'm trying to host signalr and webapi side by side in a tray application. The signalr part is working a treat and is connecting as expected, however I can never seem to ...
0
votes
1answer
43 views

Returning Errors in Web API

I'm developing a brand new REST API using ASP.NET Web API. Coming from a WCF background, I feel drawn to creating "error contracts" for my API. In this case, I'm not talking about unhandled ...
-1
votes
1answer
19 views

Need to accept Image (multipart form) as ASP.NET Web API POST and post it as BLOB Stream Byte[] to Azure

I've looked and looked and can't figure out how to accept an image (multipart form data) via the ASP.NET Web API and then upload that image most likely as a stream / byte array to a BLOB storage ...
0
votes
0answers
18 views

ASP.NET Web API CacheControl

I am trying to implement CacheControl headers from within a ASP.NET Web Api action ( I realise I can do this using other libraries, and in filters/handlers, but want to do some testing first). I am ...
0
votes
1answer
16 views

Web Api to Android app image transfer

I have an app that gets data from web api. I am returning some info and image from web api. I have 2 options for image and these are: Return image link(web address) and download it with async task. ...
0
votes
0answers
13 views

OData with webapi - navigation property

i am writing OData service which is built on WebApi asp.net, i am building my own EDM ODataModelBuilder builder = new ODataModelBuilder(); builder.Namespace = "Models"; ...
0
votes
2answers
47 views

How do I automate extending Knockout observables from entities returned by Breeze query?

I am using Konckout, Breeze JS, Durandal JS, ASP.NET Web API but my question is specific to Breeze and Knockout. How do I automate extending Knockout observables from entities returned by Breeze ...
0
votes
0answers
20 views

Orchard CMS. IAutofacActionFilter

I need to inject services into WebApi Action Filter (or into DelegatingHandler). With Autofac I can use IAutofacActionFilter (https://code.google.com/p/autofac/wiki/WebApiIntegration). But there isn't ...
1
vote
0answers
48 views

Web API as a Proxy and Chunked Transfer Encoding

I have been playing around with using Web API (Web Host) as a proxy server and have run into an issue with how my Web API proxy handles responses with the "Transfer-Encoding: chunked" header. When ...
-2
votes
1answer
31 views

web api not called from other server of asp.net mvc 4

I am using asp.net web api of mvc 4 in my application. When I am calling that web api from my computer It is getting data $.getJSON("api/MyAction/?dt=" + dateString, function (data) ...
1
vote
2answers
34 views

How to configure routes to have default Get and named Get method in WebApiConfig?

I want to create the following API: /api/verifications/1 /api/verifications/getfoo/1 Controller methods: public string Get(int id) { return "value"; } public string ...
4
votes
1answer
54 views

How can I stop .net JSON serialization from referencing previous elements?

Im using MVC/Web API from MVC 4.5 to serve a JSON service. All works well until it is required to expose a large JSON result which has certain amounts of repeating data. For those that arent sure ...
0
votes
1answer
24 views

XML Does not work for me in WebApi -Something to do with my Datacontracts

I am making a web api project and I noticed that one of my method dies when I try to use xml. I usually just use json when testing as this is my preferred method and it works fine. public ...

1 2 3 4 5 240
15 30 50 per page