You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specification.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1092,7 +1092,7 @@ Here is an example function definition for REST requests with method `GET` and r
1092
1092
}
1093
1093
```
1094
1094
1095
-
Note that the [Function Definition](#Function-Definition)'s `operation` property must follow the OpenAPI Paths Object specification definition.
1095
+
Note that the [Function Definition](#Function-Definition)'s `operation` property must follow the [OpenAPI Paths Object](https://spec.openapis.org/oas/v3.1.0#paths-object) specification definition.
1096
1096
1097
1097
The function can be referenced during workflow execution when the invocation of the REST service is desired. For example:
1098
1098
@@ -1123,6 +1123,7 @@ Example of the `POST` request sending the state data as part of the body:
1123
1123
"functions":[
1124
1124
{
1125
1125
"name": "createUser",
1126
+
"type": "rest",
1126
1127
"operation": {
1127
1128
"/users": {
1128
1129
"post": {
@@ -1149,16 +1150,15 @@ Example of the `POST` request sending the state data as part of the body:
1149
1150
}
1150
1151
}
1151
1152
}
1152
-
},
1153
-
"type": "rest"
1153
+
}
1154
1154
}
1155
1155
]
1156
1156
}
1157
1157
```
1158
1158
1159
-
Note that the `requestBody` content schema is described inline rather than a reference to an external document.
1159
+
Note that the `requestBody` [`content` attribute](https://spec.openapis.org/oas/v3.1.0#fixed-fields-10) is described inline rather than a reference to an external document.
1160
1160
1161
-
You can reference the `createUser` function and filter the input data to invoke it, as shown in the example below:
1161
+
You can reference the `createUser` function and filter the input data to invoke it. Given the workflow input data:
1162
1162
1163
1163
```json
1164
1164
{
@@ -1220,7 +1220,7 @@ In this case, only the contents of the `user` attribute will be passed to the fu
1220
1220
}
1221
1221
```
1222
1222
1223
-
The specification does not support the [Security Requirement Object](https://spec.openapis.org/oas/v3.1.0#security-requirement-object). To define authentication for the REST operation, use the [Auth Definition](#Auth-Definition). If provided, this field is ignored.
1223
+
The specification does not support the [Security Requirement Object](https://spec.openapis.org/oas/v3.1.0#security-requirement-object) since its redundat to function [Auth Definition](#Auth-Definition). If provided, this field is ignored.
1224
1224
1225
1225
#### Using Functions for Async API Service Invocations
0 commit comments