Skip to main content
Dev Proxy Microsoft Graph

Microsoft Graph mocks from Microsoft Graph API docs

Last modified on February 19, 2025

This sample contains mocks for the Microsoft Graph API based on the Microsoft Graph API documentation. Mocks are created based on sample requests and responses included in the Microsoft Graph documentation. Using these mocks, you can simulate calling Microsoft Graph API without having to connect to the actual service. This is useful for testing and development purposes. These mocks are also helpful when you want to demo time-sensitive functionality such as recently opened files, without having to generate activity on your tenant for Microsoft Graph to return the data. The sample contains three mock files: mocks for Microsoft Graph v1.0 endpoints (graph-v1_0-proxy-mocks.json), mocks for Microsoft Graph beta endpoints (graph-beta-proxy-mocks.json) and mocks combining both v1.0 and beta endpoints (graph-proxy-mocks.json).

View on GitHub Download from GitHub

References

Get started with the Dev Proxy

The tutorial will introduce you to the Dev Proxy and show you how to use its features.

Change mocks file

Instructions on how to change the mocks file used by the Dev Proxy.