HTTP TriggerΒΆ

Designating an HTTP trigger will allow the pipeline to be triggered by a RESTful POST call to http://[host]:[port]/trigger/. The body of the POST must be an EdgeX event.

edgexcontext.Complete([]byte outputData) - Will send the specified data as the response to the request that originally triggered the HTTP Request.

In the main() function, note the call to HTTPPostXML or HTTPPostJSON at the end of the pipeline to return the response.

from Simple Filter XML Post

  edgexSdk.HTTPPostXML("<Your endpoint goes here>"),