diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml
index 7afeeebed..610134cd0 100644
--- a/.github/workflows/ci-cd.yml
+++ b/.github/workflows/ci-cd.yml
@@ -49,7 +49,7 @@ jobs:
- if: steps.conditionals_handler.outputs.is_default_branch == 'true'
name: Bump GH tag
id: tag_generator
- uses: mathieudutour/github-tag-action@v5.4
+ uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: false
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 999e48f53..347ff8bca 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -2,6 +2,7 @@ name: CodeQL Analysis
on:
push:
+ branches: [ vnext ]
pull_request:
schedule:
- cron: '0 8 * * *'
diff --git a/src/Directory.Build.props b/src/Directory.Build.props
index adb086cc1..7f0f6e9c0 100644
--- a/src/Directory.Build.props
+++ b/src/Directory.Build.props
@@ -3,6 +3,6 @@
$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb
-
+
\ No newline at end of file
diff --git a/src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj b/src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj
index f0d7943e7..4db249c8f 100644
--- a/src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj
+++ b/src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj
@@ -6,7 +6,7 @@
true
hidi
./../../artifacts
- 0.5.0-preview
+ 0.5.0-preview2
@@ -19,7 +19,7 @@
-
+
diff --git a/src/Microsoft.OpenApi.Hidi/OpenApiService.cs b/src/Microsoft.OpenApi.Hidi/OpenApiService.cs
index 486666568..abef3617f 100644
--- a/src/Microsoft.OpenApi.Hidi/OpenApiService.cs
+++ b/src/Microsoft.OpenApi.Hidi/OpenApiService.cs
@@ -2,11 +2,13 @@
// Licensed under the MIT license.
using System;
+using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
+using System.Text.Json;
using Microsoft.OpenApi.Extensions;
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.Readers;
@@ -16,15 +18,16 @@
namespace Microsoft.OpenApi.Hidi
{
- static class OpenApiService
+ public static class OpenApiService
{
public static void ProcessOpenApiDocument(
string input,
FileInfo output,
- OpenApiSpecVersion version,
- OpenApiFormat format,
+ OpenApiSpecVersion? version,
+ OpenApiFormat? format,
string filterByOperationIds,
string filterByTags,
+ string filterByCollection,
bool inline,
bool resolveExternal)
{
@@ -49,23 +52,30 @@ public static void ProcessOpenApiDocument(
}
).ReadAsync(stream).GetAwaiter().GetResult();
- OpenApiDocument document;
- document = result.OpenApiDocument;
+ var document = result.OpenApiDocument;
+ Func predicate;
// Check if filter options are provided, then execute
if (!string.IsNullOrEmpty(filterByOperationIds) && !string.IsNullOrEmpty(filterByTags))
{
throw new InvalidOperationException("Cannot filter by operationIds and tags at the same time.");
}
-
if (!string.IsNullOrEmpty(filterByOperationIds))
{
- var predicate = OpenApiFilterService.CreatePredicate(operationIds: filterByOperationIds);
+ predicate = OpenApiFilterService.CreatePredicate(operationIds: filterByOperationIds);
document = OpenApiFilterService.CreateFilteredDocument(document, predicate);
}
if (!string.IsNullOrEmpty(filterByTags))
{
- var predicate = OpenApiFilterService.CreatePredicate(tags: filterByTags);
+ predicate = OpenApiFilterService.CreatePredicate(tags: filterByTags);
+ document = OpenApiFilterService.CreateFilteredDocument(document, predicate);
+ }
+
+ if (!string.IsNullOrEmpty(filterByCollection))
+ {
+ var fileStream = GetStream(filterByCollection);
+ var requestUrls = ParseJsonCollectionFile(fileStream);
+ predicate = OpenApiFilterService.CreatePredicate(requestUrls: requestUrls, source:document);
document = OpenApiFilterService.CreateFilteredDocument(document, predicate);
}
@@ -91,13 +101,16 @@ public static void ProcessOpenApiDocument(
{
ReferenceInline = inline ? ReferenceInlineSetting.InlineLocalReferences : ReferenceInlineSetting.DoNotInlineReferences
};
- IOpenApiWriter writer = format switch
+
+ var openApiFormat = format ?? GetOpenApiFormat(input);
+ var openApiVersion = version ?? result.OpenApiDiagnostic.SpecificationVersion;
+ IOpenApiWriter writer = openApiFormat switch
{
OpenApiFormat.Json => new OpenApiJsonWriter(textWriter, settings),
OpenApiFormat.Yaml => new OpenApiYamlWriter(textWriter, settings),
_ => throw new ArgumentException("Unknown format"),
};
- document.Serialize(writer, version);
+ document.Serialize(writer, openApiVersion);
textWriter.Flush();
}
@@ -125,6 +138,38 @@ private static Stream GetStream(string input)
return stream;
}
+ ///
+ /// Takes in a file stream, parses the stream into a JsonDocument and gets a list of paths and Http methods
+ ///
+ /// A file stream.
+ /// A dictionary of request urls and http methods from a collection.
+ public static Dictionary> ParseJsonCollectionFile(Stream stream)
+ {
+ var requestUrls = new Dictionary>();
+
+ // Convert file to JsonDocument
+ using var document = JsonDocument.Parse(stream);
+ var root = document.RootElement;
+ var itemElement = root.GetProperty("item");
+ foreach (var requestObject in itemElement.EnumerateArray().Select(item => item.GetProperty("request")))
+ {
+ // Fetch list of methods and urls from collection, store them in a dictionary
+ var path = requestObject.GetProperty("url").GetProperty("raw").ToString();
+ var method = requestObject.GetProperty("method").ToString();
+
+ if (!requestUrls.ContainsKey(path))
+ {
+ requestUrls.Add(path, new List { method });
+ }
+ else
+ {
+ requestUrls[path].Add(method);
+ }
+ }
+
+ return requestUrls;
+ }
+
internal static void ValidateOpenApiDocument(string input)
{
if (input == null)
@@ -156,5 +201,10 @@ internal static void ValidateOpenApiDocument(string input)
Console.WriteLine(statsVisitor.GetStatisticsReport());
}
+
+ private static OpenApiFormat GetOpenApiFormat(string input)
+ {
+ return !input.StartsWith("http") && Path.GetExtension(input) == ".json" ? OpenApiFormat.Json : OpenApiFormat.Yaml;
+ }
}
}
diff --git a/src/Microsoft.OpenApi.Hidi/Program.cs b/src/Microsoft.OpenApi.Hidi/Program.cs
index 533878a0d..b3752ef97 100644
--- a/src/Microsoft.OpenApi.Hidi/Program.cs
+++ b/src/Microsoft.OpenApi.Hidi/Program.cs
@@ -30,9 +30,10 @@ static async Task Main(string[] args)
new Option("--inline", "Inline $ref instances", typeof(bool) ),
new Option("--resolveExternal","Resolve external $refs", typeof(bool)),
new Option("--filterByOperationIds", "Filters OpenApiDocument by OperationId(s) provided", typeof(string)),
- new Option("--filterByTags", "Filters OpenApiDocument by Tag(s) provided", typeof(string))
+ new Option("--filterByTags", "Filters OpenApiDocument by Tag(s) provided", typeof(string)),
+ new Option("--filterByCollection", "Filters OpenApiDocument by Postman collection provided", typeof(string))
};
- transformCommand.Handler = CommandHandler.Create(
+ transformCommand.Handler = CommandHandler.Create(
OpenApiService.ProcessOpenApiDocument);
rootCommand.Add(transformCommand);
diff --git a/src/Microsoft.OpenApi.Readers/Microsoft.OpenApi.Readers.csproj b/src/Microsoft.OpenApi.Readers/Microsoft.OpenApi.Readers.csproj
index 7d3f196ec..a594df10d 100644
--- a/src/Microsoft.OpenApi.Readers/Microsoft.OpenApi.Readers.csproj
+++ b/src/Microsoft.OpenApi.Readers/Microsoft.OpenApi.Readers.csproj
@@ -10,7 +10,7 @@
Microsoft
Microsoft.OpenApi.Readers
Microsoft.OpenApi.Readers
- 1.3.1-preview
+ 1.3.1-preview2
OpenAPI.NET Readers for JSON and YAML documents
© Microsoft Corporation. All rights reserved.
OpenAPI .NET
@@ -36,11 +36,11 @@
-
+
-
+
diff --git a/src/Microsoft.OpenApi.Readers/V3/OpenApiEncodingDeserializer.cs b/src/Microsoft.OpenApi.Readers/V3/OpenApiEncodingDeserializer.cs
index b3bda4b61..fc2f990e7 100644
--- a/src/Microsoft.OpenApi.Readers/V3/OpenApiEncodingDeserializer.cs
+++ b/src/Microsoft.OpenApi.Readers/V3/OpenApiEncodingDeserializer.cs
@@ -31,15 +31,7 @@ internal static partial class OpenApiV3Deserializer
{
"style", (o, n) =>
{
- ParameterStyle style;
- if (Enum.TryParse(n.GetScalarValue(), out style))
- {
- o.Style = style;
- }
- else
- {
- o.Style = null;
- }
+ o.Style = n.GetScalarValue().GetEnumFromDisplayName();
}
},
{
diff --git a/src/Microsoft.OpenApi.Readers/V3/OpenApiMediaTypeDeserializer.cs b/src/Microsoft.OpenApi.Readers/V3/OpenApiMediaTypeDeserializer.cs
index 695f1cc1b..c8bd3d240 100644
--- a/src/Microsoft.OpenApi.Readers/V3/OpenApiMediaTypeDeserializer.cs
+++ b/src/Microsoft.OpenApi.Readers/V3/OpenApiMediaTypeDeserializer.cs
@@ -81,11 +81,6 @@ public static OpenApiMediaType LoadMediaType(ParseNode node)
{
var mapNode = node.CheckMapNode(OpenApiConstants.Content);
- if (!mapNode.Any())
- {
- return null;
- }
-
var mediaType = new OpenApiMediaType();
ParseMap(mapNode, mediaType, _mediaTypeFixedFields, _mediaTypePatternFields);
diff --git a/src/Microsoft.OpenApi/Microsoft.OpenApi.csproj b/src/Microsoft.OpenApi/Microsoft.OpenApi.csproj
index b0cd4e30e..d2839edc7 100644
--- a/src/Microsoft.OpenApi/Microsoft.OpenApi.csproj
+++ b/src/Microsoft.OpenApi/Microsoft.OpenApi.csproj
@@ -11,7 +11,7 @@
Microsoft
Microsoft.OpenApi
Microsoft.OpenApi
- 1.3.1-preview
+ 1.3.1-preview2
.NET models with JSON and YAML writers for OpenAPI specification
© Microsoft Corporation. All rights reserved.
OpenAPI .NET
@@ -37,7 +37,8 @@
-
+
+
diff --git a/src/Microsoft.OpenApi/Services/OpenApiFilterService.cs b/src/Microsoft.OpenApi/Services/OpenApiFilterService.cs
index 08774995e..7b9111e4d 100644
--- a/src/Microsoft.OpenApi/Services/OpenApiFilterService.cs
+++ b/src/Microsoft.OpenApi/Services/OpenApiFilterService.cs
@@ -19,10 +19,18 @@ public static class OpenApiFilterService
///
/// Comma delimited list of operationIds or * for all operations.
/// Comma delimited list of tags or a single regex.
+ /// A dictionary of requests from a postman collection.
+ /// The input OpenAPI document.
/// A predicate.
- public static Func CreatePredicate(string operationIds = null, string tags = null)
+ public static Func CreatePredicate(string operationIds = null,
+ string tags = null, Dictionary> requestUrls = null, OpenApiDocument source = null)
{
- Func predicate;
+ Func predicate;
+
+ if (requestUrls != null && (operationIds != null || tags != null))
+ {
+ throw new InvalidOperationException("Cannot filter by Postman collection and either operationIds and tags at the same time.");
+ }
if (!string.IsNullOrEmpty(operationIds) && !string.IsNullOrEmpty(tags))
{
throw new InvalidOperationException("Cannot specify both operationIds and tags at the same time.");
@@ -31,12 +39,12 @@ public static Func CreatePredicate(string operationIds =
{
if (operationIds == "*")
{
- predicate = (o) => true; // All operations
+ predicate = (url, operationType, operation) => true; // All operations
}
else
{
var operationIdsArray = operationIds.Split(',');
- predicate = (o) => operationIdsArray.Contains(o.OperationId);
+ predicate = (url, operationType, operation) => operationIdsArray.Contains(operation.OperationId);
}
}
else if (tags != null)
@@ -46,16 +54,59 @@ public static Func CreatePredicate(string operationIds =
{
var regex = new Regex(tagsArray[0]);
- predicate = (o) => o.Tags.Any(t => regex.IsMatch(t.Name));
+ predicate = (url, operationType, operation) => operation.Tags.Any(tag => regex.IsMatch(tag.Name));
}
else
{
- predicate = (o) => o.Tags.Any(t => tagsArray.Contains(t.Name));
+ predicate = (url, operationType, operation) => operation.Tags.Any(tag => tagsArray.Contains(tag.Name));
+ }
+ }
+ else if (requestUrls != null)
+ {
+ var operationTypes = new List();
+
+ if (source != null)
+ {
+ var apiVersion = source.Info.Version;
+
+ var sources = new Dictionary {{ apiVersion, source}};
+ var rootNode = CreateOpenApiUrlTreeNode(sources);
+
+ // Iterate through urls dictionary and fetch operations for each url
+ foreach (var path in requestUrls)
+ {
+ var serverList = source.Servers;
+ var url = FormatUrlString(path.Key, serverList);
+
+ var openApiOperations = GetOpenApiOperations(rootNode, url, apiVersion);
+ if (openApiOperations == null)
+ {
+ continue;
+ }
+
+ // Add the available ops if they are in the postman collection. See path.Value
+ foreach (var ops in openApiOperations)
+ {
+ if (path.Value.Contains(ops.Key.ToString().ToUpper()))
+ {
+ operationTypes.Add(ops.Key + url);
+ }
+ }
+ }
+ }
+
+ if (!operationTypes.Any())
+ {
+ throw new ArgumentException("The urls in the Postman collection supplied could not be found.");
}
+
+ // predicate for matching url and operationTypes
+ predicate = (path, operationType, operation) => operationTypes.Contains(operationType + path);
}
+
else
{
- throw new InvalidOperationException("Either operationId(s) or tag(s) need to be specified.");
+ throw new InvalidOperationException("Either operationId(s),tag(s) or Postman collection need to be specified.");
}
return predicate;
@@ -67,12 +118,12 @@ public static Func CreatePredicate(string operationIds =
/// The target .
/// A predicate function.
/// A partial OpenAPI document.
- public static OpenApiDocument CreateFilteredDocument(OpenApiDocument source, Func predicate)
+ public static OpenApiDocument CreateFilteredDocument(OpenApiDocument source, Func predicate)
{
// Fetch and copy title, graphVersion and server info from OpenApiDoc
var subset = new OpenApiDocument
{
- Info = new OpenApiInfo()
+ Info = new OpenApiInfo
{
Title = source.Info.Title + " - Subset",
Description = source.Info.Description,
@@ -83,13 +134,11 @@ public static OpenApiDocument CreateFilteredDocument(OpenApiDocument source, Fun
Extensions = source.Info.Extensions
},
- Components = new OpenApiComponents()
+ Components = new OpenApiComponents {SecuritySchemes = source.Components.SecuritySchemes},
+ SecurityRequirements = source.SecurityRequirements,
+ Servers = source.Servers
};
- subset.Components.SecuritySchemes = source.Components.SecuritySchemes;
- subset.SecurityRequirements = source.SecurityRequirements;
- subset.Servers = source.Servers;
-
var results = FindOperations(source, predicate);
foreach (var result in results)
{
@@ -111,7 +160,10 @@ public static OpenApiDocument CreateFilteredDocument(OpenApiDocument source, Fun
}
}
- pathItem.Operations.Add((OperationType)result.CurrentKeys.Operation, result.Operation);
+ if (result.CurrentKeys.Operation != null)
+ {
+ pathItem.Operations.Add((OperationType)result.CurrentKeys.Operation, result.Operation);
+ }
}
if (subset.Paths == null)
@@ -124,11 +176,103 @@ public static OpenApiDocument CreateFilteredDocument(OpenApiDocument source, Fun
return subset;
}
- private static IList FindOperations(OpenApiDocument graphOpenApi, Func predicate)
+ ///
+ /// Creates an from a collection of .
+ ///
+ /// Dictionary of labels and their corresponding objects.
+ /// The created .
+ public static OpenApiUrlTreeNode CreateOpenApiUrlTreeNode(Dictionary sources)
+ {
+ var rootNode = OpenApiUrlTreeNode.Create();
+ foreach (var source in sources)
+ {
+ rootNode.Attach(source.Value, source.Key);
+ }
+ return rootNode;
+ }
+
+ private static IDictionary GetOpenApiOperations(OpenApiUrlTreeNode rootNode, string relativeUrl, string label)
+ {
+ if (relativeUrl.Equals("/", StringComparison.Ordinal) && rootNode.HasOperations(label))
+ {
+ return rootNode.PathItems[label].Operations;
+ }
+
+ var urlSegments = relativeUrl.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries);
+
+ IDictionary operations = null;
+
+ var targetChild = rootNode;
+
+ /* This will help keep track of whether we've skipped a segment
+ * in the target url due to a possible parameter naming mismatch
+ * with the corresponding OpenApiUrlTreeNode target child segment.
+ */
+ var parameterNameOffset = 0;
+
+ for (var i = 0; i < urlSegments?.Length; i++)
+ {
+ var tempTargetChild = targetChild?.Children?
+ .FirstOrDefault(x => x.Key.Equals(urlSegments[i],
+ StringComparison.OrdinalIgnoreCase)).Value;
+
+ // Segment name mismatch
+ if (tempTargetChild == null)
+ {
+ if (i == 0)
+ {
+ /* If no match and we are at the 1st segment of the relative url,
+ * exit; no need to continue matching subsequent segments.
+ */
+ break;
+ }
+
+ /* Attempt to get the parameter segment from the children of the current node:
+ * We are assuming a failed match because of different parameter namings
+ * between the relative url segment and the corresponding OpenApiUrlTreeNode segment name
+ * ex.: matching '/users/12345/messages' with '/users/{user-id}/messages'
+ */
+ tempTargetChild = targetChild?.Children?
+ .FirstOrDefault(x => x.Value.IsParameter).Value;
+
+ /* If no parameter segment exists in the children of the
+ * current node or we've already skipped a parameter
+ * segment in the relative url from the last pass,
+ * then exit; there's no match.
+ */
+ if (tempTargetChild == null || parameterNameOffset > 0)
+ {
+ break;
+ }
+
+ /* To help us know we've skipped a
+ * corresponding segment in the relative url.
+ */
+ parameterNameOffset++;
+ }
+ else
+ {
+ parameterNameOffset = 0;
+ }
+
+ // Move to the next segment
+ targetChild = tempTargetChild;
+
+ // We want the operations of the last segment of the path.
+ if (i == urlSegments.Length - 1 && targetChild.HasOperations(label))
+ {
+ operations = targetChild.PathItems[label].Operations;
+ }
+ }
+
+ return operations;
+ }
+
+ private static IList FindOperations(OpenApiDocument sourceDocument, Func predicate)
{
var search = new OperationSearch(predicate);
var walker = new OpenApiWalker(search);
- walker.Walk(graphOpenApi);
+ walker.Walk(sourceDocument);
return search.SearchResults;
}
@@ -177,5 +321,23 @@ private static bool AddReferences(OpenApiComponents newComponents, OpenApiCompon
}
return moreStuff;
}
+
+ private static string FormatUrlString(string url, IList serverList)
+ {
+ var queryPath = string.Empty;
+ foreach (var server in serverList)
+ {
+ var serverUrl = server.Url.TrimEnd('/');
+ if (!url.Contains(serverUrl))
+ {
+ continue;
+ }
+
+ var querySegments = url.Split(new[]{ serverUrl }, StringSplitOptions.None);
+ queryPath = querySegments[1];
+ }
+
+ return queryPath;
+ }
}
}
diff --git a/src/Microsoft.OpenApi/Services/OpenApiVisitorBase.cs b/src/Microsoft.OpenApi/Services/OpenApiVisitorBase.cs
index bc65fdfc2..c9679381a 100644
--- a/src/Microsoft.OpenApi/Services/OpenApiVisitorBase.cs
+++ b/src/Microsoft.OpenApi/Services/OpenApiVisitorBase.cs
@@ -25,7 +25,7 @@ public abstract class OpenApiVisitorBase
/// Allow Rule to indicate validation error occured at a deeper context level.
///
/// Identifier for context
- public void Enter(string segment)
+ public virtual void Enter(string segment)
{
this._path.Push(segment);
}
@@ -33,7 +33,7 @@ public void Enter(string segment)
///
/// Exit from path context elevel. Enter and Exit calls should be matched.
///
- public void Exit()
+ public virtual void Exit()
{
this._path.Pop();
}
diff --git a/src/Microsoft.OpenApi/Services/OperationSearch.cs b/src/Microsoft.OpenApi/Services/OperationSearch.cs
index 35d36b38f..95b3a6341 100644
--- a/src/Microsoft.OpenApi/Services/OperationSearch.cs
+++ b/src/Microsoft.OpenApi/Services/OperationSearch.cs
@@ -13,7 +13,7 @@ namespace Microsoft.OpenApi.Services
///
public class OperationSearch : OpenApiVisitorBase
{
- private readonly Func _predicate;
+ private readonly Func _predicate;
private readonly List _searchResults = new();
///
@@ -25,7 +25,7 @@ public class OperationSearch : OpenApiVisitorBase
/// The OperationSearch constructor.
///
/// A predicate function.
- public OperationSearch(Func predicate)
+ public OperationSearch(Func predicate)
{
_predicate = predicate ?? throw new ArgumentNullException(nameof(predicate));
}
@@ -36,7 +36,7 @@ public OperationSearch(Func predicate)
/// The target .
public override void Visit(OpenApiOperation operation)
{
- if (_predicate(operation))
+ if (_predicate(CurrentKeys.Path, CurrentKeys.Operation, operation))
{
_searchResults.Add(new SearchResult()
{
diff --git a/src/Microsoft.OpenApi/Writers/OpenApiJsonWriter.cs b/src/Microsoft.OpenApi/Writers/OpenApiJsonWriter.cs
index 72e74a51e..5454e8da8 100644
--- a/src/Microsoft.OpenApi/Writers/OpenApiJsonWriter.cs
+++ b/src/Microsoft.OpenApi/Writers/OpenApiJsonWriter.cs
@@ -18,6 +18,16 @@ public OpenApiJsonWriter(TextWriter textWriter) : base(textWriter, null)
{
}
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The text writer.
+ /// Settings for controlling how the OpenAPI document will be written out.
+ public OpenApiJsonWriter(TextWriter textWriter, OpenApiJsonWriterSettings settings) : base(textWriter, settings)
+ {
+ _produceTerseOutput = settings.Terse;
+ }
+
///
/// Initializes a new instance of the class.
///
@@ -27,6 +37,11 @@ public OpenApiJsonWriter(TextWriter textWriter, OpenApiWriterSettings settings)
{
}
+ ///
+ /// Indicates whether or not the produced document will be written in a compact or pretty fashion.
+ ///
+ private bool _produceTerseOutput = false;
+
///
/// Base Indentation Level.
/// This denotes how many indentations are needed for the property in the base object.
@@ -51,7 +66,7 @@ public override void WriteStartObject()
Writer.Write(WriterConstants.ArrayElementSeparator);
}
- Writer.WriteLine();
+ WriteLine();
WriteIndentation();
}
@@ -68,13 +83,16 @@ public override void WriteEndObject()
var currentScope = EndScope(ScopeType.Object);
if (currentScope.ObjectCount != 0)
{
- Writer.WriteLine();
+ WriteLine();
DecreaseIndentation();
WriteIndentation();
}
else
{
- Writer.Write(WriterConstants.WhiteSpaceForEmptyObject);
+ if (!_produceTerseOutput)
+ {
+ Writer.Write(WriterConstants.WhiteSpaceForEmptyObject);
+ }
DecreaseIndentation();
}
@@ -99,7 +117,7 @@ public override void WriteStartArray()
Writer.Write(WriterConstants.ArrayElementSeparator);
}
- Writer.WriteLine();
+ WriteLine();
WriteIndentation();
}
@@ -115,7 +133,7 @@ public override void WriteEndArray()
var current = EndScope(ScopeType.Array);
if (current.ObjectCount != 0)
{
- Writer.WriteLine();
+ WriteLine();
DecreaseIndentation();
WriteIndentation();
}
@@ -143,7 +161,7 @@ public override void WritePropertyName(string name)
Writer.Write(WriterConstants.ObjectMemberSeparator);
}
- Writer.WriteLine();
+ WriteLine();
currentScope.ObjectCount++;
@@ -154,6 +172,11 @@ public override void WritePropertyName(string name)
Writer.Write(name);
Writer.Write(WriterConstants.NameValueSeparator);
+
+ if (!_produceTerseOutput)
+ {
+ Writer.Write(WriterConstants.NameValueSeparatorWhiteSpaceSuffix);
+ }
}
///
@@ -198,7 +221,7 @@ protected override void WriteValueSeparator()
Writer.Write(WriterConstants.ArrayElementSeparator);
}
- Writer.WriteLine();
+ WriteLine();
WriteIndentation();
currentScope.ObjectCount++;
}
@@ -212,5 +235,31 @@ public override void WriteRaw(string value)
WriteValueSeparator();
Writer.Write(value);
}
+
+ ///
+ /// Write the indentation.
+ ///
+ public override void WriteIndentation()
+ {
+ if (_produceTerseOutput)
+ {
+ return;
+ }
+
+ base.WriteIndentation();
+ }
+
+ ///
+ /// Writes a line terminator to the text string or stream.
+ ///
+ private void WriteLine()
+ {
+ if (_produceTerseOutput)
+ {
+ return;
+ }
+
+ Writer.WriteLine();
+ }
}
}
diff --git a/src/Microsoft.OpenApi/Writers/OpenApiJsonWriterSettings.cs b/src/Microsoft.OpenApi/Writers/OpenApiJsonWriterSettings.cs
new file mode 100644
index 000000000..4784dc9cf
--- /dev/null
+++ b/src/Microsoft.OpenApi/Writers/OpenApiJsonWriterSettings.cs
@@ -0,0 +1,19 @@
+namespace Microsoft.OpenApi.Writers
+{
+ ///
+ /// Configuration settings to control how OpenAPI Json documents are written
+ ///
+ public class OpenApiJsonWriterSettings : OpenApiWriterSettings
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public OpenApiJsonWriterSettings()
+ { }
+
+ ///
+ /// Indicates whether or not the produced document will be written in a compact or pretty fashion.
+ ///
+ public bool Terse { get; set; } = false;
+ }
+}
diff --git a/src/Microsoft.OpenApi/Writers/WriterConstants.cs b/src/Microsoft.OpenApi/Writers/WriterConstants.cs
index bfc943797..5b4f2da91 100644
--- a/src/Microsoft.OpenApi/Writers/WriterConstants.cs
+++ b/src/Microsoft.OpenApi/Writers/WriterConstants.cs
@@ -81,7 +81,13 @@ internal static class WriterConstants
///
/// The separator between the name and the value.
///
- internal const string NameValueSeparator = ": ";
+ internal const string NameValueSeparator = ":";
+
+ ///
+ /// The white space postfixing
+ /// when producing pretty content.
+ ///
+ internal const string NameValueSeparatorWhiteSpaceSuffix = " ";
///
/// The white space for empty object
diff --git a/test/.gitignore b/test/.gitignore
new file mode 100644
index 000000000..1c9a99104
--- /dev/null
+++ b/test/.gitignore
@@ -0,0 +1 @@
+*.received.*
diff --git a/test/Microsoft.OpenApi.Readers.Tests/Microsoft.OpenApi.Readers.Tests.csproj b/test/Microsoft.OpenApi.Readers.Tests/Microsoft.OpenApi.Readers.Tests.csproj
index 0a4ed6494..13feb0bc9 100644
--- a/test/Microsoft.OpenApi.Readers.Tests/Microsoft.OpenApi.Readers.Tests.csproj
+++ b/test/Microsoft.OpenApi.Readers.Tests/Microsoft.OpenApi.Readers.Tests.csproj
@@ -1,6 +1,6 @@
- net462;net50
+ net48;net50
false
Microsoft
@@ -242,12 +242,12 @@
-
-
+
+
-
+
diff --git a/test/Microsoft.OpenApi.SmokeTests/Microsoft.OpenApi.SmokeTests.csproj b/test/Microsoft.OpenApi.SmokeTests/Microsoft.OpenApi.SmokeTests.csproj
index a4e017455..44d85ee21 100644
--- a/test/Microsoft.OpenApi.SmokeTests/Microsoft.OpenApi.SmokeTests.csproj
+++ b/test/Microsoft.OpenApi.SmokeTests/Microsoft.OpenApi.SmokeTests.csproj
@@ -1,15 +1,15 @@
- net462
+ net48
- TRACE;DEBUG;net462
+ TRACE;DEBUG;NET48
-
+
diff --git a/test/Microsoft.OpenApi.Tests/Microsoft.OpenApi.Tests.csproj b/test/Microsoft.OpenApi.Tests/Microsoft.OpenApi.Tests.csproj
old mode 100755
new mode 100644
index 576e420cf..56bdd0983
--- a/test/Microsoft.OpenApi.Tests/Microsoft.OpenApi.Tests.csproj
+++ b/test/Microsoft.OpenApi.Tests/Microsoft.OpenApi.Tests.csproj
@@ -1,6 +1,6 @@
- net462;net50
+ net50
false
Microsoft
@@ -15,10 +15,12 @@
-
-
+
+
-
+
+
+
all
@@ -27,12 +29,19 @@
-
+
+
+
+ Always
+
+
+ Always
+
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeAdvancedCallbackAsV3JsonWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeAdvancedCallbackAsV3JsonWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..8017028d1
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeAdvancedCallbackAsV3JsonWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,20 @@
+{
+ "$request.body#/url": {
+ "post": {
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Success"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeAdvancedCallbackAsV3JsonWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeAdvancedCallbackAsV3JsonWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..690cc5e9d
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeAdvancedCallbackAsV3JsonWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"$request.body#/url":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Success"}}}}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeReferencedCallbackAsV3JsonWithoutReferenceWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeReferencedCallbackAsV3JsonWithoutReferenceWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..8017028d1
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeReferencedCallbackAsV3JsonWithoutReferenceWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,20 @@
+{
+ "$request.body#/url": {
+ "post": {
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Success"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeReferencedCallbackAsV3JsonWithoutReferenceWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeReferencedCallbackAsV3JsonWithoutReferenceWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..690cc5e9d
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeReferencedCallbackAsV3JsonWithoutReferenceWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"$request.body#/url":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Success"}}}}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeReferencedCallbackAsV3JsonWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeReferencedCallbackAsV3JsonWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..8c9f1f140
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeReferencedCallbackAsV3JsonWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,3 @@
+{
+ "$ref": "#/components/callbacks/simpleHook"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeReferencedCallbackAsV3JsonWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeReferencedCallbackAsV3JsonWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..20e44f987
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.SerializeReferencedCallbackAsV3JsonWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"$ref":"#/components/callbacks/simpleHook"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.cs b/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.cs
index fbc86e7f9..9d512566f 100644
--- a/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.cs
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiCallbackTests.cs
@@ -3,16 +3,18 @@
using System.Globalization;
using System.IO;
-using FluentAssertions;
+using System.Threading.Tasks;
using Microsoft.OpenApi.Expressions;
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.Writers;
+using VerifyXunit;
using Xunit;
using Xunit.Abstractions;
namespace Microsoft.OpenApi.Tests.Models
{
[Collection("DefaultSettings")]
+ [UsesVerify]
public class OpenApiCallbackTests
{
public static OpenApiCallback AdvancedCallback = new OpenApiCallback
@@ -103,33 +105,14 @@ public OpenApiCallbackTests(ITestOutputHelper output)
_output = output;
}
- [Fact]
- public void SerializeAdvancedCallbackAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeAdvancedCallbackAsV3JsonWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""$request.body#/url"": {
- ""post"": {
- ""requestBody"": {
- ""content"": {
- ""application/json"": {
- ""schema"": {
- ""type"": ""object""
- }
- }
- }
- },
- ""responses"": {
- ""200"": {
- ""description"": ""Success""
- }
- }
- }
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedCallback.SerializeAsV3(writer);
@@ -137,21 +120,17 @@ public void SerializeAdvancedCallbackAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedCallbackAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedCallbackAsV3JsonWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""$ref"": ""#/components/callbacks/simpleHook""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedCallback.SerializeAsV3(writer);
@@ -159,38 +138,17 @@ public void SerializeReferencedCallbackAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedCallbackAsV3JsonWithoutReferenceWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedCallbackAsV3JsonWithoutReferenceWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""$request.body#/url"": {
- ""post"": {
- ""requestBody"": {
- ""content"": {
- ""application/json"": {
- ""schema"": {
- ""type"": ""object""
- }
- }
- }
- },
- ""responses"": {
- ""200"": {
- ""description"": ""Success""
- }
- }
- }
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedCallback.SerializeAsV3WithoutReference(writer);
@@ -198,9 +156,7 @@ public void SerializeReferencedCallbackAsV3JsonWithoutReferenceWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
}
}
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentAsV2JsonWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentAsV2JsonWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..96eff63d4
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentAsV2JsonWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,416 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Swagger Petstore (Simple)",
+ "description": "A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification",
+ "termsOfService": "http://helloreverb.com/terms/",
+ "contact": {
+ "name": "Swagger API team",
+ "url": "http://swagger.io",
+ "email": "foo@example.com"
+ },
+ "license": {
+ "name": "MIT",
+ "url": "http://opensource.org/licenses/MIT"
+ },
+ "version": "1.0.0"
+ },
+ "host": "petstore.swagger.io",
+ "basePath": "/api",
+ "schemes": [
+ "http"
+ ],
+ "paths": {
+ "/pets": {
+ "get": {
+ "description": "Returns all pets from the system that the user has access to",
+ "operationId": "findPets",
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/html"
+ ],
+ "parameters": [
+ {
+ "in": "query",
+ "name": "tags",
+ "description": "tags to filter by",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "limit",
+ "description": "maximum number of results to return",
+ "type": "integer",
+ "format": "int32"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "pet response",
+ "schema": {
+ "type": "array",
+ "items": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "int64",
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "4XX": {
+ "description": "unexpected client error",
+ "schema": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "5XX": {
+ "description": "unexpected server error",
+ "schema": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "post": {
+ "description": "Creates a new pet in the store. Duplicates are allowed",
+ "operationId": "addPet",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json",
+ "text/html"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "body",
+ "description": "Pet to add to the store",
+ "required": true,
+ "schema": {
+ "required": [
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "int64",
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "pet response",
+ "schema": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "int64",
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "4XX": {
+ "description": "unexpected client error",
+ "schema": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "5XX": {
+ "description": "unexpected server error",
+ "schema": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/pets/{id}": {
+ "get": {
+ "description": "Returns a user based on a single ID, if the user does not have access to the pet",
+ "operationId": "findPetById",
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/html"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "id",
+ "description": "ID of pet to fetch",
+ "required": true,
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "pet response",
+ "schema": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "int64",
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "4XX": {
+ "description": "unexpected client error",
+ "schema": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "5XX": {
+ "description": "unexpected server error",
+ "schema": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "delete": {
+ "description": "deletes a single pet based on the ID supplied",
+ "operationId": "deletePet",
+ "produces": [
+ "text/html"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "id",
+ "description": "ID of pet to delete",
+ "required": true,
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "pet deleted"
+ },
+ "4XX": {
+ "description": "unexpected client error",
+ "schema": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "5XX": {
+ "description": "unexpected server error",
+ "schema": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "pet": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "int64",
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ },
+ "newPet": {
+ "required": [
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "int64",
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ },
+ "errorModel": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentAsV2JsonWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentAsV2JsonWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..903ff33f7
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentAsV2JsonWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"swagger":"2.0","info":{"title":"Swagger Petstore (Simple)","description":"A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification","termsOfService":"http://helloreverb.com/terms/","contact":{"name":"Swagger API team","url":"http://swagger.io","email":"foo@example.com"},"license":{"name":"MIT","url":"http://opensource.org/licenses/MIT"},"version":"1.0.0"},"host":"petstore.swagger.io","basePath":"/api","schemes":["http"],"paths":{"/pets":{"get":{"description":"Returns all pets from the system that the user has access to","operationId":"findPets","produces":["application/json","application/xml","text/html"],"parameters":[{"in":"query","name":"tags","description":"tags to filter by","type":"array","items":{"type":"string"}},{"in":"query","name":"limit","description":"maximum number of results to return","type":"integer","format":"int32"}],"responses":{"200":{"description":"pet response","schema":{"type":"array","items":{"required":["id","name"],"type":"object","properties":{"id":{"format":"int64","type":"integer"},"name":{"type":"string"},"tag":{"type":"string"}}}}},"4XX":{"description":"unexpected client error","schema":{"required":["code","message"],"type":"object","properties":{"code":{"format":"int32","type":"integer"},"message":{"type":"string"}}}},"5XX":{"description":"unexpected server error","schema":{"required":["code","message"],"type":"object","properties":{"code":{"format":"int32","type":"integer"},"message":{"type":"string"}}}}}},"post":{"description":"Creates a new pet in the store. Duplicates are allowed","operationId":"addPet","consumes":["application/json"],"produces":["application/json","text/html"],"parameters":[{"in":"body","name":"body","description":"Pet to add to the store","required":true,"schema":{"required":["name"],"type":"object","properties":{"id":{"format":"int64","type":"integer"},"name":{"type":"string"},"tag":{"type":"string"}}}}],"responses":{"200":{"description":"pet response","schema":{"required":["id","name"],"type":"object","properties":{"id":{"format":"int64","type":"integer"},"name":{"type":"string"},"tag":{"type":"string"}}}},"4XX":{"description":"unexpected client error","schema":{"required":["code","message"],"type":"object","properties":{"code":{"format":"int32","type":"integer"},"message":{"type":"string"}}}},"5XX":{"description":"unexpected server error","schema":{"required":["code","message"],"type":"object","properties":{"code":{"format":"int32","type":"integer"},"message":{"type":"string"}}}}}}},"/pets/{id}":{"get":{"description":"Returns a user based on a single ID, if the user does not have access to the pet","operationId":"findPetById","produces":["application/json","application/xml","text/html"],"parameters":[{"in":"path","name":"id","description":"ID of pet to fetch","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"pet response","schema":{"required":["id","name"],"type":"object","properties":{"id":{"format":"int64","type":"integer"},"name":{"type":"string"},"tag":{"type":"string"}}}},"4XX":{"description":"unexpected client error","schema":{"required":["code","message"],"type":"object","properties":{"code":{"format":"int32","type":"integer"},"message":{"type":"string"}}}},"5XX":{"description":"unexpected server error","schema":{"required":["code","message"],"type":"object","properties":{"code":{"format":"int32","type":"integer"},"message":{"type":"string"}}}}}},"delete":{"description":"deletes a single pet based on the ID supplied","operationId":"deletePet","produces":["text/html"],"parameters":[{"in":"path","name":"id","description":"ID of pet to delete","required":true,"type":"integer","format":"int64"}],"responses":{"204":{"description":"pet deleted"},"4XX":{"description":"unexpected client error","schema":{"required":["code","message"],"type":"object","properties":{"code":{"format":"int32","type":"integer"},"message":{"type":"string"}}}},"5XX":{"description":"unexpected server error","schema":{"required":["code","message"],"type":"object","properties":{"code":{"format":"int32","type":"integer"},"message":{"type":"string"}}}}}}}},"definitions":{"pet":{"required":["id","name"],"type":"object","properties":{"id":{"format":"int64","type":"integer"},"name":{"type":"string"},"tag":{"type":"string"}}},"newPet":{"required":["name"],"type":"object","properties":{"id":{"format":"int64","type":"integer"},"name":{"type":"string"},"tag":{"type":"string"}}},"errorModel":{"required":["code","message"],"type":"object","properties":{"code":{"format":"int32","type":"integer"},"message":{"type":"string"}}}}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentAsV3JsonWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentAsV3JsonWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..a688f8525
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentAsV3JsonWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,495 @@
+{
+ "openapi": "3.0.1",
+ "info": {
+ "title": "Swagger Petstore (Simple)",
+ "description": "A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification",
+ "termsOfService": "http://helloreverb.com/terms/",
+ "contact": {
+ "name": "Swagger API team",
+ "url": "http://swagger.io",
+ "email": "foo@example.com"
+ },
+ "license": {
+ "name": "MIT",
+ "url": "http://opensource.org/licenses/MIT"
+ },
+ "version": "1.0.0"
+ },
+ "servers": [
+ {
+ "url": "http://petstore.swagger.io/api"
+ }
+ ],
+ "paths": {
+ "/pets": {
+ "get": {
+ "description": "Returns all pets from the system that the user has access to",
+ "operationId": "findPets",
+ "parameters": [
+ {
+ "name": "tags",
+ "in": "query",
+ "description": "tags to filter by",
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "description": "maximum number of results to return",
+ "schema": {
+ "type": "integer",
+ "format": "int32"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "pet response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "application/xml": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "4XX": {
+ "description": "unexpected client error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "5XX": {
+ "description": "unexpected server error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "post": {
+ "description": "Creates a new pet in the store. Duplicates are allowed",
+ "operationId": "addPet",
+ "requestBody": {
+ "description": "Pet to add to the store",
+ "content": {
+ "application/json": {
+ "schema": {
+ "required": [
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "description": "pet response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "4XX": {
+ "description": "unexpected client error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "5XX": {
+ "description": "unexpected server error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/pets/{id}": {
+ "get": {
+ "description": "Returns a user based on a single ID, if the user does not have access to the pet",
+ "operationId": "findPetById",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "ID of pet to fetch",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "pet response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "application/xml": {
+ "schema": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "4XX": {
+ "description": "unexpected client error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "5XX": {
+ "description": "unexpected server error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "delete": {
+ "description": "deletes a single pet based on the ID supplied",
+ "operationId": "deletePet",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "ID of pet to delete",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "pet deleted"
+ },
+ "4XX": {
+ "description": "unexpected client error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "5XX": {
+ "description": "unexpected server error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "components": {
+ "schemas": {
+ "pet": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ },
+ "newPet": {
+ "required": [
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ },
+ "errorModel": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentAsV3JsonWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentAsV3JsonWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..0bb1c9679
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentAsV3JsonWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"openapi":"3.0.1","info":{"title":"Swagger Petstore (Simple)","description":"A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification","termsOfService":"http://helloreverb.com/terms/","contact":{"name":"Swagger API team","url":"http://swagger.io","email":"foo@example.com"},"license":{"name":"MIT","url":"http://opensource.org/licenses/MIT"},"version":"1.0.0"},"servers":[{"url":"http://petstore.swagger.io/api"}],"paths":{"/pets":{"get":{"description":"Returns all pets from the system that the user has access to","operationId":"findPets","parameters":[{"name":"tags","in":"query","description":"tags to filter by","schema":{"type":"array","items":{"type":"string"}}},{"name":"limit","in":"query","description":"maximum number of results to return","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"pet response","content":{"application/json":{"schema":{"type":"array","items":{"required":["id","name"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"tag":{"type":"string"}}}}},"application/xml":{"schema":{"type":"array","items":{"required":["id","name"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"tag":{"type":"string"}}}}}}},"4XX":{"description":"unexpected client error","content":{"text/html":{"schema":{"required":["code","message"],"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}}}}}},"5XX":{"description":"unexpected server error","content":{"text/html":{"schema":{"required":["code","message"],"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}}}}}}}},"post":{"description":"Creates a new pet in the store. Duplicates are allowed","operationId":"addPet","requestBody":{"description":"Pet to add to the store","content":{"application/json":{"schema":{"required":["name"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"tag":{"type":"string"}}}}},"required":true},"responses":{"200":{"description":"pet response","content":{"application/json":{"schema":{"required":["id","name"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"tag":{"type":"string"}}}}}},"4XX":{"description":"unexpected client error","content":{"text/html":{"schema":{"required":["code","message"],"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}}}}}},"5XX":{"description":"unexpected server error","content":{"text/html":{"schema":{"required":["code","message"],"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}}}}}}}}},"/pets/{id}":{"get":{"description":"Returns a user based on a single ID, if the user does not have access to the pet","operationId":"findPetById","parameters":[{"name":"id","in":"path","description":"ID of pet to fetch","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"pet response","content":{"application/json":{"schema":{"required":["id","name"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"tag":{"type":"string"}}}},"application/xml":{"schema":{"required":["id","name"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"tag":{"type":"string"}}}}}},"4XX":{"description":"unexpected client error","content":{"text/html":{"schema":{"required":["code","message"],"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}}}}}},"5XX":{"description":"unexpected server error","content":{"text/html":{"schema":{"required":["code","message"],"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}}}}}}}},"delete":{"description":"deletes a single pet based on the ID supplied","operationId":"deletePet","parameters":[{"name":"id","in":"path","description":"ID of pet to delete","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"pet deleted"},"4XX":{"description":"unexpected client error","content":{"text/html":{"schema":{"required":["code","message"],"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}}}}}},"5XX":{"description":"unexpected server error","content":{"text/html":{"schema":{"required":["code","message"],"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}}}}}}}}}},"components":{"schemas":{"pet":{"required":["id","name"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"tag":{"type":"string"}}},"newPet":{"required":["name"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"tag":{"type":"string"}}},"errorModel":{"required":["code","message"],"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}}}}}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentWithReferenceAsV2JsonWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentWithReferenceAsV2JsonWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..0e3b74125
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentWithReferenceAsV2JsonWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,249 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Swagger Petstore (Simple)",
+ "description": "A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification",
+ "termsOfService": "http://helloreverb.com/terms/",
+ "contact": {
+ "name": "Swagger API team",
+ "url": "http://swagger.io",
+ "email": "foo@example.com"
+ },
+ "license": {
+ "name": "MIT",
+ "url": "http://opensource.org/licenses/MIT"
+ },
+ "version": "1.0.0"
+ },
+ "host": "petstore.swagger.io",
+ "basePath": "/api",
+ "schemes": [
+ "http"
+ ],
+ "paths": {
+ "/pets": {
+ "get": {
+ "description": "Returns all pets from the system that the user has access to",
+ "operationId": "findPets",
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/html"
+ ],
+ "parameters": [
+ {
+ "in": "query",
+ "name": "tags",
+ "description": "tags to filter by",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "limit",
+ "description": "maximum number of results to return",
+ "type": "integer",
+ "format": "int32"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "pet response",
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/pet"
+ }
+ }
+ },
+ "4XX": {
+ "description": "unexpected client error",
+ "schema": {
+ "$ref": "#/definitions/errorModel"
+ }
+ },
+ "5XX": {
+ "description": "unexpected server error",
+ "schema": {
+ "$ref": "#/definitions/errorModel"
+ }
+ }
+ }
+ },
+ "post": {
+ "description": "Creates a new pet in the store. Duplicates are allowed",
+ "operationId": "addPet",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json",
+ "text/html"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "body",
+ "description": "Pet to add to the store",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/newPet"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "pet response",
+ "schema": {
+ "$ref": "#/definitions/pet"
+ }
+ },
+ "4XX": {
+ "description": "unexpected client error",
+ "schema": {
+ "$ref": "#/definitions/errorModel"
+ }
+ },
+ "5XX": {
+ "description": "unexpected server error",
+ "schema": {
+ "$ref": "#/definitions/errorModel"
+ }
+ }
+ }
+ }
+ },
+ "/pets/{id}": {
+ "get": {
+ "description": "Returns a user based on a single ID, if the user does not have access to the pet",
+ "operationId": "findPetById",
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/html"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "id",
+ "description": "ID of pet to fetch",
+ "required": true,
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "pet response",
+ "schema": {
+ "$ref": "#/definitions/pet"
+ }
+ },
+ "4XX": {
+ "description": "unexpected client error",
+ "schema": {
+ "$ref": "#/definitions/errorModel"
+ }
+ },
+ "5XX": {
+ "description": "unexpected server error",
+ "schema": {
+ "$ref": "#/definitions/errorModel"
+ }
+ }
+ }
+ },
+ "delete": {
+ "description": "deletes a single pet based on the ID supplied",
+ "operationId": "deletePet",
+ "produces": [
+ "text/html"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "id",
+ "description": "ID of pet to delete",
+ "required": true,
+ "type": "integer",
+ "format": "int64"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "pet deleted"
+ },
+ "4XX": {
+ "description": "unexpected client error",
+ "schema": {
+ "$ref": "#/definitions/errorModel"
+ }
+ },
+ "5XX": {
+ "description": "unexpected server error",
+ "schema": {
+ "$ref": "#/definitions/errorModel"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "pet": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "int64",
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ },
+ "newPet": {
+ "required": [
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "int64",
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ },
+ "errorModel": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentWithReferenceAsV2JsonWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentWithReferenceAsV2JsonWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..b54e2ac86
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentWithReferenceAsV2JsonWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"swagger":"2.0","info":{"title":"Swagger Petstore (Simple)","description":"A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification","termsOfService":"http://helloreverb.com/terms/","contact":{"name":"Swagger API team","url":"http://swagger.io","email":"foo@example.com"},"license":{"name":"MIT","url":"http://opensource.org/licenses/MIT"},"version":"1.0.0"},"host":"petstore.swagger.io","basePath":"/api","schemes":["http"],"paths":{"/pets":{"get":{"description":"Returns all pets from the system that the user has access to","operationId":"findPets","produces":["application/json","application/xml","text/html"],"parameters":[{"in":"query","name":"tags","description":"tags to filter by","type":"array","items":{"type":"string"}},{"in":"query","name":"limit","description":"maximum number of results to return","type":"integer","format":"int32"}],"responses":{"200":{"description":"pet response","schema":{"type":"array","items":{"$ref":"#/definitions/pet"}}},"4XX":{"description":"unexpected client error","schema":{"$ref":"#/definitions/errorModel"}},"5XX":{"description":"unexpected server error","schema":{"$ref":"#/definitions/errorModel"}}}},"post":{"description":"Creates a new pet in the store. Duplicates are allowed","operationId":"addPet","consumes":["application/json"],"produces":["application/json","text/html"],"parameters":[{"in":"body","name":"body","description":"Pet to add to the store","required":true,"schema":{"$ref":"#/definitions/newPet"}}],"responses":{"200":{"description":"pet response","schema":{"$ref":"#/definitions/pet"}},"4XX":{"description":"unexpected client error","schema":{"$ref":"#/definitions/errorModel"}},"5XX":{"description":"unexpected server error","schema":{"$ref":"#/definitions/errorModel"}}}}},"/pets/{id}":{"get":{"description":"Returns a user based on a single ID, if the user does not have access to the pet","operationId":"findPetById","produces":["application/json","application/xml","text/html"],"parameters":[{"in":"path","name":"id","description":"ID of pet to fetch","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"pet response","schema":{"$ref":"#/definitions/pet"}},"4XX":{"description":"unexpected client error","schema":{"$ref":"#/definitions/errorModel"}},"5XX":{"description":"unexpected server error","schema":{"$ref":"#/definitions/errorModel"}}}},"delete":{"description":"deletes a single pet based on the ID supplied","operationId":"deletePet","produces":["text/html"],"parameters":[{"in":"path","name":"id","description":"ID of pet to delete","required":true,"type":"integer","format":"int64"}],"responses":{"204":{"description":"pet deleted"},"4XX":{"description":"unexpected client error","schema":{"$ref":"#/definitions/errorModel"}},"5XX":{"description":"unexpected server error","schema":{"$ref":"#/definitions/errorModel"}}}}}},"definitions":{"pet":{"required":["id","name"],"type":"object","properties":{"id":{"format":"int64","type":"integer"},"name":{"type":"string"},"tag":{"type":"string"}}},"newPet":{"required":["name"],"type":"object","properties":{"id":{"format":"int64","type":"integer"},"name":{"type":"string"},"tag":{"type":"string"}}},"errorModel":{"required":["code","message"],"type":"object","properties":{"code":{"format":"int32","type":"integer"},"message":{"type":"string"}}}}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentWithReferenceAsV3JsonWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentWithReferenceAsV3JsonWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..f1da0b354
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentWithReferenceAsV3JsonWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,296 @@
+{
+ "openapi": "3.0.1",
+ "info": {
+ "title": "Swagger Petstore (Simple)",
+ "description": "A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification",
+ "termsOfService": "http://helloreverb.com/terms/",
+ "contact": {
+ "name": "Swagger API team",
+ "url": "http://swagger.io",
+ "email": "foo@example.com"
+ },
+ "license": {
+ "name": "MIT",
+ "url": "http://opensource.org/licenses/MIT"
+ },
+ "version": "1.0.0"
+ },
+ "servers": [
+ {
+ "url": "http://petstore.swagger.io/api"
+ }
+ ],
+ "paths": {
+ "/pets": {
+ "get": {
+ "description": "Returns all pets from the system that the user has access to",
+ "operationId": "findPets",
+ "parameters": [
+ {
+ "name": "tags",
+ "in": "query",
+ "description": "tags to filter by",
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "description": "maximum number of results to return",
+ "schema": {
+ "type": "integer",
+ "format": "int32"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "pet response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/pet"
+ }
+ }
+ },
+ "application/xml": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/pet"
+ }
+ }
+ }
+ }
+ },
+ "4XX": {
+ "description": "unexpected client error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "$ref": "#/components/schemas/errorModel"
+ }
+ }
+ }
+ },
+ "5XX": {
+ "description": "unexpected server error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "$ref": "#/components/schemas/errorModel"
+ }
+ }
+ }
+ }
+ }
+ },
+ "post": {
+ "description": "Creates a new pet in the store. Duplicates are allowed",
+ "operationId": "addPet",
+ "requestBody": {
+ "description": "Pet to add to the store",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/newPet"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "description": "pet response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/pet"
+ }
+ }
+ }
+ },
+ "4XX": {
+ "description": "unexpected client error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "$ref": "#/components/schemas/errorModel"
+ }
+ }
+ }
+ },
+ "5XX": {
+ "description": "unexpected server error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "$ref": "#/components/schemas/errorModel"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/pets/{id}": {
+ "get": {
+ "description": "Returns a user based on a single ID, if the user does not have access to the pet",
+ "operationId": "findPetById",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "ID of pet to fetch",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "pet response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/pet"
+ }
+ },
+ "application/xml": {
+ "schema": {
+ "$ref": "#/components/schemas/pet"
+ }
+ }
+ }
+ },
+ "4XX": {
+ "description": "unexpected client error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "$ref": "#/components/schemas/errorModel"
+ }
+ }
+ }
+ },
+ "5XX": {
+ "description": "unexpected server error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "$ref": "#/components/schemas/errorModel"
+ }
+ }
+ }
+ }
+ }
+ },
+ "delete": {
+ "description": "deletes a single pet based on the ID supplied",
+ "operationId": "deletePet",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "ID of pet to delete",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "pet deleted"
+ },
+ "4XX": {
+ "description": "unexpected client error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "$ref": "#/components/schemas/errorModel"
+ }
+ }
+ }
+ },
+ "5XX": {
+ "description": "unexpected server error",
+ "content": {
+ "text/html": {
+ "schema": {
+ "$ref": "#/components/schemas/errorModel"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "components": {
+ "schemas": {
+ "pet": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ },
+ "newPet": {
+ "required": [
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ },
+ "errorModel": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentWithReferenceAsV3JsonWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentWithReferenceAsV3JsonWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..be8dcc627
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeAdvancedDocumentWithReferenceAsV3JsonWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"openapi":"3.0.1","info":{"title":"Swagger Petstore (Simple)","description":"A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification","termsOfService":"http://helloreverb.com/terms/","contact":{"name":"Swagger API team","url":"http://swagger.io","email":"foo@example.com"},"license":{"name":"MIT","url":"http://opensource.org/licenses/MIT"},"version":"1.0.0"},"servers":[{"url":"http://petstore.swagger.io/api"}],"paths":{"/pets":{"get":{"description":"Returns all pets from the system that the user has access to","operationId":"findPets","parameters":[{"name":"tags","in":"query","description":"tags to filter by","schema":{"type":"array","items":{"type":"string"}}},{"name":"limit","in":"query","description":"maximum number of results to return","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"pet response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/pet"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/pet"}}}}},"4XX":{"description":"unexpected client error","content":{"text/html":{"schema":{"$ref":"#/components/schemas/errorModel"}}}},"5XX":{"description":"unexpected server error","content":{"text/html":{"schema":{"$ref":"#/components/schemas/errorModel"}}}}}},"post":{"description":"Creates a new pet in the store. Duplicates are allowed","operationId":"addPet","requestBody":{"description":"Pet to add to the store","content":{"application/json":{"schema":{"$ref":"#/components/schemas/newPet"}}},"required":true},"responses":{"200":{"description":"pet response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pet"}}}},"4XX":{"description":"unexpected client error","content":{"text/html":{"schema":{"$ref":"#/components/schemas/errorModel"}}}},"5XX":{"description":"unexpected server error","content":{"text/html":{"schema":{"$ref":"#/components/schemas/errorModel"}}}}}}},"/pets/{id}":{"get":{"description":"Returns a user based on a single ID, if the user does not have access to the pet","operationId":"findPetById","parameters":[{"name":"id","in":"path","description":"ID of pet to fetch","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"pet response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pet"}},"application/xml":{"schema":{"$ref":"#/components/schemas/pet"}}}},"4XX":{"description":"unexpected client error","content":{"text/html":{"schema":{"$ref":"#/components/schemas/errorModel"}}}},"5XX":{"description":"unexpected server error","content":{"text/html":{"schema":{"$ref":"#/components/schemas/errorModel"}}}}}},"delete":{"description":"deletes a single pet based on the ID supplied","operationId":"deletePet","parameters":[{"name":"id","in":"path","description":"ID of pet to delete","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"pet deleted"},"4XX":{"description":"unexpected client error","content":{"text/html":{"schema":{"$ref":"#/components/schemas/errorModel"}}}},"5XX":{"description":"unexpected server error","content":{"text/html":{"schema":{"$ref":"#/components/schemas/errorModel"}}}}}}}},"components":{"schemas":{"pet":{"required":["id","name"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"tag":{"type":"string"}}},"newPet":{"required":["name"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"tag":{"type":"string"}}},"errorModel":{"required":["code","message"],"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}}}}}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeDuplicateExtensionsAsV2JsonWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeDuplicateExtensionsAsV2JsonWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..671c21ec5
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeDuplicateExtensionsAsV2JsonWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,68 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Swagger Petstore (Simple)",
+ "description": "A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification",
+ "version": "1.0.0"
+ },
+ "host": "petstore.swagger.io",
+ "basePath": "/api",
+ "schemes": [
+ "http"
+ ],
+ "paths": {
+ "/add/{operand1}/{operand2}": {
+ "get": {
+ "operationId": "addByOperand1AndByOperand2",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "operand1",
+ "description": "The first operand",
+ "required": true,
+ "type": "integer",
+ "my-extension": 4
+ },
+ {
+ "in": "path",
+ "name": "operand2",
+ "description": "The second operand",
+ "required": true,
+ "type": "integer",
+ "my-extension": 4
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "pet response",
+ "schema": {
+ "type": "array",
+ "items": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "int64",
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeDuplicateExtensionsAsV2JsonWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeDuplicateExtensionsAsV2JsonWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..7dd31e201
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeDuplicateExtensionsAsV2JsonWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"swagger":"2.0","info":{"title":"Swagger Petstore (Simple)","description":"A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification","version":"1.0.0"},"host":"petstore.swagger.io","basePath":"/api","schemes":["http"],"paths":{"/add/{operand1}/{operand2}":{"get":{"operationId":"addByOperand1AndByOperand2","produces":["application/json"],"parameters":[{"in":"path","name":"operand1","description":"The first operand","required":true,"type":"integer","my-extension":4},{"in":"path","name":"operand2","description":"The second operand","required":true,"type":"integer","my-extension":4}],"responses":{"200":{"description":"pet response","schema":{"type":"array","items":{"required":["id","name"],"type":"object","properties":{"id":{"format":"int64","type":"integer"},"name":{"type":"string"},"tag":{"type":"string"}}}}}}}}}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeDuplicateExtensionsAsV3JsonWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeDuplicateExtensionsAsV3JsonWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..c2e9f5312
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeDuplicateExtensionsAsV3JsonWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,75 @@
+{
+ "openapi": "3.0.1",
+ "info": {
+ "title": "Swagger Petstore (Simple)",
+ "description": "A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification",
+ "version": "1.0.0"
+ },
+ "servers": [
+ {
+ "url": "http://petstore.swagger.io/api"
+ }
+ ],
+ "paths": {
+ "/add/{operand1}/{operand2}": {
+ "get": {
+ "operationId": "addByOperand1AndByOperand2",
+ "parameters": [
+ {
+ "name": "operand1",
+ "in": "path",
+ "description": "The first operand",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "my-extension": 4
+ },
+ "my-extension": 4
+ },
+ {
+ "name": "operand2",
+ "in": "path",
+ "description": "The second operand",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "my-extension": 4
+ },
+ "my-extension": 4
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "pet response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "required": [
+ "id",
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeDuplicateExtensionsAsV3JsonWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeDuplicateExtensionsAsV3JsonWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..da61a8817
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.SerializeDuplicateExtensionsAsV3JsonWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"openapi":"3.0.1","info":{"title":"Swagger Petstore (Simple)","description":"A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification","version":"1.0.0"},"servers":[{"url":"http://petstore.swagger.io/api"}],"paths":{"/add/{operand1}/{operand2}":{"get":{"operationId":"addByOperand1AndByOperand2","parameters":[{"name":"operand1","in":"path","description":"The first operand","required":true,"schema":{"type":"integer","my-extension":4},"my-extension":4},{"name":"operand2","in":"path","description":"The second operand","required":true,"schema":{"type":"integer","my-extension":4},"my-extension":4}],"responses":{"200":{"description":"pet response","content":{"application/json":{"schema":{"type":"array","items":{"required":["id","name"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"tag":{"type":"string"}}}}}}}}}}}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.cs b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.cs
index ea65ec6eb..10cadd597 100644
--- a/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.cs
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.cs
@@ -5,17 +5,20 @@
using System.Collections.Generic;
using System.Globalization;
using System.IO;
+using System.Threading.Tasks;
using FluentAssertions;
using Microsoft.OpenApi.Extensions;
using Microsoft.OpenApi.Interfaces;
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.Writers;
+using VerifyXunit;
using Xunit;
using Xunit.Abstractions;
namespace Microsoft.OpenApi.Tests.Models
{
[Collection("DefaultSettings")]
+ [UsesVerify]
public class OpenApiDocumentTests
{
public static OpenApiComponents TopLevelReferencingComponents = new OpenApiComponents()
@@ -982,508 +985,14 @@ public OpenApiDocumentTests(ITestOutputHelper output)
_output = output;
}
- [Fact]
- public void SerializeAdvancedDocumentAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeAdvancedDocumentAsV3JsonWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""openapi"": ""3.0.1"",
- ""info"": {
- ""title"": ""Swagger Petstore (Simple)"",
- ""description"": ""A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification"",
- ""termsOfService"": ""http://helloreverb.com/terms/"",
- ""contact"": {
- ""name"": ""Swagger API team"",
- ""url"": ""http://swagger.io"",
- ""email"": ""foo@example.com""
- },
- ""license"": {
- ""name"": ""MIT"",
- ""url"": ""http://opensource.org/licenses/MIT""
- },
- ""version"": ""1.0.0""
- },
- ""servers"": [
- {
- ""url"": ""http://petstore.swagger.io/api""
- }
- ],
- ""paths"": {
- ""/pets"": {
- ""get"": {
- ""description"": ""Returns all pets from the system that the user has access to"",
- ""operationId"": ""findPets"",
- ""parameters"": [
- {
- ""name"": ""tags"",
- ""in"": ""query"",
- ""description"": ""tags to filter by"",
- ""schema"": {
- ""type"": ""array"",
- ""items"": {
- ""type"": ""string""
- }
- }
- },
- {
- ""name"": ""limit"",
- ""in"": ""query"",
- ""description"": ""maximum number of results to return"",
- ""schema"": {
- ""type"": ""integer"",
- ""format"": ""int32""
- }
- }
- ],
- ""responses"": {
- ""200"": {
- ""description"": ""pet response"",
- ""content"": {
- ""application/json"": {
- ""schema"": {
- ""type"": ""array"",
- ""items"": {
- ""required"": [
- ""id"",
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""type"": ""integer"",
- ""format"": ""int64""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- }
- }
- },
- ""application/xml"": {
- ""schema"": {
- ""type"": ""array"",
- ""items"": {
- ""required"": [
- ""id"",
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""type"": ""integer"",
- ""format"": ""int64""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- }
- },
- ""4XX"": {
- ""description"": ""unexpected client error"",
- ""content"": {
- ""text/html"": {
- ""schema"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""type"": ""integer"",
- ""format"": ""int32""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- },
- ""5XX"": {
- ""description"": ""unexpected server error"",
- ""content"": {
- ""text/html"": {
- ""schema"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""type"": ""integer"",
- ""format"": ""int32""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- }
- }
- },
- ""post"": {
- ""description"": ""Creates a new pet in the store. Duplicates are allowed"",
- ""operationId"": ""addPet"",
- ""requestBody"": {
- ""description"": ""Pet to add to the store"",
- ""content"": {
- ""application/json"": {
- ""schema"": {
- ""required"": [
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""type"": ""integer"",
- ""format"": ""int64""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- }
- }
- },
- ""required"": true
- },
- ""responses"": {
- ""200"": {
- ""description"": ""pet response"",
- ""content"": {
- ""application/json"": {
- ""schema"": {
- ""required"": [
- ""id"",
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""type"": ""integer"",
- ""format"": ""int64""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- },
- ""4XX"": {
- ""description"": ""unexpected client error"",
- ""content"": {
- ""text/html"": {
- ""schema"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""type"": ""integer"",
- ""format"": ""int32""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- },
- ""5XX"": {
- ""description"": ""unexpected server error"",
- ""content"": {
- ""text/html"": {
- ""schema"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""type"": ""integer"",
- ""format"": ""int32""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- }
- }
- }
- },
- ""/pets/{id}"": {
- ""get"": {
- ""description"": ""Returns a user based on a single ID, if the user does not have access to the pet"",
- ""operationId"": ""findPetById"",
- ""parameters"": [
- {
- ""name"": ""id"",
- ""in"": ""path"",
- ""description"": ""ID of pet to fetch"",
- ""required"": true,
- ""schema"": {
- ""type"": ""integer"",
- ""format"": ""int64""
- }
- }
- ],
- ""responses"": {
- ""200"": {
- ""description"": ""pet response"",
- ""content"": {
- ""application/json"": {
- ""schema"": {
- ""required"": [
- ""id"",
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""type"": ""integer"",
- ""format"": ""int64""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- }
- },
- ""application/xml"": {
- ""schema"": {
- ""required"": [
- ""id"",
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""type"": ""integer"",
- ""format"": ""int64""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- },
- ""4XX"": {
- ""description"": ""unexpected client error"",
- ""content"": {
- ""text/html"": {
- ""schema"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""type"": ""integer"",
- ""format"": ""int32""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- },
- ""5XX"": {
- ""description"": ""unexpected server error"",
- ""content"": {
- ""text/html"": {
- ""schema"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""type"": ""integer"",
- ""format"": ""int32""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- }
- }
- },
- ""delete"": {
- ""description"": ""deletes a single pet based on the ID supplied"",
- ""operationId"": ""deletePet"",
- ""parameters"": [
- {
- ""name"": ""id"",
- ""in"": ""path"",
- ""description"": ""ID of pet to delete"",
- ""required"": true,
- ""schema"": {
- ""type"": ""integer"",
- ""format"": ""int64""
- }
- }
- ],
- ""responses"": {
- ""204"": {
- ""description"": ""pet deleted""
- },
- ""4XX"": {
- ""description"": ""unexpected client error"",
- ""content"": {
- ""text/html"": {
- ""schema"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""type"": ""integer"",
- ""format"": ""int32""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- },
- ""5XX"": {
- ""description"": ""unexpected server error"",
- ""content"": {
- ""text/html"": {
- ""schema"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""type"": ""integer"",
- ""format"": ""int32""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- ""components"": {
- ""schemas"": {
- ""pet"": {
- ""required"": [
- ""id"",
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""type"": ""integer"",
- ""format"": ""int64""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- },
- ""newPet"": {
- ""required"": [
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""type"": ""integer"",
- ""format"": ""int64""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- },
- ""errorModel"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""type"": ""integer"",
- ""format"": ""int32""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedDocument.SerializeAsV3(writer);
@@ -1491,314 +1000,17 @@ public void SerializeAdvancedDocumentAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeAdvancedDocumentWithReferenceAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeAdvancedDocumentWithReferenceAsV3JsonWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""openapi"": ""3.0.1"",
- ""info"": {
- ""title"": ""Swagger Petstore (Simple)"",
- ""description"": ""A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification"",
- ""termsOfService"": ""http://helloreverb.com/terms/"",
- ""contact"": {
- ""name"": ""Swagger API team"",
- ""url"": ""http://swagger.io"",
- ""email"": ""foo@example.com""
- },
- ""license"": {
- ""name"": ""MIT"",
- ""url"": ""http://opensource.org/licenses/MIT""
- },
- ""version"": ""1.0.0""
- },
- ""servers"": [
- {
- ""url"": ""http://petstore.swagger.io/api""
- }
- ],
- ""paths"": {
- ""/pets"": {
- ""get"": {
- ""description"": ""Returns all pets from the system that the user has access to"",
- ""operationId"": ""findPets"",
- ""parameters"": [
- {
- ""name"": ""tags"",
- ""in"": ""query"",
- ""description"": ""tags to filter by"",
- ""schema"": {
- ""type"": ""array"",
- ""items"": {
- ""type"": ""string""
- }
- }
- },
- {
- ""name"": ""limit"",
- ""in"": ""query"",
- ""description"": ""maximum number of results to return"",
- ""schema"": {
- ""type"": ""integer"",
- ""format"": ""int32""
- }
- }
- ],
- ""responses"": {
- ""200"": {
- ""description"": ""pet response"",
- ""content"": {
- ""application/json"": {
- ""schema"": {
- ""type"": ""array"",
- ""items"": {
- ""$ref"": ""#/components/schemas/pet""
- }
- }
- },
- ""application/xml"": {
- ""schema"": {
- ""type"": ""array"",
- ""items"": {
- ""$ref"": ""#/components/schemas/pet""
- }
- }
- }
- }
- },
- ""4XX"": {
- ""description"": ""unexpected client error"",
- ""content"": {
- ""text/html"": {
- ""schema"": {
- ""$ref"": ""#/components/schemas/errorModel""
- }
- }
- }
- },
- ""5XX"": {
- ""description"": ""unexpected server error"",
- ""content"": {
- ""text/html"": {
- ""schema"": {
- ""$ref"": ""#/components/schemas/errorModel""
- }
- }
- }
- }
- }
- },
- ""post"": {
- ""description"": ""Creates a new pet in the store. Duplicates are allowed"",
- ""operationId"": ""addPet"",
- ""requestBody"": {
- ""description"": ""Pet to add to the store"",
- ""content"": {
- ""application/json"": {
- ""schema"": {
- ""$ref"": ""#/components/schemas/newPet""
- }
- }
- },
- ""required"": true
- },
- ""responses"": {
- ""200"": {
- ""description"": ""pet response"",
- ""content"": {
- ""application/json"": {
- ""schema"": {
- ""$ref"": ""#/components/schemas/pet""
- }
- }
- }
- },
- ""4XX"": {
- ""description"": ""unexpected client error"",
- ""content"": {
- ""text/html"": {
- ""schema"": {
- ""$ref"": ""#/components/schemas/errorModel""
- }
- }
- }
- },
- ""5XX"": {
- ""description"": ""unexpected server error"",
- ""content"": {
- ""text/html"": {
- ""schema"": {
- ""$ref"": ""#/components/schemas/errorModel""
- }
- }
- }
- }
- }
- }
- },
- ""/pets/{id}"": {
- ""get"": {
- ""description"": ""Returns a user based on a single ID, if the user does not have access to the pet"",
- ""operationId"": ""findPetById"",
- ""parameters"": [
- {
- ""name"": ""id"",
- ""in"": ""path"",
- ""description"": ""ID of pet to fetch"",
- ""required"": true,
- ""schema"": {
- ""type"": ""integer"",
- ""format"": ""int64""
- }
- }
- ],
- ""responses"": {
- ""200"": {
- ""description"": ""pet response"",
- ""content"": {
- ""application/json"": {
- ""schema"": {
- ""$ref"": ""#/components/schemas/pet""
- }
- },
- ""application/xml"": {
- ""schema"": {
- ""$ref"": ""#/components/schemas/pet""
- }
- }
- }
- },
- ""4XX"": {
- ""description"": ""unexpected client error"",
- ""content"": {
- ""text/html"": {
- ""schema"": {
- ""$ref"": ""#/components/schemas/errorModel""
- }
- }
- }
- },
- ""5XX"": {
- ""description"": ""unexpected server error"",
- ""content"": {
- ""text/html"": {
- ""schema"": {
- ""$ref"": ""#/components/schemas/errorModel""
- }
- }
- }
- }
- }
- },
- ""delete"": {
- ""description"": ""deletes a single pet based on the ID supplied"",
- ""operationId"": ""deletePet"",
- ""parameters"": [
- {
- ""name"": ""id"",
- ""in"": ""path"",
- ""description"": ""ID of pet to delete"",
- ""required"": true,
- ""schema"": {
- ""type"": ""integer"",
- ""format"": ""int64""
- }
- }
- ],
- ""responses"": {
- ""204"": {
- ""description"": ""pet deleted""
- },
- ""4XX"": {
- ""description"": ""unexpected client error"",
- ""content"": {
- ""text/html"": {
- ""schema"": {
- ""$ref"": ""#/components/schemas/errorModel""
- }
- }
- }
- },
- ""5XX"": {
- ""description"": ""unexpected server error"",
- ""content"": {
- ""text/html"": {
- ""schema"": {
- ""$ref"": ""#/components/schemas/errorModel""
- }
- }
- }
- }
- }
- }
- }
- },
- ""components"": {
- ""schemas"": {
- ""pet"": {
- ""required"": [
- ""id"",
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""type"": ""integer"",
- ""format"": ""int64""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- },
- ""newPet"": {
- ""required"": [
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""type"": ""integer"",
- ""format"": ""int64""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- },
- ""errorModel"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""type"": ""integer"",
- ""format"": ""int32""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedDocumentWithReference.SerializeAsV3(writer);
@@ -1806,433 +1018,17 @@ public void SerializeAdvancedDocumentWithReferenceAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeAdvancedDocumentAsV2JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeAdvancedDocumentAsV2JsonWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected = @"{
- ""swagger"": ""2.0"",
- ""info"": {
- ""title"": ""Swagger Petstore (Simple)"",
- ""description"": ""A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification"",
- ""termsOfService"": ""http://helloreverb.com/terms/"",
- ""contact"": {
- ""name"": ""Swagger API team"",
- ""url"": ""http://swagger.io"",
- ""email"": ""foo@example.com""
- },
- ""license"": {
- ""name"": ""MIT"",
- ""url"": ""http://opensource.org/licenses/MIT""
- },
- ""version"": ""1.0.0""
- },
- ""host"": ""petstore.swagger.io"",
- ""basePath"": ""/api"",
- ""schemes"": [
- ""http""
- ],
- ""paths"": {
- ""/pets"": {
- ""get"": {
- ""description"": ""Returns all pets from the system that the user has access to"",
- ""operationId"": ""findPets"",
- ""produces"": [
- ""application/json"",
- ""application/xml"",
- ""text/html""
- ],
- ""parameters"": [
- {
- ""in"": ""query"",
- ""name"": ""tags"",
- ""description"": ""tags to filter by"",
- ""type"": ""array"",
- ""items"": {
- ""type"": ""string""
- }
- },
- {
- ""in"": ""query"",
- ""name"": ""limit"",
- ""description"": ""maximum number of results to return"",
- ""type"": ""integer"",
- ""format"": ""int32""
- }
- ],
- ""responses"": {
- ""200"": {
- ""description"": ""pet response"",
- ""schema"": {
- ""type"": ""array"",
- ""items"": {
- ""required"": [
- ""id"",
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""format"": ""int64"",
- ""type"": ""integer""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- }
- }
- },
- ""4XX"": {
- ""description"": ""unexpected client error"",
- ""schema"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""format"": ""int32"",
- ""type"": ""integer""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- },
- ""5XX"": {
- ""description"": ""unexpected server error"",
- ""schema"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""format"": ""int32"",
- ""type"": ""integer""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- },
- ""post"": {
- ""description"": ""Creates a new pet in the store. Duplicates are allowed"",
- ""operationId"": ""addPet"",
- ""consumes"": [
- ""application/json""
- ],
- ""produces"": [
- ""application/json"",
- ""text/html""
- ],
- ""parameters"": [
- {
- ""in"": ""body"",
- ""name"": ""body"",
- ""description"": ""Pet to add to the store"",
- ""required"": true,
- ""schema"": {
- ""required"": [
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""format"": ""int64"",
- ""type"": ""integer""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- }
- }
- ],
- ""responses"": {
- ""200"": {
- ""description"": ""pet response"",
- ""schema"": {
- ""required"": [
- ""id"",
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""format"": ""int64"",
- ""type"": ""integer""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- }
- },
- ""4XX"": {
- ""description"": ""unexpected client error"",
- ""schema"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""format"": ""int32"",
- ""type"": ""integer""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- },
- ""5XX"": {
- ""description"": ""unexpected server error"",
- ""schema"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""format"": ""int32"",
- ""type"": ""integer""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- }
- },
- ""/pets/{id}"": {
- ""get"": {
- ""description"": ""Returns a user based on a single ID, if the user does not have access to the pet"",
- ""operationId"": ""findPetById"",
- ""produces"": [
- ""application/json"",
- ""application/xml"",
- ""text/html""
- ],
- ""parameters"": [
- {
- ""in"": ""path"",
- ""name"": ""id"",
- ""description"": ""ID of pet to fetch"",
- ""required"": true,
- ""type"": ""integer"",
- ""format"": ""int64""
- }
- ],
- ""responses"": {
- ""200"": {
- ""description"": ""pet response"",
- ""schema"": {
- ""required"": [
- ""id"",
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""format"": ""int64"",
- ""type"": ""integer""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- }
- },
- ""4XX"": {
- ""description"": ""unexpected client error"",
- ""schema"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""format"": ""int32"",
- ""type"": ""integer""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- },
- ""5XX"": {
- ""description"": ""unexpected server error"",
- ""schema"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""format"": ""int32"",
- ""type"": ""integer""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- },
- ""delete"": {
- ""description"": ""deletes a single pet based on the ID supplied"",
- ""operationId"": ""deletePet"",
- ""produces"": [
- ""text/html""
- ],
- ""parameters"": [
- {
- ""in"": ""path"",
- ""name"": ""id"",
- ""description"": ""ID of pet to delete"",
- ""required"": true,
- ""type"": ""integer"",
- ""format"": ""int64""
- }
- ],
- ""responses"": {
- ""204"": {
- ""description"": ""pet deleted""
- },
- ""4XX"": {
- ""description"": ""unexpected client error"",
- ""schema"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""format"": ""int32"",
- ""type"": ""integer""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- },
- ""5XX"": {
- ""description"": ""unexpected server error"",
- ""schema"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""format"": ""int32"",
- ""type"": ""integer""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- }
- }
- },
- ""definitions"": {
- ""pet"": {
- ""required"": [
- ""id"",
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""format"": ""int64"",
- ""type"": ""integer""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- },
- ""newPet"": {
- ""required"": [
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""format"": ""int64"",
- ""type"": ""integer""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- },
- ""errorModel"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""format"": ""int32"",
- ""type"": ""integer""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedDocument.SerializeAsV2(writer);
@@ -2240,92 +1036,17 @@ public void SerializeAdvancedDocumentAsV2JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeDuplicateExtensionsAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeDuplicateExtensionsAsV3JsonWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected = @"{
- ""openapi"": ""3.0.1"",
- ""info"": {
- ""title"": ""Swagger Petstore (Simple)"",
- ""description"": ""A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification"",
- ""version"": ""1.0.0""
- },
- ""servers"": [
- {
- ""url"": ""http://petstore.swagger.io/api""
- }
- ],
- ""paths"": {
- ""/add/{operand1}/{operand2}"": {
- ""get"": {
- ""operationId"": ""addByOperand1AndByOperand2"",
- ""parameters"": [
- {
- ""name"": ""operand1"",
- ""in"": ""path"",
- ""description"": ""The first operand"",
- ""required"": true,
- ""schema"": {
- ""type"": ""integer"",
- ""my-extension"": 4
- },
- ""my-extension"": 4
- },
- {
- ""name"": ""operand2"",
- ""in"": ""path"",
- ""description"": ""The second operand"",
- ""required"": true,
- ""schema"": {
- ""type"": ""integer"",
- ""my-extension"": 4
- },
- ""my-extension"": 4
- }
- ],
- ""responses"": {
- ""200"": {
- ""description"": ""pet response"",
- ""content"": {
- ""application/json"": {
- ""schema"": {
- ""type"": ""array"",
- ""items"": {
- ""required"": [
- ""id"",
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""type"": ""integer"",
- ""format"": ""int64""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
DuplicateExtensions.SerializeAsV3(writer);
@@ -2333,85 +1054,17 @@ public void SerializeDuplicateExtensionsAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeDuplicateExtensionsAsV2JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeDuplicateExtensionsAsV2JsonWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected = @"{
- ""swagger"": ""2.0"",
- ""info"": {
- ""title"": ""Swagger Petstore (Simple)"",
- ""description"": ""A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification"",
- ""version"": ""1.0.0""
- },
- ""host"": ""petstore.swagger.io"",
- ""basePath"": ""/api"",
- ""schemes"": [
- ""http""
- ],
- ""paths"": {
- ""/add/{operand1}/{operand2}"": {
- ""get"": {
- ""operationId"": ""addByOperand1AndByOperand2"",
- ""produces"": [
- ""application/json""
- ],
- ""parameters"": [
- {
- ""in"": ""path"",
- ""name"": ""operand1"",
- ""description"": ""The first operand"",
- ""required"": true,
- ""type"": ""integer"",
- ""my-extension"": 4
- },
- {
- ""in"": ""path"",
- ""name"": ""operand2"",
- ""description"": ""The second operand"",
- ""required"": true,
- ""type"": ""integer"",
- ""my-extension"": 4
- }
- ],
- ""responses"": {
- ""200"": {
- ""description"": ""pet response"",
- ""schema"": {
- ""type"": ""array"",
- ""items"": {
- ""required"": [
- ""id"",
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""format"": ""int64"",
- ""type"": ""integer""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- }
- }
- }
- }
- }
- }
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
DuplicateExtensions.SerializeAsV2(writer);
@@ -2419,267 +1072,17 @@ public void SerializeDuplicateExtensionsAsV2JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeAdvancedDocumentWithReferenceAsV2JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeAdvancedDocumentWithReferenceAsV2JsonWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""swagger"": ""2.0"",
- ""info"": {
- ""title"": ""Swagger Petstore (Simple)"",
- ""description"": ""A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification"",
- ""termsOfService"": ""http://helloreverb.com/terms/"",
- ""contact"": {
- ""name"": ""Swagger API team"",
- ""url"": ""http://swagger.io"",
- ""email"": ""foo@example.com""
- },
- ""license"": {
- ""name"": ""MIT"",
- ""url"": ""http://opensource.org/licenses/MIT""
- },
- ""version"": ""1.0.0""
- },
- ""host"": ""petstore.swagger.io"",
- ""basePath"": ""/api"",
- ""schemes"": [
- ""http""
- ],
- ""paths"": {
- ""/pets"": {
- ""get"": {
- ""description"": ""Returns all pets from the system that the user has access to"",
- ""operationId"": ""findPets"",
- ""produces"": [
- ""application/json"",
- ""application/xml"",
- ""text/html""
- ],
- ""parameters"": [
- {
- ""in"": ""query"",
- ""name"": ""tags"",
- ""description"": ""tags to filter by"",
- ""type"": ""array"",
- ""items"": {
- ""type"": ""string""
- }
- },
- {
- ""in"": ""query"",
- ""name"": ""limit"",
- ""description"": ""maximum number of results to return"",
- ""type"": ""integer"",
- ""format"": ""int32""
- }
- ],
- ""responses"": {
- ""200"": {
- ""description"": ""pet response"",
- ""schema"": {
- ""type"": ""array"",
- ""items"": {
- ""$ref"": ""#/definitions/pet""
- }
- }
- },
- ""4XX"": {
- ""description"": ""unexpected client error"",
- ""schema"": {
- ""$ref"": ""#/definitions/errorModel""
- }
- },
- ""5XX"": {
- ""description"": ""unexpected server error"",
- ""schema"": {
- ""$ref"": ""#/definitions/errorModel""
- }
- }
- }
- },
- ""post"": {
- ""description"": ""Creates a new pet in the store. Duplicates are allowed"",
- ""operationId"": ""addPet"",
- ""consumes"": [
- ""application/json""
- ],
- ""produces"": [
- ""application/json"",
- ""text/html""
- ],
- ""parameters"": [
- {
- ""in"": ""body"",
- ""name"": ""body"",
- ""description"": ""Pet to add to the store"",
- ""required"": true,
- ""schema"": {
- ""$ref"": ""#/definitions/newPet""
- }
- }
- ],
- ""responses"": {
- ""200"": {
- ""description"": ""pet response"",
- ""schema"": {
- ""$ref"": ""#/definitions/pet""
- }
- },
- ""4XX"": {
- ""description"": ""unexpected client error"",
- ""schema"": {
- ""$ref"": ""#/definitions/errorModel""
- }
- },
- ""5XX"": {
- ""description"": ""unexpected server error"",
- ""schema"": {
- ""$ref"": ""#/definitions/errorModel""
- }
- }
- }
- }
- },
- ""/pets/{id}"": {
- ""get"": {
- ""description"": ""Returns a user based on a single ID, if the user does not have access to the pet"",
- ""operationId"": ""findPetById"",
- ""produces"": [
- ""application/json"",
- ""application/xml"",
- ""text/html""
- ],
- ""parameters"": [
- {
- ""in"": ""path"",
- ""name"": ""id"",
- ""description"": ""ID of pet to fetch"",
- ""required"": true,
- ""type"": ""integer"",
- ""format"": ""int64""
- }
- ],
- ""responses"": {
- ""200"": {
- ""description"": ""pet response"",
- ""schema"": {
- ""$ref"": ""#/definitions/pet""
- }
- },
- ""4XX"": {
- ""description"": ""unexpected client error"",
- ""schema"": {
- ""$ref"": ""#/definitions/errorModel""
- }
- },
- ""5XX"": {
- ""description"": ""unexpected server error"",
- ""schema"": {
- ""$ref"": ""#/definitions/errorModel""
- }
- }
- }
- },
- ""delete"": {
- ""description"": ""deletes a single pet based on the ID supplied"",
- ""operationId"": ""deletePet"",
- ""produces"": [
- ""text/html""
- ],
- ""parameters"": [
- {
- ""in"": ""path"",
- ""name"": ""id"",
- ""description"": ""ID of pet to delete"",
- ""required"": true,
- ""type"": ""integer"",
- ""format"": ""int64""
- }
- ],
- ""responses"": {
- ""204"": {
- ""description"": ""pet deleted""
- },
- ""4XX"": {
- ""description"": ""unexpected client error"",
- ""schema"": {
- ""$ref"": ""#/definitions/errorModel""
- }
- },
- ""5XX"": {
- ""description"": ""unexpected server error"",
- ""schema"": {
- ""$ref"": ""#/definitions/errorModel""
- }
- }
- }
- }
- }
- },
- ""definitions"": {
- ""pet"": {
- ""required"": [
- ""id"",
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""format"": ""int64"",
- ""type"": ""integer""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- },
- ""newPet"": {
- ""required"": [
- ""name""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""id"": {
- ""format"": ""int64"",
- ""type"": ""integer""
- },
- ""name"": {
- ""type"": ""string""
- },
- ""tag"": {
- ""type"": ""string""
- }
- }
- },
- ""errorModel"": {
- ""required"": [
- ""code"",
- ""message""
- ],
- ""type"": ""object"",
- ""properties"": {
- ""code"": {
- ""format"": ""int32"",
- ""type"": ""integer""
- },
- ""message"": {
- ""type"": ""string""
- }
- }
- }
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedDocumentWithReference.SerializeAsV2(writer);
@@ -2687,9 +1090,7 @@ public void SerializeAdvancedDocumentWithReferenceAsV2JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
[Fact]
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeAdvancedExampleAsV3JsonWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeAdvancedExampleAsV3JsonWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..44d48dd73
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeAdvancedExampleAsV3JsonWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,28 @@
+{
+ "value": {
+ "versions": [
+ {
+ "status": "Status1",
+ "id": "v1",
+ "links": [
+ {
+ "href": "http://example.com/1",
+ "rel": "sampleRel1",
+ "bytes": "AQID",
+ "binary": "Ñ😻😑♮Í☛oƞ♑😲☇éNjžŁ♻😟¥a´Ī♃ƠąøƩ"
+ }
+ ]
+ },
+ {
+ "status": "Status2",
+ "id": "v2",
+ "links": [
+ {
+ "href": "http://example.com/2",
+ "rel": "sampleRel2"
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeAdvancedExampleAsV3JsonWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeAdvancedExampleAsV3JsonWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..c42b2a5ac
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeAdvancedExampleAsV3JsonWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"value":{"versions":[{"status":"Status1","id":"v1","links":[{"href":"http://example.com/1","rel":"sampleRel1","bytes":"AQID","binary":"Ñ😻😑♮Í☛oƞ♑😲☇éNjžŁ♻😟¥a´Ī♃ƠąøƩ"}]},{"status":"Status2","id":"v2","links":[{"href":"http://example.com/2","rel":"sampleRel2"}]}]}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeReferencedExampleAsV3JsonWithoutReferenceWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeReferencedExampleAsV3JsonWithoutReferenceWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..45f085f73
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeReferencedExampleAsV3JsonWithoutReferenceWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,26 @@
+{
+ "value": {
+ "versions": [
+ {
+ "status": "Status1",
+ "id": "v1",
+ "links": [
+ {
+ "href": "http://example.com/1",
+ "rel": "sampleRel1"
+ }
+ ]
+ },
+ {
+ "status": "Status2",
+ "id": "v2",
+ "links": [
+ {
+ "href": "http://example.com/2",
+ "rel": "sampleRel2"
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeReferencedExampleAsV3JsonWithoutReferenceWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeReferencedExampleAsV3JsonWithoutReferenceWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..b503d318e
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeReferencedExampleAsV3JsonWithoutReferenceWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"value":{"versions":[{"status":"Status1","id":"v1","links":[{"href":"http://example.com/1","rel":"sampleRel1"}]},{"status":"Status2","id":"v2","links":[{"href":"http://example.com/2","rel":"sampleRel2"}]}]}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeReferencedExampleAsV3JsonWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeReferencedExampleAsV3JsonWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..74aae72ef
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeReferencedExampleAsV3JsonWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,3 @@
+{
+ "$ref": "#/components/examples/example1"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeReferencedExampleAsV3JsonWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeReferencedExampleAsV3JsonWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..12898c9c5
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeReferencedExampleAsV3JsonWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"$ref":"#/components/examples/example1"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.cs b/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.cs
index 896b96215..6108c3c26 100644
--- a/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.cs
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.cs
@@ -4,16 +4,18 @@
using System.Globalization;
using System.IO;
using System.Text;
-using FluentAssertions;
+using System.Threading.Tasks;
using Microsoft.OpenApi.Any;
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.Writers;
+using VerifyXunit;
using Xunit;
using Xunit.Abstractions;
namespace Microsoft.OpenApi.Tests.Models
{
[Collection("DefaultSettings")]
+ [UsesVerify]
public class OpenApiExampleTests
{
public static OpenApiExample AdvancedExample = new OpenApiExample
@@ -104,41 +106,14 @@ public OpenApiExampleTests(ITestOutputHelper output)
_output = output;
}
- [Fact]
- public void SerializeAdvancedExampleAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeAdvancedExampleAsV3JsonWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""value"": {
- ""versions"": [
- {
- ""status"": ""Status1"",
- ""id"": ""v1"",
- ""links"": [
- {
- ""href"": ""http://example.com/1"",
- ""rel"": ""sampleRel1"",
- ""bytes"": ""AQID"",
- ""binary"": ""Ñ😻😑♮Í☛oƞ♑😲☇éNjžŁ♻😟¥a´Ī♃ƠąøƩ""
- }
- ]
- },
- {
- ""status"": ""Status2"",
- ""id"": ""v2"",
- ""links"": [
- {
- ""href"": ""http://example.com/2"",
- ""rel"": ""sampleRel2""
- }
- ]
- }
- ]
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedExample.SerializeAsV3(writer);
@@ -146,21 +121,17 @@ public void SerializeAdvancedExampleAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedExampleAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedExampleAsV3JsonWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""$ref"": ""#/components/examples/example1""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedExample.SerializeAsV3(writer);
@@ -168,44 +139,17 @@ public void SerializeReferencedExampleAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedExampleAsV3JsonWithoutReferenceWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedExampleAsV3JsonWithoutReferenceWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""value"": {
- ""versions"": [
- {
- ""status"": ""Status1"",
- ""id"": ""v1"",
- ""links"": [
- {
- ""href"": ""http://example.com/1"",
- ""rel"": ""sampleRel1""
- }
- ]
- },
- {
- ""status"": ""Status2"",
- ""id"": ""v2"",
- ""links"": [
- {
- ""href"": ""http://example.com/2"",
- ""rel"": ""sampleRel2""
- }
- ]
- }
- ]
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedExample.SerializeAsV3WithoutReference(writer);
@@ -213,9 +157,7 @@ public void SerializeReferencedExampleAsV3JsonWithoutReferenceWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
}
}
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeAdvancedHeaderAsV2JsonWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeAdvancedHeaderAsV2JsonWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..5b0eb86be
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeAdvancedHeaderAsV2JsonWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,5 @@
+{
+ "description": "sampleHeader",
+ "type": "integer",
+ "format": "int32"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeAdvancedHeaderAsV2JsonWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeAdvancedHeaderAsV2JsonWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..8feb99289
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeAdvancedHeaderAsV2JsonWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"description":"sampleHeader","type":"integer","format":"int32"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeAdvancedHeaderAsV3JsonWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeAdvancedHeaderAsV3JsonWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..8234610e0
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeAdvancedHeaderAsV3JsonWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,7 @@
+{
+ "description": "sampleHeader",
+ "schema": {
+ "type": "integer",
+ "format": "int32"
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeAdvancedHeaderAsV3JsonWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeAdvancedHeaderAsV3JsonWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..37ebf2515
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeAdvancedHeaderAsV3JsonWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"description":"sampleHeader","schema":{"type":"integer","format":"int32"}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV2JsonWithoutReferenceWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV2JsonWithoutReferenceWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..5b0eb86be
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV2JsonWithoutReferenceWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,5 @@
+{
+ "description": "sampleHeader",
+ "type": "integer",
+ "format": "int32"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV2JsonWithoutReferenceWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV2JsonWithoutReferenceWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..8feb99289
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV2JsonWithoutReferenceWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"description":"sampleHeader","type":"integer","format":"int32"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV2JsonWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV2JsonWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..9791d3c4a
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV2JsonWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,3 @@
+{
+ "$ref": "#/headers/example1"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV2JsonWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV2JsonWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..58060ead9
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV2JsonWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"$ref":"#/headers/example1"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV3JsonWithoutReferenceWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV3JsonWithoutReferenceWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..8234610e0
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV3JsonWithoutReferenceWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,7 @@
+{
+ "description": "sampleHeader",
+ "schema": {
+ "type": "integer",
+ "format": "int32"
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV3JsonWithoutReferenceWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV3JsonWithoutReferenceWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..37ebf2515
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV3JsonWithoutReferenceWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"description":"sampleHeader","schema":{"type":"integer","format":"int32"}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV3JsonWorks_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV3JsonWorks_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..18045b9d2
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV3JsonWorks_produceTerseOutput=False.verified.txt
@@ -0,0 +1,3 @@
+{
+ "$ref": "#/components/headers/example1"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV3JsonWorks_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV3JsonWorks_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..8c4124b8d
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.SerializeReferencedHeaderAsV3JsonWorks_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"$ref":"#/components/headers/example1"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.cs b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.cs
index 5c2671e54..846d470ba 100644
--- a/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.cs
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiHeaderTests.cs
@@ -3,15 +3,17 @@
using System.Globalization;
using System.IO;
-using FluentAssertions;
+using System.Threading.Tasks;
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.Writers;
+using VerifyXunit;
using Xunit;
using Xunit.Abstractions;
namespace Microsoft.OpenApi.Tests.Models
{
[Collection("DefaultSettings")]
+ [UsesVerify]
public class OpenApiHeaderTests
{
public static OpenApiHeader AdvancedHeader = new OpenApiHeader
@@ -46,20 +48,14 @@ public OpenApiHeaderTests(ITestOutputHelper output)
_output = output;
}
- [Fact]
- public void SerializeAdvancedHeaderAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeAdvancedHeaderAsV3JsonWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""description"": ""sampleHeader"",
- ""schema"": {
- ""type"": ""integer"",
- ""format"": ""int32""
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedHeader.SerializeAsV3(writer);
@@ -67,21 +63,17 @@ public void SerializeAdvancedHeaderAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedHeaderAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedHeaderAsV3JsonWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""$ref"": ""#/components/headers/example1""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedHeader.SerializeAsV3(writer);
@@ -89,25 +81,17 @@ public void SerializeReferencedHeaderAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedHeaderAsV3JsonWithoutReferenceWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedHeaderAsV3JsonWithoutReferenceWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""description"": ""sampleHeader"",
- ""schema"": {
- ""type"": ""integer"",
- ""format"": ""int32""
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedHeader.SerializeAsV3WithoutReference(writer);
@@ -115,23 +99,17 @@ public void SerializeReferencedHeaderAsV3JsonWithoutReferenceWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeAdvancedHeaderAsV2JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeAdvancedHeaderAsV2JsonWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""description"": ""sampleHeader"",
- ""type"": ""integer"",
- ""format"": ""int32""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedHeader.SerializeAsV2(writer);
@@ -139,21 +117,17 @@ public void SerializeAdvancedHeaderAsV2JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedHeaderAsV2JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedHeaderAsV2JsonWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""$ref"": ""#/headers/example1""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedHeader.SerializeAsV2(writer);
@@ -161,23 +135,17 @@ public void SerializeReferencedHeaderAsV2JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedHeaderAsV2JsonWithoutReferenceWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedHeaderAsV2JsonWithoutReferenceWorks(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""description"": ""sampleHeader"",
- ""type"": ""integer"",
- ""format"": ""int32""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedHeader.SerializeAsV2WithoutReference(writer);
@@ -185,9 +153,7 @@ public void SerializeReferencedHeaderAsV2JsonWithoutReferenceWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
}
}
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeAdvancedLinkAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeAdvancedLinkAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..2629e0b1c
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeAdvancedLinkAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,13 @@
+{
+ "operationId": "operationId1",
+ "parameters": {
+ "parameter1": "$request.path.id"
+ },
+ "requestBody": {
+ "property1": true
+ },
+ "description": "description1",
+ "server": {
+ "description": "serverDescription1"
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeAdvancedLinkAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeAdvancedLinkAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..c9c1701b5
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeAdvancedLinkAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"operationId":"operationId1","parameters":{"parameter1":"$request.path.id"},"requestBody":{"property1":true},"description":"description1","server":{"description":"serverDescription1"}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeReferencedLinkAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeReferencedLinkAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..2629e0b1c
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeReferencedLinkAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,13 @@
+{
+ "operationId": "operationId1",
+ "parameters": {
+ "parameter1": "$request.path.id"
+ },
+ "requestBody": {
+ "property1": true
+ },
+ "description": "description1",
+ "server": {
+ "description": "serverDescription1"
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeReferencedLinkAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeReferencedLinkAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..c9c1701b5
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeReferencedLinkAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"operationId":"operationId1","parameters":{"parameter1":"$request.path.id"},"requestBody":{"property1":true},"description":"description1","server":{"description":"serverDescription1"}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeReferencedLinkAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeReferencedLinkAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..26fe6229d
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeReferencedLinkAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,3 @@
+{
+ "$ref": "#/components/links/example1"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeReferencedLinkAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeReferencedLinkAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..2200957a3
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.SerializeReferencedLinkAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"$ref":"#/components/links/example1"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.cs b/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.cs
index ffcaa8804..4e439a2a8 100644
--- a/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.cs
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiLinkTests.cs
@@ -3,17 +3,19 @@
using System.Globalization;
using System.IO;
-using FluentAssertions;
+using System.Threading.Tasks;
using Microsoft.OpenApi.Any;
using Microsoft.OpenApi.Expressions;
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.Writers;
+using VerifyXunit;
using Xunit;
using Xunit.Abstractions;
namespace Microsoft.OpenApi.Tests.Models
{
[Collection("DefaultSettings")]
+ [UsesVerify]
public class OpenApiLinkTests
{
public static OpenApiLink AdvancedLink = new OpenApiLink
@@ -76,26 +78,14 @@ public OpenApiLinkTests(ITestOutputHelper output)
_output = output;
}
- [Fact]
- public void SerializeAdvancedLinkAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeAdvancedLinkAsV3JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""operationId"": ""operationId1"",
- ""parameters"": {
- ""parameter1"": ""$request.path.id""
- },
- ""requestBody"": {
- ""property1"": true
- },
- ""description"": ""description1"",
- ""server"": {
- ""description"": ""serverDescription1""
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedLink.SerializeAsV3(writer);
@@ -103,21 +93,17 @@ public void SerializeAdvancedLinkAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedLinkAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedLinkAsV3JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""$ref"": ""#/components/links/example1""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedLink.SerializeAsV3(writer);
@@ -125,31 +111,17 @@ public void SerializeReferencedLinkAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedLinkAsV3JsonWithoutReferenceWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedLinkAsV3JsonWithoutReferenceWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""operationId"": ""operationId1"",
- ""parameters"": {
- ""parameter1"": ""$request.path.id""
- },
- ""requestBody"": {
- ""property1"": true
- },
- ""description"": ""description1"",
- ""server"": {
- ""description"": ""serverDescription1""
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedLink.SerializeAsV3WithoutReference(writer);
@@ -157,9 +129,7 @@ public void SerializeReferencedLinkAsV3JsonWithoutReferenceWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
}
}
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithFormStyleAndExplodeFalseWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithFormStyleAndExplodeFalseWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..1c8e22a01
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithFormStyleAndExplodeFalseWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,16 @@
+{
+ "name": "name1",
+ "in": "query",
+ "description": "description1",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "type": "array",
+ "items": {
+ "enum": [
+ "value1",
+ "value2"
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithFormStyleAndExplodeFalseWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithFormStyleAndExplodeFalseWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..73c77d79f
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithFormStyleAndExplodeFalseWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"name":"name1","in":"query","description":"description1","style":"form","explode":false,"schema":{"type":"array","items":{"enum":["value1","value2"]}}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithFormStyleAndExplodeTrueWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithFormStyleAndExplodeTrueWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..651da1cce
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithFormStyleAndExplodeTrueWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,15 @@
+{
+ "name": "name1",
+ "in": "query",
+ "description": "description1",
+ "style": "form",
+ "schema": {
+ "type": "array",
+ "items": {
+ "enum": [
+ "value1",
+ "value2"
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithFormStyleAndExplodeTrueWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithFormStyleAndExplodeTrueWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..579671130
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithFormStyleAndExplodeTrueWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"name":"name1","in":"query","description":"description1","style":"form","schema":{"type":"array","items":{"enum":["value1","value2"]}}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithSchemaReferenceAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithSchemaReferenceAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..0542c58ce
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithSchemaReferenceAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,7 @@
+{
+ "in": "header",
+ "name": "name1",
+ "description": "description1",
+ "required": true,
+ "type": "string"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithSchemaReferenceAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithSchemaReferenceAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..b80b263d3
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithSchemaReferenceAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"in":"header","name":"name1","description":"description1","required":true,"type":"string"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithSchemaTypeObjectAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithSchemaTypeObjectAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..0542c58ce
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithSchemaTypeObjectAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,7 @@
+{
+ "in": "header",
+ "name": "name1",
+ "description": "description1",
+ "required": true,
+ "type": "string"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithSchemaTypeObjectAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithSchemaTypeObjectAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..b80b263d3
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeParameterWithSchemaTypeObjectAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"in":"header","name":"name1","description":"description1","required":true,"type":"string"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..4127038e5
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,4 @@
+{
+ "in": "path",
+ "name": "name1"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..8677f0fad
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"in":"path","name":"name1"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..a9154d617
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,3 @@
+{
+ "$ref": "#/parameters/example1"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..712d7ee78
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"$ref":"#/parameters/example1"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..5275532e8
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,4 @@
+{
+ "name": "name1",
+ "in": "path"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..ec654beb0
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"name":"name1","in":"path"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..654239535
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,3 @@
+{
+ "$ref": "#/components/parameters/example1"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..3d61cb3f8
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.SerializeReferencedParameterAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"$ref":"#/components/parameters/example1"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.cs b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.cs
index b630f3126..5dffea57c 100644
--- a/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.cs
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiParameterTests.cs
@@ -4,17 +4,20 @@
using System.Collections.Generic;
using System.Globalization;
using System.IO;
+using System.Threading.Tasks;
using FluentAssertions;
using Microsoft.OpenApi.Any;
using Microsoft.OpenApi.Extensions;
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.Writers;
+using VerifyXunit;
using Xunit;
using Xunit.Abstractions;
namespace Microsoft.OpenApi.Tests.Models
{
[Collection("DefaultSettings")]
+ [UsesVerify]
public class OpenApiParameterTests
{
public static OpenApiParameter BasicParameter = new OpenApiParameter
@@ -231,16 +234,14 @@ public void SerializeAdvancedParameterAsV3JsonWorks()
actual.Should().Be(expected);
}
- [Fact]
- public void SerializeReferencedParameterAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedParameterAsV3JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""$ref"": ""#/components/parameters/example1""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedParameter.SerializeAsV3(writer);
@@ -248,22 +249,17 @@ public void SerializeReferencedParameterAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedParameterAsV3JsonWithoutReferenceWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedParameterAsV3JsonWithoutReferenceWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""name"": ""name1"",
- ""in"": ""path""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedParameter.SerializeAsV3WithoutReference(writer);
@@ -271,21 +267,17 @@ public void SerializeReferencedParameterAsV3JsonWithoutReferenceWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedParameterAsV2JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedParameterAsV2JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""$ref"": ""#/parameters/example1""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedParameter.SerializeAsV2(writer);
@@ -293,22 +285,17 @@ public void SerializeReferencedParameterAsV2JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedParameterAsV2JsonWithoutReferenceWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedParameterAsV2JsonWithoutReferenceWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""in"": ""path"",
- ""name"": ""name1""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedParameter.SerializeAsV2WithoutReference(writer);
@@ -316,25 +303,17 @@ public void SerializeReferencedParameterAsV2JsonWithoutReferenceWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeParameterWithSchemaReferenceAsV2JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeParameterWithSchemaReferenceAsV2JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""in"": ""header"",
- ""name"": ""name1"",
- ""description"": ""description1"",
- ""required"": true,
- ""type"": ""string""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedHeaderParameterWithSchemaReference.SerializeAsV2(writer);
@@ -342,25 +321,17 @@ public void SerializeParameterWithSchemaReferenceAsV2JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeParameterWithSchemaTypeObjectAsV2JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeParameterWithSchemaTypeObjectAsV2JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""in"": ""header"",
- ""name"": ""name1"",
- ""description"": ""description1"",
- ""required"": true,
- ""type"": ""string""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedHeaderParameterWithSchemaTypeObject.SerializeAsV2(writer);
@@ -368,34 +339,17 @@ public void SerializeParameterWithSchemaTypeObjectAsV2JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeParameterWithFormStyleAndExplodeFalseWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeParameterWithFormStyleAndExplodeFalseWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""name"": ""name1"",
- ""in"": ""query"",
- ""description"": ""description1"",
- ""style"": ""form"",
- ""explode"": false,
- ""schema"": {
- ""type"": ""array"",
- ""items"": {
- ""enum"": [
- ""value1"",
- ""value2""
- ]
- }
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ParameterWithFormStyleAndExplodeFalse.SerializeAsV3WithoutReference(writer);
@@ -403,33 +357,17 @@ public void SerializeParameterWithFormStyleAndExplodeFalseWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeParameterWithFormStyleAndExplodeTrueWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeParameterWithFormStyleAndExplodeTrueWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""name"": ""name1"",
- ""in"": ""query"",
- ""description"": ""description1"",
- ""style"": ""form"",
- ""schema"": {
- ""type"": ""array"",
- ""items"": {
- ""enum"": [
- ""value1"",
- ""value2""
- ]
- }
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ParameterWithFormStyleAndExplodeTrue.SerializeAsV3WithoutReference(writer);
@@ -437,9 +375,7 @@ public void SerializeParameterWithFormStyleAndExplodeTrueWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
}
}
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeAdvancedRequestBodyAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeAdvancedRequestBodyAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..ccc8d3725
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeAdvancedRequestBodyAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,11 @@
+{
+ "description": "description",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ },
+ "required": true
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeAdvancedRequestBodyAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeAdvancedRequestBodyAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..31161c2f5
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeAdvancedRequestBodyAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"description":"description","content":{"application/json":{"schema":{"type":"string"}}},"required":true}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeReferencedRequestBodyAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeReferencedRequestBodyAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..ccc8d3725
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeReferencedRequestBodyAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,11 @@
+{
+ "description": "description",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ },
+ "required": true
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeReferencedRequestBodyAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeReferencedRequestBodyAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..31161c2f5
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeReferencedRequestBodyAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"description":"description","content":{"application/json":{"schema":{"type":"string"}}},"required":true}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeReferencedRequestBodyAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeReferencedRequestBodyAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..ca9bb966e
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeReferencedRequestBodyAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,3 @@
+{
+ "$ref": "#/components/requestBodies/example1"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeReferencedRequestBodyAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeReferencedRequestBodyAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..443812023
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.SerializeReferencedRequestBodyAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"$ref":"#/components/requestBodies/example1"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.cs b/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.cs
index b225417fc..d8bdacae4 100644
--- a/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.cs
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiRequestBodyTests.cs
@@ -3,15 +3,17 @@
using System.Globalization;
using System.IO;
-using FluentAssertions;
+using System.Threading.Tasks;
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.Writers;
+using VerifyXunit;
using Xunit;
using Xunit.Abstractions;
namespace Microsoft.OpenApi.Tests.Models
{
[Collection("DefaultSettings")]
+ [UsesVerify]
public class OpenApiRequestBodyTests
{
public static OpenApiRequestBody AdvancedRequestBody = new OpenApiRequestBody
@@ -58,24 +60,14 @@ public OpenApiRequestBodyTests(ITestOutputHelper output)
_output = output;
}
- [Fact]
- public void SerializeAdvancedRequestBodyAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeAdvancedRequestBodyAsV3JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""description"": ""description"",
- ""content"": {
- ""application/json"": {
- ""schema"": {
- ""type"": ""string""
- }
- }
- },
- ""required"": true
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedRequestBody.SerializeAsV3(writer);
@@ -83,21 +75,17 @@ public void SerializeAdvancedRequestBodyAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedRequestBodyAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedRequestBodyAsV3JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""$ref"": ""#/components/requestBodies/example1""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedRequestBody.SerializeAsV3(writer);
@@ -105,29 +93,17 @@ public void SerializeReferencedRequestBodyAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedRequestBodyAsV3JsonWithoutReferenceWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedRequestBodyAsV3JsonWithoutReferenceWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""description"": ""description"",
- ""content"": {
- ""application/json"": {
- ""schema"": {
- ""type"": ""string""
- }
- }
- },
- ""required"": true
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedRequestBody.SerializeAsV3WithoutReference(writer);
@@ -135,9 +111,7 @@ public void SerializeReferencedRequestBodyAsV3JsonWithoutReferenceWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
}
}
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..af5ce3ea5
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,19 @@
+{
+ "description": "A complex object array response",
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/customType"
+ }
+ },
+ "headers": {
+ "X-Rate-Limit-Limit": {
+ "description": "The number of allowed requests in the current period",
+ "type": "integer"
+ },
+ "X-Rate-Limit-Reset": {
+ "description": "The number of seconds left in the current period",
+ "type": "integer"
+ }
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..f9a3f9d5f
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"description":"A complex object array response","schema":{"type":"array","items":{"$ref":"#/definitions/customType"}},"headers":{"X-Rate-Limit-Limit":{"description":"The number of allowed requests in the current period","type":"integer"},"X-Rate-Limit-Reset":{"description":"The number of seconds left in the current period","type":"integer"}}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..ea5aa0d40
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,3 @@
+{
+ "$ref": "#/responses/example1"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..b2058cfd8
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"$ref":"#/responses/example1"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..55bad289b
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,27 @@
+{
+ "description": "A complex object array response",
+ "headers": {
+ "X-Rate-Limit-Limit": {
+ "description": "The number of allowed requests in the current period",
+ "schema": {
+ "type": "integer"
+ }
+ },
+ "X-Rate-Limit-Reset": {
+ "description": "The number of seconds left in the current period",
+ "schema": {
+ "type": "integer"
+ }
+ }
+ },
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/customType"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..612fbe919
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"description":"A complex object array response","headers":{"X-Rate-Limit-Limit":{"description":"The number of allowed requests in the current period","schema":{"type":"integer"}},"X-Rate-Limit-Reset":{"description":"The number of seconds left in the current period","schema":{"type":"integer"}}},"content":{"text/plain":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/customType"}}}}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..115ec60a6
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,3 @@
+{
+ "$ref": "#/components/responses/example1"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..e65264a36
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.SerializeReferencedResponseAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"$ref":"#/components/responses/example1"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.cs b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.cs
index 9b86a6d51..a5555ddd9 100644
--- a/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.cs
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiResponseTests.cs
@@ -4,18 +4,21 @@
using System.Collections.Generic;
using System.Globalization;
using System.IO;
+using System.Threading.Tasks;
using FluentAssertions;
using Microsoft.OpenApi.Any;
using Microsoft.OpenApi.Extensions;
using Microsoft.OpenApi.Interfaces;
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.Writers;
+using VerifyXunit;
using Xunit;
using Xunit.Abstractions;
namespace Microsoft.OpenApi.Tests.Models
{
[Collection("DefaultSettings")]
+ [UsesVerify]
public class OpenApiResponseTests
{
public static OpenApiResponse BasicResponse = new OpenApiResponse();
@@ -279,16 +282,14 @@ public void SerializeAdvancedResponseAsV2YamlWorks()
actual.Should().Be(expected);
}
- [Fact]
- public void SerializeReferencedResponseAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedResponseAsV3JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""$ref"": ""#/components/responses/example1""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedResponse.SerializeAsV3(writer);
@@ -296,45 +297,17 @@ public void SerializeReferencedResponseAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedResponseAsV3JsonWithoutReferenceWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedResponseAsV3JsonWithoutReferenceWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""description"": ""A complex object array response"",
- ""headers"": {
- ""X-Rate-Limit-Limit"": {
- ""description"": ""The number of allowed requests in the current period"",
- ""schema"": {
- ""type"": ""integer""
- }
- },
- ""X-Rate-Limit-Reset"": {
- ""description"": ""The number of seconds left in the current period"",
- ""schema"": {
- ""type"": ""integer""
- }
- }
- },
- ""content"": {
- ""text/plain"": {
- ""schema"": {
- ""type"": ""array"",
- ""items"": {
- ""$ref"": ""#/components/schemas/customType""
- }
- }
- }
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedResponse.SerializeAsV3WithoutReference(writer);
@@ -342,21 +315,17 @@ public void SerializeReferencedResponseAsV3JsonWithoutReferenceWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedResponseAsV2JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedResponseAsV2JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""$ref"": ""#/responses/example1""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedResponse.SerializeAsV2(writer);
@@ -364,37 +333,17 @@ public void SerializeReferencedResponseAsV2JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedResponseAsV2JsonWithoutReferenceWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedResponseAsV2JsonWithoutReferenceWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""description"": ""A complex object array response"",
- ""schema"": {
- ""type"": ""array"",
- ""items"": {
- ""$ref"": ""#/definitions/customType""
- }
- },
- ""headers"": {
- ""X-Rate-Limit-Limit"": {
- ""description"": ""The number of allowed requests in the current period"",
- ""type"": ""integer""
- },
- ""X-Rate-Limit-Reset"": {
- ""description"": ""The number of seconds left in the current period"",
- ""type"": ""integer""
- }
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedResponse.SerializeAsV2WithoutReference(writer);
@@ -402,9 +351,7 @@ public void SerializeReferencedResponseAsV2JsonWithoutReferenceWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
}
}
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeReferencedSchemaAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeReferencedSchemaAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..19773c717
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeReferencedSchemaAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,3 @@
+{
+ "$ref": "#/components/schemas/schemaObject1"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeReferencedSchemaAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeReferencedSchemaAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..34a933101
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeReferencedSchemaAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"$ref":"#/components/schemas/schemaObject1"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeReferencedSchemaAsV3WithoutReferenceJsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeReferencedSchemaAsV3WithoutReferenceJsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..7a3aa9ce8
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeReferencedSchemaAsV3WithoutReferenceJsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,13 @@
+{
+ "title": "title1",
+ "multipleOf": 3,
+ "maximum": 42,
+ "minimum": 10,
+ "exclusiveMinimum": true,
+ "type": "integer",
+ "default": 15,
+ "nullable": true,
+ "externalDocs": {
+ "url": "http://example.com/externalDocs"
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeReferencedSchemaAsV3WithoutReferenceJsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeReferencedSchemaAsV3WithoutReferenceJsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..f3407133d
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeReferencedSchemaAsV3WithoutReferenceJsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"title":"title1","multipleOf":3,"maximum":42,"minimum":10,"exclusiveMinimum":true,"type":"integer","default":15,"nullable":true,"externalDocs":{"url":"http://example.com/externalDocs"}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeSchemaWRequiredPropertiesAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeSchemaWRequiredPropertiesAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..49aece921
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeSchemaWRequiredPropertiesAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,41 @@
+{
+ "title": "title1",
+ "required": [
+ "property1"
+ ],
+ "properties": {
+ "property1": {
+ "required": [
+ "property3"
+ ],
+ "properties": {
+ "property2": {
+ "type": "integer"
+ },
+ "property3": {
+ "maxLength": 15,
+ "type": "string"
+ }
+ }
+ },
+ "property4": {
+ "properties": {
+ "property5": {
+ "properties": {
+ "property6": {
+ "type": "boolean"
+ }
+ }
+ },
+ "property7": {
+ "minLength": 2,
+ "type": "string"
+ }
+ },
+ "readOnly": true
+ }
+ },
+ "externalDocs": {
+ "url": "http://example.com/externalDocs"
+ }
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeSchemaWRequiredPropertiesAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeSchemaWRequiredPropertiesAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..4777a425c
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.SerializeSchemaWRequiredPropertiesAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"title":"title1","required":["property1"],"properties":{"property1":{"required":["property3"],"properties":{"property2":{"type":"integer"},"property3":{"maxLength":15,"type":"string"}}},"property4":{"properties":{"property5":{"properties":{"property6":{"type":"boolean"}}},"property7":{"minLength":2,"type":"string"}},"readOnly":true}},"externalDocs":{"url":"http://example.com/externalDocs"}}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.cs b/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.cs
index 4f9510132..ae13944e6 100644
--- a/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.cs
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiSchemaTests.cs
@@ -5,17 +5,20 @@
using System.Collections.Generic;
using System.Globalization;
using System.IO;
+using System.Threading.Tasks;
using FluentAssertions;
using Microsoft.OpenApi.Any;
using Microsoft.OpenApi.Extensions;
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.Writers;
+using VerifyXunit;
using Xunit;
using Xunit.Abstractions;
namespace Microsoft.OpenApi.Tests.Models
{
[Collection("DefaultSettings")]
+ [UsesVerify]
public class OpenApiSchemaTests
{
public static OpenApiSchema BasicSchema = new OpenApiSchema();
@@ -365,26 +368,15 @@ public void SerializeAdvancedSchemaWithAllOfAsV3JsonWorks()
actual.Should().Be(expected);
}
- [Fact]
- public void SerializeReferencedSchemaAsV3WithoutReferenceJsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedSchemaAsV3WithoutReferenceJsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
- var expected = @"{
- ""title"": ""title1"",
- ""multipleOf"": 3,
- ""maximum"": 42,
- ""minimum"": 10,
- ""exclusiveMinimum"": true,
- ""type"": ""integer"",
- ""default"": 15,
- ""nullable"": true,
- ""externalDocs"": {
- ""url"": ""http://example.com/externalDocs""
- }
-}";
// Act
ReferencedSchema.SerializeAsV3WithoutReference(writer);
@@ -392,21 +384,17 @@ public void SerializeReferencedSchemaAsV3WithoutReferenceJsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedSchemaAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedSchemaAsV3JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
-
- var expected = @"{
- ""$ref"": ""#/components/schemas/schemaObject1""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedSchema.SerializeAsV3(writer);
@@ -414,58 +402,17 @@ public void SerializeReferencedSchemaAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeSchemaWRequiredPropertiesAsV2JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeSchemaWRequiredPropertiesAsV2JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected = @"{
- ""title"": ""title1"",
- ""required"": [
- ""property1""
- ],
- ""properties"": {
- ""property1"": {
- ""required"": [
- ""property3""
- ],
- ""properties"": {
- ""property2"": {
- ""type"": ""integer""
- },
- ""property3"": {
- ""maxLength"": 15,
- ""type"": ""string""
- }
- }
- },
- ""property4"": {
- ""properties"": {
- ""property5"": {
- ""properties"": {
- ""property6"": {
- ""type"": ""boolean""
- }
- }
- },
- ""property7"": {
- ""minLength"": 2,
- ""type"": ""string""
- }
- },
- ""readOnly"": true
- }
- },
- ""externalDocs"": {
- ""url"": ""http://example.com/externalDocs""
- }
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedSchemaWithRequiredPropertiesObject.SerializeAsV2(writer);
@@ -473,9 +420,7 @@ public void SerializeSchemaWRequiredPropertiesAsV2JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
}
}
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiSecuritySchemeTests.SerializeReferencedSecuritySchemeAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiSecuritySchemeTests.SerializeReferencedSecuritySchemeAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..1de104df5
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiSecuritySchemeTests.SerializeReferencedSecuritySchemeAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,5 @@
+{
+ "type": "openIdConnect",
+ "description": "description1",
+ "openIdConnectUrl": "https://example.com/openIdConnect"
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiSecuritySchemeTests.SerializeReferencedSecuritySchemeAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiSecuritySchemeTests.SerializeReferencedSecuritySchemeAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..5e7183dc8
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiSecuritySchemeTests.SerializeReferencedSecuritySchemeAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"type":"openIdConnect","description":"description1","openIdConnectUrl":"https://example.com/openIdConnect"}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiSecuritySchemeTests.SerializeReferencedSecuritySchemeAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiSecuritySchemeTests.SerializeReferencedSecuritySchemeAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..e2f0188e6
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiSecuritySchemeTests.SerializeReferencedSecuritySchemeAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,3 @@
+{
+ "sampleSecurityScheme": null
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiSecuritySchemeTests.SerializeReferencedSecuritySchemeAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiSecuritySchemeTests.SerializeReferencedSecuritySchemeAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..d74ff6ddf
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiSecuritySchemeTests.SerializeReferencedSecuritySchemeAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"sampleSecurityScheme":null}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiSecuritySchemeTests.cs b/test/Microsoft.OpenApi.Tests/Models/OpenApiSecuritySchemeTests.cs
index 5fb99cb95..b7871f51f 100644
--- a/test/Microsoft.OpenApi.Tests/Models/OpenApiSecuritySchemeTests.cs
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiSecuritySchemeTests.cs
@@ -5,16 +5,19 @@
using System.Collections.Generic;
using System.Globalization;
using System.IO;
+using System.Threading.Tasks;
using FluentAssertions;
using Microsoft.OpenApi.Extensions;
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.Writers;
+using VerifyXunit;
using Xunit;
using Xunit.Abstractions;
namespace Microsoft.OpenApi.Tests.Models
{
[Collection("DefaultSettings")]
+ [UsesVerify]
public class OpenApiSecuritySchemeTests
{
public static OpenApiSecurityScheme ApiKeySecurityScheme = new OpenApiSecurityScheme
@@ -297,16 +300,14 @@ public void SerializeOpenIdConnectSecuritySchemeAsV3JsonWorks()
actual.Should().Be(expected);
}
- [Fact]
- public void SerializeReferencedSecuritySchemeAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedSecuritySchemeAsV3JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""sampleSecurityScheme"": null
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
// Add dummy start object, value, and end object to allow SerializeAsV3 to output security scheme
@@ -319,23 +320,17 @@ public void SerializeReferencedSecuritySchemeAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedSecuritySchemeAsV3JsonWithoutReferenceWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedSecuritySchemeAsV3JsonWithoutReferenceWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""type"": ""openIdConnect"",
- ""description"": ""description1"",
- ""openIdConnectUrl"": ""https://example.com/openIdConnect""
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedSecurityScheme.SerializeAsV3WithoutReference(writer);
@@ -343,9 +338,7 @@ public void SerializeReferencedSecuritySchemeAsV3JsonWithoutReferenceWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
}
}
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..4e4df0f3b
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,9 @@
+{
+ "name": "pet",
+ "description": "Pets operations",
+ "externalDocs": {
+ "description": "Find more info here",
+ "url": "https://example.com"
+ },
+ "x-tag-extension": null
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..269fd9e7f
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"name":"pet","description":"Pets operations","externalDocs":{"description":"Find more info here","url":"https://example.com"},"x-tag-extension":null}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..8c38cc78d
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1 @@
+"pet"
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..8c38cc78d
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+"pet"
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..4e4df0f3b
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1,9 @@
+{
+ "name": "pet",
+ "description": "Pets operations",
+ "externalDocs": {
+ "description": "Find more info here",
+ "url": "https://example.com"
+ },
+ "x-tag-extension": null
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..269fd9e7f
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{"name":"pet","description":"Pets operations","externalDocs":{"description":"Find more info here","url":"https://example.com"},"x-tag-extension":null}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..8c38cc78d
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1 @@
+"pet"
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..8c38cc78d
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeAdvancedTagAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+"pet"
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeBasicTagAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeBasicTagAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..6f31cf5a2
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeBasicTagAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1 @@
+{ }
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeBasicTagAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeBasicTagAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..9e26dfeeb
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeBasicTagAsV2JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeBasicTagAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeBasicTagAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..6f31cf5a2
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeBasicTagAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1 @@
+{ }
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeBasicTagAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeBasicTagAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..9e26dfeeb
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeBasicTagAsV3JsonWithoutReferenceWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+{}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeReferencedTagAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeReferencedTagAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..8c38cc78d
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeReferencedTagAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1 @@
+"pet"
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeReferencedTagAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeReferencedTagAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..8c38cc78d
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeReferencedTagAsV2JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+"pet"
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeReferencedTagAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeReferencedTagAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
new file mode 100644
index 000000000..8c38cc78d
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeReferencedTagAsV3JsonWorksAsync_produceTerseOutput=False.verified.txt
@@ -0,0 +1 @@
+"pet"
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeReferencedTagAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeReferencedTagAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
new file mode 100644
index 000000000..8c38cc78d
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.SerializeReferencedTagAsV3JsonWorksAsync_produceTerseOutput=True.verified.txt
@@ -0,0 +1 @@
+"pet"
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.cs b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.cs
index 4920e165d..7e837bd52 100644
--- a/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.cs
+++ b/test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.cs
@@ -4,16 +4,19 @@
using System.Collections.Generic;
using System.Globalization;
using System.IO;
+using System.Threading.Tasks;
using FluentAssertions;
using Microsoft.OpenApi.Any;
using Microsoft.OpenApi.Interfaces;
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.Writers;
+using VerifyXunit;
using Xunit;
namespace Microsoft.OpenApi.Tests.Models
{
[Collection("DefaultSettings")]
+ [UsesVerify]
public class OpenApiTagTests
{
public static OpenApiTag BasicTag = new OpenApiTag();
@@ -45,13 +48,14 @@ public class OpenApiTagTests
}
};
- [Fact]
- public void SerializeBasicTagAsV3JsonWithoutReferenceWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeBasicTagAsV3JsonWithoutReferenceWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected = "{ }";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
BasicTag.SerializeAsV3WithoutReference(writer);
@@ -59,18 +63,17 @@ public void SerializeBasicTagAsV3JsonWithoutReferenceWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeBasicTagAsV2JsonWithoutReferenceWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeBasicTagAsV2JsonWithoutReferenceWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected = "{ }";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
BasicTag.SerializeAsV2WithoutReference(writer);
@@ -78,9 +81,7 @@ public void SerializeBasicTagAsV2JsonWithoutReferenceWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
[Fact]
@@ -120,22 +121,14 @@ public void SerializeBasicTagAsV2YamlWithoutReferenceWorks()
actual.Should().Be(expected);
}
- [Fact]
- public void SerializeAdvancedTagAsV3JsonWithoutReferenceWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeAdvancedTagAsV3JsonWithoutReferenceWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""name"": ""pet"",
- ""description"": ""Pets operations"",
- ""externalDocs"": {
- ""description"": ""Find more info here"",
- ""url"": ""https://example.com""
- },
- ""x-tag-extension"": null
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedTag.SerializeAsV3WithoutReference(writer);
@@ -143,27 +136,17 @@ public void SerializeAdvancedTagAsV3JsonWithoutReferenceWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeAdvancedTagAsV2JsonWithoutReferenceWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeAdvancedTagAsV2JsonWithoutReferenceWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
- var expected =
- @"{
- ""name"": ""pet"",
- ""description"": ""Pets operations"",
- ""externalDocs"": {
- ""description"": ""Find more info here"",
- ""url"": ""https://example.com""
- },
- ""x-tag-extension"": null
-}";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedTag.SerializeAsV2WithoutReference(writer);
@@ -171,9 +154,7 @@ public void SerializeAdvancedTagAsV2JsonWithoutReferenceWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
[Fact]
@@ -226,14 +207,14 @@ public void SerializeAdvancedTagAsV2YamlWithoutReferenceWorks()
actual.Should().Be(expected);
}
- [Fact]
- public void SerializeAdvancedTagAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeAdvancedTagAsV3JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
-
- var expected = @"""pet""";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedTag.SerializeAsV3(writer);
@@ -241,19 +222,17 @@ public void SerializeAdvancedTagAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeAdvancedTagAsV2JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeAdvancedTagAsV2JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
-
- var expected = @"""pet""";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
AdvancedTag.SerializeAsV2(writer);
@@ -261,9 +240,7 @@ public void SerializeAdvancedTagAsV2JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
[Fact]
@@ -306,14 +283,14 @@ public void SerializeAdvancedTagAsV2YamlWorks()
actual.Should().Be(expected);
}
- [Fact]
- public void SerializeReferencedTagAsV3JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedTagAsV3JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
-
- var expected = @"""pet""";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedTag.SerializeAsV3(writer);
@@ -321,19 +298,17 @@ public void SerializeReferencedTagAsV3JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
- [Fact]
- public void SerializeReferencedTagAsV2JsonWorks()
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public async Task SerializeReferencedTagAsV2JsonWorksAsync(bool produceTerseOutput)
{
// Arrange
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
- var writer = new OpenApiJsonWriter(outputStringWriter);
-
- var expected = @"""pet""";
+ var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
// Act
ReferencedTag.SerializeAsV2(writer);
@@ -341,9 +316,7 @@ public void SerializeReferencedTagAsV2JsonWorks()
var actual = outputStringWriter.GetStringBuilder().ToString();
// Assert
- actual = actual.MakeLineBreaksEnvironmentNeutral();
- expected = expected.MakeLineBreaksEnvironmentNeutral();
- actual.Should().Be(expected);
+ await Verifier.Verify(actual).UseParameters(produceTerseOutput);
}
[Fact]
diff --git a/test/Microsoft.OpenApi.Tests/PublicApi/PublicApi.approved.txt b/test/Microsoft.OpenApi.Tests/PublicApi/PublicApi.approved.txt
index 0b681a8ec..f700fee15 100755
--- a/test/Microsoft.OpenApi.Tests/PublicApi/PublicApi.approved.txt
+++ b/test/Microsoft.OpenApi.Tests/PublicApi/PublicApi.approved.txt
@@ -956,8 +956,9 @@ namespace Microsoft.OpenApi.Services
}
public static class OpenApiFilterService
{
- public static Microsoft.OpenApi.Models.OpenApiDocument CreateFilteredDocument(Microsoft.OpenApi.Models.OpenApiDocument source, System.Func predicate) { }
- public static System.Func CreatePredicate(string operationIds = null, string tags = null) { }
+ public static Microsoft.OpenApi.Models.OpenApiDocument CreateFilteredDocument(Microsoft.OpenApi.Models.OpenApiDocument source, System.Func predicate) { }
+ public static Microsoft.OpenApi.Services.OpenApiUrlTreeNode CreateOpenApiUrlTreeNode(System.Collections.Generic.Dictionary sources) { }
+ public static System.Func CreatePredicate(string operationIds = null, string tags = null, System.Collections.Generic.Dictionary> requestUrls = null, Microsoft.OpenApi.Models.OpenApiDocument source = null) { }
}
public class OpenApiReferenceError : Microsoft.OpenApi.Models.OpenApiError
{
@@ -984,8 +985,8 @@ namespace Microsoft.OpenApi.Services
protected OpenApiVisitorBase() { }
public Microsoft.OpenApi.Services.CurrentKeys CurrentKeys { get; }
public string PathString { get; }
- public void Enter(string segment) { }
- public void Exit() { }
+ public virtual void Enter(string segment) { }
+ public virtual void Exit() { }
public virtual void Visit(Microsoft.OpenApi.Interfaces.IOpenApiExtensible openApiExtensible) { }
public virtual void Visit(Microsoft.OpenApi.Interfaces.IOpenApiExtension openApiExtension) { }
public virtual void Visit(Microsoft.OpenApi.Interfaces.IOpenApiReferenceable referenceable) { }
@@ -1051,7 +1052,7 @@ namespace Microsoft.OpenApi.Services
}
public class OperationSearch : Microsoft.OpenApi.Services.OpenApiVisitorBase
{
- public OperationSearch(System.Func predicate) { }
+ public OperationSearch(System.Func predicate) { }
public System.Collections.Generic.IList SearchResults { get; }
public override void Visit(Microsoft.OpenApi.Models.OpenApiOperation operation) { }
public override void Visit(System.Collections.Generic.IList parameters) { }
@@ -1253,10 +1254,12 @@ namespace Microsoft.OpenApi.Writers
public class OpenApiJsonWriter : Microsoft.OpenApi.Writers.OpenApiWriterBase
{
public OpenApiJsonWriter(System.IO.TextWriter textWriter) { }
+ public OpenApiJsonWriter(System.IO.TextWriter textWriter, Microsoft.OpenApi.Writers.OpenApiJsonWriterSettings settings) { }
public OpenApiJsonWriter(System.IO.TextWriter textWriter, Microsoft.OpenApi.Writers.OpenApiWriterSettings settings) { }
protected override int BaseIndentation { get; }
public override void WriteEndArray() { }
public override void WriteEndObject() { }
+ public override void WriteIndentation() { }
public override void WriteNull() { }
public override void WritePropertyName(string name) { }
public override void WriteRaw(string value) { }
@@ -1265,6 +1268,11 @@ namespace Microsoft.OpenApi.Writers
public override void WriteValue(string value) { }
protected override void WriteValueSeparator() { }
}
+ public class OpenApiJsonWriterSettings : Microsoft.OpenApi.Writers.OpenApiWriterSettings
+ {
+ public OpenApiJsonWriterSettings() { }
+ public bool Terse { get; set; }
+ }
public static class OpenApiWriterAnyExtensions
{
public static void WriteAny(this Microsoft.OpenApi.Writers.IOpenApiWriter writer, T any)
diff --git a/test/Microsoft.OpenApi.Tests/Services/OpenApiFilterServiceTests.cs b/test/Microsoft.OpenApi.Tests/Services/OpenApiFilterServiceTests.cs
index ab65ed744..f470b8577 100644
--- a/test/Microsoft.OpenApi.Tests/Services/OpenApiFilterServiceTests.cs
+++ b/test/Microsoft.OpenApi.Tests/Services/OpenApiFilterServiceTests.cs
@@ -2,9 +2,11 @@
// Licensed under the MIT license.
using System;
+using System.IO;
+using Microsoft.OpenApi.Hidi;
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.Services;
-using OpenAPIService.Test;
+using Microsoft.OpenApi.Tests.UtilityFiles;
using Xunit;
namespace Microsoft.OpenApi.Tests.Services
@@ -42,12 +44,48 @@ public void ReturnFilteredOpenApiDocumentBasedOnOperationIdsAndTags(string opera
Assert.Equal(expectedPathCount, subsetOpenApiDocument.Paths.Count);
}
+ [Fact]
+ public void ReturnFilteredOpenApiDocumentBasedOnPostmanCollection()
+ {
+ // Arrange
+ var filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "UtilityFiles\\postmanCollection_ver2.json");
+ var fileInput = new FileInfo(filePath);
+ var stream = fileInput.OpenRead();
+
+ // Act
+ var requestUrls = OpenApiService.ParseJsonCollectionFile(stream);
+ var predicate = OpenApiFilterService.CreatePredicate(requestUrls: requestUrls, source: _openApiDocumentMock);
+ var subsetOpenApiDocument = OpenApiFilterService.CreateFilteredDocument(_openApiDocumentMock, predicate);
+
+ // Assert
+ Assert.NotNull(subsetOpenApiDocument);
+ Assert.NotEmpty(subsetOpenApiDocument.Paths);
+ Assert.Equal(3, subsetOpenApiDocument.Paths.Count);
+ }
+
+ [Fact]
+ public void ThrowsExceptionWhenUrlsInCollectionAreMissingFromSourceDocument()
+ {
+ // Arrange
+ var filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "UtilityFiles\\postmanCollection_ver1.json");
+ var fileInput = new FileInfo(filePath);
+ var stream = fileInput.OpenRead();
+
+ // Act
+ var requestUrls = OpenApiService.ParseJsonCollectionFile(stream);
+
+ // Assert
+ var message = Assert.Throws(() =>
+ OpenApiFilterService.CreatePredicate(requestUrls: requestUrls, source: _openApiDocumentMock)).Message;
+ Assert.Equal("The urls in the Postman collection supplied could not be found.", message);
+ }
+
[Fact]
public void ThrowsInvalidOperationExceptionInCreatePredicateWhenInvalidArgumentsArePassed()
{
// Act and Assert
var message1 = Assert.Throws(() => OpenApiFilterService.CreatePredicate(null, null)).Message;
- Assert.Equal("Either operationId(s) or tag(s) need to be specified.", message1);
+ Assert.Equal("Either operationId(s),tag(s) or Postman collection need to be specified.", message1);
var message2 = Assert.Throws(() => OpenApiFilterService.CreatePredicate("users.user.ListUser", "users.user")).Message;
Assert.Equal("Cannot specify both operationIds and tags at the same time.", message2);
diff --git a/test/Microsoft.OpenApi.Tests/Documents/OpenApiDocumentMock.cs b/test/Microsoft.OpenApi.Tests/UtilityFiles/OpenApiDocumentMock.cs
similarity index 99%
rename from test/Microsoft.OpenApi.Tests/Documents/OpenApiDocumentMock.cs
rename to test/Microsoft.OpenApi.Tests/UtilityFiles/OpenApiDocumentMock.cs
index 676bf8e65..d21fccb9a 100644
--- a/test/Microsoft.OpenApi.Tests/Documents/OpenApiDocumentMock.cs
+++ b/test/Microsoft.OpenApi.Tests/UtilityFiles/OpenApiDocumentMock.cs
@@ -1,12 +1,13 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
+using System.Collections.Generic;
+using System.Security.Policy;
using Microsoft.OpenApi.Any;
using Microsoft.OpenApi.Interfaces;
using Microsoft.OpenApi.Models;
-using System.Collections.Generic;
-namespace OpenAPIService.Test
+namespace Microsoft.OpenApi.Tests.UtilityFiles
{
///
/// Mock class that creates a sample OpenAPI document.
@@ -28,6 +29,13 @@ public static OpenApiDocument CreateOpenApiDocument()
Title = "People",
Version = "v1.0"
},
+ Servers = new List
+ {
+ new OpenApiServer
+ {
+ Url = "https://graph.microsoft.com/v1.0"
+ }
+ },
Paths = new OpenApiPaths()
{
["/"] = new OpenApiPathItem() // root path
@@ -723,7 +731,6 @@ public static OpenApiDocument CreateOpenApiDocument()
}
}
};
-
return document;
}
}
diff --git a/test/Microsoft.OpenApi.Tests/UtilityFiles/postmanCollection_ver1.json b/test/Microsoft.OpenApi.Tests/UtilityFiles/postmanCollection_ver1.json
new file mode 100644
index 000000000..151d184e1
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/UtilityFiles/postmanCollection_ver1.json
@@ -0,0 +1,102 @@
+{
+ "info": {
+ "_postman_id": "0017059134807617005",
+ "name": "Graph-Collection",
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
+ },
+ "item": [
+ {
+ "name": "agreementAcceptances-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/agreementAcceptances",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "agreementAcceptances"
+ ]
+ }
+ }
+ },
+ {
+ "name": "agreementAcceptances-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/agreementAcceptances",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "agreementAcceptances"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{agreementAcceptance-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/agreementAcceptances/{agreementAcceptance-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "agreementAcceptances",
+ "{agreementAcceptance-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{agreementAcceptance-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/agreementAcceptances/{agreementAcceptance-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "agreementAcceptances",
+ "{agreementAcceptance-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{agreementAcceptance-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/agreementAcceptances/{agreementAcceptance-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "agreementAcceptances",
+ "{agreementAcceptance-id}"
+ ]
+ }
+ }
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/UtilityFiles/postmanCollection_ver2.json b/test/Microsoft.OpenApi.Tests/UtilityFiles/postmanCollection_ver2.json
new file mode 100644
index 000000000..003577738
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/UtilityFiles/postmanCollection_ver2.json
@@ -0,0 +1,23698 @@
+{
+ "info": {
+ "_postman_id": "43402ca3-f018-7c9b-2315-f176d9b171a3",
+ "name": "Graph-Collection",
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
+ },
+ "item": [
+ {
+ "name": "users-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users"
+ ]
+ }
+ }
+ },
+ {
+ "name": "users-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{user-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{user-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{user-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "activities-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/activities",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "activities"
+ ]
+ }
+ }
+ },
+ {
+ "name": "activities-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/activities",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "activities"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{userActivity-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/activities/{userActivity-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "activities",
+ "{userActivity-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{userActivity-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/activities/{userActivity-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "activities",
+ "{userActivity-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{userActivity-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/activities/{userActivity-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "activities",
+ "{userActivity-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "historyItems-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/activities/{userActivity-id}/historyItems",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "activities",
+ "{userActivity-id}",
+ "historyItems"
+ ]
+ }
+ }
+ },
+ {
+ "name": "historyItems-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/activities/{userActivity-id}/historyItems",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "activities",
+ "{userActivity-id}",
+ "historyItems"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{activityHistoryItem-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/activities/{userActivity-id}/historyItems/{activityHistoryItem-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "activities",
+ "{userActivity-id}",
+ "historyItems",
+ "{activityHistoryItem-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{activityHistoryItem-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/activities/{userActivity-id}/historyItems/{activityHistoryItem-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "activities",
+ "{userActivity-id}",
+ "historyItems",
+ "{activityHistoryItem-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{activityHistoryItem-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/activities/{userActivity-id}/historyItems/{activityHistoryItem-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "activities",
+ "{userActivity-id}",
+ "historyItems",
+ "{activityHistoryItem-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "activity-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/activities/{userActivity-id}/historyItems/{activityHistoryItem-id}/activity",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "activities",
+ "{userActivity-id}",
+ "historyItems",
+ "{activityHistoryItem-id}",
+ "activity"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/activities/{userActivity-id}/historyItems/{activityHistoryItem-id}/activity/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "activities",
+ "{userActivity-id}",
+ "historyItems",
+ "{activityHistoryItem-id}",
+ "activity",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/activities/{userActivity-id}/historyItems/{activityHistoryItem-id}/activity/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "activities",
+ "{userActivity-id}",
+ "historyItems",
+ "{activityHistoryItem-id}",
+ "activity",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/activities/{userActivity-id}/historyItems/{activityHistoryItem-id}/activity/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "activities",
+ "{userActivity-id}",
+ "historyItems",
+ "{activityHistoryItem-id}",
+ "activity",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "agreementAcceptances-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/agreementAcceptances",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "agreementAcceptances"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/agreementAcceptances/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "agreementAcceptances",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/agreementAcceptances/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "agreementAcceptances",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "appRoleAssignments-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/appRoleAssignments",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "appRoleAssignments"
+ ]
+ }
+ }
+ },
+ {
+ "name": "appRoleAssignments-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/appRoleAssignments",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "appRoleAssignments"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{appRoleAssignment-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/appRoleAssignments/{appRoleAssignment-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "appRoleAssignments",
+ "{appRoleAssignment-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{appRoleAssignment-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/appRoleAssignments/{appRoleAssignment-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "appRoleAssignments",
+ "{appRoleAssignment-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{appRoleAssignment-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/appRoleAssignments/{appRoleAssignment-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "appRoleAssignments",
+ "{appRoleAssignment-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "authentication-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication"
+ ]
+ }
+ }
+ },
+ {
+ "name": "authentication-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication"
+ ]
+ }
+ }
+ },
+ {
+ "name": "authentication-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication"
+ ]
+ }
+ }
+ },
+ {
+ "name": "fido2Methods-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/fido2Methods",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "fido2Methods"
+ ]
+ }
+ }
+ },
+ {
+ "name": "fido2Methods-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/fido2Methods",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "fido2Methods"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{fido2AuthenticationMethod-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/fido2Methods/{fido2AuthenticationMethod-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "fido2Methods",
+ "{fido2AuthenticationMethod-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{fido2AuthenticationMethod-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/fido2Methods/{fido2AuthenticationMethod-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "fido2Methods",
+ "{fido2AuthenticationMethod-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{fido2AuthenticationMethod-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/fido2Methods/{fido2AuthenticationMethod-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "fido2Methods",
+ "{fido2AuthenticationMethod-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "methods-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/methods",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "methods"
+ ]
+ }
+ }
+ },
+ {
+ "name": "methods-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/methods",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "methods"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{authenticationMethod-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/methods/{authenticationMethod-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "methods",
+ "{authenticationMethod-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{authenticationMethod-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/methods/{authenticationMethod-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "methods",
+ "{authenticationMethod-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{authenticationMethod-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/methods/{authenticationMethod-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "methods",
+ "{authenticationMethod-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "microsoftAuthenticatorMethods-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/microsoftAuthenticatorMethods",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "microsoftAuthenticatorMethods"
+ ]
+ }
+ }
+ },
+ {
+ "name": "microsoftAuthenticatorMethods-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/microsoftAuthenticatorMethods",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "microsoftAuthenticatorMethods"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{microsoftAuthenticatorAuthenticationMethod-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/microsoftAuthenticatorMethods/{microsoftAuthenticatorAuthenticationMethod-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "microsoftAuthenticatorMethods",
+ "{microsoftAuthenticatorAuthenticationMethod-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{microsoftAuthenticatorAuthenticationMethod-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/microsoftAuthenticatorMethods/{microsoftAuthenticatorAuthenticationMethod-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "microsoftAuthenticatorMethods",
+ "{microsoftAuthenticatorAuthenticationMethod-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{microsoftAuthenticatorAuthenticationMethod-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/microsoftAuthenticatorMethods/{microsoftAuthenticatorAuthenticationMethod-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "microsoftAuthenticatorMethods",
+ "{microsoftAuthenticatorAuthenticationMethod-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "device-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/microsoftAuthenticatorMethods/{microsoftAuthenticatorAuthenticationMethod-id}/device",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "microsoftAuthenticatorMethods",
+ "{microsoftAuthenticatorAuthenticationMethod-id}",
+ "device"
+ ]
+ }
+ }
+ },
+ {
+ "name": "device-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/microsoftAuthenticatorMethods/{microsoftAuthenticatorAuthenticationMethod-id}/device",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "microsoftAuthenticatorMethods",
+ "{microsoftAuthenticatorAuthenticationMethod-id}",
+ "device"
+ ]
+ }
+ }
+ },
+ {
+ "name": "device-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/microsoftAuthenticatorMethods/{microsoftAuthenticatorAuthenticationMethod-id}/device",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "microsoftAuthenticatorMethods",
+ "{microsoftAuthenticatorAuthenticationMethod-id}",
+ "device"
+ ]
+ }
+ }
+ },
+ {
+ "name": "windowsHelloForBusinessMethods-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/windowsHelloForBusinessMethods",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "windowsHelloForBusinessMethods"
+ ]
+ }
+ }
+ },
+ {
+ "name": "windowsHelloForBusinessMethods-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/windowsHelloForBusinessMethods",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "windowsHelloForBusinessMethods"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{windowsHelloForBusinessAuthenticationMethod-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/windowsHelloForBusinessMethods/{windowsHelloForBusinessAuthenticationMethod-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "windowsHelloForBusinessMethods",
+ "{windowsHelloForBusinessAuthenticationMethod-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{windowsHelloForBusinessAuthenticationMethod-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/windowsHelloForBusinessMethods/{windowsHelloForBusinessAuthenticationMethod-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "windowsHelloForBusinessMethods",
+ "{windowsHelloForBusinessAuthenticationMethod-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{windowsHelloForBusinessAuthenticationMethod-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/windowsHelloForBusinessMethods/{windowsHelloForBusinessAuthenticationMethod-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "windowsHelloForBusinessMethods",
+ "{windowsHelloForBusinessAuthenticationMethod-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "device-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/windowsHelloForBusinessMethods/{windowsHelloForBusinessAuthenticationMethod-id}/device",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "windowsHelloForBusinessMethods",
+ "{windowsHelloForBusinessAuthenticationMethod-id}",
+ "device"
+ ]
+ }
+ }
+ },
+ {
+ "name": "device-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/windowsHelloForBusinessMethods/{windowsHelloForBusinessAuthenticationMethod-id}/device",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "windowsHelloForBusinessMethods",
+ "{windowsHelloForBusinessAuthenticationMethod-id}",
+ "device"
+ ]
+ }
+ }
+ },
+ {
+ "name": "device-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/authentication/windowsHelloForBusinessMethods/{windowsHelloForBusinessAuthenticationMethod-id}/device",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "authentication",
+ "windowsHelloForBusinessMethods",
+ "{windowsHelloForBusinessAuthenticationMethod-id}",
+ "device"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendar-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendar-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendar-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarPermissions-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarPermissions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarPermissions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarPermissions-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarPermissions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarPermissions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendarPermission-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarPermissions/{calendarPermission-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarPermissions",
+ "{calendarPermission-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendarPermission-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarPermissions/{calendarPermission-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarPermissions",
+ "{calendarPermission-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendarPermission-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarPermissions/{calendarPermission-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarPermissions",
+ "{calendarPermission-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarView-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarView-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "attachments-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/attachments",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "attachments"
+ ]
+ }
+ }
+ },
+ {
+ "name": "attachments-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/attachments",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "attachments"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{attachment-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/attachments/{attachment-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "attachments",
+ "{attachment-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{attachment-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/attachments/{attachment-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "attachments",
+ "{attachment-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{attachment-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/attachments/{attachment-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "attachments",
+ "{attachment-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendar-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/calendar",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "calendar"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendar-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/calendar",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "calendar"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendar-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/calendar",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "calendar"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "instances-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/instances",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "instances"
+ ]
+ }
+ }
+ },
+ {
+ "name": "instances-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/instances",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "instances"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/instances/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "instances",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/instances/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "instances",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/instances/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "instances",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{multiValueLegacyExtendedProperty-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "multiValueExtendedProperties",
+ "{multiValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{multiValueLegacyExtendedProperty-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "multiValueExtendedProperties",
+ "{multiValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{multiValueLegacyExtendedProperty-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "multiValueExtendedProperties",
+ "{multiValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{singleValueLegacyExtendedProperty-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "singleValueExtendedProperties",
+ "{singleValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{singleValueLegacyExtendedProperty-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "singleValueExtendedProperties",
+ "{singleValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{singleValueLegacyExtendedProperty-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/calendarView/{event-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "calendarView",
+ "{event-id}",
+ "singleValueExtendedProperties",
+ "{singleValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "events-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/events",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "events"
+ ]
+ }
+ }
+ },
+ {
+ "name": "events-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/events",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "events"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/events/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "events",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/events/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "events",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/events/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "events",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{multiValueLegacyExtendedProperty-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "multiValueExtendedProperties",
+ "{multiValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{multiValueLegacyExtendedProperty-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "multiValueExtendedProperties",
+ "{multiValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{multiValueLegacyExtendedProperty-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "multiValueExtendedProperties",
+ "{multiValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{singleValueLegacyExtendedProperty-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "singleValueExtendedProperties",
+ "{singleValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{singleValueLegacyExtendedProperty-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "singleValueExtendedProperties",
+ "{singleValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{singleValueLegacyExtendedProperty-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendar/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendar",
+ "singleValueExtendedProperties",
+ "{singleValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarGroups-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarGroups-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendarGroup-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendarGroup-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendarGroup-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendars-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendars-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendar-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendar-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendar-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarPermissions-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarPermissions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarPermissions-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarPermissions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendarPermission-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarPermissions",
+ "{calendarPermission-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendarPermission-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarPermissions",
+ "{calendarPermission-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendarPermission-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarPermissions",
+ "{calendarPermission-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarView-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarView-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "attachments-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/attachments",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "attachments"
+ ]
+ }
+ }
+ },
+ {
+ "name": "attachments-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/attachments",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "attachments"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{attachment-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/attachments/{attachment-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "attachments",
+ "{attachment-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{attachment-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/attachments/{attachment-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "attachments",
+ "{attachment-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{attachment-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/attachments/{attachment-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "attachments",
+ "{attachment-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendar-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/calendar",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendar-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/calendar",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendar-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/calendar",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "instances-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/instances",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "instances"
+ ]
+ }
+ }
+ },
+ {
+ "name": "instances-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/instances",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "instances"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/instances/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "instances",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/instances/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "instances",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/instances/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "instances",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{multiValueLegacyExtendedProperty-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "multiValueExtendedProperties",
+ "{multiValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{multiValueLegacyExtendedProperty-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "multiValueExtendedProperties",
+ "{multiValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{multiValueLegacyExtendedProperty-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "multiValueExtendedProperties",
+ "{multiValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{singleValueLegacyExtendedProperty-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "singleValueExtendedProperties",
+ "{singleValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{singleValueLegacyExtendedProperty-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "singleValueExtendedProperties",
+ "{singleValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{singleValueLegacyExtendedProperty-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/{event-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "singleValueExtendedProperties",
+ "{singleValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "events-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "events"
+ ]
+ }
+ }
+ },
+ {
+ "name": "events-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "events"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "events",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "events",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "events",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{multiValueLegacyExtendedProperty-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "multiValueExtendedProperties",
+ "{multiValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{multiValueLegacyExtendedProperty-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "multiValueExtendedProperties",
+ "{multiValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{multiValueLegacyExtendedProperty-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "multiValueExtendedProperties",
+ "{multiValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{singleValueLegacyExtendedProperty-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "singleValueExtendedProperties",
+ "{singleValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{singleValueLegacyExtendedProperty-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "singleValueExtendedProperties",
+ "{singleValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{singleValueLegacyExtendedProperty-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarGroups",
+ "{calendarGroup-id}",
+ "calendars",
+ "{calendar-id}",
+ "singleValueExtendedProperties",
+ "{singleValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendars-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendars-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendar-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendar-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendar-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarPermissions-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarPermissions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarPermissions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarPermissions-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarPermissions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarPermissions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendarPermission-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarPermissions",
+ "{calendarPermission-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendarPermission-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarPermissions",
+ "{calendarPermission-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendarPermission-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarPermissions",
+ "{calendarPermission-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarView-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarView-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "attachments-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/attachments",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "attachments"
+ ]
+ }
+ }
+ },
+ {
+ "name": "attachments-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/attachments",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "attachments"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{attachment-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/attachments/{attachment-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "attachments",
+ "{attachment-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{attachment-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/attachments/{attachment-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "attachments",
+ "{attachment-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{attachment-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/attachments/{attachment-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "attachments",
+ "{attachment-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendar-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/calendar",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendar-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/calendar",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendar-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/calendar",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "instances-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/instances",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "instances"
+ ]
+ }
+ }
+ },
+ {
+ "name": "instances-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/instances",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "instances"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/instances/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "instances",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/instances/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "instances",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/instances/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "instances",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/calendarView/{event-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "calendarView",
+ "{event-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "events-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/events",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "events"
+ ]
+ }
+ }
+ },
+ {
+ "name": "events-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/events",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "events"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/events/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "events",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/events/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "events",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/events/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "events",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{multiValueLegacyExtendedProperty-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "multiValueExtendedProperties",
+ "{multiValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{multiValueLegacyExtendedProperty-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "multiValueExtendedProperties",
+ "{multiValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{multiValueLegacyExtendedProperty-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "multiValueExtendedProperties",
+ "{multiValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{singleValueLegacyExtendedProperty-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "singleValueExtendedProperties",
+ "{singleValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{singleValueLegacyExtendedProperty-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "singleValueExtendedProperties",
+ "{singleValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{singleValueLegacyExtendedProperty-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendars/{calendar-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendars",
+ "{calendar-id}",
+ "singleValueExtendedProperties",
+ "{singleValueLegacyExtendedProperty-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarView-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarView-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "attachments-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/attachments",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "attachments"
+ ]
+ }
+ }
+ },
+ {
+ "name": "attachments-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/attachments",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "attachments"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{attachment-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/attachments/{attachment-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "attachments",
+ "{attachment-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{attachment-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/attachments/{attachment-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "attachments",
+ "{attachment-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{attachment-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/attachments/{attachment-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "attachments",
+ "{attachment-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendar-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendar-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendar-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarPermissions-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/calendarPermissions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "calendarPermissions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarPermissions-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/calendarPermissions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "calendarPermissions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendarPermission-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/calendarPermissions/{calendarPermission-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "calendarPermissions",
+ "{calendarPermission-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendarPermission-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/calendarPermissions/{calendarPermission-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "calendarPermissions",
+ "{calendarPermission-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{calendarPermission-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/calendarPermissions/{calendarPermission-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "calendarPermissions",
+ "{calendarPermission-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarView-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/calendarView",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "calendarView"
+ ]
+ }
+ }
+ },
+ {
+ "name": "calendarView-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/calendarView",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "calendarView"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/calendarView/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "calendarView",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/calendarView/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "calendarView",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/calendarView/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "calendarView",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "events-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/events",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "events"
+ ]
+ }
+ }
+ },
+ {
+ "name": "events-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/events",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "events"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/events/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "events",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/events/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "events",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/events/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "events",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/calendar/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "calendar",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "instances-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/instances",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "instances"
+ ]
+ }
+ }
+ },
+ {
+ "name": "instances-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/instances",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "instances"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/instances/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "instances",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/instances/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "instances",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/instances/{event-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "instances",
+ "{event-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/calendarView/{event-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "calendarView",
+ "{event-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "chats-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/chats",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "chats"
+ ]
+ }
+ }
+ },
+ {
+ "name": "chats-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/chats",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "chats"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{chat-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/chats/{chat-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "chats",
+ "{chat-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{chat-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/chats/{chat-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "chats",
+ "{chat-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{chat-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/chats/{chat-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "chats",
+ "{chat-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "contactFolders-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders"
+ ]
+ }
+ }
+ },
+ {
+ "name": "contactFolders-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{contactFolder-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{contactFolder-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{contactFolder-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "childFolders-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/childFolders",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "childFolders"
+ ]
+ }
+ }
+ },
+ {
+ "name": "childFolders-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/childFolders",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "childFolders"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{contactFolder-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/childFolders/{contactFolder-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "childFolders",
+ "{contactFolder-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{contactFolder-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/childFolders/{contactFolder-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "childFolders",
+ "{contactFolder-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{contactFolder-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/childFolders/{contactFolder-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "childFolders",
+ "{contactFolder-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "contacts-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/contacts",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "contacts"
+ ]
+ }
+ }
+ },
+ {
+ "name": "contacts-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/contacts",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "contacts"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{contact-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/contacts/{contact-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "contacts",
+ "{contact-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{contact-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/contacts/{contact-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "contacts",
+ "{contact-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{contact-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/contacts/{contact-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "contacts",
+ "{contact-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/contacts/{contact-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "contacts",
+ "{contact-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/contacts/{contact-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "contacts",
+ "{contact-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/contacts/{contact-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "contacts",
+ "{contact-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/contacts/{contact-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "contacts",
+ "{contact-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "photo-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/contacts/{contact-id}/photo",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "contacts",
+ "{contact-id}",
+ "photo"
+ ]
+ }
+ }
+ },
+ {
+ "name": "photo-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/contacts/{contact-id}/photo",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "contacts",
+ "{contact-id}",
+ "photo"
+ ]
+ }
+ }
+ },
+ {
+ "name": "photo-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/contacts/{contact-id}/photo",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "contacts",
+ "{contact-id}",
+ "photo"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$value-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/contacts/{contact-id}/photo/$value",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "contacts",
+ "{contact-id}",
+ "photo",
+ "$value"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$value-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/contacts/{contact-id}/photo/$value",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "contacts",
+ "{contact-id}",
+ "photo",
+ "$value"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/contacts/{contact-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "contacts",
+ "{contact-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/contacts/{contact-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "contacts",
+ "{contact-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contactFolders/{contactFolder-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contactFolders",
+ "{contactFolder-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "contacts-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contacts",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contacts"
+ ]
+ }
+ }
+ },
+ {
+ "name": "contacts-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contacts",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contacts"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{contact-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contacts/{contact-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contacts",
+ "{contact-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{contact-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contacts/{contact-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contacts",
+ "{contact-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{contact-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contacts/{contact-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contacts",
+ "{contact-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contacts/{contact-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contacts",
+ "{contact-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contacts/{contact-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contacts",
+ "{contact-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contacts/{contact-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contacts",
+ "{contact-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contacts/{contact-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contacts",
+ "{contact-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "photo-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contacts/{contact-id}/photo",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contacts",
+ "{contact-id}",
+ "photo"
+ ]
+ }
+ }
+ },
+ {
+ "name": "photo-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contacts/{contact-id}/photo",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contacts",
+ "{contact-id}",
+ "photo"
+ ]
+ }
+ }
+ },
+ {
+ "name": "photo-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contacts/{contact-id}/photo",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contacts",
+ "{contact-id}",
+ "photo"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$value-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contacts/{contact-id}/photo/$value",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contacts",
+ "{contact-id}",
+ "photo",
+ "$value"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$value-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contacts/{contact-id}/photo/$value",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contacts",
+ "{contact-id}",
+ "photo",
+ "$value"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contacts/{contact-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contacts",
+ "{contact-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/contacts/{contact-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "contacts",
+ "{contact-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "createdObjects-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/createdObjects",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "createdObjects"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/createdObjects/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "createdObjects",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/createdObjects/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "createdObjects",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "deviceManagementTroubleshootingEvents-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/deviceManagementTroubleshootingEvents",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "deviceManagementTroubleshootingEvents"
+ ]
+ }
+ }
+ },
+ {
+ "name": "deviceManagementTroubleshootingEvents-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/deviceManagementTroubleshootingEvents",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "deviceManagementTroubleshootingEvents"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{deviceManagementTroubleshootingEvent-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/deviceManagementTroubleshootingEvents/{deviceManagementTroubleshootingEvent-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "deviceManagementTroubleshootingEvents",
+ "{deviceManagementTroubleshootingEvent-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{deviceManagementTroubleshootingEvent-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/deviceManagementTroubleshootingEvents/{deviceManagementTroubleshootingEvent-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "deviceManagementTroubleshootingEvents",
+ "{deviceManagementTroubleshootingEvent-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{deviceManagementTroubleshootingEvent-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/deviceManagementTroubleshootingEvents/{deviceManagementTroubleshootingEvent-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "deviceManagementTroubleshootingEvents",
+ "{deviceManagementTroubleshootingEvent-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "directReports-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/directReports",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "directReports"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/directReports/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "directReports",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/directReports/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "directReports",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "drive-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/drive",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "drive"
+ ]
+ }
+ }
+ },
+ {
+ "name": "drive-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/drive",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "drive"
+ ]
+ }
+ }
+ },
+ {
+ "name": "drive-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/drive",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "drive"
+ ]
+ }
+ }
+ },
+ {
+ "name": "drives-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/drives",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "drives"
+ ]
+ }
+ }
+ },
+ {
+ "name": "drives-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/drives",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "drives"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{drive-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/drives/{drive-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "drives",
+ "{drive-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{drive-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/drives/{drive-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "drives",
+ "{drive-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{drive-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/drives/{drive-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "drives",
+ "{drive-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "events-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/events",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "events"
+ ]
+ }
+ }
+ },
+ {
+ "name": "events-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/events",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "events"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/events/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "events",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/events/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "events",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{event-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/events/{event-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "events",
+ "{event-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "followedSites-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/followedSites",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "followedSites"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/followedSites/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "followedSites",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/followedSites/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "followedSites",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "inferenceClassification-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/inferenceClassification",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "inferenceClassification"
+ ]
+ }
+ }
+ },
+ {
+ "name": "inferenceClassification-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/inferenceClassification",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "inferenceClassification"
+ ]
+ }
+ }
+ },
+ {
+ "name": "inferenceClassification-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/inferenceClassification",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "inferenceClassification"
+ ]
+ }
+ }
+ },
+ {
+ "name": "overrides-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/inferenceClassification/overrides",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "inferenceClassification",
+ "overrides"
+ ]
+ }
+ }
+ },
+ {
+ "name": "overrides-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/inferenceClassification/overrides",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "inferenceClassification",
+ "overrides"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{inferenceClassificationOverride-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/inferenceClassification/overrides/{inferenceClassificationOverride-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "inferenceClassification",
+ "overrides",
+ "{inferenceClassificationOverride-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{inferenceClassificationOverride-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/inferenceClassification/overrides/{inferenceClassificationOverride-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "inferenceClassification",
+ "overrides",
+ "{inferenceClassificationOverride-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{inferenceClassificationOverride-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/inferenceClassification/overrides/{inferenceClassificationOverride-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "inferenceClassification",
+ "overrides",
+ "{inferenceClassificationOverride-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "insights-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights"
+ ]
+ }
+ }
+ },
+ {
+ "name": "insights-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights"
+ ]
+ }
+ }
+ },
+ {
+ "name": "insights-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights"
+ ]
+ }
+ }
+ },
+ {
+ "name": "shared-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/shared",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "shared"
+ ]
+ }
+ }
+ },
+ {
+ "name": "shared-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/shared",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "shared"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sharedInsight-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/shared/{sharedInsight-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "shared",
+ "{sharedInsight-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sharedInsight-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/shared/{sharedInsight-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "shared",
+ "{sharedInsight-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sharedInsight-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/shared/{sharedInsight-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "shared",
+ "{sharedInsight-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "lastSharedMethod-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/shared/{sharedInsight-id}/lastSharedMethod",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "shared",
+ "{sharedInsight-id}",
+ "lastSharedMethod"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/shared/{sharedInsight-id}/lastSharedMethod/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "shared",
+ "{sharedInsight-id}",
+ "lastSharedMethod",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/shared/{sharedInsight-id}/lastSharedMethod/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "shared",
+ "{sharedInsight-id}",
+ "lastSharedMethod",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/shared/{sharedInsight-id}/lastSharedMethod/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "shared",
+ "{sharedInsight-id}",
+ "lastSharedMethod",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "resource-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/shared/{sharedInsight-id}/resource",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "shared",
+ "{sharedInsight-id}",
+ "resource"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/shared/{sharedInsight-id}/resource/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "shared",
+ "{sharedInsight-id}",
+ "resource",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/shared/{sharedInsight-id}/resource/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "shared",
+ "{sharedInsight-id}",
+ "resource",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/shared/{sharedInsight-id}/resource/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "shared",
+ "{sharedInsight-id}",
+ "resource",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "trending-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/trending",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "trending"
+ ]
+ }
+ }
+ },
+ {
+ "name": "trending-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/trending",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "trending"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{trending-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/trending/{trending-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "trending",
+ "{trending-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{trending-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/trending/{trending-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "trending",
+ "{trending-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{trending-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/trending/{trending-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "trending",
+ "{trending-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "resource-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/trending/{trending-id}/resource",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "trending",
+ "{trending-id}",
+ "resource"
+ ]
+ }
+ }
+ },
+ {
+ "name": "used-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/used",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "used"
+ ]
+ }
+ }
+ },
+ {
+ "name": "used-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/used",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "used"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{usedInsight-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/used/{usedInsight-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "used",
+ "{usedInsight-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{usedInsight-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/used/{usedInsight-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "used",
+ "{usedInsight-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{usedInsight-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/used/{usedInsight-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "used",
+ "{usedInsight-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "resource-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/insights/used/{usedInsight-id}/resource",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "insights",
+ "used",
+ "{usedInsight-id}",
+ "resource"
+ ]
+ }
+ }
+ },
+ {
+ "name": "joinedTeams-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/joinedTeams",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "joinedTeams"
+ ]
+ }
+ }
+ },
+ {
+ "name": "joinedTeams-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/joinedTeams",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "joinedTeams"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{team-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/joinedTeams/{team-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "joinedTeams",
+ "{team-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{team-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/joinedTeams/{team-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "joinedTeams",
+ "{team-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{team-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/joinedTeams/{team-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "joinedTeams",
+ "{team-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "licenseDetails-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/licenseDetails",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "licenseDetails"
+ ]
+ }
+ }
+ },
+ {
+ "name": "licenseDetails-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/licenseDetails",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "licenseDetails"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{licenseDetails-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/licenseDetails/{licenseDetails-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "licenseDetails",
+ "{licenseDetails-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{licenseDetails-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/licenseDetails/{licenseDetails-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "licenseDetails",
+ "{licenseDetails-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{licenseDetails-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/licenseDetails/{licenseDetails-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "licenseDetails",
+ "{licenseDetails-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "mailFolders-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders"
+ ]
+ }
+ }
+ },
+ {
+ "name": "mailFolders-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{mailFolder-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{mailFolder-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{mailFolder-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "childFolders-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/childFolders",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "childFolders"
+ ]
+ }
+ }
+ },
+ {
+ "name": "childFolders-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/childFolders",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "childFolders"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{mailFolder-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "childFolders",
+ "{mailFolder-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{mailFolder-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "childFolders",
+ "{mailFolder-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{mailFolder-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "childFolders",
+ "{mailFolder-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "messageRules-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messageRules",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messageRules"
+ ]
+ }
+ }
+ },
+ {
+ "name": "messageRules-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messageRules",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messageRules"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{messageRule-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messageRules/{messageRule-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messageRules",
+ "{messageRule-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{messageRule-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messageRules/{messageRule-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messageRules",
+ "{messageRule-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{messageRule-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messageRules/{messageRule-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messageRules",
+ "{messageRule-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "messages-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "messages-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{message-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messages",
+ "{message-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{message-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messages",
+ "{message-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{message-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messages",
+ "{message-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$value-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/$value",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messages",
+ "{message-id}",
+ "$value"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$value-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/$value",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messages",
+ "{message-id}",
+ "$value"
+ ]
+ }
+ }
+ },
+ {
+ "name": "attachments-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/attachments",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messages",
+ "{message-id}",
+ "attachments"
+ ]
+ }
+ }
+ },
+ {
+ "name": "attachments-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/attachments",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messages",
+ "{message-id}",
+ "attachments"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messages",
+ "{message-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messages",
+ "{message-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messages",
+ "{message-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messages",
+ "{message-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messages",
+ "{message-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "messages",
+ "{message-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/mailFolders/{mailFolder-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "mailFolders",
+ "{mailFolder-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "managedAppRegistrations-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedAppRegistrations",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedAppRegistrations"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedAppRegistrations/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedAppRegistrations",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedAppRegistrations/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedAppRegistrations",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "managedDevices-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices"
+ ]
+ }
+ }
+ },
+ {
+ "name": "managedDevices-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{managedDevice-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices/{managedDevice-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices",
+ "{managedDevice-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{managedDevice-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices/{managedDevice-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices",
+ "{managedDevice-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{managedDevice-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices/{managedDevice-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices",
+ "{managedDevice-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "deviceCategory-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices/{managedDevice-id}/deviceCategory",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices",
+ "{managedDevice-id}",
+ "deviceCategory"
+ ]
+ }
+ }
+ },
+ {
+ "name": "deviceCategory-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices/{managedDevice-id}/deviceCategory",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices",
+ "{managedDevice-id}",
+ "deviceCategory"
+ ]
+ }
+ }
+ },
+ {
+ "name": "deviceCategory-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices/{managedDevice-id}/deviceCategory",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices",
+ "{managedDevice-id}",
+ "deviceCategory"
+ ]
+ }
+ }
+ },
+ {
+ "name": "deviceCompliancePolicyStates-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices/{managedDevice-id}/deviceCompliancePolicyStates",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices",
+ "{managedDevice-id}",
+ "deviceCompliancePolicyStates"
+ ]
+ }
+ }
+ },
+ {
+ "name": "deviceCompliancePolicyStates-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices/{managedDevice-id}/deviceCompliancePolicyStates",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices",
+ "{managedDevice-id}",
+ "deviceCompliancePolicyStates"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{deviceCompliancePolicyState-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices/{managedDevice-id}/deviceCompliancePolicyStates/{deviceCompliancePolicyState-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices",
+ "{managedDevice-id}",
+ "deviceCompliancePolicyStates",
+ "{deviceCompliancePolicyState-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{deviceCompliancePolicyState-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices/{managedDevice-id}/deviceCompliancePolicyStates/{deviceCompliancePolicyState-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices",
+ "{managedDevice-id}",
+ "deviceCompliancePolicyStates",
+ "{deviceCompliancePolicyState-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{deviceCompliancePolicyState-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices/{managedDevice-id}/deviceCompliancePolicyStates/{deviceCompliancePolicyState-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices",
+ "{managedDevice-id}",
+ "deviceCompliancePolicyStates",
+ "{deviceCompliancePolicyState-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "deviceConfigurationStates-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices/{managedDevice-id}/deviceConfigurationStates",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices",
+ "{managedDevice-id}",
+ "deviceConfigurationStates"
+ ]
+ }
+ }
+ },
+ {
+ "name": "deviceConfigurationStates-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices/{managedDevice-id}/deviceConfigurationStates",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices",
+ "{managedDevice-id}",
+ "deviceConfigurationStates"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{deviceConfigurationState-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices/{managedDevice-id}/deviceConfigurationStates/{deviceConfigurationState-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices",
+ "{managedDevice-id}",
+ "deviceConfigurationStates",
+ "{deviceConfigurationState-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{deviceConfigurationState-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices/{managedDevice-id}/deviceConfigurationStates/{deviceConfigurationState-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices",
+ "{managedDevice-id}",
+ "deviceConfigurationStates",
+ "{deviceConfigurationState-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{deviceConfigurationState-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/managedDevices/{managedDevice-id}/deviceConfigurationStates/{deviceConfigurationState-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "managedDevices",
+ "{managedDevice-id}",
+ "deviceConfigurationStates",
+ "{deviceConfigurationState-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "manager-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/manager",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "manager"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/manager/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "manager",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/manager/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "manager",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/manager/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "manager",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "memberOf-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/memberOf",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "memberOf"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/memberOf/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "memberOf",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/memberOf/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "memberOf",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "messages-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/messages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "messages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "messages-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/messages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "messages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{message-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/messages/{message-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "messages",
+ "{message-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{message-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/messages/{message-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "messages",
+ "{message-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{message-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/messages/{message-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "messages",
+ "{message-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$value-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/messages/{message-id}/$value",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "messages",
+ "{message-id}",
+ "$value"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$value-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/messages/{message-id}/$value",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "messages",
+ "{message-id}",
+ "$value"
+ ]
+ }
+ }
+ },
+ {
+ "name": "attachments-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/messages/{message-id}/attachments",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "messages",
+ "{message-id}",
+ "attachments"
+ ]
+ }
+ }
+ },
+ {
+ "name": "attachments-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/messages/{message-id}/attachments",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "messages",
+ "{message-id}",
+ "attachments"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/messages/{message-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "messages",
+ "{message-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/messages/{message-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "messages",
+ "{message-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/messages/{message-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "messages",
+ "{message-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "multiValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/messages/{message-id}/multiValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "messages",
+ "{message-id}",
+ "multiValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/messages/{message-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "messages",
+ "{message-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "singleValueExtendedProperties-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/messages/{message-id}/singleValueExtendedProperties",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "messages",
+ "{message-id}",
+ "singleValueExtendedProperties"
+ ]
+ }
+ }
+ },
+ {
+ "name": "oauth2PermissionGrants-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/oauth2PermissionGrants",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "oauth2PermissionGrants"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/oauth2PermissionGrants/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "oauth2PermissionGrants",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/oauth2PermissionGrants/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "oauth2PermissionGrants",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "onenote-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote"
+ ]
+ }
+ }
+ },
+ {
+ "name": "onenote-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote"
+ ]
+ }
+ }
+ },
+ {
+ "name": "onenote-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote"
+ ]
+ }
+ }
+ },
+ {
+ "name": "notebooks-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks"
+ ]
+ }
+ }
+ },
+ {
+ "name": "notebooks-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{notebook-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{notebook-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{notebook-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "pages-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "pages-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSection-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentSection",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSection-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentSection",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSection-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentSection",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "pages-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "pages-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSection-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentSection",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSection-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentSection",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSection-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentSection",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup/sections/{onenoteSection-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sections",
+ "{onenoteSection-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup/sections/{onenoteSection-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sections",
+ "{onenoteSection-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/notebooks/{notebook-id}/sections/{onenoteSection-id}/parentSectionGroup/sections/{onenoteSection-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "notebooks",
+ "{notebook-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sections",
+ "{onenoteSection-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "operations-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/operations",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "operations"
+ ]
+ }
+ }
+ },
+ {
+ "name": "operations-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/operations",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "operations"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteOperation-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/operations/{onenoteOperation-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "operations",
+ "{onenoteOperation-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteOperation-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/operations/{onenoteOperation-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "operations",
+ "{onenoteOperation-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteOperation-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/operations/{onenoteOperation-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "operations",
+ "{onenoteOperation-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "pages-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "pages-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "pages-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "pages-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id1}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id1}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id1}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id1}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "pages-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/pages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "pages-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/pages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/pages/{onenotePage-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/pages/{onenotePage-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/pages/{onenotePage-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/pages/{onenotePage-id1}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id1}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/pages/{onenotePage-id1}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id1}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup/sections/{onenoteSection-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sections",
+ "{onenoteSection-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup/sections/{onenoteSection-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sections",
+ "{onenoteSection-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id}/parentSectionGroup/sections/{onenoteSection-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sections",
+ "{onenoteSection-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSection-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSection-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSection-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection"
+ ]
+ }
+ }
+ },
+ {
+ "name": "pages-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/pages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "pages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "pages-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/pages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "pages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/pages/{onenotePage-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "pages",
+ "{onenotePage-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/pages/{onenotePage-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "pages",
+ "{onenotePage-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/pages/{onenotePage-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "pages",
+ "{onenotePage-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/pages/{onenotePage-id1}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "pages",
+ "{onenotePage-id1}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/pages/{onenotePage-id1}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "pages",
+ "{onenotePage-id1}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentNotebook/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentNotebook",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup/parentNotebook/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup",
+ "parentNotebook",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup/parentNotebook/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup",
+ "parentNotebook",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup/parentNotebook/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup",
+ "parentNotebook",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup/parentNotebook/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup",
+ "parentNotebook",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/pages/{onenotePage-id}/parentSection/parentSectionGroup/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection",
+ "parentSectionGroup",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "resources-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/resources",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "resources"
+ ]
+ }
+ }
+ },
+ {
+ "name": "resources-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/resources",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "resources"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteResource-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/resources/{onenoteResource-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "resources",
+ "{onenoteResource-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteResource-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/resources/{onenoteResource-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "resources",
+ "{onenoteResource-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteResource-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/resources/{onenoteResource-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "resources",
+ "{onenoteResource-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/resources/{onenoteResource-id}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "resources",
+ "{onenoteResource-id}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/resources/{onenoteResource-id}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "resources",
+ "{onenoteResource-id}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook/sections/{onenoteSection-id}/pages/{onenotePage-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook/sections/{onenoteSection-id}/pages/{onenotePage-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook/sections/{onenoteSection-id}/pages/{onenotePage-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook/sections/{onenoteSection-id}/pages/{onenotePage-id}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook/sections/{onenoteSection-id}/pages/{onenotePage-id}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSection-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentSection",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSection-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentSection",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSection-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentNotebook/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentSection",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{sectionGroup-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sectionGroups/{sectionGroup-id}/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sections/{onenoteSection-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "pages-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "pages-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenotePage-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "content-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/content",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "content"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentNotebook/sectionGroups/{sectionGroup-id}/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentNotebook",
+ "sectionGroups",
+ "{sectionGroup-id}",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSection-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentSection",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSection-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentSection",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSection-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/pages/{onenotePage-id}/parentSection",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "pages",
+ "{onenotePage-id}",
+ "parentSection"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentNotebook/sections/{onenoteSection-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentNotebook/sections/{onenoteSection-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentNotebook/sections/{onenoteSection-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentSectionGroup/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentSectionGroup/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentNotebook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentSectionGroup/parentNotebook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentNotebook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id1}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentSectionGroup/parentNotebook/sections/{onenoteSection-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id1}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentSectionGroup/parentNotebook/sections/{onenoteSection-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onenoteSection-id1}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentSectionGroup/parentNotebook/sections/{onenoteSection-id1}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentNotebook",
+ "sections",
+ "{onenoteSection-id1}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentSectionGroup/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentSectionGroup/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "parentSectionGroup-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentSectionGroup/parentSectionGroup",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "parentSectionGroup"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentSectionGroup/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sectionGroups-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentSectionGroup/sectionGroups",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sectionGroups"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentSectionGroup/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "sections-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onenote/sections/{onenoteSection-id}/parentSectionGroup/sections",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onenote",
+ "sections",
+ "{onenoteSection-id}",
+ "parentSectionGroup",
+ "sections"
+ ]
+ }
+ }
+ },
+ {
+ "name": "onlineMeetings-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onlineMeetings",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onlineMeetings"
+ ]
+ }
+ }
+ },
+ {
+ "name": "onlineMeetings-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onlineMeetings",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onlineMeetings"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onlineMeeting-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onlineMeetings/{onlineMeeting-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onlineMeetings",
+ "{onlineMeeting-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onlineMeeting-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onlineMeetings/{onlineMeeting-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onlineMeetings",
+ "{onlineMeeting-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{onlineMeeting-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onlineMeetings/{onlineMeeting-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onlineMeetings",
+ "{onlineMeeting-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "attendeeReport-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onlineMeetings/{onlineMeeting-id}/attendeeReport",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onlineMeetings",
+ "{onlineMeeting-id}",
+ "attendeeReport"
+ ]
+ }
+ }
+ },
+ {
+ "name": "attendeeReport-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/onlineMeetings/{onlineMeeting-id}/attendeeReport",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "onlineMeetings",
+ "{onlineMeeting-id}",
+ "attendeeReport"
+ ]
+ }
+ }
+ },
+ {
+ "name": "outlook-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/outlook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "outlook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "outlook-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/outlook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "outlook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "outlook-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/outlook",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "outlook"
+ ]
+ }
+ }
+ },
+ {
+ "name": "masterCategories-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/outlook/masterCategories",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "outlook",
+ "masterCategories"
+ ]
+ }
+ }
+ },
+ {
+ "name": "masterCategories-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/outlook/masterCategories",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "outlook",
+ "masterCategories"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{outlookCategory-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/outlook/masterCategories/{outlookCategory-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "outlook",
+ "masterCategories",
+ "{outlookCategory-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{outlookCategory-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/outlook/masterCategories/{outlookCategory-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "outlook",
+ "masterCategories",
+ "{outlookCategory-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{outlookCategory-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/outlook/masterCategories/{outlookCategory-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "outlook",
+ "masterCategories",
+ "{outlookCategory-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "ownedDevices-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/ownedDevices",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "ownedDevices"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/ownedDevices/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "ownedDevices",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/ownedDevices/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "ownedDevices",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "ownedObjects-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/ownedObjects",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "ownedObjects"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/ownedObjects/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "ownedObjects",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/ownedObjects/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "ownedObjects",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "people-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/people",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "people"
+ ]
+ }
+ }
+ },
+ {
+ "name": "people-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/people",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "people"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{person-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/people/{person-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "people",
+ "{person-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{person-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/people/{person-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "people",
+ "{person-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{person-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/people/{person-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "people",
+ "{person-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "photo-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/photo",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "photo"
+ ]
+ }
+ }
+ },
+ {
+ "name": "photo-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/photo",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "photo"
+ ]
+ }
+ }
+ },
+ {
+ "name": "photo-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/photo",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "photo"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$value-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/photo/$value",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "photo",
+ "$value"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$value-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/photo/$value",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "photo",
+ "$value"
+ ]
+ }
+ }
+ },
+ {
+ "name": "photos-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/photos",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "photos"
+ ]
+ }
+ }
+ },
+ {
+ "name": "photos-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/photos",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "photos"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{profilePhoto-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/photos/{profilePhoto-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "photos",
+ "{profilePhoto-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{profilePhoto-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/photos/{profilePhoto-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "photos",
+ "{profilePhoto-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{profilePhoto-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/photos/{profilePhoto-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "photos",
+ "{profilePhoto-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$value-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/photos/{profilePhoto-id}/$value",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "photos",
+ "{profilePhoto-id}",
+ "$value"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$value-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/photos/{profilePhoto-id}/$value",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "photos",
+ "{profilePhoto-id}",
+ "$value"
+ ]
+ }
+ }
+ },
+ {
+ "name": "planner-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner"
+ ]
+ }
+ }
+ },
+ {
+ "name": "planner-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner"
+ ]
+ }
+ }
+ },
+ {
+ "name": "planner-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner"
+ ]
+ }
+ }
+ },
+ {
+ "name": "plans-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans"
+ ]
+ }
+ }
+ },
+ {
+ "name": "plans-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{plannerPlan-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{plannerPlan-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{plannerPlan-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "buckets-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets"
+ ]
+ }
+ }
+ },
+ {
+ "name": "buckets-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{plannerBucket-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{plannerBucket-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{plannerBucket-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "tasks-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks"
+ ]
+ }
+ }
+ },
+ {
+ "name": "tasks-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{plannerTask-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks/{plannerTask-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks",
+ "{plannerTask-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{plannerTask-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks/{plannerTask-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks",
+ "{plannerTask-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{plannerTask-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks/{plannerTask-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks",
+ "{plannerTask-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "assignedToTaskBoardFormat-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks/{plannerTask-id}/assignedToTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "assignedToTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "assignedToTaskBoardFormat-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks/{plannerTask-id}/assignedToTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "assignedToTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "assignedToTaskBoardFormat-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks/{plannerTask-id}/assignedToTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "assignedToTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "bucketTaskBoardFormat-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks/{plannerTask-id}/bucketTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "bucketTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "bucketTaskBoardFormat-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks/{plannerTask-id}/bucketTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "bucketTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "bucketTaskBoardFormat-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks/{plannerTask-id}/bucketTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "bucketTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "details-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks/{plannerTask-id}/details",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "details"
+ ]
+ }
+ }
+ },
+ {
+ "name": "details-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks/{plannerTask-id}/details",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "details"
+ ]
+ }
+ }
+ },
+ {
+ "name": "details-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks/{plannerTask-id}/details",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "details"
+ ]
+ }
+ }
+ },
+ {
+ "name": "progressTaskBoardFormat-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks/{plannerTask-id}/progressTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "progressTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "progressTaskBoardFormat-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks/{plannerTask-id}/progressTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "progressTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "progressTaskBoardFormat-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/buckets/{plannerBucket-id}/tasks/{plannerTask-id}/progressTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "buckets",
+ "{plannerBucket-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "progressTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "details-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/details",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "details"
+ ]
+ }
+ }
+ },
+ {
+ "name": "details-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/details",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "details"
+ ]
+ }
+ }
+ },
+ {
+ "name": "details-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/details",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "details"
+ ]
+ }
+ }
+ },
+ {
+ "name": "tasks-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks"
+ ]
+ }
+ }
+ },
+ {
+ "name": "tasks-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{plannerTask-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks/{plannerTask-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks",
+ "{plannerTask-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{plannerTask-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks/{plannerTask-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks",
+ "{plannerTask-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{plannerTask-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks/{plannerTask-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks",
+ "{plannerTask-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "assignedToTaskBoardFormat-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks/{plannerTask-id}/assignedToTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "assignedToTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "assignedToTaskBoardFormat-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks/{plannerTask-id}/assignedToTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "assignedToTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "assignedToTaskBoardFormat-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks/{plannerTask-id}/assignedToTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "assignedToTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "bucketTaskBoardFormat-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks/{plannerTask-id}/bucketTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "bucketTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "bucketTaskBoardFormat-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks/{plannerTask-id}/bucketTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "bucketTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "bucketTaskBoardFormat-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks/{plannerTask-id}/bucketTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "bucketTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "details-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks/{plannerTask-id}/details",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "details"
+ ]
+ }
+ }
+ },
+ {
+ "name": "details-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks/{plannerTask-id}/details",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "details"
+ ]
+ }
+ }
+ },
+ {
+ "name": "details-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks/{plannerTask-id}/details",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "details"
+ ]
+ }
+ }
+ },
+ {
+ "name": "progressTaskBoardFormat-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks/{plannerTask-id}/progressTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "progressTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "progressTaskBoardFormat-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks/{plannerTask-id}/progressTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "progressTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "progressTaskBoardFormat-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/plans/{plannerPlan-id}/tasks/{plannerTask-id}/progressTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "plans",
+ "{plannerPlan-id}",
+ "tasks",
+ "{plannerTask-id}",
+ "progressTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "tasks-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks"
+ ]
+ }
+ }
+ },
+ {
+ "name": "tasks-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{plannerTask-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks/{plannerTask-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks",
+ "{plannerTask-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{plannerTask-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks/{plannerTask-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks",
+ "{plannerTask-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{plannerTask-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks/{plannerTask-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks",
+ "{plannerTask-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "assignedToTaskBoardFormat-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks/{plannerTask-id}/assignedToTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks",
+ "{plannerTask-id}",
+ "assignedToTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "assignedToTaskBoardFormat-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks/{plannerTask-id}/assignedToTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks",
+ "{plannerTask-id}",
+ "assignedToTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "assignedToTaskBoardFormat-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks/{plannerTask-id}/assignedToTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks",
+ "{plannerTask-id}",
+ "assignedToTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "bucketTaskBoardFormat-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks/{plannerTask-id}/bucketTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks",
+ "{plannerTask-id}",
+ "bucketTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "bucketTaskBoardFormat-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks/{plannerTask-id}/bucketTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks",
+ "{plannerTask-id}",
+ "bucketTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "bucketTaskBoardFormat-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks/{plannerTask-id}/bucketTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks",
+ "{plannerTask-id}",
+ "bucketTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "details-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks/{plannerTask-id}/details",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks",
+ "{plannerTask-id}",
+ "details"
+ ]
+ }
+ }
+ },
+ {
+ "name": "details-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks/{plannerTask-id}/details",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks",
+ "{plannerTask-id}",
+ "details"
+ ]
+ }
+ }
+ },
+ {
+ "name": "details-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks/{plannerTask-id}/details",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks",
+ "{plannerTask-id}",
+ "details"
+ ]
+ }
+ }
+ },
+ {
+ "name": "progressTaskBoardFormat-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks/{plannerTask-id}/progressTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks",
+ "{plannerTask-id}",
+ "progressTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "progressTaskBoardFormat-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks/{plannerTask-id}/progressTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks",
+ "{plannerTask-id}",
+ "progressTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "progressTaskBoardFormat-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/planner/tasks/{plannerTask-id}/progressTaskBoardFormat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "planner",
+ "tasks",
+ "{plannerTask-id}",
+ "progressTaskBoardFormat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "presence-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/presence",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "presence"
+ ]
+ }
+ }
+ },
+ {
+ "name": "presence-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/presence",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "presence"
+ ]
+ }
+ }
+ },
+ {
+ "name": "presence-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/presence",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "presence"
+ ]
+ }
+ }
+ },
+ {
+ "name": "registeredDevices-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/registeredDevices",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "registeredDevices"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/registeredDevices/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "registeredDevices",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/registeredDevices/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "registeredDevices",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "scopedRoleMemberOf-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/scopedRoleMemberOf",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "scopedRoleMemberOf"
+ ]
+ }
+ }
+ },
+ {
+ "name": "scopedRoleMemberOf-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/scopedRoleMemberOf",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "scopedRoleMemberOf"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{scopedRoleMembership-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/scopedRoleMemberOf/{scopedRoleMembership-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "scopedRoleMemberOf",
+ "{scopedRoleMembership-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{scopedRoleMembership-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/scopedRoleMemberOf/{scopedRoleMembership-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "scopedRoleMemberOf",
+ "{scopedRoleMembership-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{scopedRoleMembership-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/scopedRoleMemberOf/{scopedRoleMembership-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "scopedRoleMemberOf",
+ "{scopedRoleMembership-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "settings-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/settings",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "settings"
+ ]
+ }
+ }
+ },
+ {
+ "name": "settings-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/settings",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "settings"
+ ]
+ }
+ }
+ },
+ {
+ "name": "settings-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/settings",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "settings"
+ ]
+ }
+ }
+ },
+ {
+ "name": "shiftPreferences-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/settings/shiftPreferences",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "settings",
+ "shiftPreferences"
+ ]
+ }
+ }
+ },
+ {
+ "name": "shiftPreferences-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/settings/shiftPreferences",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "settings",
+ "shiftPreferences"
+ ]
+ }
+ }
+ },
+ {
+ "name": "shiftPreferences-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/settings/shiftPreferences",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "settings",
+ "shiftPreferences"
+ ]
+ }
+ }
+ },
+ {
+ "name": "teamwork-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/teamwork",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "teamwork"
+ ]
+ }
+ }
+ },
+ {
+ "name": "teamwork-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/teamwork",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "teamwork"
+ ]
+ }
+ }
+ },
+ {
+ "name": "teamwork-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/teamwork",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "teamwork"
+ ]
+ }
+ }
+ },
+ {
+ "name": "installedApps-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/teamwork/installedApps",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "teamwork",
+ "installedApps"
+ ]
+ }
+ }
+ },
+ {
+ "name": "installedApps-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/teamwork/installedApps",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "teamwork",
+ "installedApps"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{userScopeTeamsAppInstallation-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/teamwork/installedApps/{userScopeTeamsAppInstallation-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "teamwork",
+ "installedApps",
+ "{userScopeTeamsAppInstallation-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{userScopeTeamsAppInstallation-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/teamwork/installedApps/{userScopeTeamsAppInstallation-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "teamwork",
+ "installedApps",
+ "{userScopeTeamsAppInstallation-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{userScopeTeamsAppInstallation-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/teamwork/installedApps/{userScopeTeamsAppInstallation-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "teamwork",
+ "installedApps",
+ "{userScopeTeamsAppInstallation-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "chat-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/teamwork/installedApps/{userScopeTeamsAppInstallation-id}/chat",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "teamwork",
+ "installedApps",
+ "{userScopeTeamsAppInstallation-id}",
+ "chat"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/teamwork/installedApps/{userScopeTeamsAppInstallation-id}/chat/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "teamwork",
+ "installedApps",
+ "{userScopeTeamsAppInstallation-id}",
+ "chat",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-PUT",
+ "request": {
+ "method": "PUT",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/teamwork/installedApps/{userScopeTeamsAppInstallation-id}/chat/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "teamwork",
+ "installedApps",
+ "{userScopeTeamsAppInstallation-id}",
+ "chat",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/teamwork/installedApps/{userScopeTeamsAppInstallation-id}/chat/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "teamwork",
+ "installedApps",
+ "{userScopeTeamsAppInstallation-id}",
+ "chat",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "todo-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo"
+ ]
+ }
+ }
+ },
+ {
+ "name": "todo-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo"
+ ]
+ }
+ }
+ },
+ {
+ "name": "todo-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo"
+ ]
+ }
+ }
+ },
+ {
+ "name": "lists-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists"
+ ]
+ }
+ }
+ },
+ {
+ "name": "lists-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{todoTaskList-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{todoTaskList-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{todoTaskList-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "tasks-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/tasks",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "tasks"
+ ]
+ }
+ }
+ },
+ {
+ "name": "tasks-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/tasks",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "tasks"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{todoTask-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "tasks",
+ "{todoTask-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{todoTask-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "tasks",
+ "{todoTask-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{todoTask-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "tasks",
+ "{todoTask-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "tasks",
+ "{todoTask-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "extensions-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}/extensions",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "tasks",
+ "{todoTask-id}",
+ "extensions"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "tasks",
+ "{todoTask-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "tasks",
+ "{todoTask-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{extension-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}/extensions/{extension-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "tasks",
+ "{todoTask-id}",
+ "extensions",
+ "{extension-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "linkedResources-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}/linkedResources",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "tasks",
+ "{todoTask-id}",
+ "linkedResources"
+ ]
+ }
+ }
+ },
+ {
+ "name": "linkedResources-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}/linkedResources",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "tasks",
+ "{todoTask-id}",
+ "linkedResources"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{linkedResource-id}-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}/linkedResources/{linkedResource-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "tasks",
+ "{todoTask-id}",
+ "linkedResources",
+ "{linkedResource-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{linkedResource-id}-PATCH",
+ "request": {
+ "method": "PATCH",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}/linkedResources/{linkedResource-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "tasks",
+ "{todoTask-id}",
+ "linkedResources",
+ "{linkedResource-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "{linkedResource-id}-DELETE",
+ "request": {
+ "method": "DELETE",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}/linkedResources/{linkedResource-id}",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "todo",
+ "lists",
+ "{todoTaskList-id}",
+ "tasks",
+ "{todoTask-id}",
+ "linkedResources",
+ "{linkedResource-id}"
+ ]
+ }
+ }
+ },
+ {
+ "name": "transitiveMemberOf-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/transitiveMemberOf",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "transitiveMemberOf"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-GET",
+ "request": {
+ "method": "GET",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/transitiveMemberOf/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "transitiveMemberOf",
+ "$ref"
+ ]
+ }
+ }
+ },
+ {
+ "name": "$ref-POST",
+ "request": {
+ "method": "POST",
+ "url": {
+ "raw": "https://graph.microsoft.com/v1.0/users/{user-id}/transitiveMemberOf/$ref",
+ "protocol": "https",
+ "host": [
+ "graph",
+ "microsoft",
+ "com"
+ ],
+ "path": [
+ "v1.0",
+ "users",
+ "{user-id}",
+ "transitiveMemberOf",
+ "$ref"
+ ]
+ }
+ }
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/Microsoft.OpenApi.Tests/Visitors/InheritanceTests.cs b/test/Microsoft.OpenApi.Tests/Visitors/InheritanceTests.cs
new file mode 100644
index 000000000..102100019
--- /dev/null
+++ b/test/Microsoft.OpenApi.Tests/Visitors/InheritanceTests.cs
@@ -0,0 +1,346 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Runtime.CompilerServices;
+using System.Text;
+using System.Threading.Tasks;
+using Microsoft.OpenApi.Interfaces;
+using Microsoft.OpenApi.Models;
+using Microsoft.OpenApi.Services;
+using Xunit;
+
+namespace Microsoft.OpenApi.Tests.Visitors
+{
+ public class InheritanceTests
+ {
+ [Fact]
+ public void ExpectedVirtualsInvolved()
+ {
+ OpenApiVisitorBase visitor = null;
+
+ visitor = new TestVisitor();
+
+ visitor.Enter(default(string));
+ visitor.Visit(default(OpenApiDocument));
+ visitor.Visit(default(OpenApiInfo));
+ visitor.Visit(default(OpenApiContact));
+ visitor.Visit(default(OpenApiLicense));
+ visitor.Visit(default(IList));
+ visitor.Visit(default(OpenApiServer));
+ visitor.Visit(default(OpenApiPaths));
+ visitor.Visit(default(OpenApiPathItem));
+ visitor.Visit(default(OpenApiServerVariable));
+ visitor.Visit(default(IDictionary));
+ visitor.Visit(default(OpenApiOperation));
+ visitor.Visit(default(IList));
+ visitor.Visit(default(OpenApiParameter));
+ visitor.Visit(default(OpenApiRequestBody));
+ visitor.Visit(default(IDictionary));
+ visitor.Visit(default(IDictionary));
+ visitor.Visit(default(OpenApiResponse));
+ visitor.Visit(default(OpenApiResponses));
+ visitor.Visit(default(IDictionary));
+ visitor.Visit(default(OpenApiMediaType));
+ visitor.Visit(default(OpenApiEncoding));
+ visitor.Visit(default(IDictionary));
+ visitor.Visit(default(OpenApiComponents));
+ visitor.Visit(default(OpenApiExternalDocs));
+ visitor.Visit(default(OpenApiSchema));
+ visitor.Visit(default(IDictionary));
+ visitor.Visit(default(OpenApiLink));
+ visitor.Visit(default(OpenApiCallback));
+ visitor.Visit(default(OpenApiTag));
+ visitor.Visit(default(OpenApiHeader));
+ visitor.Visit(default(OpenApiOAuthFlow));
+ visitor.Visit(default(OpenApiSecurityRequirement));
+ visitor.Visit(default(OpenApiSecurityScheme));
+ visitor.Visit(default(OpenApiExample));
+ visitor.Visit(default(IList));
+ visitor.Visit(default(IList));
+ visitor.Visit(default(IOpenApiExtensible));
+ visitor.Visit(default(IOpenApiExtension));
+ visitor.Visit(default(IList));
+ visitor.Visit(default(IDictionary));
+ visitor.Visit(default(IDictionary));
+ visitor.Visit(default(IOpenApiReferenceable));
+ visitor.Exit();
+ Assert.True(42 < ((TestVisitor)visitor).CallStack.Count());
+ }
+
+ internal protected class TestVisitor : OpenApiVisitorBase
+ {
+ public Stack CallStack { get; } = new Stack();
+
+ private string EncodeCall([CallerMemberName] string name="", [CallerLineNumber]int lineNumber = 0)
+ {
+ var encoding = $"{name}:{lineNumber}";
+ CallStack.Push(encoding);
+ return encoding;
+ }
+
+ public override void Enter(string segment)
+ {
+ EncodeCall();
+ base.Enter(segment);
+ }
+
+ public override void Exit()
+ {
+ EncodeCall();
+ base.Exit();
+ }
+
+ public override void Visit(OpenApiDocument doc)
+ {
+ EncodeCall();
+ base.Visit(doc);
+ }
+
+ public override void Visit(OpenApiInfo info)
+ {
+ EncodeCall();
+ base.Visit(info);
+ }
+
+ public override void Visit(OpenApiContact contact)
+ {
+ EncodeCall();
+ base.Visit(contact);
+ }
+
+ public override void Visit(OpenApiLicense license)
+ {
+ EncodeCall();
+ base.Visit(license);
+ }
+
+ public override void Visit(IList servers)
+ {
+ EncodeCall();
+ base.Visit(servers);
+ }
+
+ public override void Visit(OpenApiServer server)
+ {
+ EncodeCall();
+ base.Visit(server);
+ }
+
+ public override void Visit(OpenApiPaths paths)
+ {
+ EncodeCall();
+ base.Visit(paths);
+ }
+
+ public override void Visit(OpenApiPathItem pathItem)
+ {
+ EncodeCall();
+ base.Visit(pathItem);
+ }
+
+ public override void Visit(OpenApiServerVariable serverVariable)
+ {
+ EncodeCall();
+ base.Visit(serverVariable);
+ }
+
+ public override void Visit(IDictionary operations)
+ {
+ EncodeCall();
+ base.Visit(operations);
+ }
+
+ public override void Visit(OpenApiOperation operation)
+ {
+ EncodeCall();
+ base.Visit(operation);
+ }
+
+ public override void Visit(IList parameters)
+ {
+ EncodeCall();
+ base.Visit(parameters);
+ }
+
+ public override void Visit(OpenApiParameter parameter)
+ {
+ EncodeCall();
+ base.Visit(parameter);
+ }
+
+ public override void Visit(OpenApiRequestBody requestBody)
+ {
+ EncodeCall();
+ base.Visit(requestBody);
+ }
+
+ public override void Visit(IDictionary headers)
+ {
+ EncodeCall();
+ base.Visit(headers);
+ }
+
+ public override void Visit(IDictionary callbacks)
+ {
+ EncodeCall();
+ base.Visit(callbacks);
+ }
+
+ public override void Visit(OpenApiResponse response)
+ {
+ EncodeCall();
+ base.Visit(response);
+ }
+
+ public override void Visit(OpenApiResponses response)
+ {
+ EncodeCall();
+ base.Visit(response);
+ }
+
+ public override void Visit(IDictionary content)
+ {
+ EncodeCall();
+ base.Visit(content);
+ }
+
+ public override void Visit(OpenApiMediaType mediaType)
+ {
+ EncodeCall();
+ base.Visit(mediaType);
+ }
+
+ public override void Visit(OpenApiEncoding encoding)
+ {
+ EncodeCall();
+ base.Visit(encoding);
+ }
+
+ public override void Visit(IDictionary examples)
+ {
+ EncodeCall();
+ base.Visit(examples);
+ }
+
+ public override void Visit(OpenApiComponents components)
+ {
+ EncodeCall();
+ base.Visit(components);
+ }
+
+ public override void Visit(OpenApiExternalDocs externalDocs)
+ {
+ EncodeCall();
+ base.Visit(externalDocs);
+ }
+
+ public override void Visit(OpenApiSchema schema)
+ {
+ EncodeCall();
+ base.Visit(schema);
+ }
+
+ public override void Visit(IDictionary links)
+ {
+ EncodeCall();
+ base.Visit(links);
+ }
+
+ public override void Visit(OpenApiLink link)
+ {
+ EncodeCall();
+ base.Visit(link);
+ }
+
+ public override void Visit(OpenApiCallback callback)
+ {
+ EncodeCall();
+ base.Visit(callback);
+ }
+
+ public override void Visit(OpenApiTag tag)
+ {
+ EncodeCall();
+ base.Visit(tag);
+ }
+
+ public override void Visit(OpenApiHeader tag)
+ {
+ EncodeCall();
+ base.Visit(tag);
+ }
+
+ public override void Visit(OpenApiOAuthFlow openApiOAuthFlow)
+ {
+ EncodeCall();
+ base.Visit(openApiOAuthFlow);
+ }
+
+ public override void Visit(OpenApiSecurityRequirement securityRequirement)
+ {
+ EncodeCall();
+ base.Visit(securityRequirement);
+ }
+
+ public override void Visit(OpenApiSecurityScheme securityScheme)
+ {
+ EncodeCall();
+ base.Visit(securityScheme);
+ }
+
+ public override void Visit(OpenApiExample example)
+ {
+ EncodeCall();
+ base.Visit(example);
+ }
+
+ public override void Visit(IList openApiTags)
+ {
+ EncodeCall();
+ base.Visit(openApiTags);
+ }
+
+ public override void Visit(IList openApiSecurityRequirements)
+ {
+ EncodeCall();
+ base.Visit(openApiSecurityRequirements);
+ }
+
+ public override void Visit(IOpenApiExtensible openApiExtensible)
+ {
+ EncodeCall();
+ base.Visit(openApiExtensible);
+ }
+
+ public override void Visit(IOpenApiExtension openApiExtension)
+ {
+ EncodeCall();
+ base.Visit(openApiExtension);
+ }
+
+ public override void Visit(IList example)
+ {
+ EncodeCall();
+ base.Visit(example);
+ }
+
+ public override void Visit(IDictionary serverVariables)
+ {
+ EncodeCall();
+ base.Visit(serverVariables);
+ }
+
+ public override void Visit(IDictionary encodings)
+ {
+ EncodeCall();
+ base.Visit(encodings);
+ }
+
+ public override void Visit(IOpenApiReferenceable referenceable)
+ {
+ EncodeCall();
+ base.Visit(referenceable);
+ }
+ }
+ }
+}
diff --git a/test/Microsoft.OpenApi.Tests/Workspaces/OpenApiWorkspaceTests.cs b/test/Microsoft.OpenApi.Tests/Workspaces/OpenApiWorkspaceTests.cs
index dd6e2554b..bee746eae 100644
--- a/test/Microsoft.OpenApi.Tests/Workspaces/OpenApiWorkspaceTests.cs
+++ b/test/Microsoft.OpenApi.Tests/Workspaces/OpenApiWorkspaceTests.cs
@@ -150,7 +150,7 @@ public void OpenApiWorkspacesShouldNormalizeDocumentLocations()
// Enable Workspace to load from any reader, not just streams.
// Test fragments
- public void OpenApiWorkspacesShouldLoadDocumentFragments()
+ internal void OpenApiWorkspacesShouldLoadDocumentFragments()
{
Assert.True(false);
}
diff --git a/test/Microsoft.OpenApi.Tests/Writers/OpenApiJsonWriterTests.cs b/test/Microsoft.OpenApi.Tests/Writers/OpenApiJsonWriterTests.cs
index 06d95c9ad..44d1be55b 100644
--- a/test/Microsoft.OpenApi.Tests/Writers/OpenApiJsonWriterTests.cs
+++ b/test/Microsoft.OpenApi.Tests/Writers/OpenApiJsonWriterTests.cs
@@ -6,6 +6,7 @@
using System.Collections.Generic;
using System.Globalization;
using System.IO;
+using System.Linq;
using FluentAssertions;
using Microsoft.OpenApi.Writers;
using Newtonsoft.Json;
@@ -24,36 +25,36 @@ public OpenApiJsonWriterTests(ITestOutputHelper output)
_output = output;
}
+ static bool[] shouldProduceTerseOutputValues = new[] { true, false };
+
public static IEnumerable