Class ApiRootAction.V1

java.lang.Object
io.jenkins.plugins.interactiveinput.rest.ApiRootAction.V1
Enclosing class:
ApiRootAction

public static class ApiRootAction.V1 extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    V1()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.kohsuke.stapler.HttpResponse
    GET /health — anonymous liveness probe (Jenkins Security Scan follow-up on #5166): consumed by load balancers / uptime monitors that cannot present credentials, so it is intentionally reachable without a permission check, and read-only with no side effects, so a CSRF token is not applicable.
    org.kohsuke.stapler.HttpResponse
    doPreview(org.kohsuke.stapler.StaplerRequest2 req)
    POST /preview — render markdown to safe HTML for the modal's free-text preview.
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • V1

      public V1()
  • Method Details

    • getQuestions

      public ApiRootAction.Questions getQuestions()
    • getViews

      public ApiRootAction.Views getViews()
    • doHealth

      @GET public org.kohsuke.stapler.HttpResponse doHealth()
      GET /health — anonymous liveness probe (Jenkins Security Scan follow-up on #5166): consumed by load balancers / uptime monitors that cannot present credentials, so it is intentionally reachable without a permission check, and read-only with no side effects, so a CSRF token is not applicable. pending is only populated for callers who already have Jenkins.READ (the same instance-wide count ApiRootAction.Questions.doIndex(org.kohsuke.stapler.StaplerRequest2) would already disclose to them via ?all=true, at Overall/Administer, or scoped per-job without extra permission) — an anonymous or otherwise unprivileged caller only ever learns liveness (status: ok), never operational counts.
    • doPreview

      public org.kohsuke.stapler.HttpResponse doPreview(org.kohsuke.stapler.StaplerRequest2 req)
      POST /preview — render markdown to safe HTML for the modal's free-text preview.