rbflagr 0.1.2 → 1.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +17 -7
- data/docs/CreateFlagRequest.md +2 -0
- data/docs/CreateTagRequest.md +8 -0
- data/docs/Distribution.md +0 -1
- data/docs/EvalContext.md +4 -2
- data/docs/EvalResult.md +8 -7
- data/docs/EvaluationBatchRequest.md +3 -1
- data/docs/EvaluationEntity.md +1 -1
- data/docs/ExportApi.md +97 -0
- data/docs/Flag.md +7 -0
- data/docs/FlagApi.md +46 -1
- data/docs/Health.md +8 -0
- data/docs/HealthApi.md +9 -6
- data/docs/PutFlagRequest.md +5 -1
- data/docs/PutVariantRequest.md +1 -1
- data/docs/Tag.md +9 -0
- data/docs/TagApi.md +198 -0
- data/lib/rbflagr/api/constraint_api.rb +3 -3
- data/lib/rbflagr/api/distribution_api.rb +3 -3
- data/lib/rbflagr/api/evaluation_api.rb +3 -3
- data/lib/rbflagr/api/export_api.rb +118 -0
- data/lib/rbflagr/api/flag_api.rb +56 -3
- data/lib/rbflagr/api/health_api.rb +15 -12
- data/lib/rbflagr/api/segment_api.rb +3 -3
- data/lib/rbflagr/api/tag_api.rb +253 -0
- data/lib/rbflagr/api/variant_api.rb +3 -3
- data/lib/rbflagr/api_client.rb +8 -6
- data/lib/rbflagr/api_error.rb +3 -3
- data/lib/rbflagr/configuration.rb +5 -5
- data/lib/rbflagr/models/constraint.rb +5 -4
- data/lib/rbflagr/models/create_constraint_request.rb +5 -4
- data/lib/rbflagr/models/create_flag_request.rb +29 -8
- data/lib/rbflagr/models/create_segment_request.rb +5 -4
- data/lib/rbflagr/models/create_tag_request.rb +208 -0
- data/lib/rbflagr/models/create_variant_request.rb +5 -4
- data/lib/rbflagr/models/distribution.rb +6 -29
- data/lib/rbflagr/models/error.rb +5 -4
- data/lib/rbflagr/models/eval_context.rb +35 -44
- data/lib/rbflagr/models/eval_debug_log.rb +5 -4
- data/lib/rbflagr/models/eval_result.rb +15 -135
- data/lib/rbflagr/models/evaluation_batch_request.rb +34 -13
- data/lib/rbflagr/models/evaluation_batch_response.rb +5 -4
- data/lib/rbflagr/models/evaluation_entity.rb +5 -28
- data/lib/rbflagr/models/flag.rb +92 -8
- data/lib/rbflagr/models/flag_snapshot.rb +5 -4
- data/lib/rbflagr/models/health.rb +184 -0
- data/lib/rbflagr/models/put_distributions_request.rb +5 -4
- data/lib/rbflagr/models/put_flag_request.rb +49 -20
- data/lib/rbflagr/models/put_segment_reorder_request.rb +5 -4
- data/lib/rbflagr/models/put_segment_request.rb +5 -4
- data/lib/rbflagr/models/put_variant_request.rb +5 -9
- data/lib/rbflagr/models/segment.rb +5 -4
- data/lib/rbflagr/models/segment_debug_log.rb +5 -4
- data/lib/rbflagr/models/set_flag_enabled_request.rb +5 -4
- data/lib/rbflagr/models/tag.rb +232 -0
- data/lib/rbflagr/models/variant.rb +5 -4
- data/lib/rbflagr/version.rb +4 -4
- data/lib/rbflagr.rb +8 -3
- data/rbflagr.gemspec +5 -4
- data/spec/api/export_api_spec.rb +45 -0
- data/spec/api/tag_api_spec.rb +79 -0
- data/spec/models/create_tag_request_spec.rb +41 -0
- data/spec/models/health_spec.rb +41 -0
- data/spec/models/tag_spec.rb +47 -0
- data/swagger.yaml +309 -43
- data/swagger_ruby.json +1 -1
- metadata +72 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0dfe99e7f241d711f2fb3efad5c9088b4100e831f9d615542ecb10492594535
|
4
|
+
data.tar.gz: feb4705f5681ed11837b59b4f14581b1708696fe390501f7d96f1ee26001b1a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df6812bfa92ab9cf34375f86ea25dd015cf3355bb49b7678ac8bb662d5dd4b91889a0e6b1683bf3934d0a8dd5c89a7045a7c50f7e27036841a690675dc70a0d3
|
7
|
+
data.tar.gz: a9bb90db94df009edf3597cfebddc245893da1267d4e0eb4b4cb018f4b4e59b1f2af5787791c054f04723c8be4cb1039e397858227b9ce1eb2e9e8cbf9c74e4f
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
Flagr - the Ruby gem for the Flagr
|
4
4
|
|
5
|
-
Flagr is a feature flagging, A/B testing and dynamic configuration microservice
|
5
|
+
Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
|
-
- API version: 1.
|
10
|
-
- Package version:
|
9
|
+
- API version: 1.1.12
|
10
|
+
- Package version: 1.1.12
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build rbflagr.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./rbflagr-
|
26
|
+
gem install ./rbflagr-1.1.12.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./rbflagr-
|
28
|
+
(for development, run `gem install --dev ./rbflagr-1.1.12.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'rbflagr', '~>
|
34
|
+
gem 'rbflagr', '~> 1.1.12'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -86,19 +86,26 @@ Class | Method | HTTP request | Description
|
|
86
86
|
*Flagr::DistributionApi* | [**put_distributions**](docs/DistributionApi.md#put_distributions) | **PUT** /flags/{flagID}/segments/{segmentID}/distributions |
|
87
87
|
*Flagr::EvaluationApi* | [**post_evaluation**](docs/EvaluationApi.md#post_evaluation) | **POST** /evaluation |
|
88
88
|
*Flagr::EvaluationApi* | [**post_evaluation_batch**](docs/EvaluationApi.md#post_evaluation_batch) | **POST** /evaluation/batch |
|
89
|
+
*Flagr::ExportApi* | [**get_export_eval_cache_json**](docs/ExportApi.md#get_export_eval_cache_json) | **GET** /export/eval_cache/json |
|
90
|
+
*Flagr::ExportApi* | [**get_export_sqlite**](docs/ExportApi.md#get_export_sqlite) | **GET** /export/sqlite |
|
89
91
|
*Flagr::FlagApi* | [**create_flag**](docs/FlagApi.md#create_flag) | **POST** /flags |
|
90
92
|
*Flagr::FlagApi* | [**delete_flag**](docs/FlagApi.md#delete_flag) | **DELETE** /flags/{flagID} |
|
91
93
|
*Flagr::FlagApi* | [**find_flags**](docs/FlagApi.md#find_flags) | **GET** /flags |
|
92
94
|
*Flagr::FlagApi* | [**get_flag**](docs/FlagApi.md#get_flag) | **GET** /flags/{flagID} |
|
95
|
+
*Flagr::FlagApi* | [**get_flag_entity_types**](docs/FlagApi.md#get_flag_entity_types) | **GET** /flags/entity_types |
|
93
96
|
*Flagr::FlagApi* | [**get_flag_snapshots**](docs/FlagApi.md#get_flag_snapshots) | **GET** /flags/{flagID}/snapshots |
|
94
97
|
*Flagr::FlagApi* | [**put_flag**](docs/FlagApi.md#put_flag) | **PUT** /flags/{flagID} |
|
95
98
|
*Flagr::FlagApi* | [**set_flag_enabled**](docs/FlagApi.md#set_flag_enabled) | **PUT** /flags/{flagID}/enabled |
|
96
|
-
*Flagr::HealthApi* | [**
|
99
|
+
*Flagr::HealthApi* | [**get_health**](docs/HealthApi.md#get_health) | **GET** /health |
|
97
100
|
*Flagr::SegmentApi* | [**create_segment**](docs/SegmentApi.md#create_segment) | **POST** /flags/{flagID}/segments |
|
98
101
|
*Flagr::SegmentApi* | [**delete_segment**](docs/SegmentApi.md#delete_segment) | **DELETE** /flags/{flagID}/segments/{segmentID} |
|
99
102
|
*Flagr::SegmentApi* | [**find_segments**](docs/SegmentApi.md#find_segments) | **GET** /flags/{flagID}/segments |
|
100
103
|
*Flagr::SegmentApi* | [**put_segment**](docs/SegmentApi.md#put_segment) | **PUT** /flags/{flagID}/segments/{segmentID} |
|
101
104
|
*Flagr::SegmentApi* | [**put_segments_reorder**](docs/SegmentApi.md#put_segments_reorder) | **PUT** /flags/{flagID}/segments/reorder |
|
105
|
+
*Flagr::TagApi* | [**create_tag**](docs/TagApi.md#create_tag) | **POST** /flags/{flagID}/tags |
|
106
|
+
*Flagr::TagApi* | [**delete_tag**](docs/TagApi.md#delete_tag) | **DELETE** /flags/{flagID}/tags/{tagID} |
|
107
|
+
*Flagr::TagApi* | [**find_all_tags**](docs/TagApi.md#find_all_tags) | **GET** /tags |
|
108
|
+
*Flagr::TagApi* | [**find_tags**](docs/TagApi.md#find_tags) | **GET** /flags/{flagID}/tags |
|
102
109
|
*Flagr::VariantApi* | [**create_variant**](docs/VariantApi.md#create_variant) | **POST** /flags/{flagID}/variants |
|
103
110
|
*Flagr::VariantApi* | [**delete_variant**](docs/VariantApi.md#delete_variant) | **DELETE** /flags/{flagID}/variants/{variantID} |
|
104
111
|
*Flagr::VariantApi* | [**find_variants**](docs/VariantApi.md#find_variants) | **GET** /flags/{flagID}/variants |
|
@@ -111,6 +118,7 @@ Class | Method | HTTP request | Description
|
|
111
118
|
- [Flagr::CreateConstraintRequest](docs/CreateConstraintRequest.md)
|
112
119
|
- [Flagr::CreateFlagRequest](docs/CreateFlagRequest.md)
|
113
120
|
- [Flagr::CreateSegmentRequest](docs/CreateSegmentRequest.md)
|
121
|
+
- [Flagr::CreateTagRequest](docs/CreateTagRequest.md)
|
114
122
|
- [Flagr::CreateVariantRequest](docs/CreateVariantRequest.md)
|
115
123
|
- [Flagr::Distribution](docs/Distribution.md)
|
116
124
|
- [Flagr::Error](docs/Error.md)
|
@@ -122,6 +130,7 @@ Class | Method | HTTP request | Description
|
|
122
130
|
- [Flagr::EvaluationEntity](docs/EvaluationEntity.md)
|
123
131
|
- [Flagr::Flag](docs/Flag.md)
|
124
132
|
- [Flagr::FlagSnapshot](docs/FlagSnapshot.md)
|
133
|
+
- [Flagr::Health](docs/Health.md)
|
125
134
|
- [Flagr::PutDistributionsRequest](docs/PutDistributionsRequest.md)
|
126
135
|
- [Flagr::PutFlagRequest](docs/PutFlagRequest.md)
|
127
136
|
- [Flagr::PutSegmentReorderRequest](docs/PutSegmentReorderRequest.md)
|
@@ -130,6 +139,7 @@ Class | Method | HTTP request | Description
|
|
130
139
|
- [Flagr::Segment](docs/Segment.md)
|
131
140
|
- [Flagr::SegmentDebugLog](docs/SegmentDebugLog.md)
|
132
141
|
- [Flagr::SetFlagEnabledRequest](docs/SetFlagEnabledRequest.md)
|
142
|
+
- [Flagr::Tag](docs/Tag.md)
|
133
143
|
- [Flagr::Variant](docs/Variant.md)
|
134
144
|
|
135
145
|
|
data/docs/CreateFlagRequest.md
CHANGED
@@ -4,5 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**description** | **String** | |
|
7
|
+
**key** | **String** | unique key representation of the flag | [optional]
|
8
|
+
**template** | **String** | template for flag creation | [optional]
|
7
9
|
|
8
10
|
|
data/docs/Distribution.md
CHANGED
@@ -5,7 +5,6 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**id** | **Integer** | | [optional]
|
7
7
|
**percent** | **Integer** | |
|
8
|
-
**bitmap** | **String** | | [optional]
|
9
8
|
**variant_key** | **String** | |
|
10
9
|
**variant_id** | **Integer** | |
|
11
10
|
|
data/docs/EvalContext.md
CHANGED
@@ -4,9 +4,11 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**entity_id** | **String** | entityID is used to deterministically at random to evaluate the flag result. If it's empty, flagr will randomly generate one. | [optional]
|
7
|
-
**entity_type** | **String** | |
|
7
|
+
**entity_type** | **String** | | [optional]
|
8
8
|
**entity_context** | **Object** | | [optional]
|
9
9
|
**enable_debug** | **BOOLEAN** | | [optional]
|
10
|
-
**flag_id** | **Integer** |
|
10
|
+
**flag_id** | **Integer** | flagID | [optional]
|
11
|
+
**flag_key** | **String** | flagKey. flagID or flagKey will resolve to the same flag. Either works. | [optional]
|
12
|
+
**flag_tags** | **Array<String>** | flagTags. flagTags looks up flags by tag. Either works. | [optional]
|
11
13
|
|
12
14
|
|
data/docs/EvalResult.md
CHANGED
@@ -3,14 +3,15 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**flag_id** | **Integer** | |
|
6
|
+
**flag_id** | **Integer** | | [optional]
|
7
|
+
**flag_key** | **String** | | [optional]
|
7
8
|
**flag_snapshot_id** | **Integer** | | [optional]
|
8
|
-
**segment_id** | **Integer** | |
|
9
|
-
**variant_id** | **Integer** | |
|
10
|
-
**variant_key** | **String** | |
|
11
|
-
**variant_attachment** | **Object** | |
|
12
|
-
**eval_context** | [**EvalContext**](EvalContext.md) | |
|
13
|
-
**timestamp** | **String** | |
|
9
|
+
**segment_id** | **Integer** | | [optional]
|
10
|
+
**variant_id** | **Integer** | | [optional]
|
11
|
+
**variant_key** | **String** | | [optional]
|
12
|
+
**variant_attachment** | **Object** | | [optional]
|
13
|
+
**eval_context** | [**EvalContext**](EvalContext.md) | | [optional]
|
14
|
+
**timestamp** | **String** | | [optional]
|
14
15
|
**eval_debug_log** | [**EvalDebugLog**](EvalDebugLog.md) | | [optional]
|
15
16
|
|
16
17
|
|
@@ -5,6 +5,8 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**entities** | [**Array<EvaluationEntity>**](EvaluationEntity.md) | |
|
7
7
|
**enable_debug** | **BOOLEAN** | | [optional]
|
8
|
-
**flag_i_ds** | **Array<Integer>** |
|
8
|
+
**flag_i_ds** | **Array<Integer>** | flagIDs | [optional]
|
9
|
+
**flag_keys** | **Array<String>** | flagKeys. Either flagIDs, flagKeys or flagTags works. If pass in multiples, Flagr may return duplicate results. | [optional]
|
10
|
+
**flag_tags** | **Array<String>** | flagTags. Either flagIDs, flagKeys or flagTags works. If pass in multiples, Flagr may return duplicate results. | [optional]
|
9
11
|
|
10
12
|
|
data/docs/EvaluationEntity.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**entity_id** | **String** | | [optional]
|
7
|
-
**entity_type** | **String** | |
|
7
|
+
**entity_type** | **String** | | [optional]
|
8
8
|
**entity_context** | **Object** | | [optional]
|
9
9
|
|
10
10
|
|
data/docs/ExportApi.md
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
# Flagr::ExportApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost/api/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_export_eval_cache_json**](ExportApi.md#get_export_eval_cache_json) | **GET** /export/eval_cache/json |
|
8
|
+
[**get_export_sqlite**](ExportApi.md#get_export_sqlite) | **GET** /export/sqlite |
|
9
|
+
|
10
|
+
|
11
|
+
# **get_export_eval_cache_json**
|
12
|
+
> Object get_export_eval_cache_json
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
Export JSON format of the eval cache dump
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'rbflagr'
|
22
|
+
|
23
|
+
api_instance = Flagr::ExportApi.new
|
24
|
+
|
25
|
+
begin
|
26
|
+
result = api_instance.get_export_eval_cache_json
|
27
|
+
p result
|
28
|
+
rescue Flagr::ApiError => e
|
29
|
+
puts "Exception when calling ExportApi->get_export_eval_cache_json: #{e}"
|
30
|
+
end
|
31
|
+
```
|
32
|
+
|
33
|
+
### Parameters
|
34
|
+
This endpoint does not need any parameter.
|
35
|
+
|
36
|
+
### Return type
|
37
|
+
|
38
|
+
**Object**
|
39
|
+
|
40
|
+
### Authorization
|
41
|
+
|
42
|
+
No authorization required
|
43
|
+
|
44
|
+
### HTTP request headers
|
45
|
+
|
46
|
+
- **Content-Type**: application/json
|
47
|
+
- **Accept**: application/json
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
# **get_export_sqlite**
|
52
|
+
> File get_export_sqlite(opts)
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
Export sqlite3 format of the db dump, which is converted from the main database.
|
57
|
+
|
58
|
+
### Example
|
59
|
+
```ruby
|
60
|
+
# load the gem
|
61
|
+
require 'rbflagr'
|
62
|
+
|
63
|
+
api_instance = Flagr::ExportApi.new
|
64
|
+
|
65
|
+
opts = {
|
66
|
+
exclude_snapshots: true # BOOLEAN | export without snapshots data - useful for smaller db without snapshots
|
67
|
+
}
|
68
|
+
|
69
|
+
begin
|
70
|
+
result = api_instance.get_export_sqlite(opts)
|
71
|
+
p result
|
72
|
+
rescue Flagr::ApiError => e
|
73
|
+
puts "Exception when calling ExportApi->get_export_sqlite: #{e}"
|
74
|
+
end
|
75
|
+
```
|
76
|
+
|
77
|
+
### Parameters
|
78
|
+
|
79
|
+
Name | Type | Description | Notes
|
80
|
+
------------- | ------------- | ------------- | -------------
|
81
|
+
**exclude_snapshots** | **BOOLEAN**| export without snapshots data - useful for smaller db without snapshots | [optional]
|
82
|
+
|
83
|
+
### Return type
|
84
|
+
|
85
|
+
**File**
|
86
|
+
|
87
|
+
### Authorization
|
88
|
+
|
89
|
+
No authorization required
|
90
|
+
|
91
|
+
### HTTP request headers
|
92
|
+
|
93
|
+
- **Content-Type**: application/json
|
94
|
+
- **Accept**: application/octet-stream
|
95
|
+
|
96
|
+
|
97
|
+
|
data/docs/Flag.md
CHANGED
@@ -4,10 +4,17 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**id** | **Integer** | | [optional]
|
7
|
+
**key** | **String** | unique key representation of the flag | [optional]
|
7
8
|
**description** | **String** | |
|
8
9
|
**enabled** | **BOOLEAN** | |
|
10
|
+
**tags** | [**Array<Tag>**](Tag.md) | | [optional]
|
9
11
|
**segments** | [**Array<Segment>**](Segment.md) | | [optional]
|
10
12
|
**variants** | [**Array<Variant>**](Variant.md) | | [optional]
|
11
13
|
**data_records_enabled** | **BOOLEAN** | enabled data records will get data logging in the metrics pipeline, for example, kafka. |
|
14
|
+
**entity_type** | **String** | it will override the entityType in the evaluation logs if it's not empty | [optional]
|
15
|
+
**notes** | **String** | flag usage details in markdown format | [optional]
|
16
|
+
**created_by** | **String** | | [optional]
|
17
|
+
**updated_by** | **String** | | [optional]
|
18
|
+
**updated_at** | **DateTime** | | [optional]
|
12
19
|
|
13
20
|
|
data/docs/FlagApi.md
CHANGED
@@ -8,6 +8,7 @@ Method | HTTP request | Description
|
|
8
8
|
[**delete_flag**](FlagApi.md#delete_flag) | **DELETE** /flags/{flagID} |
|
9
9
|
[**find_flags**](FlagApi.md#find_flags) | **GET** /flags |
|
10
10
|
[**get_flag**](FlagApi.md#get_flag) | **GET** /flags/{flagID} |
|
11
|
+
[**get_flag_entity_types**](FlagApi.md#get_flag_entity_types) | **GET** /flags/entity_types |
|
11
12
|
[**get_flag_snapshots**](FlagApi.md#get_flag_snapshots) | **GET** /flags/{flagID}/snapshots |
|
12
13
|
[**put_flag**](FlagApi.md#put_flag) | **PUT** /flags/{flagID} |
|
13
14
|
[**set_flag_enabled**](FlagApi.md#set_flag_enabled) | **PUT** /flags/{flagID}/enabled |
|
@@ -116,8 +117,11 @@ opts = {
|
|
116
117
|
limit: 789, # Integer | the numbers of flags to return
|
117
118
|
enabled: true, # BOOLEAN | return flags having given enabled status
|
118
119
|
description: 'description_example', # String | return flags exactly matching given description
|
120
|
+
tags: 'tags_example', # String | return flags with the given tags (comma separated)
|
119
121
|
description_like: 'description_like_example', # String | return flags partially matching given description
|
120
|
-
|
122
|
+
key: 'key_example', # String | return flags matching given key
|
123
|
+
offset: 789, # Integer | return flags given the offset, it should usually set together with limit
|
124
|
+
preload: true # BOOLEAN | return flags with preloaded segments and variants
|
121
125
|
}
|
122
126
|
|
123
127
|
begin
|
@@ -135,8 +139,11 @@ Name | Type | Description | Notes
|
|
135
139
|
**limit** | **Integer**| the numbers of flags to return | [optional]
|
136
140
|
**enabled** | **BOOLEAN**| return flags having given enabled status | [optional]
|
137
141
|
**description** | **String**| return flags exactly matching given description | [optional]
|
142
|
+
**tags** | **String**| return flags with the given tags (comma separated) | [optional]
|
138
143
|
**description_like** | **String**| return flags partially matching given description | [optional]
|
144
|
+
**key** | **String**| return flags matching given key | [optional]
|
139
145
|
**offset** | **Integer**| return flags given the offset, it should usually set together with limit | [optional]
|
146
|
+
**preload** | **BOOLEAN**| return flags with preloaded segments and variants | [optional]
|
140
147
|
|
141
148
|
### Return type
|
142
149
|
|
@@ -197,6 +204,44 @@ No authorization required
|
|
197
204
|
|
198
205
|
|
199
206
|
|
207
|
+
# **get_flag_entity_types**
|
208
|
+
> Array<String> get_flag_entity_types
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
### Example
|
213
|
+
```ruby
|
214
|
+
# load the gem
|
215
|
+
require 'rbflagr'
|
216
|
+
|
217
|
+
api_instance = Flagr::FlagApi.new
|
218
|
+
|
219
|
+
begin
|
220
|
+
result = api_instance.get_flag_entity_types
|
221
|
+
p result
|
222
|
+
rescue Flagr::ApiError => e
|
223
|
+
puts "Exception when calling FlagApi->get_flag_entity_types: #{e}"
|
224
|
+
end
|
225
|
+
```
|
226
|
+
|
227
|
+
### Parameters
|
228
|
+
This endpoint does not need any parameter.
|
229
|
+
|
230
|
+
### Return type
|
231
|
+
|
232
|
+
**Array<String>**
|
233
|
+
|
234
|
+
### Authorization
|
235
|
+
|
236
|
+
No authorization required
|
237
|
+
|
238
|
+
### HTTP request headers
|
239
|
+
|
240
|
+
- **Content-Type**: application/json
|
241
|
+
- **Accept**: application/json
|
242
|
+
|
243
|
+
|
244
|
+
|
200
245
|
# **get_flag_snapshots**
|
201
246
|
> Array<FlagSnapshot> get_flag_snapshots(flag_id)
|
202
247
|
|
data/docs/Health.md
ADDED
data/docs/HealthApi.md
CHANGED
@@ -4,14 +4,16 @@ All URIs are relative to *http://localhost/api/v1*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
7
|
+
[**get_health**](HealthApi.md#get_health) | **GET** /health |
|
8
8
|
|
9
9
|
|
10
|
-
# **
|
11
|
-
>
|
10
|
+
# **get_health**
|
11
|
+
> Health get_health
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
+
Check if Flagr is healthy
|
16
|
+
|
15
17
|
### Example
|
16
18
|
```ruby
|
17
19
|
# load the gem
|
@@ -20,9 +22,10 @@ require 'rbflagr'
|
|
20
22
|
api_instance = Flagr::HealthApi.new
|
21
23
|
|
22
24
|
begin
|
23
|
-
api_instance.
|
25
|
+
result = api_instance.get_health
|
26
|
+
p result
|
24
27
|
rescue Flagr::ApiError => e
|
25
|
-
puts "Exception when calling HealthApi->
|
28
|
+
puts "Exception when calling HealthApi->get_health: #{e}"
|
26
29
|
end
|
27
30
|
```
|
28
31
|
|
@@ -31,7 +34,7 @@ This endpoint does not need any parameter.
|
|
31
34
|
|
32
35
|
### Return type
|
33
36
|
|
34
|
-
|
37
|
+
[**Health**](Health.md)
|
35
38
|
|
36
39
|
### Authorization
|
37
40
|
|
data/docs/PutFlagRequest.md
CHANGED
@@ -3,7 +3,11 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**description** | **String** | |
|
6
|
+
**description** | **String** | | [optional]
|
7
7
|
**data_records_enabled** | **BOOLEAN** | enabled data records will get data logging in the metrics pipeline, for example, kafka. | [optional]
|
8
|
+
**entity_type** | **String** | it will overwrite entityType into evaluation logs if it's not empty | [optional]
|
9
|
+
**enabled** | **BOOLEAN** | | [optional]
|
10
|
+
**key** | **String** | | [optional]
|
11
|
+
**notes** | **String** | | [optional]
|
8
12
|
|
9
13
|
|