I have a service for Employee with a DTO
[Route("/employee/{id}", "GET PUT DELETE")]
[Route("/employees", "POST")]
public class Employee : Person
{
public Employee() : base() {
this.dependents = new List<Dependent>();
}
public List<Dependent> dependents { get; set; }
}
I would like to understand how to handle the case where I want to just return the dependents collection. I would expect the url to be /employee/{id}/dependents. Being new to ServiceStack I am having a hard time figure how to map that to a service handler within my EmployeeService. Much Thanks!