Hypermedia-driven Web API that supports Hydra (http://www.hydra-cg.com/), json-ld (http://json-ld.org/) and popular vocabulary http://schema.org/
Server runned on (Heroku|https://ya.ru)
API endpoint: https://library-service-articles.herokuapp.com/mega-api/
You can also restart DB by running https://library-service-articles.herokuapp.com/resetdb. It will clean all database tables and add some simple entities.
Server on Heroku shotdowns after 30 minutes of inactivity, so you can open https://library-service-articles.herokuapp.com/iamalive to check if application is running. If app is not running, it will start automatically.
You need locally installed Java 8 SDK, Postgres 9+ (or other DBMS) and Maven 3+.
git clone https://github.com/Omenstudio/library-hypermedia-service-articles.git
cd library-hypermedia-service-articles/
mvn install && java -jar target/service-articles-1.0.0.jar
- or just
mvn spring-boot:run
Server will be started at localhost and you can access API.
Project use Spring (Core, Boot, MVC, Data JPA), Hibernate, AspectJ, Json-ld.
To customize application you need to change DB connection and server url in resources/application.properties
- Hypermedia micro-framework, which was used in the service: https://github.com/Omenstudio/hydra-microframework
- Another hypermedia web API service, which also use Hydra and Json-ld: https://github.com/Omenstudio/library-hypermedia-service-books
- WEB UI library application which work with articles and books services: https://github.com/Omenstudio/hypermedia-library-web-ui
Working application: https://library-service-articles.herokuapp.com/mega-api/