Репозиторий Docker:
Start from Terminal -
docker pull ste5an/docker-domrf-spring:domrfapp
docker run -p 8080:8080 ste5an/docker-domrf-spring:domrfapp
SWAGGER - описание Api http://localhost:8080/swagger-ui.html
POSTMAN:
-
POST (save user) - http://localhost:8080/rest/user/save { "passportId": "1234", "fullName": "Ivanov Ivan Ivanivich", "address": "Moscow" }
-
GET (get all users) - http://localhost:8080/rest/user/users
-
GET (get user by id) - http://localhost:8080/rest/user/find/1234
-
PUT (update user) - http://localhost:8080/rest/user/update { "passportId": "1234", "fullName": "Petrov Petr Petrovich", "address": "Samara" }
-
DELETE (remove user by id) - http://localhost:8080/rest/user/delete/1234