Looking at the documentation I only found this usage example:
await SendCreatedAtAsync<GetUser.Endpoint>(new { id = response.Id}, response);
This produces a 201 response and the location header is set to something like:
"api/foo/bars?id="12345"
I would like that the location header was something like this:
"api/foo/bars/12345"
How can I achieve that?
i'm unable to reproduce your issue with the following:
User Create Endpoint
User Get Endpoint
i see the correct url in the response header like so:
i'm assuming your anonymous object which is passed in to
SendCreatedAtAsync
might not be correctly matching with the route param of theGetUserEndpoint
.if that's not the case, show me how to replicate the problem.