Skip to content

Commit

Permalink
Version 2.0.10 (#10)
Browse files Browse the repository at this point in the history
* Add clone flag api
* Add specification of new environments when project is created (fixes #7)
* Bump version to 2.0.10
  • Loading branch information
ashanbrown authored Oct 26, 2018
1 parent d1a8629 commit 677bdac
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 24 deletions.
25 changes: 24 additions & 1 deletion spec/definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,30 @@ Environment:
type: array
items:
type: string
description: An array of tags for this environment.
description: An array of tags for this environment.
EnvironmentPost:
type: object
properties:
name:
type: string
description: The name of the new environment.
example: Development
key:
type: string
description: A project-unique key for the new environment.
example: dev
color:
type: string
description: A color swatch (as an RGB hex value with no leading '#', e.g. C8C8C8).
example: "417505"
defaultTtl:
type: number
description: The default TTL for the new environment.
example: 0
required:
- name
- key
- color
User:
type: object
properties:
Expand Down
2 changes: 1 addition & 1 deletion spec/info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ contact:
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 2.0.9
version: 2.0.10
34 changes: 12 additions & 22 deletions spec/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ ProjectPostRequest:
key:
type: string
example: new-project
environments:
type: array
items:
$ref: '#/definitions/EnvironmentPost'
minLength: 1
required:
- name
- key
Expand All @@ -128,28 +133,7 @@ EnvironmentPostRequest:
required: true
description: New environment.
schema:
type: object
properties:
name:
type: string
description: The name of the new environment.
example: Development
key:
type: string
description: A project-unique key for the new environment.
example: dev
color:
type: string
description: A color swatch (as an RGB hex value with no leading '#', e.g. C8C8C8).
example: "417505"
defaultTtl:
type: number
description: The default TTL for the new environment.
example: 0
required:
- name
- key
- color
$ref: '#/definitions/EnvironmentPost'
ProjectKey:
name: projectKey
in: path
Expand All @@ -174,6 +158,12 @@ FeatureFlagKey:
required: true
description: The feature flag's key. The key identifies the flag in your code.
type: string
CloneFlagKeyQuery:
name: clone
in: query
required: false
description: The key of the feature flag to be cloned. The key identifies the flag in your code. For example, setting clone=flagKey will copy the full targeting configuration for all environments (including on/off state) from the original flag to the new flag.
type: string
UserSegmentKey:
name: userSegmentKey
in: path
Expand Down
1 change: 1 addition & 0 deletions spec/paths/flags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Flags:
parameters:
- $ref: '#/parameters/ProjectKey'
- $ref: '#/parameters/FeatureFlagPostRequest'
- $ref: '#/parameters/CloneFlagKeyQuery'
responses:
'201':
$ref: '#/responses/Standard201'
Expand Down

0 comments on commit 677bdac

Please sign in to comment.