{"id":18729891,"url":"https://github.com/openflagr/rbflagr","last_synced_at":"2025-11-12T08:30:15.847Z","repository":{"id":71790846,"uuid":"393568284","full_name":"openflagr/rbflagr","owner":"openflagr","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-07T03:35:31.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-12-28T14:41:59.931Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openflagr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-07T03:35:01.000Z","updated_at":"2021-09-29T07:30:28.000Z","dependencies_parsed_at":"2023-02-27T17:31:08.813Z","dependency_job_id":null,"html_url":"https://github.com/openflagr/rbflagr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openflagr%2Frbflagr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openflagr%2Frbflagr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openflagr%2Frbflagr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openflagr%2Frbflagr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openflagr","download_url":"https://codeload.github.com/openflagr/rbflagr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239599037,"owners_count":19665911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T14:29:34.937Z","updated_at":"2025-11-12T08:30:15.551Z","avatar_url":"https://github.com/openflagr.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rbflagr\n\nFlagr - the Ruby gem for the Flagr\n\nFlagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \\\"/api/v1\\\". \n\nThis SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:\n\n- API version: 1.1.10\n- Package version: 1.1.10\n- Build package: io.swagger.codegen.languages.RubyClientCodegen\n\n## Installation\n\n### Build a gem\n\nTo build the Ruby code into a gem:\n\n```shell\ngem build rbflagr.gemspec\n```\n\nThen either install the gem locally:\n\n```shell\ngem install ./rbflagr-1.1.10.gem\n```\n(for development, run `gem install --dev ./rbflagr-1.1.10.gem` to install the development dependencies)\n\nor publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).\n\nFinally add this to the Gemfile:\n\n    gem 'rbflagr', '~\u003e 1.1.10'\n\n### Install from Git\n\nIf the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:\n\n    gem 'rbflagr', :git =\u003e 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'\n\n### Include the Ruby code directly\n\nInclude the Ruby code directly using `-I` as follows:\n\n```shell\nruby -Ilib script.rb\n```\n\n## Getting Started\n\nPlease follow the [installation](#installation) procedure and then run the following code:\n```ruby\n# Load the gem\nrequire 'rbflagr'\n\napi_instance = Flagr::ConstraintApi.new\n\nflag_id = 789 # Integer | numeric ID of the flag\n\nsegment_id = 789 # Integer | numeric ID of the segment\n\nbody = Flagr::CreateConstraintRequest.new # CreateConstraintRequest | create a constraint\n\n\nbegin\n  result = api_instance.create_constraint(flag_id, segment_id, body)\n  p result\nrescue Flagr::ApiError =\u003e e\n  puts \"Exception when calling ConstraintApi-\u003ecreate_constraint: #{e}\"\nend\n\n```\n\n## Documentation for API Endpoints\n\nAll URIs are relative to *http://localhost/api/v1*\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*Flagr::ConstraintApi* | [**create_constraint**](docs/ConstraintApi.md#create_constraint) | **POST** /flags/{flagID}/segments/{segmentID}/constraints | \n*Flagr::ConstraintApi* | [**delete_constraint**](docs/ConstraintApi.md#delete_constraint) | **DELETE** /flags/{flagID}/segments/{segmentID}/constraints/{constraintID} | \n*Flagr::ConstraintApi* | [**find_constraints**](docs/ConstraintApi.md#find_constraints) | **GET** /flags/{flagID}/segments/{segmentID}/constraints | \n*Flagr::ConstraintApi* | [**put_constraint**](docs/ConstraintApi.md#put_constraint) | **PUT** /flags/{flagID}/segments/{segmentID}/constraints/{constraintID} | \n*Flagr::DistributionApi* | [**find_distributions**](docs/DistributionApi.md#find_distributions) | **GET** /flags/{flagID}/segments/{segmentID}/distributions | \n*Flagr::DistributionApi* | [**put_distributions**](docs/DistributionApi.md#put_distributions) | **PUT** /flags/{flagID}/segments/{segmentID}/distributions | \n*Flagr::EvaluationApi* | [**post_evaluation**](docs/EvaluationApi.md#post_evaluation) | **POST** /evaluation | \n*Flagr::EvaluationApi* | [**post_evaluation_batch**](docs/EvaluationApi.md#post_evaluation_batch) | **POST** /evaluation/batch | \n*Flagr::ExportApi* | [**get_export_eval_cache_json**](docs/ExportApi.md#get_export_eval_cache_json) | **GET** /export/eval_cache/json | \n*Flagr::ExportApi* | [**get_export_sqlite**](docs/ExportApi.md#get_export_sqlite) | **GET** /export/sqlite | \n*Flagr::FlagApi* | [**create_flag**](docs/FlagApi.md#create_flag) | **POST** /flags | \n*Flagr::FlagApi* | [**delete_flag**](docs/FlagApi.md#delete_flag) | **DELETE** /flags/{flagID} | \n*Flagr::FlagApi* | [**find_flags**](docs/FlagApi.md#find_flags) | **GET** /flags | \n*Flagr::FlagApi* | [**get_flag**](docs/FlagApi.md#get_flag) | **GET** /flags/{flagID} | \n*Flagr::FlagApi* | [**get_flag_entity_types**](docs/FlagApi.md#get_flag_entity_types) | **GET** /flags/entity_types | \n*Flagr::FlagApi* | [**get_flag_snapshots**](docs/FlagApi.md#get_flag_snapshots) | **GET** /flags/{flagID}/snapshots | \n*Flagr::FlagApi* | [**put_flag**](docs/FlagApi.md#put_flag) | **PUT** /flags/{flagID} | \n*Flagr::FlagApi* | [**set_flag_enabled**](docs/FlagApi.md#set_flag_enabled) | **PUT** /flags/{flagID}/enabled | \n*Flagr::HealthApi* | [**get_health**](docs/HealthApi.md#get_health) | **GET** /health | \n*Flagr::SegmentApi* | [**create_segment**](docs/SegmentApi.md#create_segment) | **POST** /flags/{flagID}/segments | \n*Flagr::SegmentApi* | [**delete_segment**](docs/SegmentApi.md#delete_segment) | **DELETE** /flags/{flagID}/segments/{segmentID} | \n*Flagr::SegmentApi* | [**find_segments**](docs/SegmentApi.md#find_segments) | **GET** /flags/{flagID}/segments | \n*Flagr::SegmentApi* | [**put_segment**](docs/SegmentApi.md#put_segment) | **PUT** /flags/{flagID}/segments/{segmentID} | \n*Flagr::SegmentApi* | [**put_segments_reorder**](docs/SegmentApi.md#put_segments_reorder) | **PUT** /flags/{flagID}/segments/reorder | \n*Flagr::TagApi* | [**create_tag**](docs/TagApi.md#create_tag) | **POST** /flags/{flagID}/tags | \n*Flagr::TagApi* | [**delete_tag**](docs/TagApi.md#delete_tag) | **DELETE** /flags/{flagID}/tags/{tagID} | \n*Flagr::TagApi* | [**find_all_tags**](docs/TagApi.md#find_all_tags) | **GET** /tags | \n*Flagr::TagApi* | [**find_tags**](docs/TagApi.md#find_tags) | **GET** /flags/{flagID}/tags | \n*Flagr::VariantApi* | [**create_variant**](docs/VariantApi.md#create_variant) | **POST** /flags/{flagID}/variants | \n*Flagr::VariantApi* | [**delete_variant**](docs/VariantApi.md#delete_variant) | **DELETE** /flags/{flagID}/variants/{variantID} | \n*Flagr::VariantApi* | [**find_variants**](docs/VariantApi.md#find_variants) | **GET** /flags/{flagID}/variants | \n*Flagr::VariantApi* | [**put_variant**](docs/VariantApi.md#put_variant) | **PUT** /flags/{flagID}/variants/{variantID} | \n\n\n## Documentation for Models\n\n - [Flagr::Constraint](docs/Constraint.md)\n - [Flagr::CreateConstraintRequest](docs/CreateConstraintRequest.md)\n - [Flagr::CreateFlagRequest](docs/CreateFlagRequest.md)\n - [Flagr::CreateSegmentRequest](docs/CreateSegmentRequest.md)\n - [Flagr::CreateTagRequest](docs/CreateTagRequest.md)\n - [Flagr::CreateVariantRequest](docs/CreateVariantRequest.md)\n - [Flagr::Distribution](docs/Distribution.md)\n - [Flagr::Error](docs/Error.md)\n - [Flagr::EvalContext](docs/EvalContext.md)\n - [Flagr::EvalDebugLog](docs/EvalDebugLog.md)\n - [Flagr::EvalResult](docs/EvalResult.md)\n - [Flagr::EvaluationBatchRequest](docs/EvaluationBatchRequest.md)\n - [Flagr::EvaluationBatchResponse](docs/EvaluationBatchResponse.md)\n - [Flagr::EvaluationEntity](docs/EvaluationEntity.md)\n - [Flagr::Flag](docs/Flag.md)\n - [Flagr::FlagSnapshot](docs/FlagSnapshot.md)\n - [Flagr::Health](docs/Health.md)\n - [Flagr::PutDistributionsRequest](docs/PutDistributionsRequest.md)\n - [Flagr::PutFlagRequest](docs/PutFlagRequest.md)\n - [Flagr::PutSegmentReorderRequest](docs/PutSegmentReorderRequest.md)\n - [Flagr::PutSegmentRequest](docs/PutSegmentRequest.md)\n - [Flagr::PutVariantRequest](docs/PutVariantRequest.md)\n - [Flagr::Segment](docs/Segment.md)\n - [Flagr::SegmentDebugLog](docs/SegmentDebugLog.md)\n - [Flagr::SetFlagEnabledRequest](docs/SetFlagEnabledRequest.md)\n - [Flagr::Tag](docs/Tag.md)\n - [Flagr::Variant](docs/Variant.md)\n\n\n## Documentation for Authorization\n\n All endpoints do not require authorization.\n\n\n## Use Makefile\n`make gen`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenflagr%2Frbflagr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenflagr%2Frbflagr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenflagr%2Frbflagr/lists"}