REST API path parameters different types

When you hit one of your above mentioned endpoint, it will give error i.e. “The request matched multiple endpoints.” You can solve this by specifying the type like below

[HttpGet("{integerId:int}")]
public IActionResult GetObjectByIntegerId(int integerId) {
}

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top