class ExternalInterfaceRestController {

    @RequestMapping(value = EXTERNAL_INTERFACE_URI_PREFIX + "/{externalInterfaceName}", method = RequestMethod.PUT, consumes = {"application/xml",
        "application/json"})
    @Secured(SecurityFunctions.FN_EXTERNAL_INTERFACES_PUT)
    public ExternalInterface updateExternalInterface(@PathVariable("externalInterfaceName") String externalInterfaceName,
        @RequestBody ExternalInterfaceUpdateRequest request)
    {
        return externalInterfaceService.updateExternalInterface(new ExternalInterfaceKey(externalInterfaceName), request);
    }

}