https://github.com/webbywe/codechallenge
Code challenge to navigate through a series of challenge requests sent by a REST API.
https://github.com/webbywe/codechallenge
Last synced: over 1 year ago
JSON representation
Code challenge to navigate through a series of challenge requests sent by a REST API.
- Host: GitHub
- URL: https://github.com/webbywe/codechallenge
- Owner: webbywe
- Created: 2016-08-23T21:26:58.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-24T09:44:34.000Z (almost 10 years ago)
- Last Synced: 2025-01-17T16:15:03.655Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Challenge #
This module navigates through a series of API calls answering
each challenge request.
The module uses Guzzle 5.0 for API calls and conversion of XML and JSON responses.
For responses that are returned in YAML, the symfony/yaml package is used.
Although this module utilizes packages, this module is overall lightweight
due to auto-loading of the classes.
## Installation ##
1. Add the following to the settings.php file.
This will create the vendor and composer.json one directory
above the Drupal installation root. Placing at the Drupal root will
throw an alert in running the Security Audit module.
Change to `./` vs. `../` to place composer.json in Drupal installation.
```
$conf['composer_manager_vendor_dir'] = '../vendor';
$conf['composer_manager_file_dir'] = '../';
$conf['challenge_auth_token'] = '{your auth token}';
```
1. Copy `composer.json.inc` to `composer.json` one directory above Drupal root.
If `composer.json` already exists, run the following where located:
composer require guzzlehttp/guzzle:5.x
composer require symfony/yaml
1. Run `composer install` where `composer.json` is located.
1. Download and enable `composer_manager` contrib module.
1. At command prompt, run `drush composer-json-rebuild` at Drupal root.
1. Download and enable this module to `/sites/all/modules/custom/challenge/` directory.
1. Navigate to `http://{domain}/challenge`