title: Lightweight rest how to do clickable results?
body: <p>I am new to .net core.<br>
  And I'm in a situation where I must keep CPU usage to a bare minimum.<br>
  So I got interested in a lightweight web /rest possibilities.<br>
  And started new web api project and adjusted the default valuesControllers.cs</p>
  
  <p>The situation is that I got lots of logfiles, I already can list logs by uri<br>
    <strong>localhost:someport/api/values/</strong><br>
  And i can show a simple txt log file content by typing<br>
    <strong>localhost:someport/api/values/5</strong><br>
  That will show the fith logfile content</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Threading.Tasks;
  using Microsoft.AspNetCore.Mvc;
  using System.IO;
  
  namespace Restview.Controllers
  {
  [Route("api/[controller]")]
  public class ValuesController : Controller
  {
      const string LogFolder = @"C:\Logger\IOCount";
      String[] result =  Directory.GetFiles(LogFolder);
  
      // GET api/values
      [HttpGet]
      public IEnumerable&lt;string&gt; Get()
      {
          for (int i=0; i&lt;result.Length;i++) result[i]=Path.GetFileName(result[i]);
          return result;
      }
  
      // GET api/values/5
      [HttpGet("{id}")]
      public string Get(int id)
      {
          string[] lines = System.IO.File.ReadAllLines(result[id]);
          string answer = "Showing : " + result[id] + "\n" + string.Join('\n',lines);
          return answer;
      }
    }
  }
  </code></pre>
  
  <p>What i would like is that the results from <strong>localhost:someport/api/values/</strong> would get clickable, So if you click on a certain line you get to see that logfile as if <strong>localhost:someport/api/values/clickedindex</strong> was typed. How to achieve that ? </p>