AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

explicit uri examples help to inform a beginner like me how the different parameter types differ in the "url" request

Open xela-trawets opened this issue 4 months ago • 1 comments

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

xela-trawets avatar Oct 17 '24 04:10 xela-trawets