Class EsbSpecSupport
java.lang.Object
com.kingsrook.qqq.esb.api.specs.EsbSpecSupport
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classbase of the ESB specs: secured, tagged, JSON written with nulls kept (as the route provider before them did), success schema per operation.static interfaceBuilds one operation's body from an EsbStatusBuilder.static classexecutor: build the body with the session the spec set upstatic classinput: the body builder bound to the request's parametersstatic interfaceoutput interfacestatic classresponse: the body EsbStatusBuilder built (its schema is per operation)static enumOpenAPI tag of the ESB operations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegergetIntegerParam(io.javalin.http.Context context, String name) An integer query parameter - null if absent; QBadRequestException if it isn't an integer.the offset and limit paging parametersstatic ParameterpathParameter(String name, String description) a required string path parameterstatic ParameterqueryParameter(String name, String description, Type type) an optional query parameter
-
Constructor Details
-
EsbSpecSupport
public EsbSpecSupport()
-
-
Method Details
-
pathParameter
-
queryParameter
-
pagingParameters
-
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
-