I have the following controller/action:
public class SomeThingController
{
IEnumerable<SomeThing> Search(DateTime minDate, DateTime maxDate, bool summaryOnly = true){}
}
The idea would be that summaryOnly parameter doesn’t have to be specified, but minDate and maxDate must be.
Can someone offer routes for the above?
You may try the following route:
and then:
and then you could request this endpoint like this:
or: