I don’t think the below should send the following url to the second DTO… I actually think it should successfully configure at startup at all because there is an ambiguous route… /order/{int} /order/{string}
this resolves to getSingleOrderRequest:
https://host/order/14?show_successful=false
[Route("/order/{DaysBack}", "GET")]
[Route("/order", "GET")]
public class getLatestOrdersRequest : IReturn<List<WalmartOrder>>
{
public int DaysBack { get; set; }
public bool show_successful { get; set; }
}
[Route("/order/{purchaseOrderId}", "GET")]
public class getSingleOrderRequest : IReturn<WalmartOrder>
{
public string purchaseOrderId { get; set; }
}