6 ms·
Generally only /companies/:companyId/buildings And then you get a list of all buildings for this company. Every building has a url like: /buildings/:buildingI
by lucfranken 1y 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.
- osigurdson 1y agoThis seems like a really good model. It keeps things flat and easy to extend.