diff --git a/README.md b/README.md
index c4ef5c4..cf56cd1 100644
--- a/README.md
+++ b/README.md
@@ -63,8 +63,8 @@ Create the following REST endpoints to interact with the application. You can us
- `GET` `/people/{id}` -- get the person with the specified ID
- `DELETE` `/people/{id}` -- Delete the person with the specified ID
- `GET` `/people` -- get all people in the database
- - `GET` `/people/reverselookup/{mobileNumber}` -- find all people with the specified mobile number
- - `GET` `/people/surname/{lastName}` -- Find all people with a particular last name
+ - `GET` `/people/reverselookup/{MOBILE}` -- find all people with the specified mobile number
+ - `GET` `/people/surname/{LAST_NAME}` -- Find all people with a particular last name
- `GET` `/people/surname` -- Get the result of the surname report above
- `GET` `/people/firstname/stats` -- Get the report of first name frequencies
diff --git a/data-h2.sql b/data-h2.sql
index f6f18b5..76661ea 100644
--- a/data-h2.sql
+++ b/data-h2.sql
@@ -1,15 +1,27 @@
+INSERT INTO movies (title, runtime, genre, imdb_score, rating) VALUES ('Howard the Duck', 110, 'Sci-Fi', 4.6, 'PG');
+INSERT INTO movies (title, runtime, genre, imdb_score, rating) VALUES('Lavalantula', 83, 'Horror', 4.7, 'TV-14');
+INSERT INTO movies (title, runtime, genre, imdb_score, rating) VALUES('Starship Troopers', 129, 'Sci-Fi', 7.2, 'PG-13');
+INSERT INTO movies (title, runtime, genre, imdb_score, rating) VALUES('Waltz With Bashir', 90, 'Documentary', 8.0, 'R');
+INSERT INTO movies (title, runtime, genre, imdb_score, rating) VALUES('Spaceballs', 96, 'Comedy', 7.1, 'PG');
+INSERT INTO movies (title, runtime, genre, imdb_score, rating) VALUES('Monsters Inc.', 92, 'Animation', 8.1, 'G');
+INSERT INTO movies (title, runtime, genre, imdb_score, rating) VALUES('2001: A Space Odyssey', 149, 'Sci-Fi', 8.3, 'G');
+INSERT INTO movies (title, runtime, genre, imdb_score, rating) VALUES('Blade Runner 2049', 164, 'Sci-Fi', 8.2, 'R');
+INSERT INTO movies (title, runtime, genre, imdb_score, rating) VALUES('Mad Max: Fury Road', 120, 'Action', 8.1, 'R');
+INSERT INTO movies (title, runtime, genre, imdb_score, rating) VALUES('Titanic', 194, 'Romance', 7.8, 'PG-13');
INSERT INTO HOME (ADDRESS, HOMENUMBER) VALUES ('36 E. Bayberry Rd.Savannah, GA 31404', '565-6895');
INSERT INTO HOME (ADDRESS, HOMENUMBER) VALUES ('11 Essex Dr.Farmingdale, NY 11735', '454-4544');
INSERT INTO HOME (ADDRESS, HOMENUMBER) VALUES ('920 Arlington Street Clifton, NJ 07011', '985-4515');
INSERT INTO HOME (ADDRESS, HOMENUMBER) VALUES ('234 High Street, PA 19159 ', '267-3940');
+INSERT INTO PERSON (LAST_NAME, FIRST_NAME, MOBILE, BIRTHDAY, HOME_ID) VALUES ('Carbral', 'Sheeri', '230-4233', '1970-02-23', 2);
+INSERT INTO PERSON (LAST_NAME, FIRST_NAME, MOBILE, BIRTHDAY, HOME_ID) VALUES ( 'Sharam', 'Raj', '186-5223', '1980-08-31', 3);
+INSERT INTO PERSON (LAST_NAME, FIRST_NAME, MOBILE, BIRTHDAY, HOME_ID) VALUES ('Durand', 'Noelle', '395-6161', '1960-07-06', 1);
+INSERT INTO PERSON (LAST_NAME, FIRST_NAME, MOBILE, BIRTHDAY, HOME_ID) VALUES ('Smith', 'Thomas', '395-6181', '1987-07-06', 1);
+INSERT INTO PERSON (LAST_NAME, FIRST_NAME, MOBILE, BIRTHDAY, HOME_ID) VALUES ('Smith', 'Jane', '393-6181', '1987-12-06', 3);
+INSERT INTO PERSON (LAST_NAME, FIRST_NAME, MOBILE, BIRTHDAY, HOME_ID) VALUES ('Brown', 'Doug', '466-6241', '1954-12-07', 3);
+
+
-INSERT INTO PERSON ( LAST_NAME, FIRST_NAME, MOBILE, BIRTHDAY, HOME_ID ) VALUES ('Carbral', 'Sheeri', '230-4233', '1970-02-23', 2);
-INSERT INTO PERSON ( LAST_NAME, FIRST_NAME, MOBILE, BIRTHDAY, HOME_ID) VALUES ( 'Sharam', 'Raj', '186-5223', '1980-08-31', 3);
-INSERT INTO PERSON ( LAST_NAME, FIRST_NAME, MOBILE, BIRTHDAY, HOME_ID)VALUES ('Durand', 'Noelle', '395-6161', '1960-07-06', 1);
-INSERT INTO PERSON ( LAST_NAME, FIRST_NAME, MOBILE, BIRTHDAY, HOME_ID)VALUES ('Smith', 'Thomas', '395-6181', '1987-07-06', 1);
-INSERT INTO PERSON ( LAST_NAME, FIRST_NAME, MOBILE, BIRTHDAY, HOME_ID)VALUES ('Smith', 'Jane', '393-6181', '1987-12-06', 3);
-INSERT INTO PERSON ( LAST_NAME, FIRST_NAME, MOBILE, BIRTHDAY, HOME_ID)VALUES ('Brown', 'Doug', '466-6241', '1954-12-07', 3);
diff --git a/pom.xml b/pom.xml
index 274f418..827b847 100644
--- a/pom.xml
+++ b/pom.xml
@@ -37,7 +37,10 @@
org.springframework.boot
spring-boot-starter-web
-
+
+ org.springframework.boot
+ spring-boot-starter-thymeleaf
+
com.h2database
h2
@@ -48,7 +51,7 @@
spring-boot-starter-test
test
-
+
diff --git a/src/main/java/io/zipcoder/persistenceapp/Controller/PersonController.java b/src/main/java/io/zipcoder/persistenceapp/Controller/PersonController.java
new file mode 100644
index 0000000..7b1e72b
--- /dev/null
+++ b/src/main/java/io/zipcoder/persistenceapp/Controller/PersonController.java
@@ -0,0 +1,54 @@
+package io.zipcoder.persistenceapp.Controller;
+
+import io.zipcoder.persistenceapp.domain.Person;
+import io.zipcoder.persistenceapp.Service.PersonService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.*;
+
+@RestController
+public class PersonController {
+
+ private PersonService personService;
+
+ @Autowired
+ public PersonController(PersonService personService){
+ this.personService = personService;
+ }
+
+ @RequestMapping(value = "/people/{id}", method = RequestMethod.GET)
+ public ResponseEntity getPerson(@PathVariable Long id) {
+ return personService.findById(id);
+ }
+ @RequestMapping(value = "/people", method = RequestMethod.GET)
+ public ResponseEntity> getAllPeople() {
+ return personService.getAllPeople();
+ }
+ @RequestMapping(value = "/people", method = RequestMethod.POST)
+ public ResponseEntity> createPerson(@RequestBody Person person) {
+ return personService.addPerson(person);
+ }
+ @RequestMapping(value = "/people/{id}", method = RequestMethod.PUT)
+ public ResponseEntity> updatePerson(@RequestBody Person person, @PathVariable Long id) {
+ return personService.updatePerson(person);
+ }
+ @RequestMapping(value = "/people/{id}", method = RequestMethod.DELETE)
+ public ResponseEntity> deletePerson(@PathVariable Long id) {
+ return personService.removePerson(id);
+ }
+
+// @RequestMapping(value = "/people/reverselookup/{mobile}", method = RequestMethod.GET)
+// public ResponseEntity> reverseLookup(@PathVariable String mobile) {
+// return personService.reverseLookup(mobile);
+// }
+//
+// @RequestMapping(value = "/people/surname/{lastName}", method = RequestMethod.GET)
+// public ResponseEntity> surnameLookup(@PathVariable String lastName) {
+// return personService.findByLastName(lastName);
+// }
+
+// @RequestMapping(value = "/people/firstname/stats", method = RequestMethod.GET)
+// public ResponseEntity