Agrest is open source and is distributed under the terms of Apache 2.0 license
Agrest is not an automated engine to take your DB online with a single command. You still have to write code for JAX-RS endpoints (however simple and trivial that code might end up being). Having this code around allows you to customize processing, implement security around endpoints, hide certain methods, etc. This is a defensive approach that goes a long way to avoid unintended consequences when opening up your data on the web.
Having said that, such an engine can be written on top of Agrest with relative ease.
Agrest is written on top of Apache Cayenne ORM and supports any relational data store, such as MySQL or Oracle. Support for alternative data stores can be provided with relative ease. E.g. NoSQL databases, flat files, etc. E.g. we’ve written POJO and LDAP backends.
From the very beginning Agrest was designed with security in mind. It can be easily integrated with common web and enterprise security solutions (OAuth, Apache Shiro, Spring Security, etc.), giving Java developers a straightforward API to implement custom object and attribute-level access.