|
5 | 5 | "name": [ |
6 | 6 | { |
7 | 7 | "code": "en-US", |
8 | | - "content": "Rest Endpoint" |
| 8 | + "content": "Webhook" |
9 | 9 | } |
10 | 10 | ], |
11 | 11 | "description": [ |
12 | 12 | { |
13 | 13 | "code": "en-US", |
14 | | - "content": "A REST API is a web service that lets clients interact with data on a server using standard HTTP methods like GET, POST, PUT, and DELETE usually returning results in JSON format." |
| 14 | + "content": "A Webhook is an HTTP endpoint that listens for incoming requests from external services or clients, allowing you to react to events in real time using standard HTTP methods like GET, POST, PUT, and DELETE." |
15 | 15 | } |
16 | 16 | ], |
17 | 17 | "documentation": [], |
18 | 18 | "displayMessage": [ |
19 | 19 | { |
20 | 20 | "code": "en-US", |
21 | | - "content": "Trigger Rest-Flow on ${httpMethod} with a Request to ${httpURL}" |
| 21 | + "content": "Webhook on ${httpMethod} at ${httpURL}" |
22 | 22 | } |
23 | 23 | ], |
24 | 24 | "alias": [ |
25 | 25 | { |
26 | 26 | "code": "en-US", |
27 | | - "content": "http;rest;route;web;webhook" |
| 27 | + "content": "webhook;http;rest;route;web" |
28 | 28 | } |
29 | 29 | ], |
30 | 30 | "displayIcon": "tabler:world-www", |
31 | | - "signature": "<T>(input_schema: TYPE<T>, httpURL: HTTP_URL, httpMethod: HTTP_METHOD): REST_ADAPTER_INPUT<T>", |
| 31 | + "signature": "<A extends REST_AUTH_TYPE, T>(httpSchema: HTTP_SCHEMA, httpURL: HTTP_URL, httpMethod: HTTP_METHOD, httpAuth: A, httpAuthValue: REST_AUTH_VALUE<A>, input_schema: TYPE<T>): REST_ADAPTER_INPUT<T>", |
32 | 32 | "linkedDataTypeIdentifiers": [ |
| 33 | + "HTTP_SCHEMA", |
33 | 34 | "HTTP_URL", |
34 | 35 | "HTTP_METHOD", |
| 36 | + "REST_AUTH_TYPE", |
| 37 | + "REST_AUTH_VALUE", |
35 | 38 | "REST_ADAPTER_INPUT" |
36 | 39 | ], |
37 | 40 | "settings": [ |
38 | 41 | { |
39 | | - "identifier": "input_schema", |
| 42 | + "identifier": "httpSchema", |
40 | 43 | "unique": "NONE", |
41 | 44 | "name": [ |
42 | 45 | { |
43 | 46 | "code": "en-US", |
44 | | - "content": "Input schema" |
| 47 | + "content": "Content Type" |
45 | 48 | } |
46 | 49 | ], |
47 | 50 | "description": [ |
48 | 51 | { |
49 | 52 | "code": "en-US", |
50 | | - "content": "Input schema which defines the expected structure of the incoming request data." |
| 53 | + "content": "Specifies the MIME type of the incoming request payload, such as application/json, application/xml, or text/plain. This determines the expected format of the payload parameter." |
51 | 54 | } |
52 | 55 | ] |
53 | 56 | }, |
|
82 | 85 | "content": "Specifies the HTTP request method (e.g., GET, POST, PUT, DELETE)." |
83 | 86 | } |
84 | 87 | ] |
| 88 | + }, |
| 89 | + { |
| 90 | + "identifier": "httpAuth", |
| 91 | + "unique": "NONE", |
| 92 | + "name": [ |
| 93 | + { |
| 94 | + "code": "en-US", |
| 95 | + "content": "Authentication type" |
| 96 | + } |
| 97 | + ], |
| 98 | + "description": [ |
| 99 | + { |
| 100 | + "code": "en-US", |
| 101 | + "content": "Specifies the authentication mechanism used for the incoming Webhook request (e.g., Bearer JWT, Bearer static, Basic)." |
| 102 | + } |
| 103 | + ] |
| 104 | + }, |
| 105 | + { |
| 106 | + "identifier": "httpAuthValue", |
| 107 | + "unique": "NONE", |
| 108 | + "name": [ |
| 109 | + { |
| 110 | + "code": "en-US", |
| 111 | + "content": "Authentication value" |
| 112 | + } |
| 113 | + ], |
| 114 | + "description": [ |
| 115 | + { |
| 116 | + "code": "en-US", |
| 117 | + "content": "Provides the credential value matching the selected authentication type (e.g., token string or username/password pair)." |
| 118 | + } |
| 119 | + ] |
| 120 | + }, |
| 121 | + { |
| 122 | + "identifier": "input_schema", |
| 123 | + "unique": "NONE", |
| 124 | + "name": [ |
| 125 | + { |
| 126 | + "code": "en-US", |
| 127 | + "content": "Input schema" |
| 128 | + } |
| 129 | + ], |
| 130 | + "description": [ |
| 131 | + { |
| 132 | + "code": "en-US", |
| 133 | + "content": "Input schema which defines the expected structure of the incoming request data." |
| 134 | + } |
| 135 | + ] |
85 | 136 | } |
86 | 137 | ] |
87 | 138 | } |
0 commit comments