-
Notifications
You must be signed in to change notification settings - Fork 4
API
Peter Fisher edited this page Oct 17, 2022
·
5 revisions
- Docker
- Docker Compose
- Clone the repository
git clone git@github.com:howToCodeWell/code-quiz.git
- Spin up the containers
docker-compose up -d
- Install database migrations
docker-compose exec api bin/console doctrine:migration:migrate
- Load data fixtures
docker-compose exec api bin/console doctrine:fixtures:load
- Add the following entry to the
/etc/hosts
127.0.0.1 codequiz.local
127.0.0.1 api.codequiz.local
Make a HTTP request to the API
http://api.codequiz.local/api/v1
From the api
folder run the following to create openapi.yaml
in the ./docs/generated
folder. This is ignored from the code base
docker-compose exec api bash -c "bin/console api:openapi:export --yaml" > ./docs/generated/openapi.yaml