Spring 5.0 By Example
上QQ阅读APP看书,第一时间看更新

Hello REST resources

We have created the models, and we can start to think about our REST resources. We will create three main resources:

  • CategoryResource which will be responsible for the Category class.
  • The second one is UserResource. It will manage the interactions between the User class and the REST APIs.
  • The last one, and more important as well, will be the NewsResource which will be responsible for managing news entities, such as reviews.