The UserResource class is the same as CategoryResource, except that it uses the User class. We can find the whole code on the GitHub (https://github.com/PacktPublishing/Spring-5.0-By-Example/tree/master/Chapter02).
UserResource
Get Spring 5.0 By Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.