├── .env.example ├── .gitignore ├── README.md ├── app ├── Controllers │ ├── Controller.php │ ├── HomeController.php │ └── VoucherController.php ├── Helpers │ └── Validator.php └── Models │ ├── Offer.php │ ├── User.php │ ├── Voucher.php │ └── VoucherResponseConstants.php ├── bootstrap ├── app.php └── database.php ├── composer.json ├── composer.lock ├── db └── migrations │ ├── 20180808211204_create_users_table.php │ ├── 20180808212744_create_offers_table.php │ └── 20180808212751_create_vouchers_table.php ├── phinx.yml ├── public ├── .htaccess └── index.php ├── resources └── views │ ├── app.twig │ └── home │ └── index.twig ├── routes └── web.php ├── storage └── views │ └── .gitignore └── tests └── VoucherTests.php /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | .env 3 | .idea/ 4 | db/database.db 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/README.md -------------------------------------------------------------------------------- /app/Controllers/Controller.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/app/Controllers/Controller.php -------------------------------------------------------------------------------- /app/Controllers/HomeController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/app/Controllers/HomeController.php -------------------------------------------------------------------------------- /app/Controllers/VoucherController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/app/Controllers/VoucherController.php -------------------------------------------------------------------------------- /app/Helpers/Validator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/app/Helpers/Validator.php -------------------------------------------------------------------------------- /app/Models/Offer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/app/Models/Offer.php -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/app/Models/User.php -------------------------------------------------------------------------------- /app/Models/Voucher.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/app/Models/Voucher.php -------------------------------------------------------------------------------- /app/Models/VoucherResponseConstants.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/app/Models/VoucherResponseConstants.php -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/bootstrap/app.php -------------------------------------------------------------------------------- /bootstrap/database.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/bootstrap/database.php -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/composer.lock -------------------------------------------------------------------------------- /db/migrations/20180808211204_create_users_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/db/migrations/20180808211204_create_users_table.php -------------------------------------------------------------------------------- /db/migrations/20180808212744_create_offers_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/db/migrations/20180808212744_create_offers_table.php -------------------------------------------------------------------------------- /db/migrations/20180808212751_create_vouchers_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/db/migrations/20180808212751_create_vouchers_table.php -------------------------------------------------------------------------------- /phinx.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/phinx.yml -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/public/.htaccess -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/public/index.php -------------------------------------------------------------------------------- /resources/views/app.twig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/resources/views/app.twig -------------------------------------------------------------------------------- /resources/views/home/index.twig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/resources/views/home/index.twig -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/routes/web.php -------------------------------------------------------------------------------- /storage/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /tests/VoucherTests.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisayoafolayan/build-a-restful-api-in-slim3/HEAD/tests/VoucherTests.php --------------------------------------------------------------------------------