Skip to content

Instantly share code, notes, and snippets.

@damoodamoo
Created March 11, 2020 11:02
Show Gist options
  • Save damoodamoo/a16ab2d7c07f0a24f59d6c0a8df415f9 to your computer and use it in GitHub Desktop.
Save damoodamoo/a16ab2d7c07f0a24f59d6c0a8df415f9 to your computer and use it in GitHub Desktop.
@PostMapping("/process-items")
public InvokeResponse processItems(@RequestBody InvokeRequest req) {
System.out.println("JAVA: Received items and sending... elsewhere...");
// we get a list of items, and do *something*
// ... then push them somewhere else...
InvokeResponse resp = new InvokeResponse();
resp.Outputs.put("output1", req.Data);
resp.Outputs.put("output2", req.Data);
return resp;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment