{
  "opencollection": "1.0.0",
  "info": {
    "name": "Microsoft Graph API (Office 365 subset)",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
      "accessTokenUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Mail",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List the signed-in user's messages",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/messages",
            "params": [
              {
                "name": "$select",
                "value": "",
                "type": "query"
              },
              {
                "name": "$top",
                "value": "",
                "type": "query"
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query"
              },
              {
                "name": "$orderby",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List the signed-in user's messages"
        },
        {
          "info": {
            "name": "Get a message by id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a message by id"
        },
        {
          "info": {
            "name": "Send a mail message as the signed-in user",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/sendMail",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send a mail message as the signed-in user"
        },
        {
          "info": {
            "name": "List mail folders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/mailFolders"
          },
          "docs": "List mail folders"
        }
      ]
    },
    {
      "info": {
        "name": "Drive",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get the signed-in user's OneDrive",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/drive"
          },
          "docs": "Get the signed-in user's OneDrive"
        },
        {
          "info": {
            "name": "List items in the root of the user's drive",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/drive/root/children"
          },
          "docs": "List items in the root of the user's drive"
        },
        {
          "info": {
            "name": "Get a driveItem by id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/drive/items/:item_id",
            "params": [
              {
                "name": "item_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a driveItem by id"
        },
        {
          "info": {
            "name": "Download a driveItem's content",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/drive/items/:item_id/content",
            "params": [
              {
                "name": "item_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Download a driveItem's content"
        },
        {
          "info": {
            "name": "Upload content to an existing driveItem",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://graph.microsoft.com/v1.0/me/drive/items/:item_id/content",
            "params": [
              {
                "name": "item_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Upload content to an existing driveItem"
        }
      ]
    },
    {
      "info": {
        "name": "Teams",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List teams the signed-in user is a member of",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/joinedTeams"
          },
          "docs": "List teams the signed-in user is a member of"
        },
        {
          "info": {
            "name": "Get a team by id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/teams/:team_id",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a team by id"
        },
        {
          "info": {
            "name": "List channels in a team",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/teams/:team_id/channels",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List channels in a team"
        },
        {
          "info": {
            "name": "Create a channel in a team",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/teams/:team_id/channels",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a channel in a team"
        },
        {
          "info": {
            "name": "List chat messages in a channel",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/teams/:team_id/channels/:channel_id/messages",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "channel_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List chat messages in a channel"
        },
        {
          "info": {
            "name": "Send a chat message to a channel",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/teams/:team_id/channels/:channel_id/messages",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "channel_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send a chat message to a channel"
        }
      ]
    }
  ],
  "bundled": true
}