Skip to content

Commit 1ff2c61

Browse files
Enable topLevel InternalProxy for yaml (#2581)
1 parent e0c015b commit 1ff2c61

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

core/src/main/java/com/predic8/membrane/core/proxies/InternalProxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* <p>Internal proxies are useful to better structure the configuration of the gateway.</p>
2323
* @topic 1. Proxies and Flow
2424
*/
25-
@MCElement(name="internal")
25+
@MCElement(name="internal", topLevel = true, component = false)
2626
public class InternalProxy extends AbstractServiceProxy implements NotPortOpeningProxy {
2727

2828
public InternalProxy() {

distribution/examples/routing-traffic/content-based-router/apis.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ api:
3535
status: 200
3636

3737
---
38-
api:
38+
internal:
3939
name: order
4040
flow:
4141
- static:
@@ -44,7 +44,7 @@ api:
4444
status: 200
4545

4646
---
47-
api:
47+
internal:
4848
name: express
4949
flow:
5050
- static:

distribution/examples/routing-traffic/internalproxy/apis.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ api:
1717
---
1818
# An internal API is like a function or subroutine for an API.
1919
# For an internal API a port is not needed
20-
api:
20+
internal:
2121
name: express
2222
flow:
2323
- static:
@@ -26,7 +26,7 @@ api:
2626
status: 200
2727

2828
---
29-
api:
29+
internal:
3030
name: normal
3131
flow:
3232
- static:

0 commit comments

Comments
 (0)