This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install with: | |
# curl -s https://gist.githubusercontent.com/matthewbaggett/faa3c6f7dc8adc08d49ca2a91e31aa04/raw/8be36b76e886ce57ff88b2ed7423ad1f8d4cee36/gistfile1.txt | sudo tee /etc/profile.d/local-profile-d.sh | |
if [ -d $HOME/.profile.d ]; then | |
for i in $HOME/.profile.d/*.sh; do | |
if [ -r $i ]; then | |
. $i | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$app->get( "/v1/addresses", [$container['AddressController'], 'listRequest'])->setName("Address List"); | |
$app->get( "/v1/addresses/{id}", [$container['AddressController'], 'getRequest'])->setName("Address Get"); | |
$app->put( "/v1/addresses", [$container['AddressController'], 'createRequest'])->setName("Address Create"); | |
$app->delete("/v1/addresses/{id}", [$container['AddressController'], 'deleteRequest'])->setName("Address Delete"); | |
// Repeated about 600 more times. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace MYEMPLOYERSNAME\Api\Test\Api\Generated; | |
use MYEMPLOYERSNAME\Api\Test\RoutesTestCase; | |
use MYEMPLOYERSNAME\Api\TableGateways; | |
use MYEMPLOYERSNAME\Api\Exceptions\TableGatewayException; | |
class AddressEndpointTest extends RoutesTestCase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function request($method, $path, $post = array()) | |
{ | |
// Prepare a mock environment | |
/** | |
* @var \Slim\App $app | |
*/ | |
$app = include APP_ROOT . "/src/Slim.php"; | |
// Prepare request and response objects |