filmov
tv
ASP.NET Core EndPoint Routing and Route Templates (3.1, 5 and later) | Lecture 6
Показать описание
Following practical example has been discussed while explaining the concept of route and route templates.
Write a simple ASP.NET Core application (ignore security concerns) that receives a URL based GET request for a SELECT query. The application should respond OK if the URL matches the pattern "/score/{course}/{roll}/{section}". The additional constraints are
course is a regex match ^\d{3},
roll is a number between 1000 and 2000,
section is an alphabet string of any length.
Write a simple ASP.NET Core application (ignore security concerns) that receives a URL based GET request for a SELECT query. The application should respond OK if the URL matches the pattern "/score/{course}/{roll}/{section}". The additional constraints are
course is a regex match ^\d{3},
roll is a number between 1000 and 2000,
section is an alphabet string of any length.