See the following links:

https://wiki.jenkins.io/plugins/servlet/mobile?contentId=36602857#content/view/36602857

https://jenkins.io/doc/developer/handling-requests/routing/

There are also many examples in the code

On Sun, May 26, 2019, 09:39 selva vignesh <selvavignesh...@gmail.com> wrote:

> Hi Oleg,
> In Jenkins we have an API to call the build, job details as Json response.
> The same i want to create API for my plugin. How can I achieve this.
> Can you please share the details
>
> On Fri, 24 May 2019 at 11:50 AM, Oleg Nenashev <o.v.nenas...@gmail.com>
> wrote:
>
>> Hi,
>>
>> It is not clear what is the request here. Do you want to add Java API, or
>> is it about REST API?
>> It might also help if you share your current code.
>>
>> BR, Oleg
>>
>> On Wednesday, May 22, 2019 at 8:40:02 AM UTC+2, selva vignesh wrote:
>>>
>>> Hi,
>>>    I want create API action for my global configuration instead of
>>> configuring from UI.
>>> Case :
>>>    I have create GlobalConfiguration for my plugin and config.jelly. I
>>> would like to add API for the same class.
>>> When trigger the API with mentioned Param, class should get invoked.
>>> Can anyone assist me to do.
>>> Thanks in Advance..
>>>
>>> --
>> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-dev/2074929f-c659-46ad-8314-5d342a8036b7%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-dev/2074929f-c659-46ad-8314-5d342a8036b7%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-dev/56LWFZvFN10/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/CAOVVkp%3DsZdjerFT1wsMQi_nuanfvpT_4QBCUOzMOZ%3Dc7yJ7AyQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/CAOVVkp%3DsZdjerFT1wsMQi_nuanfvpT_4QBCUOzMOZ%3Dc7yJ7AyQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAPfivLDd-LZhiq1J_nTxYZsWb9%2B7cDj%3DiPKc3pYXcEEuEZVgzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to