Web api not supporting POST method
In my web api controller i have a function with following codes
In my web api controller i have a function with following codes
I’m trying to post form serialized values to controller (Web API Self Host).
I cannot understand why the NameValueCollection is not correctly bound.
Client-side using jQuery:
I have an external company pushing data to one of our server, they are going to send JSON data. I need to create a POST api to receive it. This is what I have so far
I need to make a GET request to a method that contains Dictionary as a parameter. I browse through but could not find any kinds of information about how I could send Dictionary so my request hit to my method. Method signature is as like as below
From previous versions of the question, there is this: Browse website with ip address rather than localhost, which outlines pretty much what I’ve done so far…I’ve got the local IP working. Then I found ngrok, and apparently I don’t need to connect via the IP.
I have different plugins in my Web api project with their own XML docs, and have one centralized Help page, but the problem is that Web Api’s default Help Page only supports single documentation file
Do you have any idea how I can use, an access_token generated by the default asp.net web api 2 OAuth 2 authorization mechanism, in the url parameters. Currently I am able to authorize successfully by sending a request with Authorization header like this:
Let’s say we have 2 separate applications, a Web Api application and a MVC application both written in .NET 4.5. If you were to host the MVC application in IIS under the host header “https://www.mymvcapp.com/” would it be possible to host the Web Api application separately in IIS under the host header “https://www.mymvcapp.com/api/“?
I’m creating a web service using Web API. I implemented a simple class
We have onpremise web service (asp.net core mvc) deployed on local network machine. We are trying to call these WEB API using App Service deployed on Azure. But it is giving time out error or Task was cancelled error in case when we try to connect it using “HTTP” Protocol. In case of “HTTPS” it is giving “security error occurred error“.