[hotfix] rename typename.function -> function.name
diff --git a/docs/content/docs/deployment/module.md b/docs/content/docs/deployment/module.md
index 0de19ff..4f8d534 100644
--- a/docs/content/docs/deployment/module.md
+++ b/docs/content/docs/deployment/module.md
@@ -49,7 +49,7 @@
kind: http
functions: com.example/*
spec:
- urlPathTemplate: https://bar.foo.com/{typename.function}
+ urlPathTemplate: https://bar.foo.com/{function.name}
```
In this example, an endpoint for a function within the logical namespace `com.example` is declared.
@@ -67,7 +67,7 @@
kind: http
functions: com.example/*
spec:
- urlPathTemplate: https://bar.foo.com/{typename.function}
+ urlPathTemplate: https://bar.foo.com/{function.name}
```
Templating parameterization works well with load balancers and service gateways.
@@ -140,7 +140,7 @@
endpoint:
meta:
spec:
- urlPathTemplate: http://bar.foo.com/{typename.function}
+ urlPathTemplate: http://bar.foo.com/{function.name}
```
Supported schemes:
diff --git a/statefun-flink/statefun-flink-core/src/main/java/org/apache/flink/statefun/flink/core/jsonmodule/FunctionEndpointSpec.java b/statefun-flink/statefun-flink-core/src/main/java/org/apache/flink/statefun/flink/core/jsonmodule/FunctionEndpointSpec.java
index 9af6345..46257ee 100644
--- a/statefun-flink/statefun-flink-core/src/main/java/org/apache/flink/statefun/flink/core/jsonmodule/FunctionEndpointSpec.java
+++ b/statefun-flink/statefun-flink-core/src/main/java/org/apache/flink/statefun/flink/core/jsonmodule/FunctionEndpointSpec.java
@@ -102,7 +102,7 @@
class UrlPathTemplate implements Serializable {
private static final long serialVersionUID = 1;
- private static final String FUNCTION_NAME_HOLDER = "{typename.function}";
+ private static final String FUNCTION_NAME_HOLDER = "{function.name}";
private final String template;
diff --git a/statefun-flink/statefun-flink-core/src/test/resources/module-v3_0/module.yaml b/statefun-flink/statefun-flink-core/src/test/resources/module-v3_0/module.yaml
index c44cecd..2447c06 100644
--- a/statefun-flink/statefun-flink-core/src/test/resources/module-v3_0/module.yaml
+++ b/statefun-flink/statefun-flink-core/src/test/resources/module-v3_0/module.yaml
@@ -25,7 +25,7 @@
kind: http
spec:
functions: com.foo.bar/*
- urlPathTemplate: http://bar.foo.com:8080/functions/{typename.function}
+ urlPathTemplate: http://bar.foo.com:8080/functions/{function.name}
timeouts:
call: 1minutes
connect: 10seconds