Unleash

Unleash

  • Documentation
  • Deploy and manage
  • Integrations
  • Contribute
  • API
  • Enterprise
  • Help

›Getting started

Getting started

  • Introduction
  • Connect your SDK
  • Client SDK
  • Create a feature toggle
  • Activation Strategies
  • Control rollout
  • Projects
  • Unleash Context
  • Working with native apps
  • Working with single page apps

Working with the SDK

  • Java SDK
  • Node SDK
  • .net SDK
  • GO SDK
  • Python SDK
  • Ruby SDK

Addons framework

  • Addons Introduction
  • Webhook
  • Slack
  • Jira commenter

Advanced

  • Strategy Constraints
  • Custom Activation Strategy
  • Feature Toggle Types
  • Feature Toggle Variants
  • Archived toggles
  • The audit log
  • API Access
  • Tagging Features

Working with native apps

Enterprise feature

Working with native apps, require the Unleash proxy. The Unleash Proxy is only available with the Unleash-hosted offering and is not part of Unleash Open-Source.

For a highlevel introduction to the Unleash-proxy, please read this short article The Unleash-Proxy

The Unleash-proxy consist of the proxy that exposes a simple API for the client.

Unleash Proxy

The Proxy-client

There is a js implementation of the proxy-client available. Find it here: https://github.com/unleash-hosted/unleash-proxy-client-js

The Proxy-API

When accessing the Proxy, Unleash context fields from the session context can be added as parameters to the request. The proxy will return only enabled feature toggles and their evaluated value for the given context. You may also use custom context fields in combination with strategy constraints.

https://hostname.com/api/proxy?appName=webapp&userId=123&country=NO

The Proxy will return a list of all the active feature toggles, including variants, available. See an example below

{
    "toggles": [
    {
        "enabled": true,
        "name": "SimpleToggle",
        "variant": {
            "enabled": false,
            "name": "disabled"
        }
    },
    {
        "enabled": true,
        "name": "ToggleWithVariant",
        "variant": {
            "enabled": true,
            "name": "brown"
        }
    },
    {
        "enabled": true,
        "name": "ToggleWithVariantAndPayload",
        "variant": {
            "enabled": true,
            "name": "default",
            "payload": {
                "type": "string",
                "value": "Some custom value here!"
            }
        }
    }
    ]
}
← Unleash ContextWorking with single page apps →
  • The Proxy-client
  • The Proxy-API
Unleash
Docs
Getting StartedSecuring UnleashAPI Reference
Community
User ShowcaseSlack communityUnleash-hosted.comTwitter
More
GitHubStar