This is providing a more standards-compliant, faster and cleaner API than you are likely to write from scratch. https://github.com/PostgREST/postgrest