-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Open
Labels
area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesfeature-routing
Milestone
Description
Describe the bug
Supposed I have the following action in the controller:
[HttpGet("GetProductPrices(organizationId={organizationId},partId={partId})")]
public IActionResult GetPrice(string organizationId, string partId)
{
// ....
}
The following request works fine:
https://{{url}}/GetProductPrices(organizationId='10001',partId='100000-01') <-- Working
The following request can't work. (Be noted, there's a whitespace between parameters)
https://{{url}}/GetProductPrice(organizationId='10001', partId='100000-01') <-- This does not work and gets a 404 Not Found response
I'd like to learn :
GetProductPrices(organizationId={organizationId},partId={partId})
is correct pattern?- A whitespace between parameters is not allowed?
- If I put a whitespace between route template, For example,
GetProductPrices(organizationId={organizationId}, partId={partId})
, we have to match the whitespace in the request URI?
zjomzjom
Metadata
Metadata
Assignees
Labels
area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesfeature-routing