rest - JSON data as table in Drupal -
i drupal 7 newbie , hoping can help me.
i have rest api on server , there method there homecoming json data, info same drupal users.
my question how display info in drupal? need page , on json rendered html table.
any feedback appreciated.
there no module afaik automatically pull info arbitrary api , theme nicely. going need create custom module.
to saying done in few 15 lines of code, need larn how create module first.
check out: https://www.drupal.org/node/1074360
once have created module, need hook_menu() function create page display json results.
in callback function page need phone call api , can theme results table using theme('table', array('rows' => $rows, 'header' => $header));
there decent tutorial here: http://alvinalexander.com/drupal/drupal-7-form-theme-table-module-example
assuming have experience programming php expect spend 3-4 hours on (based on learning curve , reading involved).
json rest drupal-7
No comments:
Post a Comment