jeudi 11 septembre 2014

Sequelize REST API generator


Vote count:

0




I am developing a Nodejs application and my database is Postgres and I am using Sequelize as my ORM because of its excellent support for migrations.


I am on the lookout for a good REST API generator based on the schema I have defined. There are two main hurdles I am facing and they are that the generators don't do a good job of creating association API routes and lack of ACL support. On the associations front, my schema has multiple levels of association i.e. for example..



Student.hasMany(Courses);
Courses.hasMany(Subjects);


So ideally the generated REST API should be something like



/student/:student_id/course/:course_id/subject/:subjectId


I found a few projects that are doing this, but are incomplete.


Is there any module that supports this?



asked 35 secs ago







Sequelize REST API generator

Aucun commentaire:

Enregistrer un commentaire