Skip to main content
Question

Getting Result values via REST with FME Server


Hi there! I am currently taking the REST-Workshop, provided by safe.

Now i have quiet a simple task: I want to call a Workspace on FME Server via REST and in the Response there should be a certain value, that the Workspace created based on published parameters send with my request. I am working with Postman and basically you can imagine my needs like this:

I want to give two numbers via REST to a Workspace on FME Server, these two are added up and the sum will be send back in the Response. So it is synchronus, right?

My workspace already works, and i can start it with REST, but how do i get my stuff in a response without making another REST-Call?

 

Thank you very much for thinking about my problem!

3 replies

david_r
Celebrity
  • February 11, 2019

It's not exactly the REST API, but you could use the fmedatastreaming service for this:

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

You could e.g. stream the results to a JSON writer.


  • Author
  • February 11, 2019

Thats what i did now. And it works quiet well! But is there a way to use the actual REST API for this?


david_r
Celebrity
  • February 11, 2019

Unfortunately I don't think that's currently possible, although I'd be very glad if someone could prove me wrong.


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