Hacker News new | ask | show | jobs
by lucfranken 337 days ago
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.

1 comments

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