From 5dee05542eee83852f1e735334a3253894821b50 Mon Sep 17 00:00:00 2001 From: zhuojie Date: Tue, 19 Mar 2019 17:46:52 -0700 Subject: [PATCH] Bump swagger version --- README.md | 4 ++-- api/swagger.yaml | 35 +++++++++++----------------- api_constraint.go | 2 +- api_distribution.go | 2 +- api_evaluation.go | 2 +- api_export.go | 2 +- api_flag.go | 7 +++++- api_health.go | 2 +- api_segment.go | 2 +- api_variant.go | 2 +- client.go | 4 ++-- configuration.go | 4 ++-- docs/EvalResult.md | 16 ++++++------- docs/FlagApi.md | 1 + model_constraint.go | 2 +- model_create_constraint_request.go | 2 +- model_create_flag_request.go | 2 +- model_create_segment_request.go | 2 +- model_create_variant_request.go | 2 +- model_distribution.go | 2 +- model_error.go | 2 +- model_eval_context.go | 2 +- model_eval_debug_log.go | 2 +- model_eval_result.go | 18 +++++++------- model_evaluation_batch_request.go | 2 +- model_evaluation_batch_response.go | 2 +- model_evaluation_entity.go | 2 +- model_flag.go | 2 +- model_flag_snapshot.go | 2 +- model_put_distributions_request.go | 2 +- model_put_flag_request.go | 2 +- model_put_segment_reorder_request.go | 2 +- model_put_segment_request.go | 2 +- model_put_variant_request.go | 2 +- model_segment.go | 2 +- model_segment_debug_log.go | 2 +- model_set_flag_enabled_request.go | 2 +- model_variant.go | 2 +- response.go | 2 +- swagger.yaml | 20 ++++------------ swagger_go.json | 2 +- 41 files changed, 81 insertions(+), 92 deletions(-) diff --git a/README.md b/README.md index 8cc2b8e..60c23a2 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ Flagr is a feature flagging, A/B testing and dynamic configuration microservice. ## Overview This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client. -- API version: 1.0.13 -- Package version: 0.1.0 +- API version: 1.1.0 +- Package version: 1.1.0 - Build package: io.swagger.codegen.languages.GoClientCodegen ## Installation diff --git a/api/swagger.yaml b/api/swagger.yaml index e257636..3d7d4ab 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -3,7 +3,7 @@ swagger: "2.0" info: description: "Flagr is a feature flagging, A/B testing and dynamic configuration\ \ microservice. The base path for all the APIs is \"/api/v1\".\n" - version: "1.0.13" + version: "1.1.0" title: "Flagr" basePath: "/api/v1" tags: @@ -79,6 +79,13 @@ paths: format: "int64" x-exportParamName: "Offset" x-optionalDataType: "Int64" + - name: "preload" + in: "query" + description: "return flags with preloaded segments and variants" + required: false + type: "boolean" + x-exportParamName: "Preload" + x-optionalDataType: "Bool" responses: 200: description: "list all the flags" @@ -1320,20 +1327,10 @@ definitions: flagKey: "flagKey" evalResult: type: "object" - required: - - "evalContext" - - "flagID" - - "flagKey" - - "segmentID" - - "timestamp" - - "variantAttachment" - - "variantID" - - "variantKey" properties: flagID: type: "integer" format: "int64" - minimum: 1 flagKey: type: "string" flagSnapshotID: @@ -1342,14 +1339,11 @@ definitions: segmentID: type: "integer" format: "int64" - minimum: 1 variantID: type: "integer" format: "int64" - minimum: 1 variantKey: type: "string" - minLength: 1 variantAttachment: type: "object" properties: {} @@ -1357,7 +1351,6 @@ definitions: $ref: "#/definitions/evalContext" timestamp: type: "string" - minLength: 1 evalDebugLog: $ref: "#/definitions/evalDebugLog" example: @@ -1376,8 +1369,8 @@ definitions: segmentID: 1 - msg: "msg" segmentID: 1 - flagID: 1 - variantID: 1 + flagID: 0 + variantID: 5 variantAttachment: "{}" flagSnapshotID: 6 variantKey: "variantKey" @@ -1475,8 +1468,8 @@ definitions: segmentID: 1 - msg: "msg" segmentID: 1 - flagID: 1 - variantID: 1 + flagID: 0 + variantID: 5 variantAttachment: "{}" flagSnapshotID: 6 variantKey: "variantKey" @@ -1497,8 +1490,8 @@ definitions: segmentID: 1 - msg: "msg" segmentID: 1 - flagID: 1 - variantID: 1 + flagID: 0 + variantID: 5 variantAttachment: "{}" flagSnapshotID: 6 variantKey: "variantKey" diff --git a/api_constraint.go b/api_constraint.go index 9c5be18..19050ba 100644 --- a/api_constraint.go +++ b/api_constraint.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/api_distribution.go b/api_distribution.go index 4011209..678e0ac 100644 --- a/api_distribution.go +++ b/api_distribution.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/api_evaluation.go b/api_evaluation.go index b88ee88..f10a8cd 100644 --- a/api_evaluation.go +++ b/api_evaluation.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/api_export.go b/api_export.go index 6067742..2a2d1e8 100644 --- a/api_export.go +++ b/api_export.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/api_flag.go b/api_flag.go index 4e54fa3..e1b329e 100644 --- a/api_flag.go +++ b/api_flag.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ @@ -235,6 +235,7 @@ FlagApiService * @param "DescriptionLike" (optional.String) - return flags partially matching given description * @param "Key" (optional.String) - return flags matching given key * @param "Offset" (optional.Int64) - return flags given the offset, it should usually set together with limit + * @param "Preload" (optional.Bool) - return flags with preloaded segments and variants @return []Flag */ @@ -246,6 +247,7 @@ type FindFlagsOpts struct { DescriptionLike optional.String Key optional.String Offset optional.Int64 + Preload optional.Bool } func (a *FlagApiService) FindFlags(ctx context.Context, localVarOptionals *FindFlagsOpts) ([]Flag, *http.Response, error) { @@ -282,6 +284,9 @@ func (a *FlagApiService) FindFlags(ctx context.Context, localVarOptionals *FindF if localVarOptionals != nil && localVarOptionals.Offset.IsSet() { localVarQueryParams.Add("offset", parameterToString(localVarOptionals.Offset.Value(), "")) } + if localVarOptionals != nil && localVarOptionals.Preload.IsSet() { + localVarQueryParams.Add("preload", parameterToString(localVarOptionals.Preload.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{"application/json"} diff --git a/api_health.go b/api_health.go index 339aa4d..a276344 100644 --- a/api_health.go +++ b/api_health.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/api_segment.go b/api_segment.go index b4874b5..bfd7219 100644 --- a/api_segment.go +++ b/api_segment.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/api_variant.go b/api_variant.go index 5773a75..7f06732 100644 --- a/api_variant.go +++ b/api_variant.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/client.go b/client.go index 360cf6a..57fb05e 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ @@ -37,7 +37,7 @@ var ( xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)") ) -// APIClient manages communication with the Flagr API v1.0.13 +// APIClient manages communication with the Flagr API v1.1.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/configuration.go b/configuration.go index f80f54a..fb08e1f 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ @@ -62,7 +62,7 @@ func NewConfiguration() *Configuration { cfg := &Configuration{ BasePath: "http://localhost/api/v1", DefaultHeader: make(map[string]string), - UserAgent: "Swagger-Codegen/0.1.0/go", + UserAgent: "Swagger-Codegen/1.1.0/go", } return cfg } diff --git a/docs/EvalResult.md b/docs/EvalResult.md index c1fc488..bbee573 100644 --- a/docs/EvalResult.md +++ b/docs/EvalResult.md @@ -3,15 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**FlagID** | **int64** | | [default to null] -**FlagKey** | **string** | | [default to null] +**FlagID** | **int64** | | [optional] [default to null] +**FlagKey** | **string** | | [optional] [default to null] **FlagSnapshotID** | **int64** | | [optional] [default to null] -**SegmentID** | **int64** | | [default to null] -**VariantID** | **int64** | | [default to null] -**VariantKey** | **string** | | [default to null] -**VariantAttachment** | [***interface{}**](interface{}.md) | | [default to null] -**EvalContext** | [***EvalContext**](evalContext.md) | | [default to null] -**Timestamp** | **string** | | [default to null] +**SegmentID** | **int64** | | [optional] [default to null] +**VariantID** | **int64** | | [optional] [default to null] +**VariantKey** | **string** | | [optional] [default to null] +**VariantAttachment** | [***interface{}**](interface{}.md) | | [optional] [default to null] +**EvalContext** | [***EvalContext**](evalContext.md) | | [optional] [default to null] +**Timestamp** | **string** | | [optional] [default to null] **EvalDebugLog** | [***EvalDebugLog**](evalDebugLog.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FlagApi.md b/docs/FlagApi.md index 011615e..fcb497b 100644 --- a/docs/FlagApi.md +++ b/docs/FlagApi.md @@ -88,6 +88,7 @@ Name | Type | Description | Notes **descriptionLike** | **optional.String**| return flags partially matching given description | **key** | **optional.String**| return flags matching given key | **offset** | **optional.Int64**| return flags given the offset, it should usually set together with limit | + **preload** | **optional.Bool**| return flags with preloaded segments and variants | ### Return type diff --git a/model_constraint.go b/model_constraint.go index 981d69f..2201684 100644 --- a/model_constraint.go +++ b/model_constraint.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_create_constraint_request.go b/model_create_constraint_request.go index f62c638..077f133 100644 --- a/model_create_constraint_request.go +++ b/model_create_constraint_request.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_create_flag_request.go b/model_create_flag_request.go index 545fc6c..2dfbf76 100644 --- a/model_create_flag_request.go +++ b/model_create_flag_request.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_create_segment_request.go b/model_create_segment_request.go index f165e92..68cfaed 100644 --- a/model_create_segment_request.go +++ b/model_create_segment_request.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_create_variant_request.go b/model_create_variant_request.go index f32aa2c..f531ee4 100644 --- a/model_create_variant_request.go +++ b/model_create_variant_request.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_distribution.go b/model_distribution.go index 9f05354..158c7cb 100644 --- a/model_distribution.go +++ b/model_distribution.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_error.go b/model_error.go index 31f4879..55a5770 100644 --- a/model_error.go +++ b/model_error.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_eval_context.go b/model_eval_context.go index ea5b5f5..9fe1b79 100644 --- a/model_eval_context.go +++ b/model_eval_context.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_eval_debug_log.go b/model_eval_debug_log.go index 2585fc2..32eb006 100644 --- a/model_eval_debug_log.go +++ b/model_eval_debug_log.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_eval_result.go b/model_eval_result.go index 10fabd0..4fd2ef1 100644 --- a/model_eval_result.go +++ b/model_eval_result.go @@ -3,21 +3,21 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package goflagr type EvalResult struct { - FlagID int64 `json:"flagID"` - FlagKey string `json:"flagKey"` + FlagID int64 `json:"flagID,omitempty"` + FlagKey string `json:"flagKey,omitempty"` FlagSnapshotID int64 `json:"flagSnapshotID,omitempty"` - SegmentID int64 `json:"segmentID"` - VariantID int64 `json:"variantID"` - VariantKey string `json:"variantKey"` - VariantAttachment *interface{} `json:"variantAttachment"` - EvalContext *EvalContext `json:"evalContext"` - Timestamp string `json:"timestamp"` + SegmentID int64 `json:"segmentID,omitempty"` + VariantID int64 `json:"variantID,omitempty"` + VariantKey string `json:"variantKey,omitempty"` + VariantAttachment *interface{} `json:"variantAttachment,omitempty"` + EvalContext *EvalContext `json:"evalContext,omitempty"` + Timestamp string `json:"timestamp,omitempty"` EvalDebugLog *EvalDebugLog `json:"evalDebugLog,omitempty"` } diff --git a/model_evaluation_batch_request.go b/model_evaluation_batch_request.go index 9e5bf96..0c41a87 100644 --- a/model_evaluation_batch_request.go +++ b/model_evaluation_batch_request.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_evaluation_batch_response.go b/model_evaluation_batch_response.go index b87c20d..d592c49 100644 --- a/model_evaluation_batch_response.go +++ b/model_evaluation_batch_response.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_evaluation_entity.go b/model_evaluation_entity.go index d609e99..456333b 100644 --- a/model_evaluation_entity.go +++ b/model_evaluation_entity.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_flag.go b/model_flag.go index 06ea32a..d3a2fd4 100644 --- a/model_flag.go +++ b/model_flag.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_flag_snapshot.go b/model_flag_snapshot.go index e2e6afb..c4743cd 100644 --- a/model_flag_snapshot.go +++ b/model_flag_snapshot.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_put_distributions_request.go b/model_put_distributions_request.go index ad59635..0da152e 100644 --- a/model_put_distributions_request.go +++ b/model_put_distributions_request.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_put_flag_request.go b/model_put_flag_request.go index 054dc5b..06ba2f3 100644 --- a/model_put_flag_request.go +++ b/model_put_flag_request.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_put_segment_reorder_request.go b/model_put_segment_reorder_request.go index 97fec29..bc5a328 100644 --- a/model_put_segment_reorder_request.go +++ b/model_put_segment_reorder_request.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_put_segment_request.go b/model_put_segment_request.go index 587201d..d0c9c06 100644 --- a/model_put_segment_request.go +++ b/model_put_segment_request.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_put_variant_request.go b/model_put_variant_request.go index f35ec25..d371627 100644 --- a/model_put_variant_request.go +++ b/model_put_variant_request.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_segment.go b/model_segment.go index 0672c30..df0aaa3 100644 --- a/model_segment.go +++ b/model_segment.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_segment_debug_log.go b/model_segment_debug_log.go index d6b447a..10e36a2 100644 --- a/model_segment_debug_log.go +++ b/model_segment_debug_log.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_set_flag_enabled_request.go b/model_set_flag_enabled_request.go index 63fecc0..7cbda3d 100644 --- a/model_set_flag_enabled_request.go +++ b/model_set_flag_enabled_request.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/model_variant.go b/model_variant.go index 2f04f75..f1ba459 100644 --- a/model_variant.go +++ b/model_variant.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/response.go b/response.go index 3710a7d..92a6a06 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ * * Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". * - * API version: 1.0.13 + * API version: 1.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ diff --git a/swagger.yaml b/swagger.yaml index 5729b1d..7827f9c 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -4,7 +4,7 @@ info: Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is "/api/v1". title: Flagr - version: 1.0.13 + version: 1.1.0 tags: - name: flag description: Everything about the flag @@ -79,6 +79,10 @@ paths: description: >- return flags given the offset, it should usually set together with limit + - in: query + name: preload + type: boolean + description: return flags with preloaded segments and variants responses: '200': description: list all the flags @@ -1101,20 +1105,10 @@ definitions: type: string evalResult: type: object - required: - - flagID - - flagKey - - segmentID - - variantID - - variantKey - - variantAttachment - - evalContext - - timestamp properties: flagID: type: integer format: int64 - minimum: 1 flagKey: type: string flagSnapshotID: @@ -1123,21 +1117,17 @@ definitions: segmentID: type: integer format: int64 - minimum: 1 variantID: type: integer format: int64 - minimum: 1 variantKey: type: string - minLength: 1 variantAttachment: type: object evalContext: $ref: '#/definitions/evalContext' timestamp: type: string - minLength: 1 evalDebugLog: $ref: '#/definitions/evalDebugLog' evalDebugLog: diff --git a/swagger_go.json b/swagger_go.json index 8bad622..c8c362a 100644 --- a/swagger_go.json +++ b/swagger_go.json @@ -1,4 +1,4 @@ { "packageName": "goflagr", - "packageVersion": "0.1.0" + "packageVersion": "1.1.0" }