/** * Get a Tosca Type and all related dependency types. * * @param typeId The id (element id) of the tosca type. * @param typeVersion The version of the tosca type. * @return A {@link RestResponse} that contains an {@link TypeWithDependenciesResult} . */ @RequestMapping(value = "adv/typewithdependencies/{typeId:.+}/{typeVersion:.+}", method = RequestMethod.GET) @PreAuthorize("hasAnyAuthority('ADMIN', 'COMPONENTS_MANAGER', 'COMPONENTS_BROWSER')") public RestResponse<TypeWithDependenciesResult> getTypeWithDependencies(@PathVariable String typeId, @PathVariable String typeVersion) { AbstractToscaType type = toscaTypeSearchService.findOrFail(AbstractToscaType.class, typeId, typeVersion); return RestResponseBuilder.<TypeWithDependenciesResult> builder().data(toscaWithDependenciesBuilder.buildTypeWithDependencies(type)).build(); } }