Skip to content

Chinmais40/PalidromeChecks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Palindrome API

This RESTFUL API service allows a user to submit a string to determine whether a string is a palindrome or not.

Installation

You have a package manager e.g. Brew

Install Maven

brew install maven

Build Project and Install

mvn clean install

Run the Application

mvn spring-boot:run

The 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=racecar

The output is as follows

Hello Chris
racecar is a palindrome

Provide 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/cache

The output is as follows

{heat=false, rocks=false, racecar=true}

Running Tests

To run Unit tests, run the following command

  mvn test

About

test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%