This project is based on API Platform.
It provides a REST API and a GraphQL API.
The application setup is Docker-based. To initialize it, just run:
make setup
After successful setup, usually you only need to run make start
and make stop
.
make restart
: restart application environmentmake rebuild
: stop environment, delete all containers, run full setup rebuild againmake fixtures
: generate fixture data for all entitiesmake migration
: validate schema and create Doctrine migration (when necessary)make composer-install
: runcomposer install
inside containermake composer-update
: runcomposer update
inside container
For all available commands run make help
.
The application has several entrypoint URLs:
Homepage: http://localhost/ API: https://localhost:8443/ API (cached): https://localhost:8443/ Admin: https://localhost:444/ GraphQL: https://localhost:8443/graphql
You have to use a property geo
with 3 attributes:
latitude
: float, e.g. 49.132longitude
: float, e.g. 9.2342distance
: integer, in meters, e.g. 5000 for 5km radius
Example for bookings:
https://localhost:8443/bookings?geo[latitude]=49.1&geo[longitude]=9.1&geo[distance]=10000
You have to use a property date
.
Example for bookings: