ServiceTemplateResource extends AbstractComponentInstanceResourceContainingATopology implements IHasName { public TServiceTemplate getServiceTemplate() { return (TServiceTemplate) this.getElement(); } ServiceTemplateResource(ServiceTemplateId id); TServiceTemplate getServiceTemplate(); @Override void setTopology(TTopologyTemplate topologyTemplate, String type); @Path("topologytemplate/") TopologyTemplateResource getTopologyTemplateResource(); @Path("plans/") PlansResource getPlansResource(); @Path("selfserviceportal/") SelfServicePortalResource getSelfServicePortalResource(); @Path("boundarydefinitions/") BoundaryDefinitionsResource getBoundaryDefinitionsResource(); @Override String getName(); @Override Response setName(String name); @GET @ApiOperation(value = "Returns the associated node type, which can be substituted by this service template.") @ApiResponses(value = { @ApiResponse(code = 200, response = QName.class, message = "QName of the form {namespace}localName") }) @Path("substitutableNodeType") @Produces(MediaType.TEXT_PLAIN) Response getSubstitutableNodeTypeAsResponse(); QName getSubstitutableNodeType(); @DELETE @ApiOperation(value = "Removes the association to substitutable node type") @Path("substitutableNodeType") Response deleteSubstitutableNodeType(); @GET @Path("injector/options") @Produces( {MediaType.APPLICATION_XML, MediaType.TEXT_XML, MediaType.APPLICATION_JSON}) Response getInjectorOptions(); @POST @Path("injector/replace") @Consumes( {MediaType.APPLICATION_XML, MediaType.TEXT_XML, MediaType.APPLICATION_JSON}) @Produces( {MediaType.APPLICATION_XML, MediaType.TEXT_XML, MediaType.APPLICATION_JSON}) Response injectNodeTemplates(InjectorReplaceData injectorReplaceData, @Context UriInfo uriInfo); @Path("constraintchecking") @Produces(MediaType.APPLICATION_XML) @POST Response complianceChecking(@Context UriInfo uriInfo); @Path("substitute") @Produces(MediaType.APPLICATION_JSON) @GET ServiceTemplateId substitute(); @POST() @Path("createnewstatefulversion") @Produces( {MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML}) Response createNewStatefulVersion(); @Path("threatmodeling") @Produces(MediaType.APPLICATION_JSON) @GET ThreatAssessment threatModeling(); @Override void synchronizeReferences(); @Path("parameters") ParameterResource getParameterResource(); @Path("toscalight") @Produces(MediaType.APPLICATION_JSON) @GET Map<String, Object> getToscaLightCompatibility();  }
@Test public void getServicetemplate() throws Exception { this.setRevisionTo("a5fd2da6845e9599138b7c20c1fd9d727c1df66f"); this.assertGet("servicetemplates/", "entitytypes/servicetemplates/baobab_inital.json"); }