Sandcastle - combine RoutePrefix and Route to get full URI

76 Views Asked by At

I am using Sandcastle Help File Builder to document an API. I would like to automate as much of the process as possible, not only to make it easier for the devs to add new routes as they are added, but also to update the documentation. The comments I have so far look like this:

[Authorize]
[HasAction(Actions = "POS")]
[RoutePrefix("api/Command/POS")]
public class CmdPOSController : ApiController {
    ///<summary>API to create new payments from point of sale.</summary>
    ///<param name="json">{amount, confirmationNumber, paymentType}</param>
    ///<returns>Original JSON object is returned.</returns>
    [HttpPost]
    [Route("Payments/Create")]
    public dynamic CreatePayment([FromBody] JToken json) {

My question is, is there any way to get the full route for each API route?

0

There are 0 best solutions below