CONTENTS OF THIS FILE
---------------------

 * Introduction
 * Requirements
 * Installation
 * Configuration
 * Maintainers

INTRODUCTION
------------
History:
  Goat_api was created to demonstrate reading data from a RESTful web feed for the farm project It may be viewed at https://www.showoff-farm.com/about/goat-art. Please note, this web site is a testbed for new features, and a work in progress.

Description:
  goat_api is a module to pull content from a remote JSON feed via a REST interface. This implementation grabs from the Art Institue of Chicago's feed, documented at https://api.artic.edu/docs/#quick-start. I plan on adding feed from additional sources.

Technical:
  A block is produced, which may be placed in any content region. It is themed with a twig template. The block (goat_api_chi_block.php) loads the form(ChiForm.php). The form has a field to enter the number of images, and a value field to receive the search output. When the form is submitted, it uses an http client to pull data from the artic.edu site, builds a table for the results, and creates rows with the artwork title and image. Upon submission, the table and number of images field are stored in a config object, which is used to populate the form.


REQUIREMENTS
------------
None.

INSTALLATION
------------
Install as you would normally install a contributed Drupal module. Visit:
https://www.drupal.org/documentation/install/modules-themes/modules-8
for further information.

CONFIGURATION
-------------
No configuration is required. There is an option on the page to limit the number of items returned.

FUTURE ENHANCEMENTS
-------------------
1) Add feeds from additional sources.
2) Cache images, so they won't need to be reloaded on every request.`


MAINTAINER
----------
Phil Glatz, phil@electronovelty.com
