Skip to content

Commit

Permalink
Merge pull request #3 from checkr/zz/bump-swagger-version
Browse files Browse the repository at this point in the history
Bump swagger version
  • Loading branch information
zhouzhuojie authored Mar 20, 2019
2 parents 70bce82 + 5dee055 commit 471fb75
Show file tree
Hide file tree
Showing 41 changed files with 81 additions and 92 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
35 changes: 14 additions & 21 deletions api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand All @@ -1342,22 +1339,18 @@ definitions:
segmentID:
type: "integer"
format: "int64"
minimum: 1
variantID:
type: "integer"
format: "int64"
minimum: 1
variantKey:
type: "string"
minLength: 1
variantAttachment:
type: "object"
properties: {}
evalContext:
$ref: "#/definitions/evalContext"
timestamp:
type: "string"
minLength: 1
evalDebugLog:
$ref: "#/definitions/evalDebugLog"
example:
Expand All @@ -1376,8 +1369,8 @@ definitions:
segmentID: 1
- msg: "msg"
segmentID: 1
flagID: 1
variantID: 1
flagID: 0
variantID: 5
variantAttachment: "{}"
flagSnapshotID: 6
variantKey: "variantKey"
Expand Down Expand Up @@ -1475,8 +1468,8 @@ definitions:
segmentID: 1
- msg: "msg"
segmentID: 1
flagID: 1
variantID: 1
flagID: 0
variantID: 5
variantAttachment: "{}"
flagSnapshotID: 6
variantKey: "variantKey"
Expand All @@ -1497,8 +1490,8 @@ definitions:
segmentID: 1
- msg: "msg"
segmentID: 1
flagID: 1
variantID: 1
flagID: 0
variantID: 5
variantAttachment: "{}"
flagSnapshotID: 6
variantKey: "variantKey"
Expand Down
2 changes: 1 addition & 1 deletion api_constraint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
2 changes: 1 addition & 1 deletion api_distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
2 changes: 1 addition & 1 deletion api_evaluation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
2 changes: 1 addition & 1 deletion api_export.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
7 changes: 6 additions & 1 deletion api_flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down Expand Up @@ -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
*/
Expand All @@ -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) {
Expand Down Expand Up @@ -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"}

Expand Down
2 changes: 1 addition & 1 deletion api_health.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
2 changes: 1 addition & 1 deletion api_segment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
2 changes: 1 addition & 1 deletion api_variant.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down Expand Up @@ -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
}
Expand Down
16 changes: 8 additions & 8 deletions docs/EvalResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions docs/FlagApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion model_constraint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
2 changes: 1 addition & 1 deletion model_create_constraint_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
2 changes: 1 addition & 1 deletion model_create_flag_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
2 changes: 1 addition & 1 deletion model_create_segment_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
2 changes: 1 addition & 1 deletion model_create_variant_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
2 changes: 1 addition & 1 deletion model_distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
2 changes: 1 addition & 1 deletion model_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
2 changes: 1 addition & 1 deletion model_eval_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
2 changes: 1 addition & 1 deletion model_eval_debug_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
18 changes: 9 additions & 9 deletions model_eval_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
2 changes: 1 addition & 1 deletion model_evaluation_batch_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/

Expand Down
Loading

0 comments on commit 471fb75

Please sign in to comment.