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 6b48d3f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
*/
package org.apache.streampipes.client.api;


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;

Expand All @@ -46,9 +48,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 6b48d3f

Please sign in to comment.