When to double rest API routes for the same ressource? : I need to access `Task` ressource by `id` and by `state`. I have two options to achieve this :

**Option 1 :**

Create 2 routes :

* `api/tasks/:id` : returns one element
* `api/tasks/:state` : returns a list

**Option 2 :**

* Create only 1 root : `api/tasks/:id`
* Get a list of task ids classified by state from a parent ressource : `api/projects/:id`

I am working on a SPA and need to know which option would be cleaner ?