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
10 views
Entity Framework 5 with Web API
I am looking for the simplest, best-practice approach to building a web app using EF database-first approach and the MVC 4.5/Web API. My application will use the angular framework to make ajax calls ...
0
votes
0answers
9 views
How to get actual objects from C# Web API DbSet?
I'm trying to get a list of 'recent' donuts that have been added to the box (database) since I last checked. I'm a fatty and want some delicious noms. The problem: the server is giving me JSON that ...
0
votes
0answers
12 views
WebApi JSONP Performance Hits
I've got to make some cross domain calls to a hosted webapi service that we have from a javascript client so I have hooked up the WebApiContrib.Formatting.Jsonp formatter to handle this and it works.
...
0
votes
0answers
6 views
What is the difference between an Azure Web Site and an Azure Web Role (July '13 edition)
Context:
Building new multi-tenant application using Azure SQL, Azure Table Storage, EF, Web API, MVC, Azure Cache, Possibly Worker Roles -- all the usual suspects:
Please see prior question ...
0
votes
1answer
14 views
Authentication error in Node.js
I am trying to make a WebAPI call from server script and i am getting authentication error:
This is how my server.js looks like:
var app = require('http').createServer()
, io = ...
0
votes
3answers
33 views
Flags enum and JSON in JavaScript
I have many C# enums, and some of them have flags enabled. For example:
[Flags]
public enum MyEnum
{
item1 = 0x0000,
item2 = 0x0008
}
I cloned this into JavaScript with something like this:
...
0
votes
2answers
44 views
how to pass Parameters Info from the Body in MVC Web APi?
I'm trying to pass a lengthy string through my POST methond from the actual body, it works perfectly fine if I pass it through url but I dont know what to change so I can insert data from body ...
0
votes
1answer
8 views
asp.net web api odataNo IdLink
I'm using Odata with web api and get this error:
<m:innererror>
<m:message>
The 'ObjectContent`1' type failed to serialize the response body for content type 'application/json; ...
0
votes
1answer
18 views
How to validate token, in ASP.NET Web API 2, which is provided by new OAuth 2 end point of ADFS that is part of Windows Server 2012?
Recently, MS have spoken in build 2013 conference session titled "Securing Windows Store Applications and REST Services with Active Directory" and video posted at ...
0
votes
2answers
24 views
jQuery ajax - call various MVC controller actions
I have a controller (RequestsController) with several actions (all taking one parameter)
For example:
public List<Models.AcceptRequests> GetAllAcceptRequests(int passedId)
public ...
0
votes
1answer
41 views
WebAPI store variables for specific user
I've build a simple intranet application using ASP.NET MVC4 that allows users inside network to view some resources. Application is build mostly in ExtJS and WebAPI controllers.
My authorization is ...
0
votes
2answers
41 views
Self terminating Self-hosted WebAPI
I have a console app which is self-hosting the ASP.Net WebAPI. I would like the console app to self terminate based on a specific call to the WebAPI.
The console app is heavily based on the example ...
0
votes
1answer
18 views
CORS with WebAPI sometimes works, sometimes doesn't
I've used the following:
http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api
As suggested here:
Enabling CORS with WebAPI PUT / POST requests?
to enable ...
2
votes
1answer
56 views
WebApi and Api Key Validation location
I am working on a public REST API. Clients that are registered will be given an API key to use the API, from their servers (not from a browser). A single client can also have multiple keys, ...
0
votes
1answer
21 views
Working with Breeze + ViewModels
In my app I have my domain layer and web interface (other layers I will not go into details).
My views, working with ViewModels objects, and the database persist domain objects.
To convert a ...