In your sample app author is null, means doesn't get bound.
Shouldn't it get bound?
Calling: http://localhost:xxxx/api/boundAuthors/get/1
author is null:
// GET: api/boundauthors/get/1
#region demo2
[HttpGet("get/{authorId}")]
public IActionResult Get(Author author)
{
return Ok(author);
}
#endregion
โ Do not edit this section. It is required for docs.microsoft.com โ GitHub issue linking.
@Rick-Anderson On a broader point, this sample is one of the lingering _1.0 sample apps_ remaining ๐คฆโโ. It's on the list ... https://github.com/aspnet/AspNetCore.Docs/issues/5495.
I'm not sure if this is something that can be addressed using the existing sample. Yes, let's leave it open just in case the behavior can be addressed without updating the sample.
If it turns out that this can't be addressed, then we can close this as a dup of the sample update tracking issue (#5495).
EDIT I'll make a cross-link on the sample update tracking issue to this for visibility.
This one is a dup of https://github.com/aspnet/AspNetCore.Docs/issues/10341
Oh ... ok. I'll relink the sample tracking issue to ~that one~ both issues.
I presume that it's a P2 doc bug because it's one of the topics that doesn't receive nearly as much traffic as the others, and we're ๐๐ right now with high priority work.
Most helpful comment
Oh ... ok. I'll relink the sample tracking issue to ~that one~ both issues.
I presume that it's a P2 doc bug because it's one of the topics that doesn't receive nearly as much traffic as the others, and we're ๐๐ right now with high priority work.