Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Kong loopback API configuration : strip_request_path no longer works #78

Closed
rjpalermo1 opened this issue Jul 9, 2017 · 6 comments
Closed
Labels

Comments

@rjpalermo1
Copy link

On the welcome screen you link to a Gelato doc for details on a loop-back API.

https://docs.gelato.io/guides/advanced-kong-integration

I just found out that their advice for strip_request_path is not available in Kong 0.10, so their cURL fails:

curl -X POST http://localhost:8001/apis   -d "name=admin-loop-back"   -d "request_path=/admin-loop-back"   -d "upstream_url=http://localhost:8001"   -d  "strip_request_path=true"

{"request_path":"request_path is an unknown field","strip_request_path":"strip_request_path is an unknown field"}

Changes are now 'strip_uri' and field name is uris

curl -X POST http://localhost:8001/apis   -d "name=admin-loop-back"   -d "uris=/admin-loop-back"   -d "upstream_url=http://localhost:8001"   -d  "strip_uri=true"
@pantsel pantsel added the wontfix label Jul 9, 2017
@pantsel
Copy link
Owner

pantsel commented Jul 9, 2017

@rjpalermo1 ,
Yes, it seems that they can't even keep up with themselves :) - Joking -.

I'll just change the title and keep this issue open as a reference to other users.

Thanks for the feddback!

@pantsel pantsel changed the title strip_request_path no longer works Kong loopback API configuration : strip_request_path no longer works Jul 9, 2017
@rjpalermo1
Copy link
Author

Here is the related reference in Kong docs:

https://getkong.org/docs/0.10.x/secure-admin-api/#kong-api-loopback

@pantsel
Copy link
Owner

pantsel commented Jul 9, 2017

Neat, i will put that link instead. Thanks!

@pantsel
Copy link
Owner

pantsel commented Jul 10, 2017

Issue fixed with the latest push.

@pantsel pantsel closed this as completed Jul 10, 2017
@coopr
Copy link

coopr commented Jul 10, 2017

You may instead choose to link to https://getkong.org/docs/latest/secure-admin-api/#kong-api-loopback - that'll make it more likely the link destination stays valid as newer versions of Kong are released.

Note that this trick works with all versioned pages on getkong.org - simply replace the version number in the URL with latest.

@pantsel
Copy link
Owner

pantsel commented Jul 11, 2017

@coopr ,
thanks for the info!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants