]
Barry LaFond resolved TEIIDDES-2738.
------------------------------------
Resolution: Done
master:
REST procedure not imported correctly from dynamic VDB
-------------------------------------------------------
Key: TEIIDDES-2738
URL:
https://issues.jboss.org/browse/TEIIDDES-2738
Project: Teiid Designer
Issue Type: Bug
Components: Import/Export, Patch Release, VDB & Execution
Affects Versions: 9.0.4
Reporter: Andrej Šmigala
Assignee: Barry LaFond
Fix For: 9.2.1
When importing a dynamic VDB with REST procedure, the created procedure does not have the
REST options set.
{code:xml}
<?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>
{code}