Skip to main content
Question

Get JSON file contents using API

  • Mar 25, 2021 1:21 PM UTC
  • 6 replies
  • 123 views

fikusas
Contributor
Forum|alt.badge.img+5

I'm submitting jobs using FME API (v2):

/transformations/commands/submit/< repository >/< workspace >

The model writes output results to JSON file. Is it a way to get contents of the result JSON file through API request? Using this with no luck (visible log details only):

/transformations/jobs/id/< jobid >/result

 

6 replies

jdh
Contributor
Forum|alt.badge.img+41
  • Contributor
  • Mar 25, 2021 7:17 PM UTC

fikusas
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • Mar 26, 2021 7:46 AM UTC

It doesn't helps much.


jdh
Contributor
Forum|alt.badge.img+41
  • Contributor
  • Mar 26, 2021 2:58 PM UTC

It doesn't helps much.

If you publish your workspace to use the data streaming service, and use a webhook, you are returned the actual json. As far as I know that isn’t available through the REST API, there’s an idea for that https://community.safe.com/s/idea/0874Q000000TkprQAC/detail

fikusas
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • Mar 29, 2021 6:39 AM UTC

It doesn't helps much.

So basically there is no way to do that using API ?


fikusas
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • Apr 2, 2021 10:09 AM UTC

It doesn't helps much.

If you publish your workspace to use the data streaming service, and use a webhook, you are returned the actual json.

 

Can you explain this part?


jdh
Contributor
Forum|alt.badge.img+41
  • Contributor
  • Apr 5, 2021 4:43 PM UTC

It doesn't helps much.

There's an article about webhooks at https://community.safe.com/s/article/webhooks-and-fme-server