Ask Your Question
0

Can HTTP Server Origin return output records?

asked 2017-12-12 02:49:27 -0600

Vivian Yang gravatar image

updated 2017-12-12 15:37:17 -0600

metadaddy gravatar image

Can i use the StreamSets HTTP Server Origin to process something and only return the results after having done some processing?

For example : I want to send an API request to StreamSets, http://localhost:8000/ with object:

{
  "condition": [
    {
      "code": "100"
    }
  ],
  "table": "sales_master"
}

and then use a processor to translate this above object to a query select code_desc from sales_master where code="100" for use in the JDBC Lookup Processor.

Then I want to return the results in an object and return it back to the requester.

{
  "status" : 200,
  "results" : [
    {results1},
    {results2}
  ]
}

Is it possible to achieve this use case?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-12-12 15:32:11 -0600

metadaddy gravatar image

No - the HTTP Server Origin just returns 200 OK HTTP status on successful processing.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-12-12 02:49:27 -0600

Seen: 169 times

Last updated: Dec 12 '17