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

EF6 Repository - paging problem

Hi guys, I need help, because I have no idea how to solve it. I need to store "recipeId" ,line (string sortOrder = "recipeId"), in GetAsync in something else, not in string, but I have no idea in what...

View Article


Link creation with dates

Within a Json response I am returning a link to a URL using UrlHelper as follows:Url.Link("DefaultApi", new { controller = "MyController", time = model.Time } )This is creating a query string parameter...

View Article


ApiController -- Issues installing service on Windows 2008 server

Using Visual Studio 2012, I have built a Windows service using the latest version of OWIN self hosting (as of NuGet today).   It was built on a Windows 8.1 machine and installs & runs ok on this...

View Article

Using HttpClient in ASP.NET?

Newbie question: what application types or VS2013 project types are required to use HttpClient?I created a console app that makes a PostAsJsonAsync() call with no problems and returns the expected...

View Article

HTTP Error 500.19 - Internal Server Error Cannot read configuration file

I have been searching for this error all over the internet but no matter what I try to fix this problem nothing actually works. And the detailed message that I got after I copied a url from fiddler and...

View Article


API URL issue

Hi,I am trying to create REST API using asp.net 4.5.  As i am using version 4.5 i thought of writing Router prefix on controller level instead of  mentioning in  WebAPIconfig level.Below is my sample...

View Article

How to encode slash in URL

I would like to use an identifier XX/YY in a url. However, ASP.NET Web API responds with 404 as long as a slash is contained. I tried the following URL:api/someresource/XX%2FYY //slash '/' encoded as...

View Article

Multiple ApiController in a Single Web API

Is is possible to create multiple ApiController  class in a single web api application ? If yes , How we will defile the route for each api controller class how we will call it?

View Article


XML serialization error for typeless OData Feed

Hi, I was trying to set up an OData v3 feed with web api using the tutorial located at the following...

View Article


API calling

We are going to design a web api  like this http://api.abc.xyz.com/    and want to PUT and POST some data in the form of Json for manipulation on DB side. How we can sen the data for the PUT and POST....

View Article

OWIN Authentication + Batch requests

We have a WebApi application with batch routing and OWIN for authentication. The OWIN authentication pipeline works fine when accessing our API routes directly, but fails for batched requests.For...

View Article

Help Needed in API authntication

Version : asp.net 4.5 Web API2Hi,I am creating web API2 to be used by users.I need to validate the user against my database. So i thought of going with basic authentication. Is it good idea? if you...

View Article

Compile on the fly and faster debugging in vNext?

How do I get compile on the fly and faster debugging of Web API in vNext? I tried to read tutorials but they focus mostly on MVC. I am using Angular SPA and my issue is that Web API debugging was slow....

View Article


Response format from Web API 2.2 with OData 4.0

I've developed a Web API using EF6 for my data model and OData Controllers.  I am using the Visual Studio wizards for creating the Entity Model and for adding Web API 2 OData Controller with actions...

View Article

Weird errors in an sample vNext Web API app

So I have two identical solutions with just one basic controller, but one is full of errors starting from using System; statementhere is a link if someone can have a look...

View Article


Attempting to fill a GridView with Data from a Web Service using Ajax

Attempting to use AJAX to populate my Gridview, keep running into roadblocks.  I have a simple grid which should be filled on pageLoad by ajax.  Not matter what I do, I get a FILED Alert from my ajax...

View Article

How To Use Web API As A Web Service?

I have built a desktop application that allows the employees at our store to enter data.  We want that data to be stored in our remote central database.  My supervisor said he thinks the best way to...

View Article


WEB API OR MVC API in VS2010

Hi,I have a development environment in VS2010. Now  we have requirement to create a WEB API OR MVC API project in our Solution which is running on .Net Framework 4.0.Can we create WEB API OR MVC API in...

View Article

OData Controller returns 406 for types in dynamically generated assemblies

Hi,Thanks in advance.I am trying to create a type with System.Reflection.Emit and set up the model by calling something like...

View Article

Help Needed in Basic Authencation

Version, Asp.net 4.5Hi, I am trying to implement Web API and for the authentication i am learning  two ways. Basic and taken based. Just started with basic authentication. FileName :...

View Article
Browsing all 4850 articles
Browse latest View live


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