The auto resource/endpoint maker for your REST needs.
Want to migrate to a framework but have tonnes of tables and you can't deal with the resource migration from one framework to another or setup a new back-end using a new framework altogether? Well this script will ease your process if not automate it completely.
- Fill in the configurations in the settings.properties file.
- Run the script.(Do not tamper any other file(s) in config folder other than settings.properties unless you know what you are doing)
- Check the generated folder for the generated resources.
This script creates resources from database tables, so that you don't have to write code/queries for everything.
- Resources are made for Metamug and only Postgres Drivers are supported. I'll try to upgrade the script for other frameworks and SQLs as well.
- Each table can be passed as a property in te config file. I'll make a way where you can get all the tables in a particular Database and make resources for all.
- For the resources made for Metamug there are these REST methods available, GET item/collection, POST item, PUT item, DELETE item. Where the item is the column id from the given table.