This RESTFUL API service allows a user to submit a string to determine whether a string is a palindrome or not.
You have a package manager e.g. Brew
Install Maven
brew install mavenBuild Project and Install
mvn clean installRun the Application
mvn spring-boot:runThe applcation runs on localhost:8080 on your local machine. The REST API has the following endpoints you can access.
Provide a Username and Input String to test whether this is a palindrome.
POST /api/palindrome/?username=Chris&input=racecarThe output is as follows
Hello Chris
racecar is a palindromeProvide a Username and Input String to test whether this is a palindrome.
Get the cache of already submitted guesses and whether they are a palindrome.
GET /api/palindrome/cacheThe output is as follows
{heat=false, rocks=false, racecar=true}To run Unit tests, run the following command
mvn test