Add kamelet definition: http-sink
This commit is contained in:
parent
2c0bc52dc9
commit
d1d7530fa2
111
kamelet.json
Normal file
111
kamelet.json
Normal file
@ -0,0 +1,111 @@
|
||||
{
|
||||
"apiVersion": "camel.apache.org/v1",
|
||||
"kind": "Kamelet",
|
||||
"metadata": {
|
||||
"name": "http-sink",
|
||||
"annotations": {
|
||||
"camel.apache.org/kamelet.support.level": "Stable",
|
||||
"camel.apache.org/catalog.version": "4.22.1",
|
||||
"camel.apache.org/kamelet.icon": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MjAiCmhlaWdodD0iNDIwIiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiPgo8cGF0aCBzdHJva2Utd2lkdGg9IjI2IgpkPSJNMjA5LDE1YTE5NSwxOTUgMCAxLDAgMiwweiIvPgo8cGF0aCBzdHJva2Utd2lkdGg9IjE4IgpkPSJtMjEwLDE1djM5MG0xOTUtMTk1SDE1TTU5LDkwYTI2MCwyNjAgMCAwLDAgMzAyLDAgbTAsMjQwIGEyNjAsMjYwIDAgMCwwLTMwMiwwTTE5NSwyMGEyNTAsMjUwIDAgMCwwIDAsMzgyIG0zMCwwIGEyNTAsMjUwIDAgMCwwIDAtMzgyIi8+Cjwvc3ZnPg==",
|
||||
"camel.apache.org/provider": "Apache Software Foundation",
|
||||
"camel.apache.org/kamelet.group": "HTTP",
|
||||
"camel.apache.org/kamelet.namespace": "HTTP"
|
||||
},
|
||||
"labels": {
|
||||
"camel.apache.org/kamelet.type": "sink"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"definition": {
|
||||
"title": "HTTP Sink",
|
||||
"description": "Forward data to a HTTP or HTTPS endpoint.",
|
||||
"required": [
|
||||
"url"
|
||||
],
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"url": {
|
||||
"title": "URL",
|
||||
"description": "The URL to which you want to send data.",
|
||||
"type": "string",
|
||||
"example": "https://my-service/path",
|
||||
"pattern": "^(http|https)://.*"
|
||||
},
|
||||
"method": {
|
||||
"title": "Method",
|
||||
"description": "The HTTP method to use.",
|
||||
"type": "string",
|
||||
"default": "POST",
|
||||
"enum": [
|
||||
"GET",
|
||||
"POST",
|
||||
"PUT",
|
||||
"DELETE",
|
||||
"HEAD",
|
||||
"OPTIONS",
|
||||
"TRACE",
|
||||
"PATCH"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"dependencies": [
|
||||
"camel:http",
|
||||
"camel:kamelet",
|
||||
"camel:core"
|
||||
],
|
||||
"template": {
|
||||
"from": {
|
||||
"uri": "kamelet:source",
|
||||
"steps": [
|
||||
{
|
||||
"removeHeader": {
|
||||
"name": "CamelHttpUri"
|
||||
}
|
||||
},
|
||||
{
|
||||
"setHeader": {
|
||||
"name": "CamelHttpMethod",
|
||||
"constant": "{{method}}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"to": "{{url}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"propertiesSchema": {
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"title": "HTTP Sink",
|
||||
"description": "Forward data to a HTTP or HTTPS endpoint.",
|
||||
"required": [
|
||||
"url"
|
||||
],
|
||||
"properties": {
|
||||
"url": {
|
||||
"type": "string",
|
||||
"title": "URL",
|
||||
"description": "The URL to which you want to send data."
|
||||
},
|
||||
"method": {
|
||||
"type": "string",
|
||||
"title": "Method",
|
||||
"description": "The HTTP method to use.",
|
||||
"enum": [
|
||||
"GET",
|
||||
"POST",
|
||||
"PUT",
|
||||
"DELETE",
|
||||
"HEAD",
|
||||
"OPTIONS",
|
||||
"TRACE",
|
||||
"PATCH"
|
||||
],
|
||||
"default": "POST"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user