Class CredentialApi

  • All Implemented Interfaces:
    io.jenkins.blueocean.rest.Reachable

    public class CredentialApi
    extends io.jenkins.blueocean.rest.model.Resource
    Credential API implementation. TODO: Remove it once proper REST API is implemented in Credentials plugin
    Author:
    Vivek Pandey
    • Constructor Detail

      • CredentialApi

        public CredentialApi​(com.cloudbees.plugins.credentials.CredentialsStoreAction ca,
                             io.jenkins.blueocean.rest.Reachable parent)
    • Method Detail

      • getStore

        @Exported
        public String getStore()
      • create

        @POST
        @WebMethod(name="")
        public io.jenkins.blueocean.rest.model.CreateResponse create​(@JsonBody
                                                                     net.sf.json.JSONObject body,
                                                                     org.kohsuke.stapler.StaplerRequest request)
                                                              throws IOException
        Throws:
        IOException
      • getLink

        public io.jenkins.blueocean.rest.hal.Link getLink()