Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3655

How to call POST API method which is hosted on IIS

$
0
0

I have a following http post and GET methods in MVC API Transaction controller;

    [HttpPost]    public void ImportTransactions()    {      // import transactions    } [HttpGet]    public IHttpActionResult IsApiAlive()    {        return Ok();    }

API service is hosted on IIS, when i run the following URL in IE or Chrome to POST data then some how service is calling GET method not post method which is odd;

http://myserver01/Ftransactions/api/Transaction/ImportTransactions

URL works fine in postman when i select POST option from the dropdown.


Viewing all articles
Browse latest Browse all 3655

Trending Articles



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