GET requests submitted to the endpoint /accounts/{id1]/performance{id2} return an error 415 - Unsupported media type response.
To Reproduce
Steps to reproduce the behavior:
Build using commit 17a05daebe4a1981b5cccc7e9f084538eaf0161e.
Attempt to access endpoint /accounts/{id1]/performance{id2} where known values exist for id1 and id2.
See error 415 response.
Expected behavior
The response should return the matching records in JSON format.
Additional context
It looks like the issue may be the default routing when using the HttpGet attribute in ASP.NET Core. Compare the use of HttpGet in ApiController versus ApiCollectionController.
Describe the bug
GET requests submitted to the endpoint
/accounts/{id1]/performance{id2}
return an error 415 - Unsupported media type response.To Reproduce Steps to reproduce the behavior:
/accounts/{id1]/performance{id2}
where known values exist forid1
andid2
.Expected behavior
The response should return the matching records in JSON format.
Additional context
It looks like the issue may be the default routing when using the
HttpGet
attribute in ASP.NET Core. Compare the use ofHttpGet
inApiController
versusApiCollectionController
.