Create a Spring Boot REST API Service for the polymetric-client.
Java 8
Spring Boot 2.1.5
Spring Data
Hibernate
Postgresql
Lombok
Devtools
Maven
Package the project with using maven fo create jar file:
mvn package
Run application:
jar tvf target/polymetrica-0.0.1-dev.jar
java -jar target/polymetrica-0.0.1-dev.jar
after open your browser: 127.0.0.1:8080/actions/video
We provide a REST service for easy management with data from the database.
Type | Path | Description | Parameters |
---|---|---|---|
GET | /actions/video/ |
List all video actions | — |
GET | /actions/video/{id} |
Get one video action by {id} | id (long) |
POST | /actions/video/add |
Add new video action | username (String) type_id (long) time (HH:MM:SS) date: (YY-MM-DD) videoId (long) videoPosition (HH:MM:SS) rePosition (HH:MM:SS) |
Type | Path | Description | Parameters |
---|---|---|---|
GET | /actions/video/types |
List all video action types | — |
GET | /actions/video/types/{id} |
Get one video action typeId by {id} | id (long) |
Type | Path | Description | Parameters |
---|---|---|---|
GET | /actions/video/types |
List all video action types | — |
GET | /actions/video/types/{id} |
Get one video action typeId by {id} | id (long) |
For any problems, comments, or feedback please create an issue here on GitHub.
Game of Life is released under the MIT license.