Just discovered PostgREST http://postgrest.org/en/v5.2/
It basically creates a RESTful API out of a PostgreSQL schema, allowing queries in endpoints, etc. Worth checking it out of you are in need of something similar!
@diego We're using it at work, it's cool!
@xiroux just saved me a week of work (to get just a fraction of what the library offer done)
A friendly place for tooting. Run by the Kosmos peeps.