Skip to content

Commit

Permalink
Implement create method in Java PipelineApi
Browse files Browse the repository at this point in the history
  • Loading branch information
obermeier committed Mar 29, 2023
1 parent c33607d commit c38e61f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
*/
package org.apache.streampipes.client.api;

import java.util.List;
import org.apache.streampipes.client.model.StreamPipesClientConfig;
import org.apache.streampipes.client.util.StreamPipesApiPath;
import org.apache.streampipes.model.message.Message;
import org.apache.streampipes.model.message.SuccessMessage;
import org.apache.streampipes.model.pipeline.Pipeline;
import org.apache.streampipes.model.pipeline.PipelineOperationStatus;

import java.util.List;
import org.apache.streampipes.model.message.SuccessMessage;

public class PipelineApi extends AbstractTypedClientApi<Pipeline> implements CRUDApi<String, Pipeline> {

Expand All @@ -46,9 +47,10 @@ public List<Pipeline> all() {
return getAll(getBaseResourcePath());
}


@Override
public void create(Pipeline element) {

post(getBaseResourcePath(), element, SuccessMessage.class);
}

/**
Expand Down

0 comments on commit c38e61f

Please sign in to comment.