Creating Your REST Controller; Using Postman to Test Requests

Donovan
4 min readFeb 12, 2022

part two to this.

Now that there is a RestController with the ability to map to functions, time to create the rest of the CRUD capabilities in the controller and test the resources using Postman.

Start by adding the GetMapping annotation to the Read method set the value endpoint using ‘{id}’. This lets the application know this variable will be provided each request. Define the method with a return type of Athlete, passing the id as a parameter. Use the appropriate service method to findAthlete from…

--

--

Donovan

Learning. Puttin up shots in Angular and Java and Python and anything else I get my hands on. Sights set on becoming a gainfully employed developer.