Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 773 Bytes

microsoft-graph.md

File metadata and controls

29 lines (22 loc) · 773 Bytes

Microsoft Graph

The application relies on Microsoft Graph to handle busy-intervals lookups and booking requests.

To enable this the following environment variables should be set in .env.local:

###> App ###
MICROSOFT_GRAPH_TENANT_ID=""
MICROSOFT_GRAPH_CLIENT_ID=""
MICROSOFT_GRAPH_SERVICE_ACCOUNT_NAME=""
MICROSOFT_GRAPH_SERVICE_ACCOUNT_USERNAME=""
MICROSOFT_GRAPH_SERVICE_ACCOUNT_PASSWORD=""
###< App ###

There are several commands available to test requests in Microsoft Graph:

app:test:graph-busy            Get busy intervals for resource
app:test:graph-create-booking  Create a booking
app:test:graph-user-booking    Get user booking for given UserId

eg.

docker compose exec phpfpm bin/console app:test:graph-create-booking