Quantcast
Channel: Web API
Browsing all 4850 articles
Browse latest View live

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 Article


Web 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 Article


WebApi Basic Authentication not authenticating second time after 401 Challenge

I’ve implemented Basic Authentication via 2 different methods (AuthorizeAttribute -...

View Article

The 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 Article

Custom 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 Article


Web 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 Article

Web 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 Article

APIExplorer 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 Article


Web.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 Article


Authentication 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 Article

POst 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 Article

Post 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 Article

OData 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 Article


how 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 Article

REST 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 Article


Request 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 Article

Comma 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 Article


Optional 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 Article

Web 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 Article

Questions 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
Browsing all 4850 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>