Skip to main content

Hi. I have FME Workbench and FME Server installed and have uploaded a workflow which puts out a single output file. I simply want to be able to download this file using the restapi. How can this be accomplished?

Register your workspace with the datadownload service.

 

 

Have you seen https://knowledge.safe.com/articles/1294/tutorial-...

and https://knowledge.safe.com/articles/757/customizin...


You don't say why you want to use the API, which is important to provide a good answer. So I'd say either:

1) Use the Data Download service. The response will be xml that you can parse to extract the name of the URL from which the data can be downloaded (without using the REST API)

2) Use the Job Submitter service. Write the output to a Resources folder. Then you could download the data directly (without using the REST API) or you could use the REST Resources function.

ie /resources/connections/< resource >/filesys/< path >

But as the help says:

This web page will only display the response body instead of downloading
the file, REST clients should inspect the Content-Disposition header
and handle the download.

So that's why I ask if you really need to use that API.


Reply