]
Ramesh Reddy updated TEIIDDES-2328:
-----------------------------------
Attachment: showdocument.png
Rest Importer: Show the response document
-----------------------------------------
Key: TEIIDDES-2328
URL:
https://issues.jboss.org/browse/TEIIDDES-2328
Project: Teiid Designer
Issue Type: Enhancement
Security Level: Public(Everyone can see)
Components: Import/Export
Reporter: Ramesh Reddy
Attachments: showdocument.png
I used the one of the REST APIs from [
http://nycpulse.herokuapp.com/api]
For this JIRA, I was using [
http://mtaapi.herokuapp.com/times?hour=10&minute=25]
The importer says the response document is bad, see the attached screen shot. The repose
is like
{code}
{
"result": [
{
"arrival": "10:25:00",
"id": "242N",
"lat": "40.662742",
"lon": "-73.95085",
"name": "Sterling St"
},
{
"arrival": "10:25:00",
"id": "242N",
"lat": "40.662742",
"lon": "-73.95085",
"name": "Sterling St"
},
{
"arrival": "10:25:30",
"id": "A09S",
"lat": "40.840719",
"lon": "-73.939561",
"name": "168 St"
}
}
{code}
So, that looks like valid JSON to me. So, two part question
1) Why importer complaining? fix any errors as such
2) The gist of this JIRA, instead of showing link to some response file, that I have no
way to check the contents if wanted, show the response document itself. This pattern is
not new, CSV importer and XML importer do show the document to user, which IMO is much
more valuable and gives visual indication right away what they are working with.
I even say this needs to be done File based importer too (create JIRA if you decide to
work on this separately)