Код: Выделить всё
class ProductsController extends ApiController
{
protected $contentType = '';
protected $default_view = '';
public function displayList()
{
// I need to be able to return here a blob or whatever i want, right now if i return anything the content type in postmen is always "text/html; charset=UTF-8"
}
}
Код: Выделить всё
class JsonapiView extends BaseApiView
{
protected $fieldsToRenderList = [];
protected $fieldsToRenderItem = [];
}
Я пробовал просто вернуться внутрь метода displayList, но он не работает.
Подробнее здесь: https://stackoverflow.com/questions/793 ... omla-5-api
Мобильная версия