Until now, we have created RESTful services and discussed server-side code with the help of code examples. We have consumed these services using external third-party tools, such as Postman and Advanced RESTClient. We have also consumed these services using fake objects and during unit testing. While helpful, these examples of consumption have not shown the true strength of RESTful services, as they have either tested their functionality or verified its output.
There may be situations where you will need to consume or use these services within another application similar to a controller, or even your own application itself. These applications can be any of the following:
- Console based
- Web based
- Mobile or any other device based
Let's take a look at one of the applications we've already discussed: let's say you need some mechanism to...