@baldrick0712 When you get a moment, could you help me understand the syntax for adding parameters. I've tried various implementations of the examples on the health page but all that I get is HTTP Status 400 Bad Request. Without parameters it's working great.
Sure. You've probably just mistyped them. The parameters have to be typed exactly as shown in help page.
No parameters...
http://localhost:8080/t2k4chargen/generate
One parameter. Just add a "?" followed by parameter-name=parameter-value
http://localhost:8080/t2k4chargen/generate?lastCareer=MilitaryService
Two or more parameters. Use "&" as a separator, so...
http://localhost:8080/t2k4chargen/generate?lastCareer=MilitaryService&maxTermsEducation=1&firstCareer=Education
To be fair, a "proper" application would never expect the user to type this stuff. You'd select options with a proper user interface with buttons, dropdowns etc., and it would call the backend using the correct query string (the bit after the "?"). I may make the effort to turn it into a "proper" app.
One last thing. If the parameters have been entered correctly you will see them in the command window output, for example...
Generating new character with the following parameters...
firstCareer=N/A, lastCareer=MilitaryService, maxTermsEducation=1
termLengthVariant=false, atWarCheckDie=D8
Note that some are defaults so N/A means you didn't use that parameter, atWarCheckDie defaults to D8 as per the RAW if you didn't use that parameter, etc.