Develop the Resource Tier

We will develop the resource (entity) tier in this lesson, which is the first step in the process of developing the service.

We'll cover the following

Developing the service involves four main steps:

  • Creating the entity
  • Creating the data access tier
  • Creating the business service tier
  • Creating the JSON based REST ability

We will first write the test for the entity and then proceed with the actual entity development. First, we create two instances of Category, one of which is the root, and the other a sub-category with the root as its parent. We then check to make sure the changes were made throughout. Finally, we remove one occurrence and see if the count is one.

Get hands-on with 1400+ tech skills courses.