I have a simple API with basic routing. It was configured using the default default ASP.NET API template for Visual Studio 2015.
I have this controller and action:
[Route("api/[controller]")] public class DocumentController : Controller { [HttpGet("info/{Id}")] public async Task<Data> Get(string Id) {
To achieve this method, I have to call GET /api/document/info/some-id-here .
Is it possible using .NET Core, inside this method, to get the full route as a string?
Therefore, I could do, for example:
var myRoute = retrieveRoute();
BlackHoleGalaxy
source share