Develop the Mock User Interface

We will develop the mock user interface for the standalone component in this lesson.

We’ll first build a mock user interface to demonstrate how we can integrate with the mock service. This is a helpful tool for the user interface team to work in tandem with the service development team. Later, we will integrate this with the actual service.

We will be using JSP for the user interface and jQuery with AJAX to connect with the REST service that was developed. REST services can be utilized as a plain URL and possess a body that passes JSON objects.

For the retrieval and remove operations, a plain URL will be used, whereas for add and update operations, a JSON object will be passed to the REST service.

Let’s look at creating the user interface shown in Figure 2-2.

Get hands-on with 1200+ tech skills courses.