Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Generally only /companies/:companyId/buildings

And then you get a list of all buildings for this company.

Every building has a url like: /buildings/:buildingId

So you constantly get back to the root.

Only exception is generally a tenant id which goes upfront for all requests for security/scoping purposes.



This seems like a really good model. It keeps things flat and easy to extend.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: