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

Rest Importer: Show the response document

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 9.0, 8.6.1
    • 8.6
    • Import/Export
    • None

    Description

      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

      {
        "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"
          }
      }
      

      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)

      Attachments

        Activity

          People

            blafond Barry LaFond
            rhn-engineering-rareddy Ramesh Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: