how to pass params to my service?

34 views
Skip to first unread message

whispe...@gmail.com

unread,
Nov 29, 2017, 1:47:29 AM11/29/17
to Kong
target api /:uid/info

upstream api /v1/:uid/info

always..

{
  • message"no API found with those values"
}

Thijs Schreijer

unread,
Nov 30, 2017, 3:04:32 AM11/30/17
to whisperbye00, Kong

If your incoming request has a parameter like that, then you can use a regex to match such a URI.

If you want it to be inserted in your URI to the upstream service, then that is only available in the Enterprise Edition.



On 30 Nov 2017, at 02:55, whisperbye00 <whispe...@gmail.com> wrote:

yes I did, I means, is there some way to pass gateway api params to my upstream api?

I set gatway api like this /:uid/info, and pass :uid to my upstream api /v2/:user/info/get

:uid is a dynamic UUID, follow the Restful style, the params often in the path

2017-11-29 21:15 GMT+08:00 Thijs Schreijer <th...@konghq.com>:
You need to first set up an api in Kong.

Please check http://getkong.org and follow the 5 minute quick start, It’ll show you what you’re missing.


Thijs Schreijer
Solutions Architect @ Kong 
We’re hiring!




--
You received this message because you are subscribed to the Google Groups "Kong" group.
To unsubscribe from this group and stop receiving emails from it, send an email to konglayer+unsubscribe@googlegroups.com.
To post to this group, send email to kong...@googlegroups.com.
Visit this group at https://groups.google.com/group/konglayer.
To view this discussion on the web visit https://groups.google.com/d/msgid/konglayer/6c0ab82a-2e05-419e-837a-2cad46417e49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



Reply all
Reply to author
Forward
0 new messages