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

can a non-OData controller coexist in a project with OData controllers?

I've got an OData v4 project that I'm able to do most of what I want to do.  However, there are some custom queries that I need to provide, which I have not been able to successfully do within the...

View Article


Some questions on OWIN or Action mechanism

I implement my application half-successfully.(web api ,sql server, angular1)because all the request from client work very well, except one request:$http.put("url",{headers:{Authentication:"bearer...

View Article


JWT Authentication keeps sending 401

Hi,I cannot make JWT bearer authentication work.I've implemented a middleware that is sending me a token but when I send that token back to the service, I keep getting 401.Here's my Startup.cs: public...

View Article

Parsing out the request headers to isolate file content of an overriden...

Setup: I have a requirement to handle large file uploading from a web client to sql database.  I can't write to the file system so I can't use the out of the box MultipartFormDataStreamProvider and I...

View Article

Pull the windows ID of the client calling web API

Hello everyone, I'm new to WEB API concepts.  I had two different projects. WEB API, and UI(which is in jQuery,Anular and Bootstrap).  FYI, this is an intranet project. Every user is connected to the...

View Article


in what kind of scenario people use odata

please tell me few scenario where people like to use OData.i have seen people use OData along with web api but can't we use it for asp.net webform and mvc ?thanks

View Article

Having Difficulties with Web API Routing

I have a Web API and Client setup and am experiencing difficulties getting "it right".I am currently successfully initiating and handling GET and POST messages but not PUT and DELETE.My WEB API...

View Article

How Web API console application connect to IFD resource server(CRM server)?

Hello,I'm trying to build a Web API console application to consume my resource server(CRM)'s web service. But I have difficulty to connect my resource server, which is my CRM server(ADFS...

View Article


DELETE/PUT verbs result in 404 Not Found in WebAPI, only when running locally

I know this is a commonly addressed issue, and I've done everything that many posts here on SO suggest. When I try to delete a record using WebAPI (version 2) from my MVC5 front end running under local...

View Article


Unable to Post JSON to custom actions: Getting 415 Unsupported Media Types

I am posting JSON as :{"contractId":[1,3,5,7,9],"projectId":9 }I have configured custom action as:var deleteContracts =...

View Article

Regarding web api controller and action design

i want to design web api controller and action for customer in such a way1) user can see all customer details2) user can see specific customer details3) user can see specific customer's all orders4)...

View Article

Use WebApi To Call WebService For A Timespan

I have a webapi that accepts a URI to another web service.  The issue is that I need to allow the web service call to last a variable length of time.  For example, I need to pass in the URI and let it...

View Article

How to Retrieve json data from web Api json data

In Web Api Codepublic JsonResult Get() { _item = new CreateUserItem(); IEnumerable<LoginUser> data = _item.LoginUserList(); //return Json(data, JsonRequestBehavior.AllowGet); return new...

View Article


Web api url contained in email

My question is have a web api url be contained in email once it is clicked the API will get the data return the mvc view with loaded data. How would this be consumed in the MVC app to show the view? 

View Article

How OAuth is used to secure web api

normally these days many web site provide OAuth to login to their web api but how we can use the same oauth for web api ?client will send user id and pwd in plain text to web api and web api will send...

View Article


MEF Dependency injection to Self Hosted WebAPI v. 1

Hi,I would like to use shared freamework in WEB API v1 which uses MEF for dependency injection in SelfHosted WEB API .For this I created  a class derived from IDependencyResolver & implemented the...

View Article

Json Serialization

Hi,I have the following config in my sample project and i am using Oauth2.public static void Register(HttpConfiguration config) { config.SuppressDefaultHostAuthentication(); config.Filters.Add(new...

View Article


Web API Routes

I have a method in my WebAPI Controller that is defined like[HttpGet] [ActionName("userinfo")] public UserInfo UserInfo(string id) { . . . . }In the WebApiConfig.cs I have the following lines...

View Article

what is the usage of DelegatingHandler

just saw a class called DelegatingHandler . please some one tell me what is the usage ofDelegatingHandler class ?DelegatingHandler is specific to web api or it can be used for asp.net mvc too ?just saw...

View Article

InternalServerError setting up Castle Windsor

I am trying to use Castle Windsor, replacing the API Dependency Resolver.I was receiving a NotFound at one point over my Controller(s), but now I am receiving an InternalServerError.var container = new...

View Article
Browsing all 4850 articles
Browse latest View live


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