-
Bug
-
Resolution: Duplicate
-
Critical
-
None
-
8.3.2
-
None
OK, I tried the REST based import wizard for the first time today since none of WSDL based solutions worked for me for those issues see TEIIDDES-2162
I believe the REST based importer is designed to generate wrong artifacts. It was designed same as XML file, where a given XML file, Teiid designer aids the user to come up with a "view". The difference between a XML file and REST based service is, a
- REST service will have input parameters. It is the input parameters that makes it a service, otherwise it just a remote URL.
- REST Service can have optional paths
Take for example WSDL based SOAP importer also gets XML as result, but it is designed to produce a procedure to capture the input parameters and return tabular result. REST based service MUST be doing exact same thing.
Teiid invokeHTTP does work with relative and absolute URLs, Teiid even has "querystring" function https://docs.jboss.org/author/display/TEIID/BNF+for+SQL+Grammar#BNFforSQLGrammar-queryString
to help build the query parameter part of the URL, then you just need to concat it with the URL to make the whole.
Then we also need give a way to build optional path, based on input parameter to procedure, so in reality a parameter can be part of path or parameter
IMO the way we have does not serve any real usecase, like mine where I was trying to read a quotes from REST service
- duplicates
-
TEIIDDES-1829 Add Dynamic Parameter Capability to REST Connection Profile
- Closed