git clone PROJECT_GIT_URL
composer install
composer req symfony/apache-pack
composer req annotations
composer require symfony/serializer
composer req symfony/property-access
DATABASE_URL=mysql://db_user:[email protected]:3306/db_name
php bin/console doctrine:database:create php bin/console doctrine:schema:update -f
Use Postman : [POST] http://your-web-server/articles Headers : key : Content-Type value : application/json
Body :
{ "title" : "Titre de mon contenu", "content" : "Contenu de mon article" }
Use Postman : [GET] http://your-web-server/articles/1
Get something like :
{ "title": "My first article", "content": "Content of my article", "delivered_at": "Thursday 7th of March 2019 03:05:20 PM" }
Use Postman : [GET] http://your-web-server/articles
Replace articles
by authors
Post Authors :
{ "fullname": "John Doe", "biography": "My super bibliography" }