Source:
<code>public Result listSubscriptions(@Nullable final String owningApplication, @Nullable final Set<String> eventTypes, final boolean showStatus, final int limit, final int offset) { if (limit < 1 || limit > 1000) { final Problem problem = Problem.valueOf(Response.Status.BAD_REQUEST, "'limit' parameter should have value from 1 to 1000"); return Result.problem(problem); } if (offset < 0) { final Problem problem = Problem.valueOf(Response.Status.BAD_REQUEST, "'offset' parameter can't be lower than 0"); return Result.problem(problem); } try { final Set<String> eventTypesFilter = eventTypes == null ? ImmutableSet.of() : eventTypes; final Optional<String> owningAppOption = Optional.ofNullable(owningApplication); final List<Subscription> subscriptions = subscriptionRepository.listSubscriptions(eventTypesFilter, owningAppOption, offset, limit); final PaginationLinks paginationLinks = SubscriptionsUriHelper.createSubscriptionPaginationLinks( <START> owningAppOption, eventTypesFilter, offset, limit, subscriptions.size()); <END> final PaginationWrapper<Subscription> paginationWrapper = new PaginationWrapper<>(subscriptions, paginationLinks); if (showStatus) { final List<Subscription> items = paginationWrapper.getItems(); items.forEach(s -> s.setStats(createSubscriptionStat(s, false))); } return Result.ok(paginationWrapper); } catch (final ServiceTemporarilyUnavailableException e) { LOG.error("Error occurred during listing of subscriptions", e); return Result.problem(Problem.valueOf(Response.Status.SERVICE_UNAVAILABLE, e.getMessage())); } }</code><technical_language>new field show_status included pagination link</technical_language>

Target:
public Result listSubscriptions(@Nullable final String owningApplication, @Nullable final Set<String> eventTypes, final boolean showStatus, final int limit, final int offset) { if (limit < 1 || limit > 1000) { final Problem problem = Problem.valueOf(Response.Status.BAD_REQUEST, "'limit' parameter should have value from 1 to 1000"); return Result.problem(problem); } if (offset < 0) { final Problem problem = Problem.valueOf(Response.Status.BAD_REQUEST, "'offset' parameter can't be lower than 0"); return Result.problem(problem); } try { final Set<String> eventTypesFilter = eventTypes == null ? ImmutableSet.of() : eventTypes; final Optional<String> owningAppOption = Optional.ofNullable(owningApplication); final List<Subscription> subscriptions = subscriptionRepository.listSubscriptions(eventTypesFilter, owningAppOption, offset, limit); final PaginationLinks paginationLinks = SubscriptionsUriHelper.createSubscriptionPaginationLinks( owningAppOption, eventTypesFilter, offset, limit, showStatus, subscriptions.size()); final PaginationWrapper<Subscription> paginationWrapper = new PaginationWrapper<>(subscriptions, paginationLinks); if (showStatus) { final List<Subscription> items = paginationWrapper.getItems(); items.forEach(s -> s.setStatus(createSubscriptionStat(s, false))); } return Result.ok(paginationWrapper); } catch (final ServiceTemporarilyUnavailableException e) { LOG.error("Error occurred during listing of subscriptions", e); return Result.problem(Problem.valueOf(Response.Status.SERVICE_UNAVAILABLE, e.getMessage())); } }