Merge commit 'a369c4989f8a238470e6ee7bd1a063f2937da1fc' into wip-customer
* commit 'a369c4989f8a238470e6ee7bd1a063f2937da1fc':
changed return type in POST /customers/{id}/toaccounts endpoint
This commit is contained in:
@@ -9,7 +9,6 @@ import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import rx.Observable;
|
||||
|
||||
|
||||
/**
|
||||
* Created by popikyardo on 03.02.16.
|
||||
*/
|
||||
@@ -31,9 +30,9 @@ public class CustomerController {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/{id}/toaccounts", method = RequestMethod.POST)
|
||||
public Observable<ToAccountInfo> addToAccount(@PathVariable String id, @Validated @RequestBody ToAccountInfo request) {
|
||||
public Observable<String> addToAccount(@PathVariable String id, @Validated @RequestBody ToAccountInfo request) {
|
||||
return customerService.addToAccount(id, request)
|
||||
.map(entityAndEventInfo -> request);
|
||||
.map(entityAndEventInfo -> "\"" + entityAndEventInfo.entityVersion().asString() + "\"");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user