Provides simple REST APIs for searching Character and Phrases by using MDB Jquery user interface
- JDK 1.8.x
- Maven 3.x
- MDB JQuery for MDB Jquery data tables
- Intellij IDE, IntelliJ is heavily recommended for best Spring boot project development
-
Import the project or clone the project into an IDE either by clone or download option
-
Application will be running on the 8083 and make sure no other services are using this port. Kill the process Refer to application.properties
-
Identifying the port usage and killing the process (Mac os)
sudo lsof -i tcp:8083 kill -9 <>
-
Application will automatically load the data from JSON files called as characters.json and phrases.json into CHARACTER_TB and PHRASE_TB table in H2 database when the server is starting. Both these files are preent under /resources/data/ folder.
-
http://localhost:8083/api/v1/phrases/allPhrases (GET)
Above API will return all the phrases from the database table called PHRASE_TB
-
http://localhost:8083/api/v1/phrases/specificPhrases/<> (GET)
Above API will be returning the list of specific phrase word contains in the PHRASE_DB table.
-
http://localhost:8083/api/v1/phrases/addPhrase (POST)
Above API will be creating the new phrase record into the phrase table.
-
http://localhost:8083/api/v1/characters/allCharacters (GET)
Above API will return all the characters from the database called as CHARACTER_TB
-
http://localhost:8083/api/v1/characters/specificCharactersByFirstName<> (GET)
Above API will be returning the list of specific characters where it matches the first name in the CHARACTER_DB table.
-
http://localhost:8083/api/v1/characters/specificCharactersByLastName<> (GET)
Above API will be returning the list of specific characters where it matches the last name in the CHARACTER_DB table.
-
http://localhost:8083/api/v1/characters/addCharacter (POST)
Above API will be creating the new character record into the CHARACER_TB table.
The services may be accessed via HTTP requests. They return data in JSON format.
Application can be accessed from the below home page URL. Home page will be displayng the two options to navigate to phrase or character search. Both these pages will display the MDB JQuery data table accordingly. Data tables will be having the pagination, search option and navigating back to home page.