Class ApiRootAction.V1
java.lang.Object
io.jenkins.plugins.interactiveinput.rest.ApiRootAction.V1
- Enclosing class:
ApiRootAction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponsedoHealth()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.HttpResponsedoPreview(org.kohsuke.stapler.StaplerRequest2 req) POST /preview — render markdown to safe HTML for the modal's free-text preview.getViews()
-
Constructor Details
-
V1
public V1()
-
-
Method Details
-
getQuestions
-
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.pendingis only populated for callers who already haveJenkins.READ(the same instance-wide countApiRootAction.Questions.doIndex(org.kohsuke.stapler.StaplerRequest2)would already disclose to them via?all=true, atOverall/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.
-