class NamespaceRestController {

    @RequestMapping(value = "/namespaces/{namespaceCode}", method = RequestMethod.DELETE)
    @Secured(SecurityFunctions.FN_NAMESPACES_DELETE)
    public Namespace deleteNamespace(@PathVariable("namespaceCode") String namespaceCode)
    {
        return namespaceService.deleteNamespace(new NamespaceKey(namespaceCode));
    }

}