put the path as a parameter

11 views
Skip to first unread message

Jose Augusto Batista

unread,
May 23, 2024, 5:44:02 PMMay 23
to KrakenD Community
I have a route in my API that takes a path as a parameter stattic/{path:*}
example:
stattic/t/m/u: path = t/m/u
stattic/t/m: path = t/m
stattic/t/m/: path = t/m/

How can I create a route to receive this in Krakend and pass it on to my api. 

I tried the following configuration, but it doesn't work


2024-05-23_18-43.png

Albert Lombarte

unread,
May 24, 2024, 3:26:47 AMMay 24
to KrakenD Community, ext.jose...@dafiti.com.br
Hi,

If you check your configuration, you'll the provided screenshot contains an invalid declaration. The endpoint /static-page/*path is invalid. You cannot use wildcards in the community edition (and in the Enterprise edition work differently).

You can still create several endpoints, like:
  • stattic/{t}
  • stattic/{t}/{m}
  • stattic/{t}/{m}/{u}

El dia dijous, 23 de maig del 2024 a les 23:44:02 UTC+2, ext.jose...@dafiti.com.br va escriure:
Reply all
Reply to author
Forward
0 new messages