class ApiKeysController {

    @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
    @AuditEventMethod(event = API_KEY_REMOVE)
    @PreAuthorize("hasAuthority('REVOKE_API_KEY')")
    public ResponseEntity revoke(@PathVariable("id") long id) {
        try {
            apiKeyService.removeById(id);
        } catch (ApiKeyService.ApiKeyNotFoundException e) {
            throw new ResourceNotFoundException(e);
        }
        return new ResponseEntity(HttpStatus.OK);
    }

    @Autowired public  ApiKeysController(ApiKeyService apiKeyService, PublicApiKeyDataConverter publicApiKeyDataConverter);

}