4 ms·
When mongodb (or some similar object-like storage engine) was pretty new I played around with it by writing some HTTP API using PHP. I was frustrated about how
by archi42 4y ago
When mongodb (or some similar object-like storage engine) was pretty new I played around with it by writing some HTTP API using PHP. I was frustrated about how I would mostly write code to check if the user was allowed to r/w an object, if the input format was alright and overall do very little productive work on actually doing something with the data. So I implemented a "universal" API that allowed arbitrary access to the database. Permissions, ownerships and permissable data were stored as template or metadata objects. So basic API methods could be easily setup and only more complex actions would need actual coding.
Wasn't finished beyond a basic PoC, and I did it more fun/practicing than for anything of more tangible value. I believe the code has been lost.