routes fix

This commit is contained in:
JiriUhlir
2026-05-27 10:46:19 +02:00
parent 48d54a4bac
commit f3553dec26
2 changed files with 12 additions and 12 deletions
+11 -11
View File
@@ -30,17 +30,17 @@ The service uses the OAuth2 client credentials flow, so Microsoft Graph permissi
```http
GET /health
GET /version
GET /microsoft365/status
GET /microsoft365/users?top=25&search=jane
GET /microsoft365/users/{user_id}
GET /microsoft365/users/{user_id}/mail/messages?folder=Inbox&top=25
POST /microsoft365/users/{user_id}/mail/send
GET /microsoft365/users/{user_id}/calendar/events?top=25
POST /microsoft365/users/{user_id}/calendar/events
GET /microsoft365/users/{user_id}/drive/root/children?top=25
PUT /microsoft365/users/{user_id}/drive/root/{path}
GET /microsoft365/groups?top=25
GET /microsoft365/teams/{team_id}/channels
GET /status
GET /users?top=25&search=jane
GET /users/{user_id}
GET /users/{user_id}/mail/messages?folder=Inbox&top=25
POST /users/{user_id}/mail/send
GET /users/{user_id}/calendar/events?top=25
POST /users/{user_id}/calendar/events
GET /users/{user_id}/drive/root/children?top=25
PUT /users/{user_id}/drive/root/{path}
GET /groups?top=25
GET /teams/{team_id}/channels
```
`user_id` can be a Microsoft Graph user id or user principal name, for example `jane@example.com`.
+1 -1
View File
@@ -7,7 +7,7 @@ from .graph_client import MicrosoftGraphClient
from .schemas import CalendarEventRequest, DriveUploadRequest, SendMailRequest
from .services import CalendarService, DriveService, GroupsService, MailService, UsersService
router = APIRouter(prefix="/microsoft365", tags=["microsoft365"])
router = APIRouter(tags=["microsoft365"])
graph_client = MicrosoftGraphClient(settings)