@Singleton public class BambooPlanConfigImportResource extends Object
Constructor and Description |
---|
BambooPlanConfigImportResource(com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
BambooAuthenticationContext authenticationContext,
PlanConfigImportService planConfigImportService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
importPlan(String yamlString,
javax.ws.rs.core.UriInfo uriInfo)
Import configuration of a top level plan in YAML format.
|
public BambooPlanConfigImportResource(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.message.I18nResolver i18nResolver, BambooAuthenticationContext authenticationContext, PlanConfigImportService planConfigImportService)
public javax.ws.rs.core.Response importPlan(@NotNull String yamlString, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
A minimal valid input consists of plan name, plan key and project reference:
---
key: PLAN
name: My Plan
project:
key: PROJ
...
WebValidationException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.