@GetMapping(path = "/resources/{namespace}/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
    @Operation(summary = "Fetch all authorizable resources for namespace by id",
        parameters = {
            @Parameter(name = "namespace", in = ParameterIn.PATH, required = true, description = "Namespace to fetch resources for"),
            @Parameter(name = "id", in = ParameterIn.PATH, required = true, description = "Resource id to fetch")
        })
    public ResponseEntity<AuthorizableResource> fetchResourcesForNamespaceById(
        @PathVariable final String namespace, @PathVariable final long id) {
        val resource = authorizableResourceRepository.find(namespace, id);
        return ResponseEntity.of(resource);
    }
Fetch resources for namespace by id.

@param namespace the namespace
@param id        the id
@return the response entity
support/cas-server-support-heimdall/src/main/java/org/apereo/cas/heimdall/HeimdallAuthorizationEndpoint.java