Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add http proxy cababitlity for rest-trigger #150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JetPlankl
Copy link

Pass Through Proxy

The idea is to have the REST Trigger and REST activity (https://github.com/project-flogo/contrib/tree/master/activity/rest)
changed in such away, that there is a possiblity to create a flogo app that has pass through proxy functionalities.

CHANGES TRIGGER:
Handle the existing functionality of create a path variable of the last part of the url coming in of the trigger (github.com/julienschmidt/httprouter):
example: incoming url: http://tibco.org/path/that/comes/in definition in trigger: /:restOfPath will
define a pathParams key: 'restOfPath' value: 'path/that/comes/in'
This :restOfPath definition in the trigger will also be exposed to the outside world e.g. mashery.
In mashery there is no option to change this mapping, therefore the trigger needs to be changed to automatically
create the 'restOfPath' variable for the rest of the path as defined in the trigger.
It will do so, using a boolean 'isPassThrough' to be able to turn this functionality on/off

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

Successfully merging this pull request may close these issues.

1 participant