Package io.micronaut.starter.api
Class ApplicationController
java.lang.Object
io.micronaut.starter.api.ApplicationController
- All Implemented Interfaces:
ApplicationTypeOperations
Main interface on the starter API.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionApplicationController
(FeatureOperations featureOperations, StarterConfiguration configuration, io.micronaut.context.MessageSource messageSource) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionfeatures
(ApplicationType type, RequestInfo requestInfo) List the type features.getType
(ApplicationType type, RequestInfo info) Get a specific application type.list
(RequestInfo info) List the application types.
-
Constructor Details
-
ApplicationController
public ApplicationController(FeatureOperations featureOperations, StarterConfiguration configuration, io.micronaut.context.MessageSource messageSource) Default constructor.- Parameters:
featureOperations
- The feature operations.configuration
- The starter configurationmessageSource
- The message source
-
-
Method Details
-
list
List the application types.- Specified by:
list
in interfaceApplicationTypeOperations
- Parameters:
info
- the request info- Returns:
- The types
-
getType
@Get("/application-types/{type}") public ApplicationTypeDTO getType(ApplicationType type, RequestInfo info) Get a specific application type.- Specified by:
getType
in interfaceApplicationTypeOperations
- Parameters:
type
- The typeinfo
- The request info- Returns:
- The type
-
features
@Get("/application-types/{type}/features") public FeatureList features(ApplicationType type, RequestInfo requestInfo) List the type features.- Specified by:
features
in interfaceApplicationTypeOperations
- Parameters:
type
- The featuresrequestInfo
- The request info- Returns:
- The features
-