refactored api to use a standard for resources when acessing /:id resources