-
Notifications
You must be signed in to change notification settings - Fork 58
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
[FEATURE] Pass REST params to extensions #111
Comments
Hey, can I work on this issue ? |
Hey, @mukulsethi22 thanks for your interest. We'd love for you to work on this. Some quick notes:
Let me know if you have any questions, happy to guide you along here. |
Hi @mukulsethi22, just a quick update. The PRs mentioned above have been merged, so the code is available for you to fork and start work if you're ready.
There may be a few other points you'll need to change, and the tests will need updating, but hopefully this is a good roadmap to get you started. Let me know if you have any questions! |
@dbwiddis In addition to forwarding the params, should we also be able to support routes with parameters? i.e. Our current process for locating Are route parameters functionality we want to support? |
Yes. We 100% want to match the route handling of plugins. My initial setup was just basic and as you've noted, the exact match is not the best... I will create a task to do this next Sprint. |
Apart from passing params to RestHelloAction file's handleRequest method, any changes have to be done on the method? |
Hey @mukulsethi22, sorry for a slow reply. I was traveling the past few days. I've been working down a parallel path with #122 which includes the "named wildcard" or "path parameters" which are part of the rest path, while leaving the "query parameters" to you for this issue. In doing so I realized we also need to handle consuming parameters. So the steps in this comment still apply:
|
So after implementing the consumed params, it turns out it's pretty easy, so no need for you to go to any extra effort. If you can get as far as changing the method signature in the |
Hey @mukulsethi22, just checking in. Anything else you need? :) |
Hi @mukulsethi22 , just checking, is there any help you need for addressing the fix for this issue? Thanks |
Hey @mukulsethi22 we need to get this feature done in the next week or two. Are you still interested? Would love to help you complete this. |
@mukulsethi22 I'm going to go ahead and work on this myself as we need to get it done. If you'd like another issue to work on that's less time critical, let me know and we can find you another way to contribute. |
Is your feature request related to a problem?
As part of #64, OS #4282 established a basic way of forwarding REST requests to extensions, passing the HTTP method and uri fields.
To expand functionality, the
params()
of theRestRequest
should also be forwarded. This will be necessary for handling additional types of requests.What solution would you like?
Update the
RestExecuteOnExtensionRequest
class to includeparams()
. Update associated code in theRestSendToExtensionAction
,ExtensionsRunner
,ExtensionRestHandler
interface, and the sample extension'sRestHelloAction
.What alternatives have you considered?
Sending the entire
RestRequest
rather than extracting parts of it. This doesn't work from a security perspective as sensitive information can be included in headers, and these are not easily removed.Do you have any additional context?
See first comment at #109.
The text was updated successfully, but these errors were encountered: