{
    "api_name": "Moy Nalog API",
    "version": "1.0",
    "description": "Единый API для взаимодействия с сервисом \"Мой Налог\"",
    "Github": "https:\/\/github.com\/FSystem88\/Moy-Nalog",
    "usage": "Используйте параметр method для выбора действия",
    "methods": {
        "create_income": {
            "description": "Создание нового дохода (чека)",
            "parameters": {
                "username": "string (обязательный) - Логин в ЛКНПД",
                "password": "string (обязательный) - Пароль в ЛКНПД",
                "amount": "float (обязательный) - Сумма дохода",
                "comment": "string (обязательный) - Комментарий\/название услуги"
            },
            "examples": {
                "GET": "\/index.php?method=create_income&username=user&password=pass&amount=1000&comment=Услуги",
                "POST": "{\"method\":\"create_income\",\"username\":\"user\",\"password\":\"pass\",\"amount\":1000,\"comment\":\"Услуги\"}"
            }
        },
        "get_profile": {
            "description": "Получение информации о налогоплательщике",
            "parameters": {
                "username": "string (обязательный) - Логин в ЛКНПД",
                "password": "string (обязательный) - Пароль в ЛКНПД"
            },
            "examples": {
                "GET": "\/index.php?method=get_profile&username=user&password=pass",
                "POST": "{\"method\":\"get_profile\",\"username\":\"user\",\"password\":\"pass\"}"
            }
        },
        "get_incomes": {
            "description": "Получение списка доходов за последнее время",
            "parameters": {
                "username": "string (обязательный) - Логин в ЛКНПД",
                "password": "string (обязательный) - Пароль в ЛКНПД"
            },
            "examples": {
                "GET": "\/index.php?method=get_incomes&username=user&password=pass",
                "POST": "{\"method\":\"get_incomes\",\"username\":\"user\",\"password\":\"pass\"}"
            }
        }
    },
    "notes": [
        "Можно использовать как GET, так и POST запросы",
        "Для POST запросов данные можно отправлять в JSON или form-data",
        "Все методы требуют аутентификации",
        "Временная зона: Europe\/Moscow"
    ]
}