Class ReportRunSpecV1
java.lang.Object
com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec<ReportRunInput,TableExportResponseV1,ReportRunExecutor>
com.kingsrook.qqq.middleware.javalin.specs.v1.ReportRunSpecV1
public class ReportRunSpecV1
extends AbstractEndpointSpec<ReportRunInput,TableExportResponseV1,ReportRunExecutor>
Spec for running a report and downloading the generated file
(GET /reports/{reportName}) - the v1 form of the legacy streaming report
route, for reports that are not run through a process. Returns the file
(CSV, XLSX, JSON, ...) rather than a JSON response body.
-
Field Summary
Fields inherited from class com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec
qInstance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildInput(io.javalin.http.Context context) build the endpoint's input object from a javalin contextBinary download endpoints do not return a JSON schema.voidhandleOutput(io.javalin.http.Context context, TableExportResponseV1 output) Stream the file rather than a JSON body.Methods inherited from class com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec
checkCredentialScopeOperation, customizeMethod, defineAdditionalBasicResponses, defineBasicSuccessResponse, defineCompleteOperation, defineMethod, defineRequestBody, defineRoute, getOperationId, getRequestBodyAsJsonObject, getRequestParam, getRequestParamInteger, getRequestParamMap, handleException, isSecured, newExecutor, newOutput, serveRequest, setQInstance
-
Constructor Details
-
ReportRunSpecV1
public ReportRunSpecV1()
-
-
Method Details
-
defineBasicOperation
- Overrides:
defineBasicOperationin classAbstractEndpointSpec<ReportRunInput,TableExportResponseV1, ReportRunExecutor>
-
defineRequestParameters
- Overrides:
defineRequestParametersin classAbstractEndpointSpec<ReportRunInput,TableExportResponseV1, ReportRunExecutor>
-
buildInput
Description copied from class:AbstractEndpointSpecbuild the endpoint's input object from a javalin context- Specified by:
buildInputin classAbstractEndpointSpec<ReportRunInput,TableExportResponseV1, ReportRunExecutor> - Throws:
Exception
-
defineComponentSchemas
- Overrides:
defineComponentSchemasin classAbstractEndpointSpec<ReportRunInput,TableExportResponseV1, ReportRunExecutor>
-
defineResponses
Binary download endpoints do not return a JSON schema. Override to describe the response as application/octet-stream binary content.- Overrides:
defineResponsesin classAbstractEndpointSpec<ReportRunInput,TableExportResponseV1, ReportRunExecutor>
-
handleOutput
public void handleOutput(io.javalin.http.Context context, TableExportResponseV1 output) throws Exception Stream the file rather than a JSON body.- Overrides:
handleOutputin classAbstractEndpointSpec<ReportRunInput,TableExportResponseV1, ReportRunExecutor> - Throws:
Exception
-