Includes web-server on port 9080 with /articles
endpoint exposed.
Supports CRUD set of operations and R operation with pagination.
- Maven 3
- JDK 21
mvn clean install
docker build --no-cache ./ -t spring-boot-jsonb-app
docker-compose up
http://localhost:9080/articles
http://localhost:9080/swagger-ui/index.html
curl -i -X POST "http://localhost:9080/articles" -H "Accept: application/json" -H "Content-Type: application/json" -d '{ "title": "Some tittle", "text": "Some text", "author": "Pushkin", "location": { "country": "BY", "city": "Minsk" } }'
curl -i http://localhost:9080/articles/1
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -d '{ "title": "Another tittle" }' -X PATCH http://localhost:9080/articles/2
curl -i 'http://localhost:9080/articles?country=RU'
curl -i 'http://localhost:9080/articles?country=RU&city=Moscow'
curl -i 'http://localhost:9080/articles/all?size=2&page=4&sort=title,DESC'
curl -i -X DELETE http://localhost:9080/articles/1
cd func-test
./gradlew clean build
Check functional test report here