class Sol003PackageManagementSubscriptionController {

    @DeleteMapping(value = "/subscriptions/{subscriptionId}")
    public ResponseEntity<?> deleteSubscription(@PathVariable("subscriptionId") final String subscriptionId) {
        if (subscriptionManager.deleteSubscription(subscriptionId)) {
            logger.debug("Successfully deleted subscription with id {}", subscriptionId);
            return ResponseEntity.noContent().build();
        }
        final String errorMessage =
                "The requested subscription: " + subscriptionId + " was not found on call deleteSubscription";
        logger.error(errorMessage);
        return ResponseEntity.status(HttpStatus.NOT_FOUND).body(new ProblemDetails().detail(errorMessage));
    }

    @Autowired public  Sol003PackageManagementSubscriptionController(final SubscriptionManager subscriptionManager);

}