Kill 2 birds with 1 stone by using PostgREST? [postgrest.com] It reads the DB schema and provides a corresponding API.

//