tests/fixtures/graph.json — Mail and Files Connector

From version 0.1.0 of Mail and Files Connector, shown publicly by its creator. 1.2 KiB · SHA-256 a3d71be926b8811881d489dc31d4a1be4cf071a7124b3acd64f3f5e45bf7c595.

{
  "responses": [
    {"method": "POST", "url_prefix": "https://login.microsoftonline.com/tenant-test/oauth2/v2.0/token", "status": 200, "json": {"access_token": "secret-token"}},
    {"method": "GET", "url_prefix": "https://graph.microsoft.com/v1.0/users/user%40example.com/messages?", "status": 200, "json": {"value": [{"id": "m1", "subject": "Synthetic mail"}], "@odata.nextLink": "next"}},
    {"method": "GET", "url_prefix": "https://graph.microsoft.com/v1.0/users/user%40example.com/messages/m1?", "status": 200, "json": {"id": "m1", "body": {"contentType": "text", "content": "synthetic body text"}}},
    {"method": "GET", "url_prefix": "https://graph.microsoft.com/v1.0/sites/tenant.sharepoint.com:/sites/test/drive?", "status": 200, "json": {"id": "drive-test"}},
    {"method": "GET", "url_prefix": "https://graph.microsoft.com/v1.0/drives/drive-test/root/children?", "status": 200, "json": {"value": [{"id": "f1", "name": "report.txt", "@microsoft.graph.downloadUrl": "https://tenant.sharepoint.com/secret-link"}]}},
    {"method": "GET", "url_prefix": "https://graph.microsoft.com/v1.0/drives/drive-test/items/f1/versions?", "status": 200, "json": {"value": [{"id": "v1"}]}}
  ]
}

License: MIT (read it).

MITMIT License

Copyright (c) 2026 Zero Width Lab

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Back to the listing