Imagine the following endpoints:
/categories/{id} /categories/{id}/sub-categories/{sub-id}
The file system structure would be: