You can translate the question and the replies:

HTTP path types

Hi Team, I'm using Denodo 7.0 version and followed below link to find the edit http connection tab to configure my REST API as GET/POST/PUT and the required input parameters. can you help with this issue. https://community.denodo.com/docs/html/browse/7.0/vdp/administration/creating_data_sources_and_base_views/path_types_in_virtual_dataport/http_path i have requirement where i need to configure my api as GET/PUT/POST,please let me know the syntax of the API or steps to do this
user
02-02-2021 09:01:20 -0500
code

1 Answer

Hi, If I want to consume a REST web service with HTTP data route, I would do the following steps: * Create a **[XML](https://community.denodo.com/docs/html/browse/7.0/vdp/administration/creating_data_sources_and_base_views/xml_sources/xml_sources)** / **[JSON](https://community.denodo.com/docs/html/browse/7.0/vdp/administration/creating_data_sources_and_base_views/json_sources/json_sources)** data source based on content type. * Choose the appropriate GET/PUT/POST HTTP methods. * Add necessary HTTP headers. * Specify POST body for POST/PUT methods. While doing so, I would make sure to understand all the possible values the service would expect as non-null and what values might be constrained by the primary key. In case you want to obtain the values dynamically, you could use **[Interpolation Variables](https://community.denodo.com/docs/html/browse/7.0/vdp/administration/creating_data_sources_and_base_views/path_types_in_virtual_dataport/path_types_in_virtual_dataport#paths-and-other-values-with-interpolation-variables)** in the URL or in the POST body section like: > “<web_service_url>?<field_name>=@<interpolation_variable_name>” You can take a look at the **[IDU Requests](https://community.denodo.com/docs/html/browse/7.0/vdp/administration/restful_architecture/restful_web_service/idu_requests)** section of Virtual DataPort Administration Guide for more information. You can also refer to similar community Q&A for more details: * [REST API Dynamic Endpoint](https://community.denodo.com/answers/question/details?questionId=9060g0000004ErVAAU&title=ReST+API+Dynamic+end+point) * [REST API Parameters](https://community.denodo.com/answers/question/details?questionId=9064u000000CevtAAC&Can+I+feed+Rest+API+parameters+from+a+database+query%3F) Hope this helps!
Denodo Team
03-02-2021 06:25:44 -0500
code
You must sign in to add an answer. If you do not have an account, you can register here