Skip to content

ShunmugamAiyappan/java-test-engineer-sample-2

 
 

Repository files navigation

  1. Import the project and run maven install. This is an empty project with all the required dependency and package structure with some empty classes.

  2. Consider the cart json in the below format

{ "cartId": "Cart Id", "createdDate": "Created Date", "completedDate": "Cart completion date" "items":{ "1":{"itemId":"Item Identifier","cartId":"Cart Id","name":"Product1","quantity":"1","price":"20"}, "2":{"itemId":"","cartId":"","name":"Product2","quantity":"4","price":"3"} } }

  1. Create a static map as Cart data store for performing the CRUD operation.

  2. Implement the cart resource with the functionality to get, save, update and delete cart. (Refer to com.att.demo.resource package).Validate the cart before saving or updating the information.

  3. Handle all SUCCESS and FAILURE scenarios and return proper HTTP Status code.

  4. Update the swagger documentation.

  5. Complete the implementation and run the application

  6. Test your APIs via swagger

  7. Implement the unit tests and component tests

About

Cart App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.6%
  • CSS 3.9%
  • Other 0.5%