symfony_apiplatform
This is an old revision of the document!
Table of Contents
Symfony Api Platform
links
quick
composer create-project symfony/skeleton bookshop-api cd bookshop-api composer require symfony/orm-pack composer require --dev symfony/maker-bundle composer req apifill .env with database infos and then
bin/console doctrine:database:create bin/console make:entity #bin/console doctrine:schema:create bin/console make:migration bin/console doctrine:migrations:migraterun test server
php -S 192.168.0.124:8000 -t publicfrontend available at http://192.168.0.124:8000/api
notes
adding some infos
add title, description and version. in config/packages/api_platform.yaml
api_platform:
title: "toto"
description: "ben voila"
version: "1.0"
mapping:
paths: ['%kernel.project_dir%/src/Entity']
patch_formats:
json: ['application/merge-patch+json']
swagger:
versions: [3]
symfony_apiplatform.1607606247.txt.gz · Last modified: (external edit)
