{"id":31916890,"url":"https://github.com/andrei-punko/spring-boot-3-jsonb","last_synced_at":"2026-04-14T23:33:33.382Z","repository":{"id":318492624,"uuid":"1067974781","full_name":"andrei-punko/spring-boot-3-jsonb","owner":"andrei-punko","description":"Spring Boot 3 app with Postgres JSONB data type usage","archived":false,"fork":false,"pushed_at":"2025-11-13T21:06:07.000Z","size":137,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-13T23:17:47.130Z","etag":null,"topics":["hibernate-types","java-jsonb","jsonb","postgres-jsonb","postgresql","postgresql-jsonb","spring-boot","spring-boot-3"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrei-punko.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-01T16:59:43.000Z","updated_at":"2025-11-13T21:06:11.000Z","dependencies_parsed_at":"2025-10-07T15:18:00.907Z","dependency_job_id":"823b1e79-89a3-4861-93bf-0ad29283689c","html_url":"https://github.com/andrei-punko/spring-boot-3-jsonb","commit_stats":null,"previous_names":["andrei-punko/spring-boot-3-jsonb"],"tags_count":0,"template":true,"template_full_name":"andrei-punko/spring-boot-2-jsonb","purl":"pkg:github/andrei-punko/spring-boot-3-jsonb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrei-punko%2Fspring-boot-3-jsonb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrei-punko%2Fspring-boot-3-jsonb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrei-punko%2Fspring-boot-3-jsonb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrei-punko%2Fspring-boot-3-jsonb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrei-punko","download_url":"https://codeload.github.com/andrei-punko/spring-boot-3-jsonb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrei-punko%2Fspring-boot-3-jsonb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31819807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hibernate-types","java-jsonb","jsonb","postgres-jsonb","postgresql","postgresql-jsonb","spring-boot","spring-boot-3"],"created_at":"2025-10-13T20:14:51.119Z","updated_at":"2026-04-14T23:33:33.372Z","avatar_url":"https://github.com/andrei-punko.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot 3 app with Postgres JSONB data type usage\r\n\r\n![Java CI with Maven](https://github.com/andrei-punko/spring-boot-3-jsonb/workflows/Java%20CI%20with%20Maven/badge.svg)\r\n[![Coverage](.github/badges/jacoco.svg)](https://github.com/andrei-punko/spring-boot-3-jsonb/actions/workflows/maven.yml)\r\n[![Branches](.github/badges/branches.svg)](https://github.com/andrei-punko/spring-boot-3-jsonb/actions/workflows/maven.yml)\r\n\r\nIncludes web-server on port 9080 with `/articles` endpoint exposed.  \r\nSupports CRUD set of operations and R operation with pagination.\r\n\r\n## Prerequisites:\r\n\r\n- Maven 3\r\n- JDK 21\r\n\r\n## Build an application:\r\n\r\n    mvn clean install\r\n\r\n## Build Docker image with application inside:\r\n\r\n    docker build --no-cache ./ -t spring-boot-3-jsonb-app\r\n\r\n## Start two Docker containers - with Postgres DB and application:\r\n\r\n    docker-compose up\r\n\r\n## Link for quick check:\r\n\r\nhttp://localhost:9080/articles\r\n\r\n## Swagger documentation\r\n\r\nhttp://localhost:9080/swagger-ui/index.html\r\n\r\n\r\n## Postman requests\r\n\r\nPlaced in appropriate [folder](postman)\r\n\r\n## Useful CURL commands\r\n\r\n### New article addition:\r\n\r\n```bash\r\ncurl -i -H \"Accept: application/json\" -H \"Content-Type: application/json\" \\\r\n  -d '{ \"title\": \"Some tittle\", \"text\": \"Some text\", \"author\": \"Pushkin\", \"location\": { \"country\": \"BY\", \"city\": \"Minsk\" } }' \\\r\n  -X POST \"http://localhost:9080/articles\"\r\n```\r\n\r\n### Get existing article:\r\n\r\n```bash\r\ncurl -i http://localhost:9080/articles/10\r\n```\r\n\r\n### Update existing article:\r\n\r\n```bash\r\ncurl -i -H \"Accept: application/json\" -H \"Content-Type: application/json\" -d '{ \"title\": \"Another tittle\" }' \\\r\n  -X PATCH http://localhost:9080/articles/2\r\n```\r\n\r\n### Search articles by an inner field of JSONB type:\r\n\r\n```bash\r\ncurl -i 'http://localhost:9080/articles?country=RU'\r\n```\r\n\r\n```bash\r\ncurl -i 'http://localhost:9080/articles?country=RU\u0026city=Moscow'\r\n```\r\n\r\n### Get list of articles with pagination support:\r\n\r\n```bash\r\ncurl -i 'http://localhost:9080/articles/all?size=2\u0026page=4\u0026sort=title,DESC'\r\n```\r\n\r\n### Deletion of article:\r\n\r\n```bash\r\ncurl -i -X DELETE http://localhost:9080/articles/1\r\n```\r\n\r\n## Run functional tests:\r\n\r\n    cd func-test\r\n    ./gradlew clean build\r\n\r\nCheck functional test report [here](func-test/build/spock-reports/index.html)\r\n\r\n## Related project\r\n\r\nSame project but with usage of Spring Boot 2 available [here](https://github.com/andrei-punko/spring-boot-2-jsonb)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrei-punko%2Fspring-boot-3-jsonb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrei-punko%2Fspring-boot-3-jsonb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrei-punko%2Fspring-boot-3-jsonb/lists"}