Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @GetMapping(value = "/api/pariwisata")
- public ResponseEntity<?> getPariwisataFilter(
- @RequestParam(value = "namaPariwisata", required = false) String namaPariwisata,
- @RequestParam(value = "provinsi", required = false) String provinsi) {
- HateoasResource hateoasResource = new HateoasResource(pariwisataService.getPariwisataFilter(namaPariwisata, provinsi));
- hateoasResource.add(linkTo(methodOn(PariwisataController.class).getPariwisataFilter(namaPariwisata, provinsi)).withSelfRel());
- return new ResponseEntity<>(hateoasResource, HttpStatus.OK);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement