Question

Getting Result values via REST with FME Server

  • 8 February 2019
  • 3 replies
  • 7 views

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

Userlevel 4

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.

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

Userlevel 4

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

Reply