docker network create app-spring
cd MvanProject/Service/mysql/
docker build -t mysql-spring .
docker run -d --name mysql-spring --network app-spring mysql-spring:latest
cd ..
cd quiz/
docker build -t app-spring .
docker run --rm -it --name app-spring -p 8080:8080 --network app-spring app-spring:latest
Search Type | Command | Result |
---|---|---|
GET | http://localhost:8080/preguntas | Every answer and question of the Quiz |
GET | http://localhost:8080/preguntas/ | All questions with the indicated word are displayed |
DELETE | http://localhost:8080/ | The question containing that ID will be deleted |
POST - PUT | http://localhost:8080/ | Questions can be introduced or updated |