package io.syndesis.qe.endpoints;

import org.springframework.stereotype.Component;

import io.syndesis.server.endpoint.v1.handler.activity.Activity;

@Component
public class ActivityIntegrationsEndpoint extends AbstractEndpoint<Activity> {

    public ActivityIntegrationsEndpoint() {
        super(Activity.class, "/activity/integrations");
    }
}

@@ -144,16 +144,115 @@
 ivity;%0A%0A
+import javax.ws.rs.client.Invocation;%0Aimport javax.ws.rs.core.GenericType;%0Aimport java.util.List;%0A%0A
 @Compone
@@ -440,11 +440,343 @@
 );%0A    %7D
+%0A%0A    // we need to override Activity fetching because it isn't server as ListResult%0A    public List%3CActivity%3E list(String id) %7B%0A        final Invocation.Builder invocation = this.createInvocation(id);%0A%0A        final List%3CActivity%3E activities = invocation.get(new GenericType%3CList%3CActivity%3E%3E() %7B%7D);%0A        return  activities;%0A    %7D
 %0A%7D%0A

Fix Activity retrieval as generic list (#388)