Now that we know how to fetch data, the next step is to learn how to create the data so that we can fetch it later.
Thus, we will learn how to create the REST URL, which will respond to the POST request.
We are going to modify the code we created in the previous recipe. You can duplicate the project from the last recipe to keep it separated or you can use the same one.
bootmethod in the
ClientCacheobject by adding a new
clientsvariable and the
startClientmethod, and modify the object declaration from
object ClientCache extends ...