From 1a5442a0600dbfd1ab3ea5db4aac1ba41a50b1f1 Mon Sep 17 00:00:00 2001 From: dartpopikyardo Date: Wed, 23 Mar 2016 19:21:25 +0300 Subject: [PATCH] changed POST /customers/{id}/toaccounts endpoint result format --- .../banking/web/commandside/customers/CustomerController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-spring/customers-command-side-web/src/main/java/net/chrisrichardson/eventstore/javaexamples/banking/web/commandside/customers/CustomerController.java b/java-spring/customers-command-side-web/src/main/java/net/chrisrichardson/eventstore/javaexamples/banking/web/commandside/customers/CustomerController.java index 745c4c3..0faef9e 100644 --- a/java-spring/customers-command-side-web/src/main/java/net/chrisrichardson/eventstore/javaexamples/banking/web/commandside/customers/CustomerController.java +++ b/java-spring/customers-command-side-web/src/main/java/net/chrisrichardson/eventstore/javaexamples/banking/web/commandside/customers/CustomerController.java @@ -33,7 +33,7 @@ public class CustomerController { @RequestMapping(value = "/{id}/toaccounts", method = RequestMethod.POST) public Observable addToAccount(@PathVariable String id, @Validated @RequestBody ToAccountInfo request) { return customerService.addToAccount(id, request) - .map(entityAndEventInfo -> entityAndEventInfo.entityVersion().asString()); + .map(entityAndEventInfo -> "\"" + entityAndEventInfo.entityVersion().asString() + "\""); } }