Spring Data's JPA can be used to persist data in an embedded database—H2 here. You can do so with a RESTful web service and some helpful Spring annotations.