This is the database for a rewrite of db.etree.org. It is also a demonstration of soliantconsuting-apigility Doctrine entity API creation.
-
Clone the repository
git clone git@github.com:etreedb/etreedb-api -
Run composer
./composer.phar install --dev -
Create a doctrine-compatible database
-
Copy
config/development.config.php.disttoconfig/development.config.php -
Copy
config/autoload/local.php.disttoconfig/autoload/local.phpand edit for your database connection from 3. -
Run
./bin/rebuildA list of routes will be one of the output of this function -
Run
php -S localhost:8090 -t public/ public/index.php -
Make a request to
GET http://localhost:8090/api/performerofAccept-Type: application/jsonorGET http://localhost:8090/api/etree_db/db/entity/performer