changed POST /customers/{id}/toaccounts endpoint result format

This commit is contained in:
dartpopikyardo
2016-03-23 19:21:25 +03:00
parent e699220162
commit 1a5442a060

View File

@@ -33,7 +33,7 @@ public class CustomerController {
@RequestMapping(value = "/{id}/toaccounts", method = RequestMethod.POST)
public Observable<String> addToAccount(@PathVariable String id, @Validated @RequestBody ToAccountInfo request) {
return customerService.addToAccount(id, request)
.map(entityAndEventInfo -> entityAndEventInfo.entityVersion().asString());
.map(entityAndEventInfo -> "\"" + entityAndEventInfo.entityVersion().asString() + "\"");
}
}