Class PreferenceSectionPatchSpecV1
java.lang.Object
com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec<UserPreferencesMiddlewareInput,PreferenceSectionV1,UserPreferencesExecutor>
com.kingsrook.qqq.middleware.javalin.specs.v1.PreferenceSectionPatchSpecV1
public class PreferenceSectionPatchSpecV1
extends AbstractEndpointSpec<UserPreferencesMiddlewareInput,PreferenceSectionV1,UserPreferencesExecutor>
Partially update the signed-in user's preferences.
-
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 typed operation input.Partially update the signed-in user's preferencesThe typed success response.Publish all preference component schemas.Partial patch request contract.Path parameters; userId query parameters are never read.voidhandleOutput(io.javalin.http.Context context, PreferenceSectionV1 output) Serialize null preferences explicitly so clients can distinguish cleared values.Methods inherited from class com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec
checkCredentialScopeOperation, customizeMethod, defineAdditionalBasicResponses, defineCompleteOperation, defineMethod, defineResponses, defineRoute, getOperationId, getRequestBodyAsJsonObject, getRequestParam, getRequestParamInteger, getRequestParamMap, handleException, isSecured, newExecutor, newOutput, serveRequest, setQInstance
-
Constructor Details
-
PreferenceSectionPatchSpecV1
public PreferenceSectionPatchSpecV1()
-
-
Method Details
-
defineBasicOperation
Partially update the signed-in user's preferences -
defineRequestParameters
Path parameters; userId query parameters are never read. -
buildInput
Build the typed operation input.- Specified by:
buildInputin classAbstractEndpointSpec<UserPreferencesMiddlewareInput,PreferenceSectionV1, UserPreferencesExecutor> - Throws:
Exception
-
defineComponentSchemas
Publish all preference component schemas. -
defineBasicSuccessResponse
The typed success response. -
handleOutput
Serialize null preferences explicitly so clients can distinguish cleared values. -
defineRequestBody
Partial patch request contract.
-