This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Return a wrapper object for flows instead of a plain array/list
of flows
- Loading branch information
Showing
7 changed files
with
45 additions
and
19 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
api/src/main/java/io/kaoto/backend/api/resource/model/FlowsWrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package io.kaoto.backend.api.resource.model; | ||
|
||
import io.kaoto.backend.api.resource.v1.model.Integration; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
/** | ||
* 🐱class FlowsWrapper | ||
* | ||
* Used by the API to pass flows back and forth. | ||
* | ||
*/ | ||
public record FlowsWrapper(List<Integration> flows, Map<String, Object> properties) { | ||
|
||
public FlowsWrapper(List<Integration> flows) { | ||
this(flows, null); | ||
} | ||
|
||
public FlowsWrapper(List<Integration> flows, Map<String, Object> properties) { | ||
this.flows = flows; | ||
this.properties = properties; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[ | ||
{ "flows": [ | ||
{ | ||
"dsl": "Camel Route", | ||
"metadata": { | ||
|
@@ -144,4 +144,4 @@ | |
], | ||
"params": [] | ||
} | ||
] | ||
]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[ | ||
{ "flows": [ | ||
{ | ||
"dsl": "Camel Route", | ||
"metadata": { | ||
|
@@ -456,4 +456,4 @@ | |
], | ||
"params": [] | ||
} | ||
] | ||
]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[ | ||
{ "flows": [ | ||
{ | ||
"dsl": "Camel Route", | ||
"metadata": { | ||
|
@@ -287,4 +287,4 @@ | |
], | ||
"params": [] | ||
} | ||
] | ||
]} |