Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement