TESTING MODULE
The first time, you should do a ./build.sh
as the produced jars
are mounted in to the docker-compose stack.
# ... run rabbitmq and postgres
docker-compose up
# ... properly destroy
docker-compose down --volumes --remove-orphans
RUN THE SERVICE
The first time, you should do a ./gradlew bootRun
as the produced jars
are mounted in to the docker-compose stack.
./gradlew bootRun
- Add Movie
POST: /v1/movie/
{
"title":"some title new2",
"description":"desc movie bla bla bla",
"category": "Fantasy",
"yearProduction":"2021",
"yearReleased":"2022",
"monthReleased":"5",
"casting":"Tom,Jerry, willie, minnie",
"rating": 0,
"directors":[3,5]
}
- Add Director
POST: /v1/movie/
{
"name": "Stephen",
"surname": "Spielberg",
"bDay": "1950-01-02T12:34:56Z"
}
- Add Director
POST: /v1/movie/
{
"name": "Stephen",
"surname": "Spielberg",
"bDay": "1950-01-02T12:34:56Z"
}