Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

API v1 Fetch All Data

Darren Oakley edited this page Oct 18, 2021 · 1 revision

PLEASE NOTE: This API interface is now deprecated and will be removed at some point in the future.


GET /v1/all

http://bandiera.example.com/api/v1/all

This endpoint returns all group and feature data within Bandiera.

Example Request:

curl 'http://bandiera.example.com/api/v1/all'

Example Response:

{
    "groups": [
        {
            "features": [
                {
                    "description": "Show article level metrics?",
                    "enabled": true,
                    "group": "pubserv",
                    "name": "show-article-metrics"
                },
                {
                    "description": "Show the new search feature?",
                    "enabled": false,
                    "group": "pubserv",
                    "name": "show-new-search"
                }
            ],
            "name": "pubserv"
        },
        {
            "features": [
                {
                    "description": "Enable themes?",
                    "enabled": false,
                    "group": "shunter",
                    "name": "themes"
                }
            ],
            "name": "shunter"
        }
    ]
}