You will find another example in the warnings plugin: I’m routing the 
individual detail views for packages, files, categories, etc. using the 
getDynamic method (the DetailFactory creates different view objects depending 
on the sub-link names). 

> Am 06.06.2021 um 20:10 schrieb Matt Sicker <[email protected]>:
> 
> This sounds like getDynamic stuff. Look at DirectoryBrowserSupport for ideas.
> 
> On Sun, Jun 6, 2021 at 12:50 Tim Jacomb <[email protected] 
> <mailto:[email protected]>> wrote:
> Hello
> 
> Is there a way to handle all paths under a pattern in an Action (or something 
> else)?
> 
> i.e. If I add an action 'GraphProxyAction'
> 
> I would like to be able to route GraphProxy/v1.0/* to my GraphProxy class 
> which will just check permissions, add a credential and proxy the calls to an 
> external rest API.
> 
> Alternatively how can I add nested actions to reflect the API I'm proxying? I 
> tried returning a V1 action from my doIndex method in `GraphProxyAction`, but 
> that just ended up with a white page.
> 
> I've had a look around at some of the Stapler annotations but not really sure 
> how to do this
> 
> Thanks
> Tim
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/CAH-3BicnOpMOLTe4uodrpqn0At-UT1CT054nuq5SvMSXZE9sBQ%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/CAH-3BicnOpMOLTe4uodrpqn0At-UT1CT054nuq5SvMSXZE9sBQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/CACmp6krt7ga2%2B5zJ%3D24076ykZA_icFCfRoVzg7wMdsHeLtCthA%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/CACmp6krt7ga2%2B5zJ%3D24076ykZA_icFCfRoVzg7wMdsHeLtCthA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/38304A8E-11D6-49F2-B824-3C0E52B0ADE8%40gmail.com.

Reply via email to