Posts

Showing posts with the label Get Mapping

Retrieve Todo List and Integration with UI

Image
  In Previous few topic's we have created our java application and tried to connect JAVA service to Angular and we found when we click on button's our java API is getting called. we saw the use of HTTP client modules. In this topic we will start working on our todoList Application and create JAVA Services for below points: Retrieve all the todo list. Creating a todo Editing a todo Deleting a todo Before this quickly move HelloWorldController.class and HelloWorldBean.class into a new package : package com.learnangularwithjava.restwebservice.helloworld as shown below the project structure: Now create a new package com.learnangularwithjava.restwebservice.todoresources and create a new class TodoController.class in it. please see below screen shot of code. Note: Add @CrossOrigin(origins = "http://localhost:4200/")  Now once the code is done start your service by running RestWebserviceApplication.class and hit this URL http://localhost:8080/users/dummy/todos you will see b