Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages