Search in sources :

Example 1 with PlansResource

use of org.eclipse.winery.repository.rest.resources.servicetemplates.plans.PlansResource in project winery by eclipse.

the class ServiceTemplateResource method getPlansResource.

@Path("plans/")
public PlansResource getPlansResource() {
    TPlans plans = this.getServiceTemplate().getPlans();
    if (plans == null) {
        plans = new TPlans();
        this.getServiceTemplate().setPlans(plans);
    }
    return new PlansResource(plans.getPlan(), this);
}
Also used : TPlans(org.eclipse.winery.model.tosca.TPlans) PlansResource(org.eclipse.winery.repository.rest.resources.servicetemplates.plans.PlansResource) Path(javax.ws.rs.Path)

Aggregations

Path (javax.ws.rs.Path)1 TPlans (org.eclipse.winery.model.tosca.TPlans)1 PlansResource (org.eclipse.winery.repository.rest.resources.servicetemplates.plans.PlansResource)1