So I'm not sure if I'm following this correctly or getting confused by my OO definitions and Web Service setups previously done. Let's say I have two entities in my domain model, Employees and Departments. For our app we need essentially 5 type of "get" services:
GetDeptartments
GetDeptDetails
GetDeptEmplolyees
GetEmployees
GetEmployeeDetails
Now, using the Member/Collection breakdown, I'd have the following breakdown, I think:
DepartmentCollection --> GetDepartments
DepartmentMember --> GetDeptDetails
EmployeeCollection --> GetEmployees
EmployeeMember --> GetEmployeeDetails
The one I'm confused with would be the GetDeptEmployees. I'm thinking of a parameter on the EmployeeCollection to get back the employees in a department by passing the department id as a URL parameter. Also, if one was to provide a "search" REST service, what would be the best way to do that? A combination of a get service on one of the collections above plus parameters? Thanks,
Phil