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
7 views
ASP.NET WebAPI: Generic controller for OData endpoint
I'm currently experimenting with OData endpoints in ASP.NET MVC 4 Web API. I like the concept and try to come up with efficient ways to use it in our project.
One question I have is the following: we ...
0
votes
0answers
16 views
How to remove prefixes from ModelState keys?
Is there a way to remove prefixes from ModelState keys? Consider a scenario, where you have an additional validation in your business layer classes, inside which you don't know about ModelState key ...
-1
votes
0answers
10 views
Console Application on Win Startup
I need to launch a console application (web api self host exe) on windows 7 64 bit boot.
Application needs:
working network;
possiblity to set up a COM interface with a software installed for all ...
0
votes
0answers
11 views
Self Host Web Api Unit Test With Area
I'm following some tutorials about creating a HttpSelfHostServer to test my Web Api. The issue I'm having is that my core API is inside an area and I cannot get my routes registered correctly.
...
0
votes
1answer
34 views
Custom Exceptions in Web API
Can someone help me in creating an exception which has the overridden message, source and stack trace values.
I tried using httperror in the HttpResponseMessage, but I need to add Stacktrace and ...
0
votes
1answer
31 views
OData in Web API Doesn't Follow OData Standard Specs
First of, the standard spec for OData response looks like:
{
"d" : {
"results": [
{
"__metadata": {
"uri": "http://demos/Orders(10248)",
...
0
votes
0answers
18 views
Custom Authorization using signalr PersistentConnection with websockets transport
I im trying to authorize a user for some connections in SignalR, my issue is that using WebSockets as the transport i cannot set HttpContext.Current.User without getting an exception. The ...
0
votes
2answers
28 views
Return a JSON string explicitly from Asp.net WEBAPI?
in Some cases i have NewtonSoft JSON.NET and in my controller I just return the Jobject from my controller and all is good.
but i have a case where i get some raw JSON from another service and need ...
0
votes
1answer
31 views
Is it possible to use SQL Server session state with a stateless web api application?
We have a stateless web api application where we only use the token(obtained on login) as an identifier, which we decrypt, determine user and perform the action.
We now need to store a rather big ...
0
votes
1answer
30 views
RESTful WebApi Filtered lists?
Suppose I have an object.
public class foo()
{
public int Id {get;set;}
public string Name {get;set;}
}
and a set of related objects.
public class bar()
{
public int Id{get;set;}
public ...
0
votes
2answers
35 views
breezejs with webapi not returning child entities when I use expand
I’m using WebAPI V4.0.30506.0 (this should be the stable version) with BreezeJs 1.3.5 and for some reason I don’t get child entities when I use the expand keyword. How can I get the child entities?
...
1
vote
1answer
28 views
How to deserialize JSON request from EXT.NET on ASP.NET Web Api side
I am trying to make HTTPPOST from webclient using EXT.NET libraries.
Here is how my call looks like
<ext:Button ID="dugmeOdobri" runat="server" Text="Odobri Narudžbe" Icon="Accept" >
...
0
votes
1answer
34 views
Data synchronization in a Chrome packaged app
In my pursuit to write a Chrome packaged app, I am struggling to get my data synchronized to the app so that it can be used in offline mode.
My data lives on a server and I access it trough a ...
0
votes
1answer
22 views
NetworkCredentials and Authorization in WebApi
I am having a few problems trying to connect to a ASP.NET webapi service (which I am running myself) from a sample console app using WebClient. The webapi is the typical sample site from MVC4:
public ...
1
vote
1answer
81 views
ASP.NET Web API routes not mapping to controller actions
I have an ASP.NET Web API application where I want to respond to the following routes:
1. http://localhost:1234/values
2. http://localhost:1234/values/123
3. http://localhost:1234/values/large
4. ...