Skip to main content
Question

Get JSON file contents using API

  • March 25, 2021
  • 6 replies
  • 59 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+37
  • Contributor
  • 2002 replies
  • March 25, 2021

fikusas
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • 75 replies
  • March 26, 2021

It doesn't helps much.


jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • March 26, 2021

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
  • 75 replies
  • March 29, 2021

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
  • 75 replies
  • April 2, 2021

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+37
  • Contributor
  • 2002 replies
  • April 5, 2021

It doesn't helps much.

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