concept HttpAttribute in category c#

appears as: HttpAttribute
Code like a Pro in C#

This is an excerpt from Manning's book Code like a Pro in C#.

How do we reach our other endpoint: /GET /Flight/{FlightNumber}? After all, we are using a path parameter containing the flight number? When using a HttpAttribute method attribute (like [HttpGet]), we can provide additional routing instructions. This is useful for when you want to provide some more route nesting (for example, have an endpoint that goes to /Flight/AmazingFlights/) or for receiving a path parameter such as {flightNumber}):