[
https://issues.jboss.org/browse/TEIIDDES-990?page=com.atlassian.jira.plug...
]
Ted Jones resolved TEIIDDES-990.
--------------------------------
Release Notes Docs Status: Not Yet Documented
Release Notes Text:
Added JSON support for generated REST war
Resolution: Done
Added JSON support for in/out values.
Resultset example:
{"books": {"book": {
"AUTHOR_ID": 31,
"EDITION": 1,
"ISBN": "1-55615-484-4",
"PUBLISHER": 5,
"PUBLISH_YEAR": 1993,
"SUBTITLE": "A Practical Handbook of Software Construction",
"TITLE": "Code Complete",
"TYPE": "Hardback"
}}}
Input example (values must be in the same order as the procedure parameters):
{
"AUTHOR_ID": 31,
"EDITION": 1,
"ISBN": "1-55615-484-4",
"PUBLISHER": 5,
"PUBLISH_YEAR": 1993,
"SUBTITLE": "A Practical Handbook of Software Construction",
"TITLE": "Code Complete",
"TYPE": "Hardback"
}
The URI for JSON methods will have "json" in it. For example:
http://host:port/warname/modelname/json/pathinfo
To use XML, omit the "json" path value
Add JSON Support to Generated REST War
--------------------------------------
Key: TEIIDDES-990
URL:
https://issues.jboss.org/browse/TEIIDDES-990
Project: Teiid Designer
Issue Type: Enhancement
Components: Web Services Support
Affects Versions: 7.4
Reporter: Ted Jones
Assignee: Ted Jones
Fix For: 7.5
Currently, the generated RESTEasy war accepts URI parameters and XML and produces only
XML. We need to add support for JSON as input and output as well as provide a way to
determine which one to use. We could perhaps generate methods for both and return XML for
XML inputs and JSON for JSON inputs. Another option would be to default to XML (or JSON)
and allow an override via an extended property on the procedure.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira