diff --git a/docs/modules/ROOT/pages/http-source.adoc b/docs/modules/ROOT/pages/http-source.adoc index c8f0d98c4..721a456cc 100644 --- a/docs/modules/ROOT/pages/http-source.adoc +++ b/docs/modules/ROOT/pages/http-source.adoc @@ -12,7 +12,7 @@ The following table summarizes the configuration options available for the `http |=== | Property| Name| Description| Type| Default| Example | *url {empty}* *| URL| The URL to fetch for data| string| | `"https://gist.githubusercontent.com/nicolaferraro/e3c72ace3c751f9f88273896611ce5fe/raw/3b6f54060bacb56b6719b7386a4645cb59ad6cc1/quote.json"` -| contentType| Content type| The content type of the resource| string| `"application/json"`| +| contentType| Content type| The content type accepted for the resource| string| `"application/json"`| | period| Period between updates| The interval between fetches in milliseconds| integer| `10000`| |=== diff --git a/http-source.kamelet.yaml b/http-source.kamelet.yaml index 9183a3353..39da2db67 100644 --- a/http-source.kamelet.yaml +++ b/http-source.kamelet.yaml @@ -7,6 +7,7 @@ metadata: camel.apache.org/provider: "Apache Software Foundation" labels: camel.apache.org/kamelet.type: "source" + camel.apache.org/requires.runtime: "camel-quarkus" spec: definition: title: "HTTP Source" @@ -22,7 +23,7 @@ spec: default: 10000 contentType: title: Content type - description: The content type of the resource + description: The content type accepted for the resource type: string default: "application/json" url: @@ -30,6 +31,9 @@ spec: description: The URL to fetch for data type: string example: "https://gist.githubusercontent.com/nicolaferraro/e3c72ace3c751f9f88273896611ce5fe/raw/3b6f54060bacb56b6719b7386a4645cb59ad6cc1/quote.json" + pattern: "^(http|https)://.*" + dependencies: + - "camel-quarkus:http" flow: from: uri: "timer:fetch" @@ -39,5 +43,5 @@ spec: - set-header: name: "Accept" constant: "{{contentType}}" - - to: "netty-http:{{url}}" + - to: "{{url}}" - to: "kamelet:sink"