Class PreferenceSectionGetSpecV1
java.lang.Object
com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec<UserPreferencesMiddlewareInput,PreferenceSectionV1,UserPreferencesExecutor>
com.kingsrook.qqq.middleware.javalin.specs.v1.PreferenceSectionGetSpecV1
public class PreferenceSectionGetSpecV1
extends AbstractEndpointSpec<UserPreferencesMiddlewareInput,PreferenceSectionV1,UserPreferencesExecutor>
Read one visible section for the signed-in user.
-
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.Read one visible section for the signed-in userThe typed success response.Publish all preference component schemas.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, defineRequestBody, defineResponses, defineRoute, getOperationId, getRequestBodyAsJsonObject, getRequestParam, getRequestParamInteger, getRequestParamMap, handleException, isSecured, newExecutor, newOutput, serveRequest, setQInstance
-
Constructor Details
-
PreferenceSectionGetSpecV1
public PreferenceSectionGetSpecV1()
-
-
Method Details
-
defineBasicOperation
Read one visible section for the signed-in user -
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.
-