I would like to create a trello clone. I trying to figure out the logic. The really "bottom" route something like this:
api/workspace/:id/board/:id/list/:id/card/:id
It seems a bit complex for URI, so I am not sure what would be the good approach here, how should I organize az API routes.
The model structure: workspace has relation to board, board has relation to list, list has relation to card.
The reason of chain, I have to get worskapceId if I am at board route because I have to set relation between board and worskapce model
Can you give me advice about the structure, route etc. ?