Skip to main content
Question

Get JSON file contents using API


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+28
  • Contributor
  • March 25, 2021

fikusas
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • March 26, 2021
jdh wrote:

It doesn't helps much.


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • March 26, 2021
fikusas wrote:

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
  • March 29, 2021
fikusas wrote:

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
  • April 2, 2021
fikusas wrote:

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+28
  • Contributor
  • April 5, 2021
fikusas wrote:

It doesn't helps much.

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings