Built using:
- Spring Boot
- Jersey Framework
Follow the steps:
- From terminal - Navigate to the root directory where the pom.xml exists
- Compile and Package the project -
mvn clean install
- Navigate to target directory -
cd target
- Execute the JAR -
java -jar WebServicesExercise-0.0.1-SNAPSHOT.jar
- Access the application via -
http://localhost:8080/productclient
http://localhost:8080/productclient/product
http://localhost:8080/productclient/product/add
http://localhost:8080/productclient/album
http://localhost:8080/productclient/album/add
http://localhost:8080/productclient/image
http://localhost:8080/productclient/image/add
- All my testing was done via Postman.
- I was able to successfully reach
/product
,/product/add
,/album
,/album/add
,/image
,/image/add
- I added a product (/product/add) and requested for the products after to see if it was appended to the List - PASS
- I was able to successfully reach
- Test classes not included due to having issues with JerseyTest and not being able to process Response/Entity Objects properly.
- I removed the test classes to avoid errors.
- Test classes missing - errors with JerseyTest Implementation
- AlbumDAO seed data missing Images - setAlbumImages expects a List and I could not find a way to store an Album Object as a List. I cant change the POJO because i generated it using jsonschema2pojo library plugin. When i modified the album.schema.json file - regardless of the type I was not able to active the type of object the compiler was requiring.
- ImageDAO seed data missing Albums - same applies for setImageAlbums