Add unit test for vfc-nfvo-wfengine
[vfc/nfvo/wfengine.git] / activiti-extension / src / main / java / org / onap / workflow / activitiext / restservicetask / ICatalogService.java
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+package org.onap.workflow.activitiext.restservicetask;
 
-package org.onap.workflow.activitiext;
+import javax.ws.rs.Consumes;
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.MediaType;
 
-import javax.annotation.PostConstruct;
-import javax.inject.Inject;
-
-import org.jvnet.hk2.annotations.Service;
-import org.onap.workflow.activitiext.common.Config;
-
-
-@Service
-public class ActivitiExtAppInit {
-  @Inject
-  private ActivitiExtAppConfig appconfig;
-  
-  @PostConstruct
-  private void run() {
-      runConfigComponent();
-  }
-  
-  private void runConfigComponent() {
-    Config.getInstance().setAppconfig(appconfig);
-  }
+@Path("/")
+public interface ICatalogService {
+       
+  @Path("csars/{csarId}/tosca/nodes/{nodeName}/properties")
+  @GET
+  @Consumes(MediaType.APPLICATION_JSON)
+  @Produces(MediaType.APPLICATION_JSON)
+  String getTopologyJson(@PathParam("csarId") String csarId, @PathParam("nodeName") String nodeName);
 }