Proper wrapping for events custom responses
parent
f8afdf1e6d
commit
78cafe0f1a
|
@ -68,7 +68,11 @@ public class EventController {
|
||||||
}
|
}
|
||||||
return ResponseEntity
|
return ResponseEntity
|
||||||
.status(HttpStatus.OK)
|
.status(HttpStatus.OK)
|
||||||
.body(new Object() { public Object _embedded = result;});
|
.body(new Object() {
|
||||||
|
public Object _embedded = new Object() {
|
||||||
|
public Object events = result;
|
||||||
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue