Software systems to support machine-to-machine interaction over the Web, typically using HTTP requests according to REST principles

learn more… | top users | synonyms

1
vote
2answers
34 views

how to construct a dynamic LINQ to Entities ORDER BY clause?

I know how to construct the WHERE clause, but for some reason I'm not able to construct the order by clause. IQueryable<ShowList> query = from s in db.ShowList select s; if (title != null) { ...
0
votes
0answers
5 views

HTML5: capture audio AND video combined from web browser

I have seen a lot of tutos ans demos showing how to capture and record audio and video with a simple web page. Bests demos so far : Audio : http://webaudiodemos.appspot.com/AudioRecorder/index.html ...
0
votes
1answer
15 views

Web API's - How are they implemented?

Good Day I know very little about Web API's and how they are actually implemented. I know most Apps that have API's available, document on how it is supported and implemented to integrate with the ...
0
votes
0answers
14 views

What's the most efficient way to capture data from an API call and dump it into a dataset (or datatable)?

I have an API which returns data from a database table. This data comes back as an XML. What would be the most efficient way to capture the XML that is returned by the API and dump that data into a ...
0
votes
0answers
19 views

Azure automatic build failed

I have recently created project on visualstudio.com, and enabled continuous build on azure. I created web api project, and created some models and api controllers. Then I deployed it online and it was ...
0
votes
0answers
24 views

C# & WebAPI, Best practice: Post file and return id before upload is done

I want to do a MultipartContent post from an app to my WebAPI-controller. I want to return Accepted as HttpStatusCode and return id and a location-header with url to image. My solution is something ...
0
votes
1answer
64 views

Best practice for ASP.NET Web API design?

I'm currently trying to create a REST'ish web service backend with an ASP.NET Web API, EF5 Code First approach. Looking now for some advice to avoid the maybe most known novice errors. Whats the best ...
0
votes
1answer
17 views

Mobile API and params verification

I'm writing my first mobile API an I can't find the best way to validate params, entities etc. Now I do somethig like this before_filter :verify_adding, :only => :add and verify every param and ...
1
vote
1answer
31 views

Migrating WCF Services to ASP.NET Web API - reuse ServiceAuthorizationManager?

I am migrating some WCF services to Web API. Is is possible to reuse the ServiceAuthorizationManager or is it strictly for WCF?
0
votes
1answer
23 views

Self Hosting WebApi C# with WindowsForms error

I took a sample project webapi Self Hosting, the Microsoft page. The webapi starts correctly, but when accessing the address, it gives the error below. I'm using VS2010 and Windows Forms. With Console ...
1
vote
0answers
45 views

Code First Model POCO with Many-To-Many-Relationship

This is a little exercise I've been doing to get used to coding with the "Code First"-approach. I actually would have set this up faster if I would have done it "conservatively" "Database First", I ...
0
votes
0answers
5 views

DynamicValue in workflow manager

DynamicValues are used in the workflow manager 1.0.for using dynamicvalue in workflow , i want to reference microsoft.activities dll. i can pass dynamicvalue as a input from the client and get from ...
0
votes
1answer
27 views

how to grant write permissions to an web api application in IIS?

I simply have a web api application on IIS server that simply writes to text file on C:\FileStorage\test.txt however when I call this webservice I get the internal 500 error, after expanding the ...
0
votes
1answer
28 views

Fiddler - asp.net web api custom POST

I have a Backbone.js application and it's calling one of my WEB API custom POST method. Here is the code to my Custom POST WebApiConfig.cs config.Routes.MapHttpRoute ( ...
-2
votes
1answer
41 views

How to write an api for my python code

I have some python code which fetches tweets and does sentiment analysis of the fetched tweets. Now, I want to create an API, for the above mentioned, which can be accessed from a website. I have no ...
0
votes
1answer
30 views

Get object from Task and return from non async mentod

I've got a lower level library that one of the methods I've designed to be async and to return a Task. I know it is not a good idea to have async methods in lower level libraries, but there is no way ...
1
vote
2answers
66 views

How to write a Json file in C#?

Hi I need to write the following data into a text file using Json format in C#? BRACKETS are important to be valid JSON FORMAT [ { "Id": 1, "SSN": 123, "Message": "whatever" }, { ...
1
vote
1answer
19 views

Are there common clients incapable of working with http headers?

I'm implementing a RESTful interface and in researching I regularly come across a mention that some clients can't work with HTTP headers so we need to provide the option to replicate the headers in ...
0
votes
1answer
34 views

Null parameters doing HTTP POST from Ajax to Web API

I've read several StackOverflow posts about this and corrected my code several times but I cant get my webAPI post method to work. I'm trying to receive a post parameter but it comes always null. ...
1
vote
1answer
28 views

Creating a resource that can have multiple representations

Say I have a Widget resource which is made up of a Thingy and a Dooda. Thingys and Doodas come in various types and the combination of Thingy type and Dooda type will determine exactly what properties ...
0
votes
0answers
29 views

JSON.NET doesn't serialize hidden (shadowed) properties

I have two classes, one called BaseEntity, and one called City. Here are their structures. public class BaseEntity { [Key] internal object Id { get; set; } } And the City class: public ...
0
votes
0answers
36 views

How get user name in MVC WebAPI Controller

I have a Logon Controller Get method where I want to return the user id. I am using basic authorization and all work fine but in the Get method I am not able to get the correct user id. This is the ...
0
votes
0answers
27 views

Auto lips sync according to mp3/wav

I'd like to create animated heads in my web apps. It seems that CSS3 transition, animation and background features with a little help of javascript web API is all I need. Using xface looks like an ...
0
votes
1answer
38 views

JSON to dynamic - 'Newtonsoft.Json.Linq.JObject' does not contain a definition

I am using MVC WebAPI and passing in JSON object to a method that has parameter defined as dynamic. When using the method I am accessing the property of the dynamic object. It throws me this error - ...
0
votes
0answers
16 views

Fiddler cannot get response from long running method

I have used Fiddler to post manually to a method of my service for testing. And This is a long running method (taking several minutes). But after my method return, Fiddler didn't show the response ...
3
votes
2answers
59 views

What are the benefits of async webservices when not all parts of the code is async

I am wondering how much benefit you get from using async http requests if not all parts of your code is async. Lets consider to scenarios: 1) async http requests blocking on sync database calls, and ...
1
vote
1answer
26 views

How to exclude a property from DataContractSerialization When It Has No Data?

