Adding features to the first version of the data referential service
The first version of the data referential service that was created in the previous chapter is for now only able to create data. In this section, we will first check that it works fine using a more industrial approach than the simple manual tests shown before, and then we’ll discuss the delete operation.
Testing the data referential service
Having a more industrial approach to validation is really about automatic testing, and this is what we will do in this present section. The very first test is to run the application and check that the OpenAPI/Swagger interface works fine:
Figure 17.1 – The OpenAPI interface for the books controller
After that, we can test a creation operation on Postman by using the following setup, in which we choose the POST
operation to send a creation command to the /Books
URL of the server host you want to test (in a normal Postman setup, we...