Модуль для Diafan.CMS. Для использование/администрирование сайта через сторонние приложение/сервисы. В будущем планируется использовать для организации мобильной версии сайта на мобильных платформах.
1)Распакуйте архив модуля в корень сайта.
2)Включите модуль в разделе "Настройки - Модули и БД".
3)Для проверки работоспособности в адрессном строке браузера наберите http://адрес-вашего-сайта.com/api/?action=login. Если выдет такого рода текст:
{ "error_code": "", "error": "Нет ошибок" }
То все работает.
4)При необходимости в адрессе /api/ можно изменить на любой другой. Для этого зайдите в "Админке сайта" -> "Страница сайта" и найдите пункт "API Подключен модуль: api" и измените его "Дополнительные параметры" -> "Псевдоссылка.
Для тестирования есть инструмент http://admin.ls.kg/ исходники в открытом доступе https://github.com/danijar2000/WebAdminDiafan