@RequestMapping(value = "/meetups/{urlName}/events/{eventId}", method = GET) public ResponseEntity<Meetup> findMeetup( @PathVariable final String urlName, @PathVariable final String eventId) { Meetup meetup = meetupService.findMeetup(urlName, eventId); return meetup != null ? ResponseEntity.ok(meetup) : new ResponseEntity<>(NOT_FOUND); }
@RequestMapping(value = "/meetups", method = GET) public ResponseEntity<List<Meetup>> findMeetups(final FindMeetupsRequest findMeetupsRequest) { List<Meetup> meetups = meetupService.findMeetups(findMeetupsRequest); return meetups != null ? ResponseEntity.ok(meetups) : new ResponseEntity<>(NOT_FOUND); }