// THIS API IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. BAKING BAD
// DOES NOT WARRANT THAT THE API WILL MEET USER'S REQUIREMENTS OR WILL BE
// UNINTERRUPTED, TIMELY, SECURE, OR ERROR-FREE, ANY THIRD PARTY CONTENT
// WILL BE TRUTHFUL, ACCURATE, RELIABLE, OR COMPLETE.
//
// Copyright © 2018-2024 bakingbad.dev

welcome to Tezos Bakers API
{
    short Description = @"
        This is a free public API, created by the Baking Bad team,
        that provides you with information about public bakers on Tezos.
    ";

    how to Get All Public Bakers()
    {
        base request = "https://api.baking-bad.org/v3/bakers";

        if (you need active bakers) {
            Add Query Parameter("status=active");
        }

        if (you need bakers with staking) {
            Add Query Parameter("staking=true");
        }

        if (you need bakers with delegation) {
            Add Query Parameter("delegation=true");
        }

        then just send GET(request);
    }

    how to Get Public Baker By(address)
    {
        base request = $"https://api.baking-bad.org/v3/bakers/{address}";
        so just send GET(request);
    }

    how to Get Listed()
    {
        our discord = "https://discord.gg/aG8XKuwsQd";
        our telegram = "https://t.me/baking_bad_chat";
        our twitter = "https://twitter.com/TezosBakingBad";
        contact us Via(discord, telegram, twitter);
    }
}