Class OpenApiHelper

java.lang.Object
org.forgerock.api.transform.OpenApiHelper

public final class OpenApiHelper extends Object
Helper methods for applying commonly needed changes to the Swagger model.
  • Method Details

    • addHeaderToAllOperations

      public static void addHeaderToAllOperations(io.swagger.models.parameters.HeaderParameter header, io.swagger.models.Swagger swagger)
      Adds a header to all operations. For example, one may need to add authentication headers for username and password.
      Parameters:
      header - Header model
      swagger - Swagger model
    • visitAllOperations

      public static void visitAllOperations(OpenApiHelper.OperationVisitor visitor, io.swagger.models.Swagger swagger)
      Visits all operations.
      Parameters:
      visitor - Operation visitor
      swagger - Swagger model