Thursday, April 04, 2019

Handling ASP.NET Web API Query String Parameters

Parameters passing in the query string of an ASP.NET API GET request don't really pass in a general fashion; parameters have to be specified explicitly in the routing configuration methods. The parameters you specify on your controller action get mapped to parameters sent in the query string of a GET request. In this article, I will describe how to pass multiple parameters in a query string of a Web API URL.

No comments:

Post a Comment

Mocking API Responses in Azure API Management Portal

A mock API imitates a real API call by providing a realistic JSON or XML response to the requester. Mock APIs can be designed on a developer...