Skip to content

Latest commit

 

History

History
65 lines (50 loc) · 2.19 KB

README.md

File metadata and controls

65 lines (50 loc) · 2.19 KB

polymetric-server

License JDK

Task

Create a Spring Boot REST API Service for the polymetric-client.

Technologies

Java 8
Spring Boot 2.1.5
Spring Data
Hibernate
Postgresql
Lombok
Devtools
Maven

How to run the application?

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

API

We provide a REST service for easy management with data from the database.

Video actions

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)

Video action types

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)

Video action types

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)

Contribute

For any problems, comments, or feedback please create an issue here on GitHub.

Licence

Game of Life is released under the MIT license.