dotnet / dotnet/AspNetCore.Docs
explicit uri examples help to inform a beginner like me how the different parameter types differ in the "url" request
- Dominant language
- C#
- Stars
- 13.1k
- Forks
- 24.6k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 109
Description
### Description
The code examples do not have comments with text that one can see how the parameters sit in the url,
for example "http://localhost:5000/hello/JackDaniels"
to match an example like
app.MapGet("/hello/{name}", (FromRoute string? name) => {return Results.Ok(...);});
the *.http file type might be a good way to make this clear, curl is a little bit gray-beard
Its easy to not know the relavant syntax of question marks, quotes and equals signs..
### Page URL
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis/parameter-binding?view=aspnetcore-8.0
### Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/minimal-apis/parameter-binding.md
### Document ID
a09dcf06-a685-e5b8-0ce4-a4e53c57a9fd
### Article author
@Rick-Anderson
[Related Issues](https://github.com/dotnet/AspNetCore.Docs/issues?q=is%3Aissue+is%3Aopen+a09dcf06-a685-e5b8-0ce4-a4e53c57a9fd)
Contributor guide
Assessment
This issue has not been assessed yet.