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
A function can receive any data, not just `CloudEvents`. For example, you might want to call a function by using POST with an arbitrary object in the body:
61
+
62
+
[source,json]
63
+
----
64
+
{
65
+
"id": "12345",
66
+
"contact": {
67
+
"title": "Mr.",
68
+
"firstname": "John",
69
+
"lastname": "Smith"
70
+
}
71
+
}
72
+
----
73
+
74
+
In this case, you can define the function as follows:
CloudEvents can contain various data types, including JSON, XML, plain text, and binary data. These data types are provided to the function in their respective formats:
0 commit comments