Skip to content

Latest commit

 

History

History

rmi

rmi (yes, yes =) Build Status

gradle / maven
./gradlew; ./mvnw

java -jar spring-rmi-service/build/libs/*.jar --server.port=8000 &
java -jar spring-rmi-client/target/*.jar

http post :8080/api/v1/users name=maksimko
HTTP/1.1 201 Created
Location: http://localhost:8080/api/v1/users/02a323f9-3c23-48fb-b974-c43abde14fd5

http post :8080/api/v1/users name=maksimko2
HTTP/1.1 201 Created
Location: http://localhost:8080/api/v1/users/91732336-0827-414c-964b-3af7a9a2726d

http http://localhost:8080/api/v1/users/91732336-0827-414c-964b-3af7a9a2726d
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
transfer-encoding: chunked

{
    "name": "maksimko2",
    "uuid": "91732336-0827-414c-964b-3af7a9a2726d"
}

http http://localhost:8080/api/v1/users
HTTP/1.1 200 OK
Content-Type: application/stream+json
transfer-encoding: chunked

{"uuid":"02a323f9-3c23-48fb-b974-c43abde14fd5","name":"maksimko"}
{"uuid":"91732336-0827-414c-964b-3af7a9a2726d","name":"maksimko2"}
docker
./gradlew; ./mvnw; docker-compose up --build

# then same...

links: