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 [email protected]:etreedb/etreedb-api
-
Run composer
./composer.phar install --dev
-
Create a doctrine-compatible database
-
Copy
config/development.config.php.dist
toconfig/development.config.php
-
Copy
config/autoload/local.php.dist
toconfig/autoload/local.php
and edit for your database connection from 3. -
Run
./bin/rebuild
A 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/performer
ofAccept-Type: application/json
orGET http://localhost:8090/api/etree_db/db/entity/performer