Question

Get JSON file contents using API

  • 25 March 2021
  • 6 replies
  • 20 views

Badge

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

Badge +22

I suggest looking into the datastreaming service.

 

https://docs.safe.com/fme/html/FME_Server_Documentation/ReferenceManual/service_datastreaming.htm

Badge

It doesn't helps much.

Badge +22

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
Badge

It doesn't helps much.

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

Badge

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?

Badge +22

It doesn't helps much.

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

Reply