Web API wrapper or not
I make a lot of calls to my Web API from my MVC app and there are a few lines of codes that repeat again and again.Has anyone tried creating a Web API wrapper code?The challenge is dealing with input...
View ArticleWeb api 2.1 does not work with a chunked request
I have a application running correctly on web api 2.0 platform.When I upgrade web api to version 2.1, it does not work.The client request code such as :HttpWebRequest hRqst =...
View ArticleWebApi Basic Authentication not authenticating second time after 401 Challenge
I’ve implemented Basic Authentication via 2 different methods (AuthorizeAttribute -...
View ArticleThe context cannot be used while the model is being created while adding web...
Here are my modelspublic class Game { [Key] [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)] public int Id { get; set; } [Required] public string GameName { get; set; } public virtual...
View ArticleCustom action with OData V3 using webapi
Hello, I am working OData V3 endpoints using webApi.Technologies I have used: MVC, OData V3 endpoints using webApi, EF code first approach, c#Actually I am looking for a best way to achieve following...
View ArticleWeb API and (MVC or AngularJS)
Hi,For a new project my backend solution will contain a Web API (REST services) service layer on top of the other layers. The reason for choosing a Web API layer is to make the services available to...
View ArticleWeb API vs Web Sockets
I've use the web api from an html page to a VB controller using JSON to get data from sql server and it worked OK but seems a little slow for the first query. What, if any, advantages would Web...
View ArticleAPIExplorer Help Page with Custom Attributes
I would like to generate an APIExplorer Help Page for my ASP.NET Web API project to include my Web API Controllers which include custom attribute routes.Currently, APIExplorer by default only includes...
View ArticleWeb.API vs WCF
I've heard that Web.API and WCF are both for webservices.However WCF would for SOAP XML and Web.API for REST.Is that right ?Tx
View ArticleAuthentication mechanism for MVC4 Web APIs
We have Web APIs built using MVC4 API controller.We need to implement Authentication mechanism in such a way that for calling any APIs we does not have to pass password and identity will be provided by...
View ArticlePOst on wall using Facebook API and Facebook login authentication
Hi friends,I need to implement 'Post Comment or Post on wall' using Facebook API..In past I've implemented FB Login API in my web APP.. so I know 'Application creating' and 'consumer secret', App ID...
View ArticlePost using WebRequest and receive Json Data Response not working?
My code calls using a query string to the API (hosted at https://www4.hockeystreams.com/api#login) and returns successfull, but is always an empty string. Looking at the API, even a failed log in...
View ArticleOData v4 Attribute Routing
Hi,I'm building an OData v4 service with Web-Api 2.2. I have the following routes:/Products/Products('id') /Products('id')/Orders /Product('id')/Orders('id')And I would like to have the following...
View Articlehow to add mapping parameters to my web api service
Hi all, I am new to web api , I have created a new web api project using mvc4 template with web API (using VS 2013) , No I can see that there is a controller call : ValuesController.cs and when...
View ArticleREST API, USING C#
Hello everybody, I have a OPEN SOURCE REST API, http://124.124.128.96:54100/RestFMBA/RestServiceImpl.svc/json/ I want to save the data indata table using c#, i tried, but i am new in this. please...
View ArticleRequest headers missing in message handler when using CORS
I have been trying to fix this for a week and I have not got any further.This relates to a post I did last Saturday:...
View ArticleComma separated string as an input parameter.
Hi all, could some one please let me know how do we add comma separated list as an input string parameter using web api. eg : http://localhost:80/Uk,USA,CA etc.and then controller should...
View ArticleOptional string argument coming in as "null"
I've got a controller (FooController) with a method Get(string location = null), and a RouteAttribute("{location?}"), which would presumably say thathttp://localhost/foo/Global would call my Get with...
View ArticleWeb API two factor token authentication
Hi,I am trying to implement a two factor authentication for an angularjs web application that uses Web API 2 as backend.Authentication is currently done by requesting a authentication token from Web...
View ArticleQuestions about odata metadata, schema and EDMModel,
Hello,I face a problems using the OData stack, and consumming the data from breeze javascript client library.The problems is related to the way OData expose the associations between objects in...
View Article