Tagged Questions
1
vote
0answers
93 views
How to invoke a Asp.Net Web API 2.0 http batch request using Angular?
I created a sample web api in Asp.Net Web Api 2.0 with Http batch support. http://blogs.msdn.com/b/webdev/archive/2013/11/01/introducing-batch-support-in-web-api-and-web-api-odata.aspx describes the ...
0
votes
1answer
29 views
Is using AngularJS and WebApi good for large complex systems? Questions also
We currently have an asp.net webforms web application, which needs updating in terms of look and speed. I think its time to redevelop it and was thinking about creating a webApi and change the ...
0
votes
0answers
35 views
Unable to retrieve Model properties using a breeze client on the first attempt
I have developed a WebApi 2 service using a Code First EF6 approach with Breeze on the server. I have used the EFContextProvider as specified in the breeze documentation. Also, using the ...
9
votes
3answers
1k views
Recommended authentication UX in AngularJS SPA with own and external (Google, FB…) profiles
I'm developing an Asp.net MVC + Web API + AngularJS SPA. I would like to have several types of registration/authentication:
own profile provider
external providers ie Google, FB etc.
Possible ...
2
votes
2answers
66 views
AngularJS and OWIN Authentication on WebApi
I have implemented OWIN token based authentication on my WebApi, I have also enabled CORS by calling app.UseCors(Microsoft.Owin.Cors.CorsOptions.AllowAll)
I can access various unsecured portions of ...
7
votes
4answers
13k views
Server-side paging+filtering+sorting for ng-grid with WebAPI
I'm trying to create a simple working example of using ng-grid with ASP.NET WebAPI. Thus, I started from the server-side paging example in the ng-grid examples page ...
-2
votes
0answers
20 views
How do i upload multiple pictures to asp.net web api with angular?
I need to upload multiple photos to my web api that looks like:
Post([FromBody]CarPostViewModel value)
the view model:
public class CarPostViewModel
{
public string Name { get; set; }
...
1
vote
3answers
56 views
Web Api and AngularJs
Straightly diving into the problem:
There is angularJs controller in which it calls a function defined inside a factory.
The factory function calls an Api POST action which accepts a ...
0
votes
2answers
19 views
Can't access local to Web Api from AngularJS
I've build Web Api and inside the project included a web site built with AngularJS. When I start the project it points to my web site and opens it. In AngularJS controllers I call methods from the web ...
0
votes
1answer
40 views
JSONP response from WebAPI to Angular
I have a simple angular controller like below:
angular.module('widget.controllers', [])
.controller('ProductController', ['$scope','$http', function ($scope, $http) {
...
0
votes
2answers
77 views
The requested resource does not support http method 'OPTIONS'.?
I am making the following request to an asp.net web api PUT method from my angular.js client:
var org = {
OrgId: 111,
name: 'testing testing'
};
...
0
votes
1answer
42 views
Any obvious reason why my breeze entity child nodes won't expand?
I can't figure out why my child nodes are either null or have a count of 0, even though there's associated data in the db.
Parent Class "Project"
public partial class Project
{
public Project()
...
0
votes
1answer
89 views
Angular JS + Cross Domain + Web API
I am planning to use Angular JS + Web API together for my application.
Technologies : VS 2013, .NET 4.0, MS Server 2003.
I have my Web API & Angular JS Client on two different domains ...
1
vote
1answer
67 views
webapi backend with pure javascript frontend, security
So now I am pretty much sold to the idea of having pure html+js front end where all processing happens at client side browser and the backend provides all the data in JSON/xml/other format and so on.
...
0
votes
2answers
28 views
Angularjs $resource get/post returning same result
I'm brand new to angular, so I'm probably doing things all wrong. My query is returning an array of objects like it should be. I then do a click event to test the post..it hits my web api just ...
0
votes
1answer
33 views
display binary image from db to angular partial view
I was trying to display image which is coming within the json object returning from an web api request. I'm able to display string, number and date/time in my angular partial but couldn't get the ...
4
votes
3answers
2k views
AngularJS + ASP.NET Web API Cross-Domain Issue
Moving forward with my mobile app development learning process, I've found a new obstacle: Cross-origin Request Sharing or CORS.
I am using a combination of AngularJS + jQuery Mobile (Cordova phone ...
0
votes
1answer
41 views
Circular Reference - AngularJS/EF/WebAPI
I'm using AngularJS, EF and WebAPI. I have a one to many relationship between ObjectA and ObjectB.
In the UI, I want to loop through a list of ObjectA and do something like:
<table>
...
11
votes
2answers
8k views
download csv file from web api in angular js
my API controller is returning a csv file as seen below:
[HttpPost]
public HttpResponseMessage GenerateCSV(FieldParameters fieldParams)
{
var output = new byte[] { };
if ...
1
vote
1answer
765 views
Download file from a WebAPI method using angularjs
In my angularjs project, I've an anchor tag which when clicked makes a get request to a WebAPI method. Now, I want the file to be download to the user after the request is successful. How do I do ...
1
vote
1answer
32 views
How should I send params to a Asp.Net WebAPI 2.1 data query method?
I have been coding like this. Sometimes there are one, two, three or more parameters:
$http({ url: '/api/Topic/Retrieve',
method: "GET",
params: {
subjectId: sub
}
})
The result ...
1
vote
2answers
244 views
AngularJs ASP.NET WebApi Authentication with Thinktecture
I´m trying to make an AngularJs web that sends login and password to an ASP.NET WebApi backend and login this user with Thinktecture.
I have Thinktecture working fine with other project, ASP.NET MVC, ...
-1
votes
0answers
22 views
How can I creat a SPA Angular Application with ASP.NET Web Api 2?
I downloaded this template and it works great.
http://visualstudiogallery.msdn.microsoft.com/5af151b2-9ed2-4809-bfe8-27566bfe7d83
But now I want to generate my server REST API, with ASP.NET WEB API ...
0
votes
1answer
46 views
How do you escape a . (full stop) or / so it doesn't change URL's meaning?
I have a Web API 2.0 service which defines a particular route:
/api/someEntityGroup/{entityName}
I'm calling this enpoint using Angular $resource service.
The problem is when user wants to provide ...
0
votes
0answers
43 views
Web Api User Identity returning null
I successfully log in as a user, and the user is then able to access [Authorized] parts of the site. The username even shows up in the top right corner of the site as they are successfully ...
6
votes
3answers
2k views
AngularJS + ASP.NET Web API + ASP.NET MVC Authentication
I am new to AngularJS and trying to evaluate it for my new web application.
Requirement:
I will have one ASP.NET Web API which will be consumed from an Android, an iPhone and from a web application ...
0
votes
1answer
78 views
Posting json data to WebAPI method in angularjs
$scope.items = {2: true, 4: true, 5: true, 7: true, 9: true, 10: true, 11: true };
How do I post the above json data to the following WebAPI method using angularjs's $http?
[Authorize]
[HttpPost]
...
0
votes
1answer
34 views
CHROME showing http response as cancelled
Using Chrome developer tools.I am getting a cancelled status on a request to a WEB API resource.(network tab)
Server : WEB API 2.1
Client: Angular $http request
The initial message referred to a ...
0
votes
2answers
59 views
check if user session has expired asp web api
I am experimenting in developing Single Page Application using Asp Mvc 4 / Web Api and angularjs.
I am using the mvc controller actions to return views and web api actions to return json.
As the web ...
0
votes
0answers
25 views
AngularJS $get/$resource doesn't work for Chrome and FireFox, Fiddler shows response
We are trying to use $get/$resource to get data from WebApi server call. We make a $get call before that and that works fine in all web browsers.
but this call doesn't work. Not sure what I am doing ...
-1
votes
1answer
30 views
Troubleshooting the mechanics of web.
I am trying to call an Web API Get method for getting the data but I am getting this exception::
{"Message":"An error has occurred.","ExceptionMessage":
"The 'ObjectContent`1' type failed to ...
0
votes
0answers
10 views
web api cors for api in app_code of .net website developed in .net framework 4.0
i developed my web api in the app_code folder of my asp.net web site(not MVC architecture) built on .net framework 4.0. now i have a separate single page application built using angular js and HTML ...
1
vote
1answer
40 views
Web API Date Only UTC conversion
I am working on a project that has an ASP.NET Web API service accepting a DateTime value from a Angular client using the AngularStrap date picker. We have a field that represents the date on which ...
0
votes
2answers
43 views
Angular POST to Web API doesn't pass data
I've been writing code against ASP.NET Web API for a while now with jQuery and I'm starting something new in Angular (writing against the same Web API backend.)
I'm POSTing to a method that will ...
0
votes
2answers
139 views
VS2013 Pro Update 1: SPA web app template error loading Microsoft.Owin.Security
I'm starting to play with VS2013 standard templates for SPA: I'd like to build a simple web app based onto Typescript, AngularJS and Bootstrap 3, plus WebAPI on the server side; among the standard ...
0
votes
0answers
19 views
ASP Web API Individual Accounts request Token: time to execution
i have a Web API project with Individual Accounts Authentication and Angularjs as frontend framework.
To get the Bearer Token, i send a request to the /Token path with user credential: the problem is ...
0
votes
0answers
43 views
Workout on restful services for single page applications
I am just a beginner in Angularjs. I have been trying for consuming WebApi service by angularjs. I am following this
1: ...
0
votes
0answers
44 views
Web API upload to a storage service stream request bytes
I am trying to create a Web API controller to post a file to a storage service like Azure storage for example. The web api client is an AngularJS web page. The issue now is the progress bar on the ...
0
votes
1answer
93 views
Angular (ng-grid) binding to WebApi results
I am stuck on why I cannot get my Angular grid (ng-grid) to display data coming back from my OData feed.
OData feed is using WebAPI and EntityFramework and is returning data just fine all the way to ...
1
vote
1answer
114 views
SignalR authentication failed when passing “Bearer” through query string
I'd like to enable authentication in SignalR while the server was hosted in ASP.NET WebAPI which I'm using OAuth Bearer authrntication and the client is AngularJS.
On client side I originally pass ...
15
votes
3answers
464 views
How can I send authorization information back to my client app when using AngularJS, WebAPI 2 and Oauth 2?
I have a AngularJS client application that uses javascript (not coffeescript or typescript) Oauth2 to authenticate against a WebAPI 2 application using the latest Identity 2. All the software in my ...
0
votes
1answer
82 views
AngularJS, where to add $http.get
I want to add my WebApi into AngularJS. My first attempt with the following controller worked:
function ListCtrl($scope, $http) {
$scope.data = [];
$http.get('/api/Auftraege')
...
0
votes
1answer
28 views
Breeze: getting collection of results that are wrapped in meta data object
I am attempting to use Breeze with AngularJS and a Web API back end which returns data in the following format:
API response format:
{
Count: 123,
Items: [
{
CustomerID: ...
0
votes
1answer
58 views
WebApi AngularJS “The request is invalid” Error
I'm working on a ASP.NET WebApi / AngularJS project. For now I want to display a table. Going to '/api/Auftraege' shows the Json Data. But '/api/Auftaege/index' brings this error:
{"Message":"The ...
0
votes
0answers
95 views
Asp.Net MVC with Web Api
I am looking for a good approach for implementing intranet Web Application using Web Api(2) with Asp.net MVC(5).
Application is designed in such a way that we use AngularJS SPA at client side and in ...
0
votes
2answers
99 views
Returning USERS from asp.net Identity 2.0 with Iqueryable
//GET api/Account/AllUsers
[Route("AllUsers")]
public List<IdentityUser> GetUsers()
{
var users = UserManager.Users.ToList();
return users;
//return query;
...
1
vote
2answers
76 views
AngularJS Insert in Web Api is null
I'm trying to put together my first CRUD app using AngularJS and Asp.Net Web Api. I have setup the controller with a newMember object:
$scope.newMember = {};
And then call the insert in the ...
0
votes
2answers
42 views
AngularJS callback function not working
I am using WebAPI on the server side:
public int Get(int productId)
{
//removed the actual logic to simplify the example
return 101;
}
The Angular:
$scope.showDetails = ...
0
votes
1answer
42 views
WEB Api not sending Enum to client
I have got one class "ApplicationSetting" inherited from "BaseSync" class which inherited from "BaseEntity" class.
Following is my class structure.
[DataContract(Namespace = ...
0
votes
1answer
20 views
Creating a server / service client
I have been developing an app that has to access a DB and return data has charts in a web page. since it is to be added to another software i had to create it as a local server / servce, using self ...