Does your action implement a method: public Api getApi(); ?
> Am 15.12.2021 um 02:12 schrieb Oscar Arevalo Loyola <[email protected]>: > > Hi, > > I'm trying to expose internal Run data to the REST API. > Currently I'm using a Shared Library to create an object containing data > about downstream builds in multiple levels > > Is it possible to expose the data to the REST API from Shared library code? > I was checking several methods but still not able to achieve it. > So, I tried with Run.addAction and I'm able to see my action in in the > url/api/json but it doesn't expose the properties of my action (I added > @ExportedBean to the class and @Exported to the properties) > > Basically, I want to achieve this: > https://wiki.jenkins-ci.org/display/JENKINS/Exposing+data+to+the+remote+API > but from a Shared Library, not from a plugin. > > -- > 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/7997e32b-cf5f-42a2-8879-880fbaa11d44n%40googlegroups.com > > <https://groups.google.com/d/msgid/jenkinsci-dev/7997e32b-cf5f-42a2-8879-880fbaa11d44n%40googlegroups.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/F06292D1-E6FA-4FD1-974D-5C88A730E371%40gmail.com.
