samedi 28 février 2015

Any packages for creating a dynamic restful resource API in an express server?

For example, think of something like Firebase.



  • If a user GETs from /, it will respond with the data of the entire collection (preferably automatically handle pagination if there is a lot of data)

  • If a user GETs from /some/.../endpoint, it will automatically resolve the resource at that point, no matter how deep you go, without any configuration necessary

  • If a user PUTs from /some/.../endpoint, it will automatically deposit the data at that endpoint, (creating the necessary storage structures / collections / objects for the underlying data provider)


I don't want something like mongoose, because I don't want to explicitly declare my own models. I want to keep the specifics of the application on the front-end as much as possible, so the server can have minimal configuration.


Is there any node.js library that takes care of this for you? If not, I'm sure lots of people have experience in creating dynamic REST endpoints like this. What insight can you provide?


Aucun commentaire:

Enregistrer un commentaire