Class EsbSpecSupport

java.lang.Object
com.kingsrook.qqq.esb.api.specs.EsbSpecSupport

public class EsbSpecSupport extends Object
Shared pieces of the ESB UI API specs (QRun-IO/qqq docs/UI-API-EXTENSIONS.md): the input (which body to build, from what parameters), the executor (runs EsbStatusBuilder with the session in context), the response (the built body, written with nulls kept), and the base spec.
  • Constructor Details

    • EsbSpecSupport

      public EsbSpecSupport()
  • Method Details

    • pathParameter

      public static Parameter pathParameter(String name, String description)
      a required string path parameter
    • queryParameter

      public static Parameter queryParameter(String name, String description, Type type)
      an optional query parameter
    • pagingParameters

      public static List<Parameter> pagingParameters()
      the offset and limit paging parameters
    • getIntegerParam

      public static Integer getIntegerParam(io.javalin.http.Context context, String name) throws QBadRequestException
      An integer query parameter - null if absent; QBadRequestException if it isn't an integer.
      Throws:
      QBadRequestException