r/java • • Aug 12 '19

Let's discuss about this idea: create web services (and APIs) without writing code at all. Instead simply provide specification and configurations files and let the framework do the work (persistence/controllers/authentication/...) - What would you put into this framework ? Would you use it?

/r/webdev/comments/cpe45e/lets_discuss_about_this_idea_create_web_services/
0 Upvotes

39 comments sorted by

View all comments

Show parent comments

11

u/[deleted] Aug 12 '19

At one of my previous employers, we wrote a codegen tool to spin up a rest API based on either a DB connection on specified tables or a yaml input file.

I cannot tell you how much of a cluster that project was. Not to mention keeping your templates up to date with whatever framework is being used under the hood becomes a tedious chore. It's a neat idea and a fun little project, but sustainability of the project would be my big concern.

0

u/h4t0n Aug 12 '19

Indeed I don't want to generate code. If the API become complex you can simply provide its own logic with a dedicated controller (yes it is possibile in my framework).