Home

Awesome

Go API client for goflagr

Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is "/api/v1".

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

Installation

Put the package under your project folder and add the following in import:

import "./goflagr"

Documentation for API Endpoints

All URIs are relative to http://localhost/api/v1

ClassMethodHTTP requestDescription
ConstraintApiCreateConstraintPost /flags/{flagID}/segments/{segmentID}/constraints
ConstraintApiDeleteConstraintDelete /flags/{flagID}/segments/{segmentID}/constraints/{constraintID}
ConstraintApiFindConstraintsGet /flags/{flagID}/segments/{segmentID}/constraints
ConstraintApiPutConstraintPut /flags/{flagID}/segments/{segmentID}/constraints/{constraintID}
DistributionApiFindDistributionsGet /flags/{flagID}/segments/{segmentID}/distributions
DistributionApiPutDistributionsPut /flags/{flagID}/segments/{segmentID}/distributions
EvaluationApiPostEvaluationPost /evaluation
EvaluationApiPostEvaluationBatchPost /evaluation/batch
ExportApiGetExportEvalCacheJSONGet /export/eval_cache/json
ExportApiGetExportSqliteGet /export/sqlite
FlagApiCreateFlagPost /flags
FlagApiDeleteFlagDelete /flags/{flagID}
FlagApiFindFlagsGet /flags
FlagApiGetFlagGet /flags/{flagID}
FlagApiGetFlagEntityTypesGet /flags/entity_types
FlagApiGetFlagSnapshotsGet /flags/{flagID}/snapshots
FlagApiPutFlagPut /flags/{flagID}
FlagApiSetFlagEnabledPut /flags/{flagID}/enabled
HealthApiGetHealthGet /health
SegmentApiCreateSegmentPost /flags/{flagID}/segments
SegmentApiDeleteSegmentDelete /flags/{flagID}/segments/{segmentID}
SegmentApiFindSegmentsGet /flags/{flagID}/segments
SegmentApiPutSegmentPut /flags/{flagID}/segments/{segmentID}
SegmentApiPutSegmentsReorderPut /flags/{flagID}/segments/reorder
VariantApiCreateVariantPost /flags/{flagID}/variants
VariantApiDeleteVariantDelete /flags/{flagID}/variants/{variantID}
VariantApiFindVariantsGet /flags/{flagID}/variants
VariantApiPutVariantPut /flags/{flagID}/variants/{variantID}

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author