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

Single WebAPi route, but return multiple entity objects

I have situation where I have to make a call to "api/Department/departmentId" from the Client(asp.net webforms) . I have 1->many relationship between Department and Emplyoee Table.In webApi , I have...

View Article


MSDN documentation - HttpRequestMessageExtensions.GetCorrelationId Method

Hi,According to the MSDN documentation for HttpRequestMessageExtensions.GetCorrelationId Method...

View Article


DefaultHttpControllerSelector not finding any controller, "Not Found" response

I am having trouble using the DefaultHttpControllerSelector and HttpConfiguration classes. Take a look at the simple example code below.I am trying to create a DefaultHttpControllerSelector that will...

View Article

WEB API call from KendoUI on IE not working

HiI'm new to Asp.Net Web Api. I just created a web api method (hosted on a different server) and trying to call it from KendoUI. Its all working in Chrome and FireFox but not on IE. Please see the code...

View Article

Best method to pass properties from AuthorizationFilterAttribute to controller?

Does anyone know the best method to use to pass properties from the AuthorizationFilterAttrbiute to the controller? The properties include the customer's account and requestId.

View Article


Odata query string parser

Hi guys, I'm learning odata. Is there a c# parser to parse the query string? Thanks for any information

View Article

What happened to HttpConfiguration.EnableSystemDiagnosticsTracing ?

I am using the new WebTools 2012.2, and the help files says to add config.EnableSystemDiagnosticsTracing to your Global.asax.However, this method doesnt exist on HttpConfiguration.

View Article

Removing redundancy from Call to Api

Hey I have written code to call an Api from mvc but I wanna pass three different models to that method on from different method call but i want to make code more lesshere is my code how to make it...

View Article


odata web api $format

How to change the format of my current web api data to return xml format?

View Article


Antiforgery Token in Web Api and Angular

Hello,Does anyone knows how to use Anti Forgery Tokens on a Form that calls Web API using angular?I was trying to find a Nuget package for that and no luck ...Thank You,Miguel

View Article

Thread safety of HttpConfiguration.Services instances?

Since services are cached in a ConcurrentDictionary which allows for non-blocking reads, are dependencies of user-registered services, (for example an IExceptionHandler) therefore open to issues when...

View Article

Update User Login information from api

I am registering user from mvc which call api to register it so i need after registration the api must update the user login information in login partial page please help me ho to do it

View Article

Best way to handle READ and READWRITE permissions on Client side in JS/WebAPI...

Hi everyone,I am new to Web API and have the following scenario: ASP.NET / WebAPI Web Service + HTML/Javascript applicationAssume you have a simple database table (TABLE1) with customers (name,...

View Article


Register User in MVC from web api database in two different solutions

Hey i want to register user from mvc that would call the method of api in other solution where as i would send the user name and password from mvc and get that in api i made the method for mvc but i...

View Article

Questions about Web API URL naming

me and my colleague are having a discussion about what to put in our Web API URL. What came up was we are unsure if it is OK to put the user ID (a surrogate key in DB) in a URL....

View Article


From WCF (WebServiceHost2) to Web API

Hello, We are inheriting a code-base that implements REST services in WCF (WebServiceHost2) and we would like to migrate to Web API. The problem is that for a while we will have to co-host both...

View Article

Validating a Model Object

I need to Validate WebAPI Model object. It  contains EmployeeName  property which needs to be validated. Validation is as follows...."Data entered in the field must be letters of the alphabet, hyphens...

View Article


Which project template to use for building a new Restful web services?

Hi, I'm using VS2012.These 2 links shows 2 different project templates to use for building a Restful API.  Which one should I use and follow?  The first one creates a MVC project and the 2nd one I...

View Article

Registration and Logging Using Owin in Web Api

Hey can some one explain when i did registration of user in webapi, where the data passed by mv to web api so how can i return token to mvc and made the user login

View Article

Yahoo contacts api request.

i am developing a web application through which users can share their yahoo contacts with it. I am implementing it in asp.net and C#. I have successfully done the auth part given at yahoo docs...

View Article
Browsing all 4850 articles
Browse latest View live


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