I'm using DataContractSerializer in my Web API application and in my action I'm returning a Data Type as below: public class Event { public string Name {get; set;} public IList<Division> ...
0
votes
1answer
35 views

SQL with MVC 4 WebAPI

I've found enough MVC 4 API samples that use a hard-coded array as the data source, but am having trouble finding a simple example with and SQL query. I have this model: public class Person { ...
0
votes
3answers
49 views

In-memory WebAPI HttpServer

I want to run tests against WebAPI project using a popular in-memory hosting strategy. My tests reside in a separate project. Here's the start of my test [TestMethod] public void ...
0
votes
1answer
38 views

WepApi post parameters are null

I'm new to WebApi and I have problem with the received post parameters. I want to populate jqgrid with data received from webapi controller method. The grid code is as follows: buildPostData: ...
0
votes
1answer
40 views

Deploying ASP.NET Web API to IIS 7

I developed a Web API and am trying to deploy it to my web server. Is there a forward steps to do that
0
votes
1answer
41 views

Run Windows Phone application that communicates with Azure Emulator WebRole Endpoint, on a Real Device

I Have two different projects: Windows Phone 8 Application, which I am running on a real, physical development device. Azure Cloud service, which contains one simple WebRole endpoint that contains ...
0
votes
1answer
41 views

Hottowel: How to make it work with breeze?

I am going through implementation Hottowel template and SPA Jumpstart source code from GITHUB. I have observed that Hot towel default template contains Controller which is redirecting it to Razor ...
0
votes
1answer
31 views

Web API Client Posting Not Hitting Database

Kindly help with ASP.NET MVC 4 Web Api project. I can retrieve JSON from my api controller without hitch, and posting seems to work (my UI is updated), but data is not hitting the database. // POST ...
0
votes
1answer
31 views

create ODataModelBuilder in web.api that has HasNavigationPropertyLink for FK int

I have to class for example: I want to create NavigationPropertyLink between Class B to class A when AId is a FK. I succeed to do it for collections but failed to do it for int. I want the ability to ...
0
votes
0answers
18 views

Request data auto conversion issue

when i submit a data from the client page, to the server method, i accept a Model as the parameter to my method, and i the data parameters correlate to the models variable names. mvc-4 converts the ...
1
vote
1answer
84 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
0answers
33 views

Web API: User.Identity.Name empty for just one action in a controller using BASIC authentication

I have had BASIC authentication set up on my Web API project for a while, using a custom written AuthorizeAttribute. The AuthorizeAttribute sets the Thread.CurrentPrincipal, upon authorization of ...
0
votes
0answers
49 views

HTML5 JQuery - How to hide service calls from 'view source'?

I'm making a HTML5, JQuery, CSS3 application. Was wondering if there is a way to hide the service calls from displaying to the end user if he chooses to do a 'view source'? Maybe, show as encrypted ...
0
votes
1answer
19 views

Passing Object as an parameter in Web Api

In Web Api How can pass object as parameter // GET api/values/{can be any serilizable object} public string Get(object data) { return "value"; } [Serializable] public class RequestData ...
0
votes
0answers
31 views

Unable to store in Session - Null reference

I have been toying with this for the better part of a week before posting, and have gone through countless threads and attempts to figure out why my HttpContext.Current.Session = null. Basically I ...
0
votes
1answer
74 views

Adding filtering to Angular Web API data

I have managed to return data from Web API that can be displayed using Angular. But now I need to be able to filter that data. I have created a directive that passes the parameter that I want to ...
1
vote
1answer
36 views

ActionFilter is not executing in WebApplication but executing in WebApi

I have created an ActionFilterAttribute public class LoggingNHibernateSessionAttribute : ActionFilterAttribute The purpose of the filter as name indicates is logging and opens and commits a ...
0
votes
0answers
38 views

Web API: QueryString model binding rules with DataAnnotations

I'm becoming quite confused about how model binding, and specifically model validation occurs in Web API. The majority of my actions receive objects through POST requests, and my models have a ...
1
vote
1answer
48 views

LifetimeScoping error in WebApi self hosted app and SimpleInjector as IoC

I read these (+ , + , + and + ) pages, but I connot figure out what should I do. I have this simple interface and concrete type: public interface IIdentifierGenerator { long Generate(Type type); ...
0
votes
0answers
157 views

kendo-ui grid serverfiltering column filtering dropdownlist

I am trying to get the kendoui grid to support filtering with a dropdownlist as the filter. I want users to be able to pick from a list of all available options, rather than requiring them to type in ...
-1
votes
0answers
21 views

Royal mail (UK) tracking api [closed]

i been searching the web to check whether Royal mail has an API interface for tracking the parcel status using reference no, but couldn't find any. there is a previous qn here but couple of years old. ...
0
votes
1answer
43 views

Redirecting route in ASP.NET WebAPI

This is ok: GlobalConfiguration.Configuration.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{action}", defaults: new { id = ...
1
vote
2answers
93 views

Implementing OData with WebApi and Mapped Models

I am trying to implement OData in WebApi. I am using the repository pattern and EF5 (in the backend) which is still consistent with all the examples I have found. Here is where thing go wonky. I am ...
0
votes
3answers
80 views

Web API - Simple Post model with collection property is not binding

// Server-side Model to bind public class CurrentPipelineRequest { public List<string> Usernames { get; set; } } // Controller [HttpPost] public HttpResponseMessage ...

1 2 3 4 5 7
15 30 50 per page