Develop the Resource Tier
We will develop the resource (entity) tier in this lesson, which is the first step in developing the service.
We'll cover the following
The next step is the actual service development, which involves four major steps:
- Creating the entity
- Creating the data access tier
- Creating the business service tier
- Creating the JSON-based REST service
We will start with the entity and finish with the REST service.
As a practice, we are following the test-driven development approach. Therefore, we will write the test for the entity first and the entity implementation second. First, make two instances of Student
with instances of Mentor
attached to each Student
. Then check for four instances of Student
, as shown in the following code. Check whether the instance names can be updated as well as deleted.
Get hands-on with 1400+ tech skills courses.