Package io.jenkins.plugins.auditlogger
Class AuditLogRestApi
java.lang.Object
io.jenkins.plugins.auditlogger.AuditLogRestApi
- All Implemented Interfaces:
ExtensionPoint,Action,ModelObject,RootAction
REST API endpoint for audit logs at /auditflow/api.
SECURITY FIX: Uses RootAction (requires authentication) instead of UnprotectedRootAction.
Additional admin check enforces Jenkins.ADMINISTER permission.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoApi(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 resp) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.RootAction
getBadge, isPrimaryAction
-
Constructor Details
-
AuditLogRestApi
public AuditLogRestApi()
-
-
Method Details
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
doApi
@GET public void doApi(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 resp) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.servlet.ServletException
-