update method to post installer

This commit is contained in:
Jacob Overgaard
2022-05-19 10:50:33 +02:00
parent 64fe70d9f9
commit e4b6c825ac
4 changed files with 146 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ export class GetInstall {
})
export class PostInstall {
@request
request(@body body: UmbracoInstaller) { }
request(@body body: UmbracoInstallerPerformInstallRequest) { }
@response({ status: 201 })
success() { }
@@ -26,6 +26,37 @@ export class PostInstall {
badRequest(@body body: ErrorResponse) { }
}
@endpoint({
method: 'POST',
path: '/install/database/validate'
})
export class PostInstallValidateDatabase {
@request
request(@body body: UmbracoInstallerDatabaseConfiguration) { }
@response({ status: 201 })
success() { }
@response({ status: 400 })
badRequest(@body body: ErrorResponse) { }
}
export interface UmbracoInstallerPerformInstallRequest {
name: string;
email: string;
password: string;
subscribeToNewsletter: boolean;
telemetryLevel: 'Minimal' | 'Basic' | 'Detailed';
database: UmbracoInstallerDatabaseConfiguration;
}
export interface UmbracoInstallerDatabaseConfiguration {
connectionString: string;
providerName: string;
integratedAuth: boolean;
databaseProviderMetadataId: string;
}
export interface UmbracoInstaller {
installId: string;
steps: UmbracoInstallerStep[];