Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-2738

REST procedure not imported correctly from dynamic VDB

XMLWordPrintable

      When importing a dynamic VDB with REST procedure, the created procedure does not have the REST options set.

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <vdb name="RestProcedureVdbDynamic" version="1">
      	<description />
      	<property name="{http://teiid.org/rest}auto-generate" value="true" />
      	<model name="ProcedureModel" type="VIRTUAL">
      		<metadata type="DDL"><![CDATA[
      SET NAMESPACE 'http://teiid.org/rest' AS REST;
      CREATE VIRTUAL PROCEDURE testProc (p1 string(4000)) RETURNS TABLE (xml_out xml) OPTIONS ("REST:METHOD" 'GET', "REST:URI" 'test/{p1}')
      	AS
       BEGIN
      	SELECT XMLELEMENT(NAME test, XMLFOREST(ProcedureModel.testProc.p1 AS elem1, 'elem2' AS elem2)) AS xml_out;
      END;
      
      ]]></metadata>
      	</model>
      </vdb>
      

            blafond Barry LaFond
            asmigala@redhat.com Andrej Smigala
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: