Skip to content

Commit

Permalink
feature(ogc-api): Allow query from body
Browse files Browse the repository at this point in the history
  • Loading branch information
Delawen authored and oscerd committed Jul 27, 2022
1 parent 485ab7e commit 438d54a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions kamelets/ogcapi-features-action.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ spec:
Returns the items of the collection provided of an OGC API Features server.
The collection must be a valid collection name on the server.
Query can be defined in the body too.
See https://www.ogc.org/standards/ogcapi-features
required:
- url
Expand Down Expand Up @@ -88,14 +90,14 @@ spec:
from:
uri: "kamelet:source"
steps:
- set-body:
simple: ""
- set-header:
name: "Accept"
constant: "application/geo+json"
- set-header:
name: "CamelHttpQuery"
simple: "limit={{limit}}&bbox={{bbox}}&{{?query}}"
simple: "limit={{limit}}&bbox={{bbox}}&{{?query}}&${body}"
- set-body:
simple: ""
- to:
uri: "{{url}}/collections/{{collection}}/items"
- remove-header:
Expand Down

0 comments on commit 438d54a

Please sign in to comment.