DEV Community

Discussion on: REST API Design Best Practices for Sub and Nested Resources

Collapse
 
steelwolf180 profile image
Max Ong Zong Bao

Hmmm... I think having nested url of 3 depth can be challenging and documentation can be a pain so I usually stick with only 2.

But I do agree that having nested url has it's place for certain reasons.

Collapse
 
kayis profile image
K

Yes, I think 2 would be a good rule of thumb, but when your data forms a tree it's okay to go deeper.