Delete Product

Now, let’s navigate back to the application and attempt to delete a product (using the URL and credentials we used above). You’ll notice that, despite our changes, delete is still not working. This is because the API Gateway is still not wired to connect to our application tier services. To resolve this, we’ll need to open the API Gateway service in the console and select the “saas-factory-srvls-wrkshp-lab2” from the navigation pane on the left. This will display the various resources that are part of the system’s REST API. Within the list, you’ll see the resources for “/products”. They will appear as follows:

Delete Product - Figure 1

To resolve our issue, we need to repair the DELETE method for this resource. Select DELETE to configure this method.