A simple tool to generate fake names.
Build using Maven.
- mvn package
- cd target
- java -jar Ranames-1.0-SNAPSHOT.jar
- localhost:8080/ranames
http://localhost:8080/ranames/api
---
{
"name": "Romane",
"surname": "Leriy",
"gender": "FEMALE",
"region": "FRANCE"
}
Number of names to return:
http://localhost:8080/ranames/api?amount=10
Limit results to the male or female gender:
http://localhost:8080/ranames/api?amount=10&gender=female
Region-specific results:
http://localhost:8080/ranames/api?amount=10®ion=france
Region and gender specific results:
http://localhost:8080/ranames/api?amount=10®ion=france&gender=male