@Controller(value="/preview") public class PreviewController extends AbstractCreateController implements PreviewOperations
projectGenerator| Constructor and Description |
|---|
PreviewController(ProjectGenerator projectGenerator,
io.micronaut.context.event.ApplicationEventPublisher eventPublisher)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PreviewDTO |
previewApp(ApplicationType type,
java.lang.String name,
java.util.List<java.lang.String> features,
BuildTool build,
TestFramework test,
Language lang,
JdkVersion javaVersion,
RequestInfo requestInfo)
Previews the contents of a generated application..
|
createProjectGeneratorContext, getOperatingSystempublic PreviewController(ProjectGenerator projectGenerator, io.micronaut.context.event.ApplicationEventPublisher eventPublisher)
projectGenerator - The project generatoreventPublisher - The event publisher@Get(uri="/{type}/{name}{?features,lang,build,test,javaVersion}",
produces="application/json")
public PreviewDTO previewApp(ApplicationType type,
java.lang.String name,
@Nullable
java.util.List<java.lang.String> features,
@Nullable
BuildTool build,
@Nullable
TestFramework test,
@Nullable
Language lang,
@Nullable
JdkVersion javaVersion,
RequestInfo requestInfo)
throws java.io.IOException
previewApp in interface PreviewOperationstype - The application type The application typename - The name of the application The name of the applicationfeatures - The features The chosen featuresbuild - The build type (optional, defaults to Gradle)test - The test framework (optional, defaults to JUnit)lang - The language (optional, defaults to Java)requestInfo - The request infojava.io.IOException