twentytwo-labs/api-service-feature-flag

Bundle to manage features flag

1.0.1 2024-09-29 20:07 UTC

This package is auto-updated.

Last update: 2024-10-29 20:29:21 UTC


README

Using ApiServiceBundle to store Twentytwo Labs Feature Flags.

Configuration

# config/packages/twentytwo_labs_feature_flag.yaml
twentytwo_labs_feature_flag:
   managers:
      admin:
         factory: twenty-two-labs.feature-flags.factory.api-service
         options:
            client: 'API_SERVICE_ID'
            collection:
               operationId: COLLECTION_OPERATION_ID
               mapper:       #optional
                  page: page #default
               params:
                  accept: 'application/hal+json'
                  itemsPerPage: 30
            item:
               operationId: ITEM_OPERATION_ID
               mapper:
                  identifier: IDENTIFIER

where:

  • API_SERVICE_ID is an api service id starting with @
  • COLLECTION_OPERATION_ID is operationId for get all features
  • ITEM_OPERATION_ID is operationId for get one feature by IDENTIFIER
  • IDENTIFIER is a field in HTTP response