SHARE
TWEET

Untitled

a guest Jun 25th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /api/sites/
  2. /api/sites/{id}/
  3. /api/sites/{id}/readers/
  4. /api/sites/{id}/readers/{id}/
  5.      
  6. [Route("api/[controller]")]
  7. [ApiController]
  8. public class SitesController : ControllerBase {
  9.     [HttpGet("{id:length(24)}")]
  10.     public ActionResult<Site> Get(string id) {}
  11.  
  12.  
  13.  
  14. }
  15.      
  16. [Route("{id:length(24)}/[controller]}")]
  17. [ApiController]
  18. public class ReadersController {
  19.     [HttpGet]
  20.     public string Get() => "test";
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top