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 service: REST Web services. This kind of service uses HTTP for communication and is based on the REST (REpresentational State Transfer) architectural style as protocol for exchanging messages.
Following the specification:
Just like SOAP, Denodo can publish any base/derived views and interfaces as REST Web services to enable external applications (or users using their browser) to retrieve data from the Data Virtualization layer.
To create your first REST Service:
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 into this dialog to add them.
REST web services have more configurations available in the second tab (Settings).
In this tab you can complete the REST Web service definition by selecting the output representation format. By default, HTML, XML and JSON are made available.
Another important configuration is the authentication method. By default, created REST services don't have any authentication method and any connection could use it. In this example, simply select the HTTP Basic with VDP method (leaving the Accepted user(s) field empty) to delegate the authentication to the Denodo server.
Finally, click on Save, 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 with the Denodo Internal Web Container.