Class TableInsertSpecV1
java.lang.Object
com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec<TableInsertInput,TableInsertResponseV1,TableInsertExecutor>
com.kingsrook.qqq.middleware.javalin.specs.v1.TableInsertSpecV1
public class TableInsertSpecV1
extends AbstractEndpointSpec<TableInsertInput,TableInsertResponseV1,TableInsertExecutor>
-
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) Read the record from a JSON object body, or from multipart form fields (uploaded files for blob fields, and an `associations` field), the same way the legacy insert route does - after the insert permission check, so a refused request is not read (an unknown table is refused the same way).Methods inherited from class com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec
checkCredentialScopeOperation, customizeMethod, defineAdditionalBasicResponses, defineCompleteOperation, defineMethod, defineResponses, defineRoute, getOperationId, getRequestBodyAsJsonObject, getRequestParam, getRequestParamInteger, getRequestParamMap, handleException, handleOutput, isSecured, newExecutor, newOutput, serveRequest, setQInstance
-
Constructor Details
-
TableInsertSpecV1
public TableInsertSpecV1()
-
-
Method Details
-
defineBasicOperation
- Overrides:
defineBasicOperationin classAbstractEndpointSpec<TableInsertInput,TableInsertResponseV1, TableInsertExecutor>
-
defineRequestParameters
- Overrides:
defineRequestParametersin classAbstractEndpointSpec<TableInsertInput,TableInsertResponseV1, TableInsertExecutor>
-
defineRequestBody
- Overrides:
defineRequestBodyin classAbstractEndpointSpec<TableInsertInput,TableInsertResponseV1, TableInsertExecutor>
-
buildInput
Read the record from a JSON object body, or from multipart form fields (uploaded files for blob fields, and an `associations` field), the same way the legacy insert route does - after the insert permission check, so a refused request is not read (an unknown table is refused the same way).- Specified by:
buildInputin classAbstractEndpointSpec<TableInsertInput,TableInsertResponseV1, TableInsertExecutor> - Throws:
Exception
-
defineComponentSchemas
- Overrides:
defineComponentSchemasin classAbstractEndpointSpec<TableInsertInput,TableInsertResponseV1, TableInsertExecutor>
-
defineBasicSuccessResponse
-