Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pyramid Word

This is a web application with a REST API, which could be used to check whether a word is a pyramid word or not.

Pre-requisits

  • Java 1.8
  • Maven
  • Tomcat version 6 or above

Configuration and Installation

  1. Checkout the Pyramid repository
git clone https://github.com/charitha306/Pyramid.git
  1. Build the module
cd Pyramid
mvn clean install
  1. Copy the .war file to tomcat/webapps folder
cp target/pyramid-word.war CATALINA_HOME/webapps/pyramid-word.war
  1. Start tomcat server
cd CATALINA_HOME/bin
sh catalina.sh start

Pyramid REST API

Request

GET /pyramid-word/api/ispyramid?word=<word>

Response

Status Response
200 {"isPyramid": <true/false>}
400 {"error": "Request must contain a word" / "Invalid word - must contain only lower case letters"}
500 Internal server error

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages