From d1da4b015cc88c29ebe3e307d4dfd16cd1a35ee4 Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Mon, 12 Oct 2026 02:34:00 +0000 Subject: [PATCH] Add kamelet definition: graphql-sink --- kamelet.json | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 kamelet.json diff --git a/kamelet.json b/kamelet.json new file mode 100644 index 0000000..eea746e --- /dev/null +++ b/kamelet.json @@ -0,0 +1,88 @@ +{ + "apiVersion": "camel.apache.org/v1", + "kind": "Kamelet", + "metadata": { + "name": "graphql-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": "Graphql", + "camel.apache.org/kamelet.namespace": "Graphql" + }, + "labels": { + "camel.apache.org/kamelet.type": "sink" + } + }, + "spec": { + "definition": { + "title": "GraphQL Sink", + "description": "Forward data to a GraphQL endpoint.", + "required": [ + "url" + ], + "type": "object", + "properties": { + "url": { + "title": "GraphQL Server URL", + "description": "The URL to which you want to send data.", + "type": "string", + "example": "http://example.com/graphql", + "pattern": "^(http|https)://.*" + }, + "accessToken": { + "title": "GraphQL Access Token", + "description": "The access Token to use to access GraphQL server", + "type": "string", + "format": "password", + "x-descriptors": [ + "urn:camel:group:credentials" + ] + } + } + }, + "dependencies": [ + "camel:graphql", + "camel:kamelet", + "camel:core" + ], + "template": { + "from": { + "uri": "kamelet:source", + "steps": [ + { + "to": { + "uri": "graphql://{{url}}", + "parameters": { + "accessToken": "{{?accessToken}}" + } + } + } + ] + } + } + }, + "propertiesSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "title": "GraphQL Sink", + "description": "Forward data to a GraphQL endpoint.", + "required": [ + "url" + ], + "properties": { + "url": { + "type": "string", + "title": "GraphQL Server URL", + "description": "The URL to which you want to send data." + }, + "accessToken": { + "type": "string", + "title": "GraphQL Access Token", + "description": "The access Token to use to access GraphQL server", + "format": "password" + } + } + } +} \ No newline at end of file