PESEL Generator API — a lightweight REST service built with Spring Boot that generates valid Polish PESEL numbers.
It supports random generation as well as custom parameters (birthdate, sex, quantity).
All generated numbers within a single request are guaranteed to be unique ✅
- Generate one or multiple PESEL numbers
- Supported parameters:
sex— gender (male/female)dob— birthdate (dd.MM.yyyy)quantity— amount of PESELs to generate (default:1)
- Input validation and clean JSON error responses
- Clean and simple architecture: controller, service, exceptions, utils
- Ready for Docker & CI/CD
mvn spring-boot:run
mvn clean package
java -jar target/pesel-*.jarService will be available at: http://localhost:8090/generator
curl "http://localhost:8090/generator"curl "http://localhost:8090/generator?sex=female"curl "http://localhost:8090/generator?quantity=10"curl "http://localhost:8090/generator?dob=03.09.1983"curl "http://localhost:8090/generator?dob=26.06.1989&sex=female&quantity=5"🔗 Try it on api.pesel.dev/generator
Made with ❤️ by Anton Sizov