You already know that Web Services are software systems designed to support interoperable machine-to-machine interaction over a network. In this section we are going to talk about another type of Web Services: REST Web services. This kind of services use HTTP for the communication and are based on REST (REpresentational State Transfer) principles as protocol to exchange messages.
Following the specification:
Denodo can publish any base/derived views/interfaces as REST Web Services to enable external applications (or users using their browser) to retrieve data from the Data Virtualization layer.
In this example, we are going to create the same service created in the previous section but as REST service.
Let's create your first REST Service in Denodo. These are the steps:
"New > Data service > REST Web service".
In the first tab (Resources) you can add views to the Web Service. You only have to drag any view/stored procedure/interface to this dialog.
Now, you have to follow these steps:
REST web services have more configurations available in the second tab (Settings).
In this tab you can complete the REST Web Service definition selecting the output representation format. By default, HTML, XML and JSON are activated.
Another important configuration is the authentication method. By default, created REST services doesn't have any authentication method so any person could use it. In this example, simply select HTTP Basic with VDP method (leaving empty the Accepted user(s) field) to delegate the authentication to the Denodo server.
Finally, click on "Ok" button to create the REST Web Service.
Now, you have created a SOAP and a REST web service in Denodo, in the next section you are going to see how to deploy them in the Denodo internal web container.