Package com.aquima.web.api.controller.v2
Class StartController
java.lang.Object
com.aquima.web.api.controller.v2.AbstractBaseController
com.aquima.web.api.controller.v2.StartControllerBase
com.aquima.web.api.controller.v2.StartController
@RestController("v2ApiStartController")
@RequestMapping(path="/api/v2",
produces="application/json")
@ServerContext
public class StartController
extends StartControllerBase
This controller is used specifically for clients that only accept JSON instead of HTML and have their own login
screen. This is the use case of the Blueriq mobile app.
- Since:
- 11.0
- Author:
- v.jansen, g.graat
-
Constructor Summary
ConstructorsConstructorDescriptionStartController
(com.blueriq.component.api.IAquimaEngineConfiguration config, com.blueriq.component.api.security.IAuthorisationManager authorisationManager, com.blueriq.component.api.IAquimaSessionsMap sessionManager, FlowStarter flowStarter, com.blueriq.component.api.shortcut.IShortcutManager shortcutsManager, ProductionProperties productionProperties) -
Method Summary
Modifier and TypeMethodDescriptionstartProject
(org.springframework.web.context.request.WebRequest request, jakarta.servlet.http.HttpServletRequest httpRequest, String projectName, String flow, String version, String languageCode, String aquimaUi, String theme, String channel, String testPath) startShortcut
(org.springframework.web.context.request.WebRequest request, jakarta.servlet.http.HttpServletRequest httpRequest, String shortcutName, String testPath) Methods inherited from class com.aquima.web.api.controller.v2.StartControllerBase
handleForbiddenException, setOpenIdConnectSettings
Methods inherited from class com.aquima.web.api.controller.v2.AbstractBaseController
clientParametersException, handleConversionException, handleDecisionTreeNotExposedException, handleEmptySymptomException, handleFlowEndedException, handleFunctionValidationException, handleFunctionValidationException, handleMethodArgumentTypeMismatchException, handleRequestWardException, handleStartApplicationForbiddenException, handleStartShortcutForbiddenException, handleUnauthorizedException, handleUnknownApplicationException, handleUnknownFlowException, handleUnknownFunctionFlowException, handleUnknownLanguageException, handleUnknownModuleException, handleUnknownSessionException, handleUnknownShortcutException, handleUnsupportedOpenApiSpecException, isAuthenticated
-
Constructor Details
-
StartController
@Autowired public StartController(com.blueriq.component.api.IAquimaEngineConfiguration config, com.blueriq.component.api.security.IAuthorisationManager authorisationManager, com.blueriq.component.api.IAquimaSessionsMap sessionManager, FlowStarter flowStarter, com.blueriq.component.api.shortcut.IShortcutManager shortcutsManager, ProductionProperties productionProperties) - Parameters:
config
- aquima engine configurationauthorisationManager
- the authorisation managersessionManager
- the session managerflowStarter
- the flow startershortcutsManager
- the shortcut managerproductionProperties
- holds production properties
-
-
Method Details
-
startShortcut
@PostMapping(path={"/start/{shortcutName}","/start"}, params="!project") public BqConfiguration startShortcut(org.springframework.web.context.request.WebRequest request, jakarta.servlet.http.HttpServletRequest httpRequest, @PathVariable(required=false) String shortcutName, @RequestParam(value="testPath",required=false) String testPath) -
startProject
@PostMapping(path="/start", params="project") public BqConfiguration startProject(org.springframework.web.context.request.WebRequest request, jakarta.servlet.http.HttpServletRequest httpRequest, @RequestParam("project") String projectName, @RequestParam(value="flow",required=false) String flow, @RequestParam(value="version",required=false) String version, @RequestParam(value="languageCode",required=false) String languageCode, @RequestParam(value="ui",required=false) String aquimaUi, @RequestParam(value="theme",required=false) String theme, @RequestParam(value="channel",required=false) String channel, @RequestParam(value="testPath",required=false) String testPath)
-