Skip to main content
Question

Downloading Server output using REST API

  • May 13, 2016
  • 2 replies
  • 68 views

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?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

jdh
Contributor
Forum|alt.badge.img+38
  • Contributor
  • May 13, 2016

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...


Forum|alt.badge.img+5

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.