Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @GetMapping("/")
- public ResponseEntity<Map<String, Object>> getAll() {
- List<RestResult> listRest = restService.getAll();
- Map<String, Object> hasil = new HashMap<>();
- hasil.put("data", listRest);
- hasil.put("status", "berhasil");
- hasil.put("code", "200");
- return new ResponseEntity<>(hasil, HttpStatus.OK);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement