Cashier app - creates a user.
Please execute the following commands to run the app:
These instructions should get this project working locally on your machine.
java 15 (jdk15+ installed
gradle 6.8.3
gradle build
gradle bootRun
This should have a web server on http://localhost:8080
.
Send the following POST
request via curl
.
curl -X POST \
http://127.0.0.1:8080/register \
-H 'Content-Type: application/json' \
-d '{
"username": "BobFrench",
"password": "Password1",
"dob": "1980-02-21",
"paymentCardNumber": "349293081054422"
}'
- Username - alphanumeric, no spaces
- Password โ min length 4, at least one upper case letter & number
- DoB (Date of Birth) - ISO 8601 format
- Payment Card Number โ between 15 and 19 digits