@Controller public class ApplicationController extends java.lang.Object implements ApplicationTypeOperations
Constructor and Description |
---|
ApplicationController(FeatureOperations featureOperations,
StarterConfiguration configuration,
io.micronaut.context.MessageSource messageSource)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
FeatureList |
features(ApplicationType type,
RequestInfo requestInfo)
List the type features.
|
ApplicationTypeDTO |
getType(ApplicationType type,
RequestInfo info)
Get a specific application type.
|
ApplicationTypeList |
list(RequestInfo info)
List the application types.
|
public ApplicationController(FeatureOperations featureOperations, StarterConfiguration configuration, io.micronaut.context.MessageSource messageSource)
featureOperations
- The feature operations.configuration
- The starter configurationmessageSource
- The message source@Get(value="/application-types") public ApplicationTypeList list(RequestInfo info)
list
in interface ApplicationTypeOperations
info
- the request info@Get(value="/application-types/{type}") public ApplicationTypeDTO getType(ApplicationType type, RequestInfo info)
getType
in interface ApplicationTypeOperations
type
- The typeinfo
- The request info@Get(value="/application-types/{type}/features") public FeatureList features(ApplicationType type, RequestInfo requestInfo)
features
in interface ApplicationTypeOperations
type
- The featuresrequestInfo
- The request info