diff --git a/.github/workflows/validate-descriptions.yml b/.github/workflows/validate-descriptions.yml new file mode 100644 index 000000000..a9a0d36df --- /dev/null +++ b/.github/workflows/validate-descriptions.yml @@ -0,0 +1,36 @@ +name: OpenAPI Parser Validation for latest OpenAPI docs + +on: + push: + branches: [ main, support/v1 ] + pull_request: + branches: [ main, support/v1 ] + +jobs: + + list-descriptions: + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.set-descriptions.outputs.matrix }} + steps: + - uses: actions/checkout@v4 + - id: set-descriptions + run: echo "::set-output name=matrix::$(ls test/**/Resources/*.{json,yaml} | sed 's/.*\///' | jq -R -s -c 'split("\n")[:-1]')" + + build: + needs: list-descriptions + strategy: + matrix: + descriptions: ${{ fromJson(needs.list-descriptions.outputs.matrix) }} + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Validate description with redocly + uses: fluximus-prime/redocly-cli-github-action@v1 + with: + args: 'lint test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/${{ matrix.descriptions }} --skip-rule operation-4xx-response --skip-rule no-server-trailing-slash --skip-rule no-unused-components --skip-rule security-defined --skip-rule info-license-url --skip-rule info-license --skip-rule no-empty-servers --skip-rule operation-summary --skip-rule tag-description --max-problems 1000' \ No newline at end of file diff --git a/docs/oas3_0_0/TripService.json b/docs/oas3_0_0/TripService.json index c9f2082a3..5e9134b98 100644 --- a/docs/oas3_0_0/TripService.json +++ b/docs/oas3_0_0/TripService.json @@ -38,7 +38,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -58,7 +57,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -76,7 +74,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -172,7 +169,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -190,7 +186,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -324,7 +319,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -348,7 +342,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -368,7 +361,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -464,7 +456,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -484,7 +475,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -711,7 +701,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -741,7 +730,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -815,7 +803,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -845,7 +832,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -988,7 +974,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1026,7 +1011,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1056,7 +1040,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1127,7 +1110,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1404,7 +1386,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1436,7 +1417,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1461,7 +1441,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1530,7 +1509,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1650,7 +1628,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1688,7 +1665,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1718,7 +1694,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1817,7 +1792,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1847,7 +1821,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1979,7 +1952,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2009,7 +1981,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2196,7 +2167,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2234,7 +2204,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2264,7 +2233,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2345,7 +2313,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2688,7 +2655,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2720,7 +2686,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2745,7 +2710,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2824,7 +2788,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2956,7 +2919,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2994,7 +2956,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3024,7 +2985,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3123,7 +3083,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3153,7 +3112,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3285,7 +3243,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3315,7 +3272,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3502,7 +3458,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3540,7 +3495,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3570,7 +3524,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3651,7 +3604,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3994,7 +3946,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4026,7 +3977,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4051,7 +4001,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4130,7 +4079,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, diff --git a/src/Microsoft.OpenApi.OData.Reader/Common/Constants.cs b/src/Microsoft.OpenApi.OData.Reader/Common/Constants.cs index 0c1e2ffa2..92e46b120 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Common/Constants.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Common/Constants.cs @@ -15,183 +15,177 @@ internal static class Constants /// /// application/json /// - public static string ApplicationJsonMediaType = "application/json"; + public const string ApplicationJsonMediaType = "application/json"; /// /// application/xml /// - public static string ApplicationXmlMediaType = "application/xml"; + public const string ApplicationXmlMediaType = "application/xml"; /// /// application/octet-stream /// - public static string ApplicationOctetStreamMediaType = "application/octet-stream"; + public const string ApplicationOctetStreamMediaType = "application/octet-stream"; /// /// Status code class: 2XX /// - public static string StatusCodeClass2XX = "2XX"; + public const string StatusCodeClass2XX = "2XX"; /// /// Status code: 200 /// - public static string StatusCode200 = "200"; + public const string StatusCode200 = "200"; /// /// Status code: 201 /// - public static string StatusCode201 = "201"; + public const string StatusCode201 = "201"; /// /// Status code: 204 /// - public static string StatusCode204 = "204"; + public const string StatusCode204 = "204"; /// /// Status code: default /// - public static string StatusCodeDefault = "default"; + public const string StatusCodeDefault = "default"; /// /// Status code class: 4XX /// - public static string StatusCodeClass4XX = "4XX"; + public const string StatusCodeClass4XX = "4XX"; /// /// Status code class: 5XX /// - public static string StatusCodeClass5XX = "5XX"; + public const string StatusCodeClass5XX = "5XX"; /// /// Edm model error extension key. /// - public static string xMsEdmModelError = "x-ms-edm-error-"; + public const string xMsEdmModelError = "x-ms-edm-error-"; /// /// extension for toc (table of content) type /// - public static string xMsTocType = "x-ms-docs-toc-type"; + public const string xMsTocType = "x-ms-docs-toc-type"; /// /// extension for key type /// - public static string xMsKeyType = "x-ms-docs-key-type"; + public const string xMsKeyType = "x-ms-docs-key-type"; /// /// extension for operation type /// - public static string xMsDosOperationType = "x-ms-docs-operation-type"; + public const string xMsDosOperationType = "x-ms-docs-operation-type"; /// /// extension for group type /// - public static string xMsDosGroupPath = "x-ms-docs-grouped-path"; + public const string xMsDosGroupPath = "x-ms-docs-grouped-path"; /// /// extension for paging /// - public static string xMsPageable = "x-ms-pageable"; + public const string xMsPageable = "x-ms-pageable"; /// /// extension for discriminator value support /// - public static string xMsDiscriminatorValue = "x-ms-discriminator-value"; + public const string xMsDiscriminatorValue = "x-ms-discriminator-value"; /// /// extension for navigation property /// - public static string xMsNavigationProperty = "x-ms-navigationProperty"; + public const string xMsNavigationProperty = "x-ms-navigationProperty"; /// /// Name used for the OpenAPI referenced schema for OData Count operations responses. /// - public static string DollarCountSchemaName = "ODataCountResponse"; + public const string DollarCountSchemaName = "ODataCountResponse"; /// /// Suffix used for collection response schemas. /// - public static string CollectionSchemaSuffix = "CollectionResponse"; + public const string CollectionSchemaSuffix = "CollectionResponse"; /// /// Suffix used for the base collection pagination response schema and count response schemas. /// - public static string BaseCollectionPaginationCountResponse = "BaseCollectionPaginationCountResponse"; + public const string BaseCollectionPaginationCountResponse = "BaseCollectionPaginationCountResponse"; /// /// Suffix used for the base delta function response schemas. /// - public static string BaseDeltaFunctionResponse = "BaseDeltaFunctionResponse"; + public const string BaseDeltaFunctionResponse = "BaseDeltaFunctionResponse"; /// /// Name used for reference update. /// - public static string ReferenceUpdateSchemaName = "ReferenceUpdate"; + public const string ReferenceUpdateSchemaName = "ReferenceUpdate"; /// /// Name used for reference update. /// - public static string ReferenceCreateSchemaName = "ReferenceCreate"; + public const string ReferenceCreateSchemaName = "ReferenceCreate"; /// /// Name used for reference request POST body. /// - public static string ReferencePostRequestBodyName = "refPostBody"; + public const string ReferencePostRequestBodyName = "refPostBody"; /// /// Name used for reference request PUT body. /// - public static string ReferencePutRequestBodyName = "refPutBody"; + public const string ReferencePutRequestBodyName = "refPutBody"; /// /// Name used to reference INF, -INF and NaN /// - public static string ReferenceNumericName = "ReferenceNumeric"; + public const string ReferenceNumericName = "ReferenceNumeric"; /// /// The odata type name. /// - public static string OdataType = "@odata.type"; + public const string OdataType = "@odata.type"; /// /// The odata id. /// - public static string OdataId = "@odata.id"; + public const string OdataId = "@odata.id"; /// /// object type /// - public static string ObjectType = "object"; + public const string ObjectType = "object"; /// /// string type /// - public static string StringType = "string"; - - /// - /// integer type - /// - [Obsolete("integer is not a valid OpenAPI type. Use number instead.")] - public static string IntegerType = "integer"; + public const string StringType = "string"; /// /// number type /// - public static string NumberType = "number"; + public const string NumberType = "number"; /// /// int64 format /// - public static string Int64Format = "int64"; + public const string Int64Format = "int64"; /// /// decimal format /// - public static string DecimalFormat = "decimal"; + public const string DecimalFormat = "decimal"; /// /// entity name /// - public static string EntityName = "entity"; + public const string EntityName = "entity"; /// /// count segment identifier diff --git a/src/Microsoft.OpenApi.OData.Reader/Common/EdmModelHelper.cs b/src/Microsoft.OpenApi.OData.Reader/Common/EdmModelHelper.cs index 7bd5df68c..28b1d6bc4 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Common/EdmModelHelper.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Common/EdmModelHelper.cs @@ -10,6 +10,8 @@ using Microsoft.OData.Edm.Csdl; using Microsoft.OData.Edm.Vocabularies; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Vocabulary.Capabilities; @@ -36,31 +38,15 @@ internal static OpenApiSchema GetDerivedTypesReferenceSchema(IEdmStructuredType OpenApiSchema schema = new() { - OneOf = new List() + OneOf = new List() }; - OpenApiSchema baseTypeSchema = new() - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = schemaElement.FullName() - } - }; + var baseTypeSchema = new OpenApiSchemaReference(schemaElement.FullName()); schema.OneOf.Add(baseTypeSchema); foreach (IEdmSchemaElement derivedType in derivedTypes) { - OpenApiSchema derivedTypeSchema = new() - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = derivedType.FullName() - } - }; + var derivedTypeSchema = new OpenApiSchemaReference(derivedType.FullName()); schema.OneOf.Add(derivedTypeSchema); }; diff --git a/src/Microsoft.OpenApi.OData.Reader/Common/OpenApiOperationExtensions.cs b/src/Microsoft.OpenApi.OData.Reader/Common/OpenApiOperationExtensions.cs index 3eb561308..e2175058c 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Common/OpenApiOperationExtensions.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Common/OpenApiOperationExtensions.cs @@ -4,6 +4,7 @@ // ------------------------------------------------------------ using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; using Microsoft.OpenApi.OData.Generator; using System.Collections.Generic; @@ -12,7 +13,7 @@ namespace Microsoft.OpenApi.OData.Common; /// /// Extensions methods for the OpenApiOperation class. /// -public static class OpenApiOperationExtensions +internal static class OpenApiOperationExtensions { /// /// Adds a default response to the operation or 4XX/5XX responses for the errors depending on the settings. @@ -22,7 +23,7 @@ public static class OpenApiOperationExtensions /// The settings. /// Optional: Whether to add a 204 no content response. /// Optional: The OpenAPI schema of the response. - public static void AddErrorResponses(this OpenApiOperation operation, OpenApiConvertSettings settings, bool addNoContent = false, OpenApiSchema schema = null) + public static void AddErrorResponses(this OpenApiOperation operation, OpenApiConvertSettings settings, bool addNoContent = false, IOpenApiSchema schema = null) { Utils.CheckArgumentNull(operation, nameof(operation)); Utils.CheckArgumentNull(settings, nameof(settings)); diff --git a/src/Microsoft.OpenApi.OData.Reader/Common/Utils.cs b/src/Microsoft.OpenApi.OData.Reader/Common/Utils.cs index d653de0ea..bbd253a0b 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Common/Utils.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Common/Utils.cs @@ -12,6 +12,7 @@ using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Interfaces; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Vocabulary; @@ -152,13 +153,13 @@ internal static void AddCustomAttributesToExtensions(this IDictionary atrributesValueMap = GetCustomXMLAttributesValueMapping(context.Model, element, context.Settings.CustomXMLAttributesMapping); + Dictionary attributesValueMap = GetCustomXMLAttributesValueMapping(context.Model, element, context.Settings.CustomXMLAttributesMapping); - if (atrributesValueMap?.Any() ?? false) + if (attributesValueMap?.Any() ?? false) { - foreach (var item in atrributesValueMap) + foreach (var item in attributesValueMap) { - extensions.TryAdd(item.Key, new OpenApiString(item.Value)); + extensions.TryAdd(item.Key, new OpenApiAny(item.Value)); } } } @@ -173,13 +174,13 @@ internal static void AddCustomAttributesToExtensions(this IDictionaryA dictionary of extension names mapped to the custom attribute values. private static Dictionary GetCustomXMLAttributesValueMapping(IEdmModel model, IEdmElement element, Dictionary customXMLAttributesMapping) { - Dictionary atrributesValueMap = new(); + Dictionary attributesValueMap = new(); if ((!customXMLAttributesMapping?.Any() ?? true) || model == null || element == null) { - return atrributesValueMap; + return attributesValueMap; } foreach (var item in customXMLAttributesMapping) @@ -193,11 +194,11 @@ private static Dictionary GetCustomXMLAttributesValueMapping(IEd if (!string.IsNullOrEmpty(attributeValue)) { - atrributesValueMap.TryAdd(extensionName, attributeValue); + attributesValueMap.TryAdd(extensionName, attributeValue); } } - return atrributesValueMap; + return attributesValueMap; } /// @@ -307,7 +308,7 @@ private static IEdmEntityType EntityTypeFromOperationSegment(this ODataSegment s /// The value to be added. /// true when the key and/or value are successfully added/updated to the dictionary; /// false when the dictionary already contains the specified key, and nothing gets added. - internal static bool TryAddPath(this IDictionary pathItems, + internal static bool TryAddPath(this IDictionary pathItems, ODataContext context, ODataPath path, OpenApiPathItem pathItem) diff --git a/src/Microsoft.OpenApi.OData.Reader/Edm/EdmModelExtensions.cs b/src/Microsoft.OpenApi.OData.Reader/Edm/EdmModelExtensions.cs index b7dc53516..3ece9f1f6 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Edm/EdmModelExtensions.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Edm/EdmModelExtensions.cs @@ -43,7 +43,7 @@ public static bool IsUrlEscapeFunction(this IEdmModel model, IEdmOperation opera /// The Edm model. /// The specified function /// true if the specified operation is UrlEscape function; otherwise, false. - public static bool IsUrlEscapeFunction(this IEdmModel model, IEdmFunction function) + private static bool IsUrlEscapeFunction(this IEdmModel model, IEdmFunction function) { Utils.CheckArgumentNull(model, nameof(model)); Utils.CheckArgumentNull(function, nameof(function)); @@ -157,9 +157,9 @@ public static bool IsOperationOverload(this IEdmModel model, IEdmOperation opera Utils.CheckArgumentNull(operation, nameof(operation)); return model.GetAllElements().OfType() - .Where(o => o.IsBound == operation.IsBound && o.FullName() == operation.FullName() && + .Count(o => o.IsBound == operation.IsBound && o.FullName() == operation.FullName() && o.Parameters.First().Type.Definition.FullTypeName() == operation.Parameters.First().Type.Definition.FullTypeName() - ).Count() > 1; + ) > 1; } /// @@ -180,7 +180,7 @@ public static bool OperationTargetsMultiplePaths(this IEdmModel model, IEdmOpera return model.EntityContainer.EntitySets().Select(static x => x.EntityType) .Concat(model.EntityContainer.Singletons().Select(static x => x.EntityType)) - .Where(x => x.FullName().Equals(bindingParameterType.FullName(), StringComparison.OrdinalIgnoreCase)).Count() > 1; + .Count(x => x.FullName().Equals(bindingParameterType.FullName(), StringComparison.OrdinalIgnoreCase)) > 1; } /// @@ -200,7 +200,7 @@ public static bool IsOperationImportOverload(this IEdmModel model, IEdmOperation } return model.EntityContainer.OperationImports() - .Where(o => o.Operation.IsBound == operationImport.Operation.IsBound && o.Name == operationImport.Name).Count() > 1; + .Count(o => o.Operation.IsBound == operationImport.Operation.IsBound && o.Name == operationImport.Name) > 1; } /// diff --git a/src/Microsoft.OpenApi.OData.Reader/Edm/ODataContext.cs b/src/Microsoft.OpenApi.OData.Reader/Edm/ODataContext.cs index e7fab01a2..06df4f25f 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Edm/ODataContext.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Edm/ODataContext.cs @@ -3,10 +3,12 @@ // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // ------------------------------------------------------------ +using System; using System.Collections.Generic; using System.Linq; using Microsoft.OData.Edm; using Microsoft.OData.Edm.Vocabularies; +using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Generator; @@ -23,7 +25,7 @@ namespace Microsoft.OpenApi.OData.Edm internal class ODataContext { private IEnumerable _allPaths; - private IODataPathProvider _pathProvider; + private readonly IODataPathProvider _pathProvider; /// /// Initializes a new instance of class. @@ -48,8 +50,8 @@ public ODataContext(IEdmModel model, OpenApiConvertSettings settings) visitor.Visit(model); IsSpatialTypeUsed = visitor.IsSpatialTypeUsed; - OperationHanderProvider = new OperationHandlerProvider(); - PathItemHanderProvider = new PathItemHandlerProvider(); + OperationHandlerProvider = new CachedOperationHandlerProvider(new OperationHandlerProvider()); + PathItemHandlerProvider = new CachedPathItemHandlerProvider(new PathItemHandlerProvider()); // If no path provider, use the default path provider. _pathProvider = settings.PathProvider ?? new ODataPathProvider(); @@ -76,12 +78,12 @@ public ODataContext(IEdmModel model, OpenApiConvertSettings settings) /// /// Gets the path item handler provider. /// - public IPathItemHandlerProvider PathItemHanderProvider { get; } + public IPathItemHandlerProvider PathItemHandlerProvider { get; } /// /// Gets the operation handler provider. /// - public IOperationHandlerProvider OperationHanderProvider { get; } + public IOperationHandlerProvider OperationHandlerProvider { get; } /// /// Gets the Edm model. @@ -139,14 +141,11 @@ public IEnumerable AllPaths /// Append tag. /// /// The tag item. - public void AppendTag(OpenApiTag tagItem) + internal void AppendTag(OpenApiTag tagItem) { - if (Tags == null) - { - Tags = new List(); - } + Tags ??= []; - if (Tags.Any(c => c.Name == tagItem.Name)) + if (FindTagByName(tagItem.Name) is not null) { return; } @@ -154,6 +153,43 @@ public void AppendTag(OpenApiTag tagItem) Tags.Add(tagItem); } + /// + /// Find tag by name. + /// + /// The name to lookup the tag. + /// + internal OpenApiTag FindTagByName(string name) + { + Utils.CheckArgumentNullOrEmpty(name, nameof(name)); + return Tags?.FirstOrDefault(t => StringComparer.Ordinal.Equals(t.Name, name)); + } + + /// + /// Sets the extension for the existing tag, or create a new tag with the extension. + /// + /// The tag name to lookup. + /// The extension name. + /// The extension value to set. + /// The tag default value factory. + internal void AddExtensionToTag(string tagName, string extensionName, OpenApiAny extensionValue, Func initialValueFactory) + { + Utils.CheckArgumentNullOrEmpty(tagName, nameof(tagName)); + Utils.CheckArgumentNullOrEmpty(extensionName, nameof(extensionName)); + Utils.CheckArgumentNull(extensionValue, nameof(extensionValue)); + Utils.CheckArgumentNull(initialValueFactory, nameof(initialValueFactory)); + + if (FindTagByName(tagName) is {} foundTag) + { + foundTag.Extensions.TryAdd(extensionName, extensionValue); + } + else + { + var tag = initialValueFactory(); + tag.Extensions.TryAdd(extensionName, extensionValue); + AppendTag(tag); + } + } + /// /// Gets all OData paths /// diff --git a/src/Microsoft.OpenApi.OData.Reader/Edm/ODataTypeCastSegment.cs b/src/Microsoft.OpenApi.OData.Reader/Edm/ODataTypeCastSegment.cs index 6a7e660e1..47da7fd4f 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Edm/ODataTypeCastSegment.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Edm/ODataTypeCastSegment.cs @@ -43,7 +43,7 @@ public ODataTypeCastSegment(IEdmStructuredType structuredType, IEdmModel model) /// public override IEnumerable GetAnnotables() { - return new IEdmVocabularyAnnotatable[] { StructuredType as IEdmVocabularyAnnotatable }; + return [StructuredType as IEdmVocabularyAnnotatable]; } /// diff --git a/src/Microsoft.OpenApi.OData.Reader/EdmModelOpenApiExtensions.cs b/src/Microsoft.OpenApi.OData.Reader/EdmModelOpenApiExtensions.cs index 60fab5ca6..5fe3f4b07 100644 --- a/src/Microsoft.OpenApi.OData.Reader/EdmModelOpenApiExtensions.cs +++ b/src/Microsoft.OpenApi.OData.Reader/EdmModelOpenApiExtensions.cs @@ -3,7 +3,6 @@ // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // ------------------------------------------------------------ -using System.Collections.Generic; using Microsoft.OData.Edm; using Microsoft.OData.Edm.Validation; using Microsoft.OpenApi.Any; @@ -48,7 +47,7 @@ public static OpenApiDocument ConvertToOpenApi(this IEdmModel model, OpenApiConv int index = 1; foreach (var error in errors) { - document.Extensions.Add(Constants.xMsEdmModelError + index++, new OpenApiString(error.ToString())); + document.Extensions.Add(Constants.xMsEdmModelError + index++, new OpenApiAny(error.ToString())); } return document; diff --git a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiComponentsGenerator.cs b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiComponentsGenerator.cs index 14ff0c218..64fe4417a 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiComponentsGenerator.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiComponentsGenerator.cs @@ -20,47 +20,21 @@ internal static class OpenApiComponentsGenerator /// It holds maps of reusable schemas describing message bodies, operation parameters, and responses. /// /// The OData to Open API context. - /// The created object. - public static OpenApiComponents CreateComponents(this ODataContext context) + /// The Open API document. + public static void AddComponentsToDocument(this ODataContext context, OpenApiDocument document) { Utils.CheckArgumentNull(context, nameof(context)); - - // "components": { - // "schemas": …, - // "parameters": …, - // "responses": …, - // "requestBodies": … - // } - return new OpenApiComponents - { - // The value of schemas is a map of Schema Objects. - // Each entity type, complex type, enumeration type, and type definition directly - // or indirectly used in the paths field is represented as a name/value pair of the schemas map. - Schemas = context.CreateSchemas(), - - // The value of parameters is a map of Parameter Objects. - // It allows defining query options and headers that can be reused across operations of the service. - Parameters = context.CreateParameters(), - - // The value of responses is a map of Response Objects. - // It allows defining responses that can be reused across operations of the service. - Responses = context.CreateResponses(), - - // The value of requestBodies is a map of RequestBody Objects. - // It allows refining request bodies that can be reused across operations of the service. - RequestBodies = context.CreateRequestBodies(), - - Examples = context.CreateExamples(), - - SecuritySchemes = context.CreateSecuritySchemes(), - - // Make others as null. - Links = null, - - Callbacks = null, - - Extensions = null - }; + Utils.CheckArgumentNull(document, nameof(document)); + + context.AddSchemasToDocument(document); + context.AddParametersToDocument(document); + context.AddResponsesToDocument(document); + context.AddRequestBodiesToDocument(document); + context.AddExamplesToDocument(document); + context.AddSecuritySchemesToDocument(document); + document.Components.Links = null; + document.Components.Callbacks = null; + document.Components.Extensions = null; } } } diff --git a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiDocumentGenerator.cs b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiDocumentGenerator.cs index 4660cfb3c..b1e393fc0 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiDocumentGenerator.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiDocumentGenerator.cs @@ -32,24 +32,23 @@ public static OpenApiDocument CreateDocument(this ODataContext context) // "paths": …, // "components": … // } - OpenApiDocument doc = new OpenApiDocument + OpenApiDocument doc = new() { Info = context.CreateInfo(), Servers = context.CreateServers(), - // Tags = context.CreateTags(), - - Paths = context.CreatePaths(), - - Components = context.CreateComponents(), - SecurityRequirements = null, - ExternalDocs = null + ExternalDocs = null, }; - doc.Tags = context.CreateTags(); + context.AddComponentsToDocument(doc); + context.AddPathsToDocument(doc); + doc.Tags = context.CreateTags(); // order matters so the operation generators have populated the tags + doc.RegisterComponents(); + doc.SetReferenceHostDocument(); + return doc; } diff --git a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiEdmTypeSchemaGenerator.cs b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiEdmTypeSchemaGenerator.cs index 1144abf3e..4982b9ba9 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiEdmTypeSchemaGenerator.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiEdmTypeSchemaGenerator.cs @@ -7,12 +7,14 @@ using System.Collections.Generic; using System.Diagnostics; using Microsoft.OData.Edm; -using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Exceptions; using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Properties; using Microsoft.OpenApi.OData.Common; +using Microsoft.OpenApi.Extensions; +using Microsoft.OpenApi.Models.References; +using Microsoft.OpenApi.Models.Interfaces; namespace Microsoft.OpenApi.OData.Generator { @@ -21,13 +23,22 @@ namespace Microsoft.OpenApi.OData.Generator /// internal static class OpenApiEdmTypeSchemaGenerator { + /// + /// Create a for a when producing an OpenAPI parameter. + /// + /// The OData context. + /// The Edm type reference. + /// The created . + public static IOpenApiSchema CreateEdmTypeSchemaForParameter(this ODataContext context, IEdmTypeReference edmTypeReference) + => CreateEdmTypeSchema(context, edmTypeReference, true); /// /// Create a for a . /// /// The OData context. /// The Edm type reference. + /// Whether the schema is for a parameter. /// The created . - public static OpenApiSchema CreateEdmTypeSchema(this ODataContext context, IEdmTypeReference edmTypeReference) + public static IOpenApiSchema CreateEdmTypeSchema(this ODataContext context, IEdmTypeReference edmTypeReference, bool schemaForParameter = false) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(edmTypeReference, nameof(edmTypeReference)); @@ -39,14 +50,13 @@ public static OpenApiSchema CreateEdmTypeSchema(this ODataContext context, IEdmT case EdmTypeKind.Collection: IEdmTypeReference typeRef = edmTypeReference.AsCollection().ElementType(); - OpenApiSchema schema; - schema = typeRef.TypeKind() == EdmTypeKind.Complex || typeRef.TypeKind() == EdmTypeKind.Entity + var schema = typeRef.TypeKind() == EdmTypeKind.Complex || typeRef.TypeKind() == EdmTypeKind.Entity ? context.CreateStructuredTypeSchema(typeRef.AsStructured(), true) - : context.CreateEdmTypeSchema(typeRef); + : context.CreateEdmTypeSchema(typeRef, schemaForParameter); return new OpenApiSchema { - Type = "array", + Type = JsonSchemaType.Array, Items = schema }; @@ -64,10 +74,10 @@ public static OpenApiSchema CreateEdmTypeSchema(this ODataContext context, IEdmT // represented as Schema Objects that are JSON References to definitions in the Definitions Object case EdmTypeKind.Primitive: IEdmPrimitiveTypeReference primitiveTypeReference = (IEdmPrimitiveTypeReference)edmTypeReference; - return context.CreateSchema(primitiveTypeReference); + return context.CreateSchema(primitiveTypeReference, schemaForParameter); case EdmTypeKind.TypeDefinition: - return context.CreateSchema(((IEdmTypeDefinitionReference)edmTypeReference).TypeDefinition().UnderlyingType); + return context.CreateSchema(((IEdmTypeDefinitionReference)edmTypeReference).TypeDefinition().UnderlyingType, schemaForParameter); case EdmTypeKind.EntityReference: return context.CreateTypeDefinitionSchema(edmTypeReference.AsTypeDefinition()); @@ -82,24 +92,25 @@ public static OpenApiSchema CreateEdmTypeSchema(this ODataContext context, IEdmT } /// - /// Create a for a . + /// Create a for a . /// /// The OData context. /// The Edm primitive reference. - /// The created . - public static OpenApiSchema CreateSchema(this ODataContext context, IEdmPrimitiveTypeReference primitiveType) + /// Whether the schema is for a parameter. + /// The created . + public static IOpenApiSchema CreateSchema(this ODataContext context, IEdmPrimitiveTypeReference primitiveType, bool schemaForParameter = false) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(primitiveType, nameof(primitiveType)); - OpenApiSchema schema = context.CreateSchema(primitiveType.PrimitiveDefinition()); - if (schema != null) + var schema = context.CreateSchema(primitiveType.PrimitiveDefinition(), schemaForParameter); + if (schema is OpenApiSchema openApiSchema) { switch(primitiveType.PrimitiveKind()) { case EdmPrimitiveTypeKind.Binary: // binary IEdmBinaryTypeReference binaryTypeReference = (IEdmBinaryTypeReference)primitiveType; - schema.MaxLength = binaryTypeReference.MaxLength; + openApiSchema.MaxLength = binaryTypeReference.MaxLength; break; case EdmPrimitiveTypeKind.Decimal: // decimal @@ -111,30 +122,33 @@ public static OpenApiSchema CreateSchema(this ODataContext context, IEdmPrimitiv // The precision is represented with the maximum and minimum keywords and a value of ±(10^ (precision - scale) - 10^ scale). double tmp = Math.Pow(10, decimalTypeReference.Precision.Value - decimalTypeReference.Scale.Value) - Math.Pow(10, -decimalTypeReference.Scale.Value); - schema.Minimum = (decimal?)(tmp * -1.0); - schema.Maximum = (decimal?)(tmp); + openApiSchema.Minimum = (decimal?)(tmp * -1.0); + openApiSchema.Maximum = (decimal?)(tmp); } else { // If the scale facet has a numeric value, and ±(10^precision - 1) if the scale is variable double tmp = Math.Pow(10, decimalTypeReference.Precision.Value) - 1; - schema.Minimum = (decimal?)(tmp * -1.0); - schema.Maximum = (decimal?)(tmp); + openApiSchema.Minimum = (decimal?)(tmp * -1.0); + openApiSchema.Maximum = (decimal?)(tmp); } } // The scale of properties of type Edm.Decimal are represented with the OpenAPI Specification keyword multipleOf and a value of 10 ^ -scale - schema.MultipleOf = decimalTypeReference.Scale == null ? null : (decimal?)(Math.Pow(10, decimalTypeReference.Scale.Value * -1)); + openApiSchema.MultipleOf = decimalTypeReference.Scale == null ? null : (decimal?)(Math.Pow(10, decimalTypeReference.Scale.Value * -1)); break; case EdmPrimitiveTypeKind.String: // string IEdmStringTypeReference stringTypeReference = (IEdmStringTypeReference)primitiveType; - schema.MaxLength = stringTypeReference.MaxLength; + openApiSchema.MaxLength = stringTypeReference.MaxLength; break; } // Nullable properties are marked with the keyword nullable and a value of true. // nullable cannot be true when type is empty, often common in anyof/allOf since individual entries are nullable - schema.Nullable = !string.IsNullOrEmpty(schema.Type) && primitiveType.IsNullable; + if (!string.IsNullOrEmpty(schema.Type.ToIdentifier()) && primitiveType.IsNullable) + { + openApiSchema.Type |= JsonSchemaType.Null; + } } return schema; @@ -145,8 +159,9 @@ public static OpenApiSchema CreateSchema(this ODataContext context, IEdmPrimitiv /// /// The OData context. /// The Edm primitive type. + /// Whether the schema is for a parameter. /// The created . - public static OpenApiSchema CreateSchema(this ODataContext context, IEdmPrimitiveType primitiveType) + public static IOpenApiSchema CreateSchema(this ODataContext context, IEdmPrimitiveType primitiveType, bool schemaForParameter = false) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(primitiveType, nameof(primitiveType)); @@ -159,261 +174,152 @@ public static OpenApiSchema CreateSchema(this ODataContext context, IEdmPrimitiv AnyOf = null }; + var emitIEEECompatibleTypes = context.Settings.IEEE754Compatible && (context.Settings.OpenApiSpecVersion >= OpenApiSpecVersion.OpenApi3_0 || !schemaForParameter); + var emitV2CompatibleParameterTypes = context.Settings.OpenApiSpecVersion == OpenApiSpecVersion.OpenApi2_0 && schemaForParameter; + switch (primitiveType.PrimitiveKind) { case EdmPrimitiveTypeKind.Binary: // binary - schema.Type = Constants.StringType; + schema.Type = JsonSchemaType.String; schema.Format = "base64url"; break; case EdmPrimitiveTypeKind.Boolean: // boolean - schema.Type = "boolean"; - schema.Default = new OpenApiBoolean(false); + schema.Type = JsonSchemaType.Boolean; + schema.Default = false; break; case EdmPrimitiveTypeKind.Byte: // byte - schema.Type = Constants.NumberType; + schema.Type = JsonSchemaType.Number; schema.Format = "uint8"; break; case EdmPrimitiveTypeKind.DateTimeOffset: // datetime offset - schema.Type = Constants.StringType; + schema.Type = JsonSchemaType.String; schema.Format = "date-time"; schema.Pattern = "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$"; break; - case EdmPrimitiveTypeKind.Decimal: // decimal - if (context.Settings.IEEE754Compatible) - { - schema.OneOf = new List - { - new OpenApiSchema { Type = Constants.NumberType, Format = Constants.DecimalFormat, Nullable = true }, - new OpenApiSchema { Type = Constants.StringType, Nullable = true }, - }; - } - else - { - schema.Type = Constants.NumberType; - schema.Format = Constants.DecimalFormat; - } + case EdmPrimitiveTypeKind.Decimal when emitIEEECompatibleTypes: // decimal + schema.OneOf = + [ + new OpenApiSchema { Type = JsonSchemaType.Number | JsonSchemaType.Null, Format = Constants.DecimalFormat }, + new OpenApiSchema { Type = JsonSchemaType.String | JsonSchemaType.Null }, + ]; break; - case EdmPrimitiveTypeKind.Double: // double - schema.OneOf = new List - { - new OpenApiSchema { Type = Constants.NumberType, Format = "double", Nullable = true }, - new OpenApiSchema { Type = Constants.StringType, Nullable = true }, - new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = Constants.ReferenceNumericName - } - } - }; + case EdmPrimitiveTypeKind.Decimal when !emitIEEECompatibleTypes: // decimal + schema.Type = JsonSchemaType.Number; + schema.Format = Constants.DecimalFormat; break; - case EdmPrimitiveTypeKind.Single: // single - schema.OneOf = new List - { - new OpenApiSchema { Type = Constants.NumberType, Format = "float", Nullable = true }, - new OpenApiSchema { Type = Constants.StringType, Nullable = true }, - new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = Constants.ReferenceNumericName - } - } - }; + case EdmPrimitiveTypeKind.Double when emitV2CompatibleParameterTypes: // double + schema.Type = JsonSchemaType.Number | JsonSchemaType.Null; + schema.Format = "double"; + break; + case EdmPrimitiveTypeKind.Double when !emitV2CompatibleParameterTypes: // double + schema.OneOf = + [ + new OpenApiSchema { Type = JsonSchemaType.Number | JsonSchemaType.Null, Format = "double" }, + new OpenApiSchema { Type = JsonSchemaType.String | JsonSchemaType.Null }, + new OpenApiSchemaReference(Constants.ReferenceNumericName) + ]; + break; + case EdmPrimitiveTypeKind.Single when emitV2CompatibleParameterTypes: // single + schema.Type = JsonSchemaType.Number | JsonSchemaType.Null; + schema.Format = "float"; + break; + case EdmPrimitiveTypeKind.Single when !emitV2CompatibleParameterTypes: // single + schema.OneOf = + [ + new OpenApiSchema { Type = JsonSchemaType.Number | JsonSchemaType.Null, Format = "float"}, + new OpenApiSchema { Type = JsonSchemaType.String | JsonSchemaType.Null}, + new OpenApiSchemaReference(Constants.ReferenceNumericName) + ]; break; case EdmPrimitiveTypeKind.Guid: // guid - schema.Type = Constants.StringType; + schema.Type = JsonSchemaType.String; schema.Format = "uuid"; schema.Pattern = "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"; break; case EdmPrimitiveTypeKind.Int16: - schema.Type = Constants.NumberType; + schema.Type = JsonSchemaType.Number; schema.Format = "int16"; schema.Minimum = Int16.MinValue; // -32768 schema.Maximum = Int16.MaxValue; // 32767 break; case EdmPrimitiveTypeKind.Int32: - schema.Type = Constants.NumberType; + schema.Type = JsonSchemaType.Number; schema.Format = "int32"; schema.Minimum = Int32.MinValue; // -2147483648 schema.Maximum = Int32.MaxValue; // 2147483647 break; - case EdmPrimitiveTypeKind.Int64: - if (context.Settings.IEEE754Compatible) - { - schema.OneOf = new List - { - new OpenApiSchema { Type = Constants.NumberType, Format = Constants.Int64Format, Nullable = true }, - new OpenApiSchema { Type = Constants.StringType, Nullable = true } - }; - } - else - { - schema.Type = Constants.NumberType; - schema.Format = Constants.Int64Format; - } + case EdmPrimitiveTypeKind.Int64 when emitIEEECompatibleTypes: + schema.OneOf = + [ + new OpenApiSchema { Type = JsonSchemaType.Number | JsonSchemaType.Null, Format = Constants.Int64Format}, + new OpenApiSchema { Type = JsonSchemaType.String | JsonSchemaType.Null } + ]; + break; + case EdmPrimitiveTypeKind.Int64 when !emitIEEECompatibleTypes: + schema.Type = JsonSchemaType.Number; + schema.Format = Constants.Int64Format; break; case EdmPrimitiveTypeKind.SByte: - schema.Type = Constants.NumberType; + schema.Type = JsonSchemaType.Number; schema.Format = "int8"; schema.Minimum = SByte.MinValue; // -128 schema.Maximum = SByte.MaxValue; // 127 break; case EdmPrimitiveTypeKind.String: // string - schema.Type = Constants.StringType; + schema.Type = JsonSchemaType.String; break; case EdmPrimitiveTypeKind.Stream: // stream - schema.Type = Constants.StringType; + schema.Type = JsonSchemaType.String; schema.Format = "base64url"; break; case EdmPrimitiveTypeKind.Duration: // duration - schema.Type = Constants.StringType; + schema.Type = JsonSchemaType.String; schema.Format = "duration"; schema.Pattern = "^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$"; break; case EdmPrimitiveTypeKind.Date: - schema.Type = Constants.StringType; + schema.Type = JsonSchemaType.String; schema.Format = "date"; schema.Pattern = "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$"; break; case EdmPrimitiveTypeKind.TimeOfDay: - schema.Type = Constants.StringType; + schema.Type = JsonSchemaType.String; schema.Format = "time"; schema.Pattern = "^([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?$"; break; case EdmPrimitiveTypeKind.Geography: - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.Geography" - }; - schema.UnresolvedReference = true; - break; + return new OpenApiSchemaReference("Edm.Geography"); case EdmPrimitiveTypeKind.GeographyPoint: - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeographyPoint" - }; - schema.UnresolvedReference = true; - break; + return new OpenApiSchemaReference("Edm.GeographyPoint"); case EdmPrimitiveTypeKind.GeographyLineString: - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeographyLineString" - }; - schema.UnresolvedReference = true; - break; + return new OpenApiSchemaReference("Edm.GeographyLineString"); case EdmPrimitiveTypeKind.GeographyPolygon: - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeographyPolygon" - }; - schema.UnresolvedReference = true; - break; + return new OpenApiSchemaReference("Edm.GeographyPolygon"); case EdmPrimitiveTypeKind.GeographyCollection: - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeographyCollection" - }; - schema.UnresolvedReference = true; - break; + return new OpenApiSchemaReference("Edm.GeographyCollection"); case EdmPrimitiveTypeKind.GeographyMultiPolygon: - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeographyMultiPolygon" - }; - schema.UnresolvedReference = true; - break; + return new OpenApiSchemaReference("Edm.GeographyMultiPolygon"); case EdmPrimitiveTypeKind.GeographyMultiLineString: - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeographyMultiLineString" - }; - schema.UnresolvedReference = true; - break; + return new OpenApiSchemaReference("Edm.GeographyMultiLineString"); case EdmPrimitiveTypeKind.GeographyMultiPoint: - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeographyMultiPoint" - }; - schema.UnresolvedReference = true; - break; + return new OpenApiSchemaReference("Edm.GeographyMultiPoint"); case EdmPrimitiveTypeKind.Geometry: // Geometry - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.Geometry" - }; - schema.UnresolvedReference = true; - break; + return new OpenApiSchemaReference("Edm.Geometry"); case EdmPrimitiveTypeKind.GeometryPoint: - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeometryPoint" - }; - schema.UnresolvedReference = true; - break; + return new OpenApiSchemaReference("Edm.GeometryPoint"); case EdmPrimitiveTypeKind.GeometryLineString: - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeometryLineString" - }; - schema.UnresolvedReference = true; - break; + return new OpenApiSchemaReference("Edm.GeometryLineString"); case EdmPrimitiveTypeKind.GeometryPolygon: - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeometryPolygon" - }; - schema.UnresolvedReference = true; - break; + return new OpenApiSchemaReference("Edm.GeometryPolygon"); case EdmPrimitiveTypeKind.GeometryCollection: - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeometryCollection" - }; - schema.UnresolvedReference = true; - break; + return new OpenApiSchemaReference("Edm.GeometryCollection"); case EdmPrimitiveTypeKind.GeometryMultiPolygon: - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeometryMultiPolygon" - }; - schema.UnresolvedReference = true; - break; + return new OpenApiSchemaReference("Edm.GeometryMultiPolygon"); case EdmPrimitiveTypeKind.GeometryMultiLineString: - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeometryMultiLineString" - }; - schema.UnresolvedReference = true; - break; + return new OpenApiSchemaReference("Edm.GeometryMultiLineString"); case EdmPrimitiveTypeKind.GeometryMultiPoint: - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeometryMultiPoint" - }; - schema.UnresolvedReference = true; - break; + return new OpenApiSchemaReference("Edm.GeometryMultiPoint"); case EdmPrimitiveTypeKind.None: default: @@ -423,57 +329,36 @@ public static OpenApiSchema CreateSchema(this ODataContext context, IEdmPrimitiv return schema; } - private static OpenApiSchema CreateEnumTypeSchema(this ODataContext context, IEdmEnumTypeReference typeReference) + private static IOpenApiSchema CreateEnumTypeSchema(this ODataContext context, IEdmEnumTypeReference typeReference) { Debug.Assert(context != null); Debug.Assert(typeReference != null); - OpenApiSchema schema = new OpenApiSchema(); - schema.Reference = null; if (typeReference.IsNullable && context.Settings.OpenApiSpecVersion >= OpenApiSpecVersion.OpenApi3_0) { - schema.AnyOf = new List - { - new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference + return new OpenApiSchema { + AnyOf = + [ + new OpenApiSchemaReference(typeReference.Definition.FullTypeName()), + new OpenApiSchema { - Type = ReferenceType.Schema, - Id = typeReference.Definition.FullTypeName() + Type = JsonSchemaType.Null, } - }, - new OpenApiSchema - { - Type = "object", - Nullable = true - } + ] }; } else { - schema.Type = null; - schema.AnyOf = null; - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = typeReference.Definition.FullTypeName() - }; - schema.UnresolvedReference = true; - schema.Nullable = typeReference.IsNullable; + return new OpenApiSchemaReference(typeReference.Definition.FullTypeName()); } - - return schema; } - private static OpenApiSchema CreateStructuredTypeSchema(this ODataContext context, IEdmStructuredTypeReference typeReference, bool isTypeCollection = false) + private static IOpenApiSchema CreateStructuredTypeSchema(this ODataContext context, IEdmStructuredTypeReference typeReference, bool isTypeCollection = false) { Debug.Assert(context != null); Debug.Assert(typeReference != null); - OpenApiSchema schema = new OpenApiSchema(); - // AnyOf will only be valid openApi for version 3 // otherwise the reference should be set directly // as per OASIS documentation for openApi version 2 @@ -481,84 +366,45 @@ private static OpenApiSchema CreateStructuredTypeSchema(this ODataContext contex if (typeReference.IsNullable && !isTypeCollection && (context.Settings.OpenApiSpecVersion >= OpenApiSpecVersion.OpenApi3_0)) { - schema.Reference = null; - schema.AnyOf = new List - { - new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference + return new OpenApiSchema { + AnyOf = + [ + new OpenApiSchemaReference(typeReference.Definition.FullTypeName()), + new OpenApiSchema { - Type = ReferenceType.Schema, - Id = typeReference.Definition.FullTypeName() + Type = JsonSchemaType.Null, } - }, - new OpenApiSchema - { - Type = "object", - Nullable = true - } + ] }; } else { - schema.Type = null; - schema.AnyOf = null; - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = typeReference.Definition.FullTypeName() - }; - schema.UnresolvedReference = true; - schema.Nullable = typeReference.IsNullable; + return new OpenApiSchemaReference(typeReference.Definition.FullTypeName()); } - - return schema; } - private static OpenApiSchema CreateTypeDefinitionSchema(this ODataContext context, IEdmTypeDefinitionReference reference) + private static IOpenApiSchema CreateTypeDefinitionSchema(this ODataContext context, IEdmTypeDefinitionReference reference) { Debug.Assert(context != null); Debug.Assert(reference != null); - OpenApiSchema schema = new OpenApiSchema(); - schema.Reference = null; - if (reference.IsNullable && context.Settings.OpenApiSpecVersion >= OpenApiSpecVersion.OpenApi3_0) { - schema.AnyOf = new List - { - new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference + return new OpenApiSchema { + AnyOf = + [ + new OpenApiSchemaReference(reference.Definition.FullTypeName()), + new OpenApiSchema { - Type = ReferenceType.Schema, - Id = reference.Definition.FullTypeName() + Type = JsonSchemaType.Null, } - }, - new OpenApiSchema - { - Type = "object", - Nullable = true - } + ] }; } else { - schema.Type = null; - schema.AnyOf = null; - schema.Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = reference.Definition.FullTypeName() - }; - schema.UnresolvedReference = true; - schema.Nullable = reference.IsNullable; - } - - - return schema; + return new OpenApiSchemaReference(reference.Definition.FullTypeName()); + } } } } diff --git a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiErrorSchemaGenerator.cs b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiErrorSchemaGenerator.cs index beeaa1d1d..c6f954ded 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiErrorSchemaGenerator.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiErrorSchemaGenerator.cs @@ -11,6 +11,8 @@ using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.MicrosoftExtensions; +using Microsoft.OpenApi.Models.References; +using Microsoft.OpenApi.Models.Interfaces; namespace Microsoft.OpenApi.OData.Generator { @@ -31,12 +33,12 @@ internal static class OpenApiErrorSchemaGenerator /// /// The OData to Open API context. /// The string/schema dictionary. - public static IDictionary CreateODataErrorSchemas(this ODataContext context) + public static IDictionary CreateODataErrorSchemas(this ODataContext context) { Utils.CheckArgumentNull(context, nameof(context)); var rootNamespaceName = context.GetErrorNamespaceName(); - return new Dictionary() + return new Dictionary() { { $"{rootNamespaceName}{ODataErrorClassName}", CreateErrorSchema(rootNamespaceName) }, { $"{rootNamespaceName}{MainErrorClassName}", CreateErrorMainSchema(rootNamespaceName) }, @@ -67,24 +69,16 @@ public static OpenApiSchema CreateErrorSchema(string rootNamespaceName) { return new OpenApiSchema { - Type = "object", + Type = JsonSchemaType.Object, Required = new HashSet { "error" }, - Properties = new Dictionary + Properties = new Dictionary { { "error", - new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = $"{rootNamespaceName}{MainErrorClassName}" - } - } + new OpenApiSchemaReference($"{rootNamespaceName}{MainErrorClassName}") } } }; @@ -96,7 +90,7 @@ public static OpenApiSchema CreateErrorSchema(string rootNamespaceName) /// /// The OData to Open API context. /// The inner error schema definition. - public static OpenApiSchema CreateInnerErrorSchema(ODataContext context) + public static IOpenApiSchema CreateInnerErrorSchema(ODataContext context) { Utils.CheckArgumentNull(context, nameof(context)); @@ -110,7 +104,7 @@ public static OpenApiSchema CreateInnerErrorSchema(ODataContext context) return new OpenApiSchema { - Type = "object", + Type = JsonSchemaType.Object, Description = "The structure of this object is service-specific" }; } @@ -124,50 +118,34 @@ public static OpenApiSchema CreateErrorMainSchema(string rootNamespaceName) { return new OpenApiSchema { - Type = "object", + Type = JsonSchemaType.Object, Required = new HashSet { "code", "message" }, - Properties = new Dictionary + Properties = new Dictionary { { - "code", new OpenApiSchema { Type = "string", Nullable = false } + "code", new OpenApiSchema { Type = JsonSchemaType.String } }, { - "message", new OpenApiSchema { Type = "string", Nullable = false, Extensions = new Dictionary + "message", new OpenApiSchema { Type = JsonSchemaType.String, Extensions = new Dictionary { { OpenApiPrimaryErrorMessageExtension.Name, new OpenApiPrimaryErrorMessageExtension { IsPrimaryErrorMessage = true } } } } }, { - "target", new OpenApiSchema { Type = "string", Nullable = true } + "target", new OpenApiSchema { Type = JsonSchemaType.String | JsonSchemaType.Null } }, { "details", new OpenApiSchema { - Type = "array", - Items = new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = $"{rootNamespaceName}{ErrorDetailsClassName}" - } - } + Type = JsonSchemaType.Array, + Items = new OpenApiSchemaReference($"{rootNamespaceName}{ErrorDetailsClassName}") } }, { "innerError", - new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = $"{rootNamespaceName}{InnerErrorClassName}" - } - } + new OpenApiSchemaReference($"{rootNamespaceName}{InnerErrorClassName}") } } }; @@ -181,21 +159,21 @@ public static OpenApiSchema CreateErrorDetailSchema() { return new OpenApiSchema { - Type = "object", + Type = JsonSchemaType.Object, Required = new HashSet { "code", "message" }, - Properties = new Dictionary + Properties = new Dictionary { { - "code", new OpenApiSchema { Type = "string", Nullable = false, } + "code", new OpenApiSchema { Type = JsonSchemaType.String, } }, { - "message", new OpenApiSchema { Type = "string", Nullable = false, } + "message", new OpenApiSchema { Type = JsonSchemaType.String, } }, { - "target", new OpenApiSchema { Type = "string", Nullable = true, } + "target", new OpenApiSchema { Type = JsonSchemaType.String | JsonSchemaType.Null, } } } }; diff --git a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiExampleGenerator.cs b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiExampleGenerator.cs index bdba738c0..7f3f140da 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiExampleGenerator.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiExampleGenerator.cs @@ -8,8 +8,6 @@ using System.Diagnostics; using System.Linq; using Microsoft.OData.Edm; -using Microsoft.OpenApi.Any; -using Microsoft.OpenApi.Exceptions; using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; @@ -25,37 +23,28 @@ internal static class OpenApiExampleGenerator /// Create the dictionary of object. /// /// The OData to Open API context. - /// The created dictionary. - public static IDictionary CreateExamples(this ODataContext context) + /// The Open API document. + public static void AddExamplesToDocument(this ODataContext context, OpenApiDocument document) { Utils.CheckArgumentNull(context, nameof(context)); + Utils.CheckArgumentNull(document, nameof(document)); - IDictionary examples = new Dictionary(); // Each entity type, complex type, enumeration type, and type definition directly // or indirectly used in the paths field is represented as a name / value pair of the schemas map. // Ideally this would be driven off the types used in the paths, but in practice, it is simply // all of the types present in the model. - IEnumerable elements = context.Model.GetAllElements(); + var elements = context.Model.GetAllElements() + .Where(static x => x.SchemaElementKind is EdmSchemaElementKind.TypeDefinition) + .OfType(); foreach (var element in elements) { - switch (element.SchemaElementKind) + if (context.CreateExample(element) is OpenApiExample example) { - case EdmSchemaElementKind.TypeDefinition: // Type definition - { - IEdmType reference = (IEdmType)element; - OpenApiExample example = context.CreateExample(reference); - if (example != null) - { - examples.Add(reference.FullTypeName(), example); - } - } - break; + document.AddComponent(element.FullTypeName(), example); } } - - return examples; } private static OpenApiExample CreateExample(this ODataContext context, IEdmType edmType) @@ -63,129 +52,15 @@ private static OpenApiExample CreateExample(this ODataContext context, IEdmType Debug.Assert(context != null); Debug.Assert(edmType != null); - switch (edmType.TypeKind) + return edmType.TypeKind switch { - case EdmTypeKind.Complex: // complex type - case EdmTypeKind.Entity: // entity type - return CreateStructuredTypeExample((IEdmStructuredType)edmType); - } - - return null; - } - - private static OpenApiExample CreateStructuredTypeExample(IEdmStructuredType structuredType) - { - OpenApiExample example = new OpenApiExample(); - - OpenApiObject value = new OpenApiObject(); - - IEdmEntityType entityType = structuredType as IEdmEntityType; - - // properties - foreach (var property in structuredType.DeclaredProperties.OrderBy(p => p.Name)) - { - // IOpenApiAny item; - IEdmTypeReference propertyType = property.Type; - - IOpenApiAny item = GetTypeNameForExample(propertyType); - - EdmTypeKind typeKind = propertyType.TypeKind(); - if (typeKind == EdmTypeKind.Primitive && item is OpenApiString) + // complex type + EdmTypeKind.Complex or EdmTypeKind.Entity when edmType is IEdmStructuredType edmStructuredType => new() { - OpenApiString stringAny = item as OpenApiString; - string propertyValue = stringAny.Value; - if (entityType != null && entityType.Key().Any(k => k.Name == property.Name)) - { - propertyValue += " (identifier)"; - } - if (propertyType.IsDateTimeOffset() || propertyType.IsDate() || propertyType.IsTimeOfDay()) - { - propertyValue += " (timestamp)"; - } - item = new OpenApiString(propertyValue); - } - - value.Add(property.Name, item); - } - example.Value = value; - return example; - } - - private static IOpenApiAny GetTypeNameForExample(IEdmTypeReference edmTypeReference) - { - switch (edmTypeReference.TypeKind()) - { - case EdmTypeKind.Primitive: - if (edmTypeReference.IsBinary()) - { - // return new OpenApiBinary(new byte[] { 0x00 }); issue on binary writing - return new OpenApiString(Convert.ToBase64String(new byte[] { 0x00 })); - } - else if (edmTypeReference.IsBoolean()) - { - return new OpenApiBoolean(true); - } - else if (edmTypeReference.IsByte()) - { - return new OpenApiByte(0x00); - } - else if (edmTypeReference.IsDate()) - { - return new OpenApiDate(DateTime.MinValue); - } - else if (edmTypeReference.IsDateTimeOffset()) - { - return new OpenApiDateTime(DateTimeOffset.MinValue); - } - else if (edmTypeReference.IsDecimal() || edmTypeReference.IsDouble()) - { - return new OpenApiDouble(0D); - } - else if (edmTypeReference.IsFloating()) - { - return new OpenApiFloat(0F); - } - else if (edmTypeReference.IsGuid()) - { - return new OpenApiString(Guid.Empty.ToString()); - } - else if (edmTypeReference.IsInt16() || edmTypeReference.IsInt32()) - { - return new OpenApiInteger(0); - } - else if (edmTypeReference.IsInt64()) - { - return new OpenApiLong(0L); - } - else - { - return new OpenApiString(edmTypeReference.AsPrimitive().PrimitiveDefinition().Name); - } - - case EdmTypeKind.Entity: - case EdmTypeKind.Complex: - case EdmTypeKind.Enum: - OpenApiObject obj = new OpenApiObject(); - obj["@odata.type"] = new OpenApiString(edmTypeReference.FullName()); - return obj; - - case EdmTypeKind.Collection: - OpenApiArray array = new OpenApiArray(); - IEdmTypeReference elementType = edmTypeReference.AsCollection().ElementType(); - array.Add(GetTypeNameForExample(elementType)); - return array; - - case EdmTypeKind.TypeDefinition: - var typedef = edmTypeReference.AsTypeDefinition().TypeDefinition(); - return GetTypeNameForExample(new EdmPrimitiveTypeReference(typedef.UnderlyingType, edmTypeReference.IsNullable)); - - case EdmTypeKind.Untyped: - return new OpenApiObject(); - - case EdmTypeKind.EntityReference: - default: - throw new OpenApiException("Not support for the type kind " + edmTypeReference.TypeKind()); - } + Value = OpenApiSchemaGenerator.CreateStructuredTypePropertiesExample(context, edmStructuredType), + }, + _ => null, + }; } } } diff --git a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiInfoGenerator.cs b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiInfoGenerator.cs index 3aa432e30..085cb5bb8 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiInfoGenerator.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiInfoGenerator.cs @@ -7,6 +7,7 @@ using System.Diagnostics; using System.Linq; using System.Reflection; +using System.Text.Json.Nodes; using Microsoft.OData.Edm; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Interfaces; @@ -109,11 +110,11 @@ private static Dictionary GetExtensions(this ODataCon { { "x-ms-generated-by", - new OpenApiObject + new OpenApiAny(new JsonObject { - { "toolName", new OpenApiString("Microsoft.OpenApi.OData") }, - { "toolVersion", new OpenApiString(Assembly.GetExecutingAssembly().GetName().Version.ToString()) } - } + { "toolName", "Microsoft.OpenApi.OData" }, + { "toolVersion", Assembly.GetExecutingAssembly().GetName().Version.ToString() } + }) } }; } diff --git a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiLinkGenerator.cs b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiLinkGenerator.cs index 1f92f02a8..5fb7804ea 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiLinkGenerator.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiLinkGenerator.cs @@ -7,9 +7,9 @@ using Microsoft.OData.Edm; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.Models; -using Microsoft.OpenApi.Any; using Microsoft.OpenApi.OData.Edm; using System.Linq; +using Microsoft.OpenApi.Models.Interfaces; namespace Microsoft.OpenApi.OData.Generator { @@ -29,9 +29,9 @@ internal static class OpenApiLinkGenerator /// "Optional: The list of parameters of the incoming operation. /// Optional: The operation id of the source of the NavigationProperty object. /// The created dictionary of object. - public static IDictionary CreateLinks(this ODataContext context, + public static IDictionary CreateLinks(this ODataContext context, IEdmEntityType entityType, string entityName, string entityKind, ODataPath path, - IList parameters = null, string navPropOperationId = null) + IList parameters = null, string navPropOperationId = null) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(entityType, nameof(entityType)); @@ -54,7 +54,7 @@ public static IDictionary CreateLinks(this ODataContext con } } - Dictionary links = new(); + Dictionary links = new(); bool lastSegmentIsColNavProp = (path.LastSegment as ODataNavigationPropertySegment)?.NavigationProperty.TargetMultiplicity() == EdmMultiplicity.Many; // Valid only for non collection-valued navigation properties @@ -97,7 +97,7 @@ public static IDictionary CreateLinks(this ODataContext con { link.Parameters[pathKeyName] = new RuntimeExpressionAnyWrapper { - Any = new OpenApiString("$request.path." + pathKeyName) + Any = "$request.path." + pathKeyName }; } } diff --git a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiParameterGenerator.cs b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiParameterGenerator.cs index eaceb8700..eb3c7e3f8 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiParameterGenerator.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiParameterGenerator.cs @@ -6,7 +6,6 @@ using System.Collections.Generic; using System.Linq; using Microsoft.OData.Edm; -using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Common; using Microsoft.OData.Edm.Vocabularies; @@ -14,6 +13,10 @@ using Microsoft.OpenApi.OData.Vocabulary.Capabilities; using System.Diagnostics; using System; +using System.Text.Json.Nodes; +using Microsoft.OpenApi.Any; +using Microsoft.OpenApi.Models.References; +using Microsoft.OpenApi.Models.Interfaces; namespace Microsoft.OpenApi.OData.Generator { @@ -27,21 +30,19 @@ internal static class OpenApiParameterGenerator /// Create a map of object. /// /// The OData context. - /// The created map of object. - public static IDictionary CreateParameters(this ODataContext context) + /// The Open API document. + public static void AddParametersToDocument(this ODataContext context, OpenApiDocument document) { Utils.CheckArgumentNull(context, nameof(context)); + Utils.CheckArgumentNull(document, nameof(document)); // It allows defining query options and headers that can be reused across operations of the service. // The value of parameters is a map of Parameter Objects. - return new Dictionary - { - { "top", CreateTop(context.Settings.TopExample) }, - { "skip", CreateSkip() }, - { "count", CreateCount() }, - { "filter", CreateFilter() }, - { "search", CreateSearch() }, - }; + document.AddComponent("top", CreateTop(context.Settings.TopExample)); + document.AddComponent("skip", CreateSkip()); + document.AddComponent("count", CreateCount()); + document.AddComponent("filter", CreateFilter()); + document.AddComponent("search", CreateSearch()); } /// @@ -50,7 +51,7 @@ public static IDictionary CreateParameters(this ODataC /// The OData context. /// The Edm function import. /// The created list of . - public static IList CreateParameters(this ODataContext context, IEdmFunctionImport functionImport) + public static IList CreateParameters(this ODataContext context, IEdmFunctionImport functionImport) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(functionImport, nameof(functionImport)); @@ -65,23 +66,20 @@ public static IList CreateParameters(this ODataContext context /// The Edm function. /// The parameter name mapping. /// The created list of . - public static IList CreateParameters(this ODataContext context, IEdmFunction function, + public static IList CreateParameters(this ODataContext context, IEdmFunction function, IDictionary parameterNameMapping = null) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(function, nameof(function)); - IList parameters = new List(); + var parameters = new List(); int skip = function.IsBound ? 1 : 0; foreach (IEdmOperationParameter edmParameter in function.Parameters.Skip(skip)) { - if (parameterNameMapping != null) + if (parameterNameMapping != null && !parameterNameMapping.ContainsKey(edmParameter.Name)) { - if (!parameterNameMapping.ContainsKey(edmParameter.Name)) - { - continue; - } - } + continue; + } OpenApiParameter parameter; bool isOptionalParameter = edmParameter is IEdmOptionalParameter; @@ -103,10 +101,10 @@ public static IList CreateParameters(this ODataContext context { Schema = new OpenApiSchema { - Type = "array", + Type = JsonSchemaType.Array, Items = new OpenApiSchema { - Type = "string" + Type = JsonSchemaType.String }, // These Parameter Objects optionally can contain the field description, @@ -129,7 +127,7 @@ public static IList CreateParameters(this ODataContext context Name = parameterNameMapping == null ? edmParameter.Name : parameterNameMapping[edmParameter.Name], In = isOptionalParameter ? ParameterLocation.Query : ParameterLocation.Path, Required = !isOptionalParameter, - Schema = context.CreateEdmTypeSchema(edmParameter.Type) + Schema = context.CreateEdmTypeSchemaForParameter(edmParameter.Type) }; } @@ -184,10 +182,10 @@ public static IList CreateKeyParameters(this ODataContext cont In = ParameterLocation.Path, Required = true, Description = $"The unique identifier of {entityType.Name}", - Schema = context.CreateEdmTypeSchema(keys.First().Type) + Schema = context.CreateEdmTypeSchemaForParameter(keys[0].Type) }; - parameter.Extensions.Add(Constants.xMsKeyType, new OpenApiString(entityType.Name)); + parameter.Extensions.Add(Constants.xMsKeyType, new OpenApiAny(entityType.Name)); parameters.Add(parameter); } else @@ -203,7 +201,7 @@ public static IList CreateKeyParameters(this ODataContext cont In = ParameterLocation.Path, Required = true, Description = $"Property in multi-part unique identifier of {entityType.Name}", - Schema = context.CreateEdmTypeSchema(keyProperty.Type) + Schema = context.CreateEdmTypeSchemaForParameter(keyProperty.Type) }; if (keySegment.KeyMappings != null) @@ -212,7 +210,7 @@ public static IList CreateKeyParameters(this ODataContext cont parameter.Description += $", {keyProperty.Name}={quote}{{{parameter.Name}}}{quote}"; } - parameter.Extensions.Add(Constants.xMsKeyType, new OpenApiString(entityType.Name)); + parameter.Extensions.Add(Constants.xMsKeyType, new OpenApiAny(entityType.Name)); parameters.Add(parameter); } } @@ -246,7 +244,7 @@ private static IList CreateAlternateKeyParameters(ODataContext Name = alternateKey.First().Key, In = ParameterLocation.Path, Description = $"Alternate key of {entityType.Name}", - Schema = context.CreateEdmTypeSchema(alternateKey.First().Value.Type), + Schema = context.CreateEdmTypeSchemaForParameter(alternateKey.First().Value.Type), Required = true } ); @@ -264,7 +262,7 @@ private static IList CreateAlternateKeyParameters(ODataContext Name = compositekey.Key, In = ParameterLocation.Path, Description = $"Property in multi-part alternate key of {entityType.Name}", - Schema = context.CreateEdmTypeSchema(compositekey.Value.Type), + Schema = context.CreateEdmTypeSchemaForParameter(compositekey.Value.Type), Required = true } ); @@ -281,9 +279,9 @@ private static IList CreateAlternateKeyParameters(ODataContext /// The ODataPath /// The OData context. /// The created list of - public static List CreatePathParameters(this ODataPath path, ODataContext context) + public static List CreatePathParameters(this ODataPath path, ODataContext context) { - List pathParameters = new(); + List pathParameters = []; var parameterMappings = path.CalculateParameterMapping(context.Settings); foreach (ODataKeySegment keySegment in path.OfType()) @@ -301,7 +299,7 @@ public static List CreatePathParameters(this ODataPath path, O if (operationSegment.ParameterMappings != null) { - IList parameters = context.CreateParameters(function, operationSegment.ParameterMappings); + var parameters = context.CreateParameters(function, operationSegment.ParameterMappings); foreach (var parameter in parameters) { pathParameters.AppendParameter(parameter); @@ -310,7 +308,7 @@ public static List CreatePathParameters(this ODataPath path, O else { IDictionary mappings = parameterMappings[operationSegment]; - IList parameters = context.CreateParameters(function, mappings); + var parameters = context.CreateParameters(function, mappings); pathParameters.AddRange(parameters); } } @@ -331,7 +329,7 @@ public static List CreatePathParameters(this ODataPath path, O /// /// The list of OpenApiParameters to be appended to /// The new OpenApiParameter to be appended - public static void AppendParameter(this IList parameters, OpenApiParameter parameter) + public static void AppendParameter(this IList parameters, IOpenApiParameter parameter) { HashSet parametersSet = new(parameters.Select(p => p.Name)); @@ -343,7 +341,10 @@ public static void AppendParameter(this IList parameters, Open index++; } - parameter.Name = parameterName; + if (parameter is OpenApiParameter openApiParameter) + { + openApiParameter.Name = parameterName; + } parametersSet.Add(parameterName); parameters.Add(parameter); } @@ -354,7 +355,7 @@ public static void AppendParameter(this IList parameters, Open /// The OData context. /// The Edm annotation target. /// The created or null. - public static OpenApiParameter CreateTop(this ODataContext context, IEdmVocabularyAnnotatable target) + public static IOpenApiParameter CreateTop(this ODataContext context, IEdmVocabularyAnnotatable target) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(target, nameof(target)); @@ -362,11 +363,7 @@ public static OpenApiParameter CreateTop(this ODataContext context, IEdmVocabula bool? top = context.Model.GetBoolean(target, CapabilitiesConstants.TopSupported); if (top == null || top.Value) { - return new OpenApiParameter - { - UnresolvedReference = true, - Reference = new OpenApiReference { Type = ReferenceType.Parameter, Id = "top" } - }; + return new OpenApiParameterReference("top"); } return null; @@ -378,7 +375,7 @@ public static OpenApiParameter CreateTop(this ODataContext context, IEdmVocabula /// The OData context. /// The string representation of the Edm target path. /// - public static OpenApiParameter CreateTop(this ODataContext context, string targetPath) + public static IOpenApiParameter CreateTop(this ODataContext context, string targetPath) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(targetPath, nameof(targetPath)); @@ -396,7 +393,7 @@ public static OpenApiParameter CreateTop(this ODataContext context, string targe /// The OData context. /// The Edm annotation target. /// The created or null. - public static OpenApiParameter CreateSkip(this ODataContext context, IEdmVocabularyAnnotatable target) + public static IOpenApiParameter CreateSkip(this ODataContext context, IEdmVocabularyAnnotatable target) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(target, nameof(target)); @@ -404,11 +401,7 @@ public static OpenApiParameter CreateSkip(this ODataContext context, IEdmVocabul bool? skip = context.Model.GetBoolean(target, CapabilitiesConstants.SkipSupported); if (skip == null || skip.Value) { - return new OpenApiParameter - { - UnresolvedReference = true, - Reference = new OpenApiReference { Type = ReferenceType.Parameter, Id = "skip" } - }; + return new OpenApiParameterReference("skip"); } return null; @@ -420,7 +413,7 @@ public static OpenApiParameter CreateSkip(this ODataContext context, IEdmVocabul /// The OData context. /// The string representation of the Edm target path. /// - public static OpenApiParameter CreateSkip(this ODataContext context, string targetPath) + public static IOpenApiParameter CreateSkip(this ODataContext context, string targetPath) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(targetPath, nameof(targetPath)); @@ -438,7 +431,7 @@ public static OpenApiParameter CreateSkip(this ODataContext context, string targ /// The OData context. /// The Edm annotation target. /// The created or null. - public static OpenApiParameter CreateSearch(this ODataContext context, IEdmVocabularyAnnotatable target) + public static IOpenApiParameter CreateSearch(this ODataContext context, IEdmVocabularyAnnotatable target) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(target, nameof(target)); @@ -446,11 +439,7 @@ public static OpenApiParameter CreateSearch(this ODataContext context, IEdmVocab SearchRestrictionsType search = context.Model.GetRecord(target, CapabilitiesConstants.SearchRestrictions); if (search == null || search.IsSearchable) { - return new OpenApiParameter - { - UnresolvedReference = true, - Reference = new OpenApiReference { Type = ReferenceType.Parameter, Id = "search" } - }; + return new OpenApiParameterReference("search"); } return null; @@ -461,7 +450,7 @@ public static OpenApiParameter CreateSearch(this ODataContext context, IEdmVocab /// The OData context. /// The string representation of the Edm target path. /// - public static OpenApiParameter CreateSearch(this ODataContext context, string targetPath) + public static IOpenApiParameter CreateSearch(this ODataContext context, string targetPath) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(targetPath, nameof(targetPath)); @@ -479,7 +468,7 @@ public static OpenApiParameter CreateSearch(this ODataContext context, string ta /// The OData context. /// The Edm annotation target. /// The created or null. - public static OpenApiParameter CreateCount(this ODataContext context, IEdmVocabularyAnnotatable target) + public static IOpenApiParameter CreateCount(this ODataContext context, IEdmVocabularyAnnotatable target) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(target, nameof(target)); @@ -487,11 +476,7 @@ public static OpenApiParameter CreateCount(this ODataContext context, IEdmVocabu CountRestrictionsType count = context.Model.GetRecord(target, CapabilitiesConstants.CountRestrictions); if (count == null || count.IsCountable) { - return new OpenApiParameter - { - UnresolvedReference = true, - Reference = new OpenApiReference { Type = ReferenceType.Parameter, Id = "count" } - }; + return new OpenApiParameterReference("count"); } return null; @@ -503,7 +488,7 @@ public static OpenApiParameter CreateCount(this ODataContext context, IEdmVocabu /// The OData context. /// The string representation of the Edm target path. /// - public static OpenApiParameter CreateCount(this ODataContext context, string targetPath) + public static IOpenApiParameter CreateCount(this ODataContext context, string targetPath) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(targetPath, nameof(targetPath)); @@ -521,7 +506,7 @@ public static OpenApiParameter CreateCount(this ODataContext context, string tar /// The OData context. /// The Edm annotation target. /// The created or null. - public static OpenApiParameter CreateFilter(this ODataContext context, IEdmVocabularyAnnotatable target) + public static IOpenApiParameter CreateFilter(this ODataContext context, IEdmVocabularyAnnotatable target) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(target, nameof(target)); @@ -529,11 +514,7 @@ public static OpenApiParameter CreateFilter(this ODataContext context, IEdmVocab FilterRestrictionsType filter = context.Model.GetRecord(target, CapabilitiesConstants.FilterRestrictions); if (filter == null || filter.IsFilterable) { - return new OpenApiParameter - { - UnresolvedReference = true, - Reference = new OpenApiReference { Type = ReferenceType.Parameter, Id = "filter" } - }; + return new OpenApiParameterReference("filter"); } return null; @@ -545,7 +526,7 @@ public static OpenApiParameter CreateFilter(this ODataContext context, IEdmVocab /// The OData context. /// The string representation of the Edm target path. /// - public static OpenApiParameter CreateFilter(this ODataContext context, string targetPath) + public static IOpenApiParameter CreateFilter(this ODataContext context, string targetPath) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(targetPath, nameof(targetPath)); @@ -626,7 +607,7 @@ public static OpenApiParameter CreateOrderBy(this ODataContext context, IEdmVoca return null; } - IList orderByItems = new List(); + IList orderByItems = new List(); foreach (var property in structuredType.StructuralProperties()) { if (sort != null && sort.IsNonSortableProperty(property.Name)) @@ -640,17 +621,17 @@ public static OpenApiParameter CreateOrderBy(this ODataContext context, IEdmVoca { if (isAscOnly) { - orderByItems.Add(new OpenApiString(property.Name)); + orderByItems.Add(property.Name); } else { - orderByItems.Add(new OpenApiString(property.Name + " desc")); + orderByItems.Add(property.Name + " desc"); } } else { - orderByItems.Add(new OpenApiString(property.Name)); - orderByItems.Add(new OpenApiString(property.Name + " desc")); + orderByItems.Add(property.Name); + orderByItems.Add(property.Name + " desc"); } } @@ -661,11 +642,11 @@ public static OpenApiParameter CreateOrderBy(this ODataContext context, IEdmVoca Description = "Order items by property values", Schema = new OpenApiSchema { - Type = "array", + Type = JsonSchemaType.Array, UniqueItems = true, Items = new OpenApiSchema { - Type = "string", + Type = JsonSchemaType.String, Enum = context.Settings.UseStringArrayForQueryOptionsSchema ? null : orderByItems } }, @@ -743,11 +724,11 @@ public static OpenApiParameter CreateSelect(this ODataContext context, IEdmVocab return null; } - IList selectItems = new List(); + IList selectItems = new List(); foreach (var property in structuredType.StructuralProperties()) { - selectItems.Add(new OpenApiString(property.Name)); + selectItems.Add(property.Name); } foreach (var property in structuredType.NavigationProperties()) @@ -757,7 +738,7 @@ public static OpenApiParameter CreateSelect(this ODataContext context, IEdmVocab continue; } - selectItems.Add(new OpenApiString(property.Name)); + selectItems.Add(property.Name); } return new OpenApiParameter @@ -767,11 +748,11 @@ public static OpenApiParameter CreateSelect(this ODataContext context, IEdmVocab Description = "Select properties to be returned", Schema = new OpenApiSchema { - Type = "array", + Type = JsonSchemaType.Array, UniqueItems = true, Items = new OpenApiSchema { - Type = "string", + Type = JsonSchemaType.String, Enum = context.Settings.UseStringArrayForQueryOptionsSchema ? null : selectItems } }, @@ -849,10 +830,7 @@ public static OpenApiParameter CreateExpand(this ODataContext context, IEdmVocab return null; } - IList expandItems = new List - { - new OpenApiString("*") - }; + IList expandItems = [ "*" ]; foreach (var property in structuredType.NavigationProperties()) { @@ -861,7 +839,7 @@ public static OpenApiParameter CreateExpand(this ODataContext context, IEdmVocab continue; } - expandItems.Add(new OpenApiString(property.Name)); + expandItems.Add(property.Name); } return new OpenApiParameter @@ -871,11 +849,11 @@ public static OpenApiParameter CreateExpand(this ODataContext context, IEdmVocab Description = "Expand related entities", Schema = new OpenApiSchema { - Type = "array", + Type = JsonSchemaType.Array, UniqueItems = true, Items = new OpenApiSchema { - Type = "string", + Type = JsonSchemaType.String, Enum = context.Settings.UseStringArrayForQueryOptionsSchema ? null : expandItems } }, @@ -894,10 +872,11 @@ private static OpenApiParameter CreateTop(int topExample) Description = "Show only the first n items", Schema = new OpenApiSchema { - Type = "integer", + Type = JsonSchemaType.Number, + Format = "int64", Minimum = 0, }, - Example = new OpenApiInteger(topExample), + Example = topExample, Style = ParameterStyle.Form, Explode = false }; @@ -913,7 +892,8 @@ private static OpenApiParameter CreateSkip() Description = "Skip the first n items", Schema = new OpenApiSchema { - Type = "integer", + Type = JsonSchemaType.Number, + Format = "int64", Minimum = 0, }, Style = ParameterStyle.Form, @@ -931,7 +911,7 @@ private static OpenApiParameter CreateCount() Description = "Include count of items", Schema = new OpenApiSchema { - Type = "boolean" + Type = JsonSchemaType.Boolean }, Style = ParameterStyle.Form, Explode = false @@ -948,7 +928,7 @@ private static OpenApiParameter CreateFilter() Description = "Filter items by property values", Schema = new OpenApiSchema { - Type = "string" + Type = JsonSchemaType.String }, Style = ParameterStyle.Form, Explode = false @@ -965,7 +945,7 @@ private static OpenApiParameter CreateSearch() Description = "Search items by search phrases", Schema = new OpenApiSchema { - Type = "string" + Type = JsonSchemaType.String }, Style = ParameterStyle.Form, Explode = false diff --git a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiPathItemGenerator.cs b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiPathItemGenerator.cs index 572c95f44..f74b51c27 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiPathItemGenerator.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiPathItemGenerator.cs @@ -7,6 +7,7 @@ using System.Linq; using Microsoft.OData.Edm; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.PathItem; @@ -22,22 +23,23 @@ internal static class OpenApiPathItemGenerator /// Create a map of . /// /// The OData context. - /// The created map of . - public static IDictionary CreatePathItems(this ODataContext context) + /// The Open API document to use to lookup references. + public static void AddPathItemsToDocument(this ODataContext context, OpenApiDocument document) { Utils.CheckArgumentNull(context, nameof(context)); + Utils.CheckArgumentNull(document, nameof(document)); - IDictionary pathItems = new Dictionary(); if (context.EntityContainer == null) { - return pathItems; + return; } + document.Paths ??= []; OpenApiConvertSettings settings = context.Settings.Clone(); settings.EnableKeyAsSegment = context.KeyAsSegment; foreach (ODataPath path in context.AllPaths) { - IPathItemHandler handler = context.PathItemHanderProvider.GetHandler(path.Kind); + IPathItemHandler handler = context.PathItemHandlerProvider.GetHandler(path.Kind); if (handler == null) { continue; @@ -49,7 +51,7 @@ public static IDictionary CreatePathItems(this ODataCon continue; } - pathItems.TryAddPath(context, path, pathItem); + document.Paths.TryAddPath(context, path, pathItem); } if (settings.ShowRootPath) @@ -72,15 +74,13 @@ public static IDictionary CreatePathItems(this ODataCon } } }; - pathItems.Add("/", rootPath); + document.Paths.Add("/", rootPath); } - - return pathItems; } - private static IDictionary CreateRootLinks(IEdmEntityContainer entityContainer) + private static IDictionary CreateRootLinks(IEdmEntityContainer entityContainer) { - var links = new Dictionary(); + var links = new Dictionary(); foreach (var element in entityContainer.Elements) { links.Add(element.Name, new OpenApiLink()); diff --git a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiPathsGenerator.cs b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiPathsGenerator.cs index 49ebe109b..dfb0661d4 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiPathsGenerator.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiPathsGenerator.cs @@ -22,21 +22,16 @@ internal static class OpenApiPathsGenerator /// and whose value is a Path Item Object. /// /// The OData context. - /// The created object. - public static OpenApiPaths CreatePaths(this ODataContext context) + /// The Open API document to use to lookup references. + public static void AddPathsToDocument(this ODataContext context, OpenApiDocument document) { Utils.CheckArgumentNull(context, nameof(context)); + Utils.CheckArgumentNull(document, nameof(document)); // Due to the power and flexibility of OData a full representation of all service capabilities // in the Paths Object is typically not feasible, so this mapping only describes the minimum // information desired in the Paths Object. - OpenApiPaths paths = new(); - foreach (var item in context.CreatePathItems()) - { - paths.Add(item.Key, item.Value); - } - - return paths; + context.AddPathItemsToDocument(document); } } } diff --git a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiRequestBodyGenerator.cs b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiRequestBodyGenerator.cs index 04418da50..068ff77ab 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiRequestBodyGenerator.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiRequestBodyGenerator.cs @@ -9,6 +9,8 @@ using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Common; +using Microsoft.OpenApi.Models.References; +using Microsoft.OpenApi.Models.Interfaces; namespace Microsoft.OpenApi.OData.Generator { @@ -62,8 +64,8 @@ public static OpenApiRequestBody CreateRequestBody(this ODataContext context, IE OpenApiSchema parametersSchema = new OpenApiSchema { - Type = "object", - Properties = new Dictionary() + Type = JsonSchemaType.Object, + Properties = new Dictionary() }; foreach (var parameter in action.Parameters.Skip(skip)) @@ -90,33 +92,22 @@ public static OpenApiRequestBody CreateRequestBody(this ODataContext context, IE /// Create a dictionary of indexed by ref name. /// /// The OData context. - /// The created dictionary of indexed by ref name - public static IDictionary CreateRequestBodies(this ODataContext context) + /// The OpenApi document to lookup references. + public static void AddRequestBodiesToDocument(this ODataContext context, OpenApiDocument document) { Utils.CheckArgumentNull(context, nameof(context)); + Utils.CheckArgumentNull(document, nameof(document)); - Dictionary requestBodies = new() - { - { - Constants.ReferencePostRequestBodyName, - CreateRefPostRequestBody() - }, - { - Constants.ReferencePutRequestBodyName, - CreateRefPutRequestBody() - } - }; + document.AddComponent(Constants.ReferencePostRequestBodyName, CreateRefPostRequestBody()); + document.AddComponent(Constants.ReferencePutRequestBodyName, CreateRefPutRequestBody()); // add request bodies for actions targeting multiple related paths foreach (IEdmAction action in context.Model.SchemaElements.OfType() - .Where(action => context.Model.OperationTargetsMultiplePaths(action))) + .Where(context.Model.OperationTargetsMultiplePaths)) { - OpenApiRequestBody requestBody = context.CreateRequestBody(action); - if (requestBody != null) - requestBodies.Add($"{action.Name}RequestBody", requestBody); + if (context.CreateRequestBody(action) is OpenApiRequestBody requestBody) + document.AddComponent($"{action.Name}RequestBody", requestBody); } - - return requestBodies; } /// @@ -125,15 +116,7 @@ public static IDictionary CreateRequestBodies(this O /// The created private static OpenApiRequestBody CreateRefPostRequestBody() { - OpenApiSchema schema = new() - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = Constants.ReferenceCreateSchemaName - } - }; + var schema = new OpenApiSchemaReference(Constants.ReferenceCreateSchemaName); return new OpenApiRequestBody { Required = true, @@ -156,15 +139,7 @@ private static OpenApiRequestBody CreateRefPostRequestBody() /// The created private static OpenApiRequestBody CreateRefPutRequestBody() { - OpenApiSchema schema = new() - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = Constants.ReferenceUpdateSchemaName - } - }; + var schema = new OpenApiSchemaReference(Constants.ReferenceUpdateSchemaName); return new OpenApiRequestBody { diff --git a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiResponseGenerator.cs b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiResponseGenerator.cs index 4c044bb59..6756ddaea 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiResponseGenerator.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiResponseGenerator.cs @@ -3,10 +3,13 @@ // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // ------------------------------------------------------------ +using System; using System.Collections.Generic; using System.Linq; using Microsoft.OData.Edm; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Vocabulary.Core; @@ -18,59 +21,22 @@ namespace Microsoft.OpenApi.OData.Generator /// internal static class OpenApiResponseGenerator { - private static IDictionary _responses = - new Dictionary - { - { Constants.StatusCodeDefault, - new OpenApiResponse - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Response, - Id = Constants.Error - } - } - }, - - { Constants.StatusCode204, new OpenApiResponse { Description = Constants.Success} }, - { Constants.StatusCode201, new OpenApiResponse { Description = Constants.Created} }, - { Constants.StatusCodeClass2XX, new OpenApiResponse { Description = Constants.Success} }, - { Constants.StatusCodeClass4XX, new OpenApiResponse - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Response, - Id = Constants.Error - } - } - }, - { Constants.StatusCodeClass5XX, new OpenApiResponse - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Response, - Id = Constants.Error - } - } - } - }; - /// - /// Get the for the build-in statusCode. + /// Get the for the build-in statusCode. /// /// The status code. - /// The created . - public static OpenApiResponse GetResponse(this string statusCode) + /// The created . + public static IOpenApiResponse GetResponse(this string statusCode) { - if (_responses.TryGetValue(statusCode, out OpenApiResponse response)) - { - return response; - } - - return null; + return statusCode switch { + Constants.StatusCodeDefault => new OpenApiResponseReference(Constants.Error), + Constants.StatusCode204 => new OpenApiResponse { Description = Constants.Success}, + Constants.StatusCode201 => new OpenApiResponse { Description = Constants.Created}, + Constants.StatusCodeClass2XX => new OpenApiResponse { Description = Constants.Success}, + Constants.StatusCodeClass4XX => new OpenApiResponseReference(Constants.Error), + Constants.StatusCodeClass5XX => new OpenApiResponseReference(Constants.Error), + _ => null, + }; } /// @@ -80,10 +46,11 @@ public static OpenApiResponse GetResponse(this string statusCode) /// that is referenced from all operations of the service. /// /// The OData context. - /// The name/value pairs for the standard OData error response. - public static IDictionary CreateResponses(this ODataContext context) + /// The OpenApi document to lookup references. + public static void AddResponsesToDocument(this ODataContext context, OpenApiDocument document) { Utils.CheckArgumentNull(context, nameof(context)); + Utils.CheckArgumentNull(document, nameof(document)); var responses = new Dictionary { @@ -118,7 +85,10 @@ public static IDictionary CreateResponses(this ODataCon responses[$"{operation.Name}Response"] = response; } - return responses; + foreach (var response in responses) + { + document.AddComponent(response.Key, response.Value); + } } /// @@ -156,15 +126,7 @@ public static OpenApiResponses CreateResponses(this ODataContext context, IEdmOp { responses.Add( context.Settings.UseSuccessStatusCodeRange ? Constants.StatusCodeClass2XX : Constants.StatusCode200, - new OpenApiResponse - { - UnresolvedReference = true, - Reference = new OpenApiReference() - { - Type = ReferenceType.Response, - Id = $"{operation.Name}Response" - } - } + new OpenApiResponseReference($"{operation.Name}Response") ); } else @@ -191,13 +153,13 @@ public static OpenApiResponse CreateOperationResponse(this ODataContext context, if (operation.ReturnType == null) return null; - OpenApiSchema schema; + IOpenApiSchema schema; if (operation.ReturnType.IsCollection()) { OpenApiSchema baseSchema = new() { - Type = Constants.ObjectType, - Properties = new Dictionary + Type = JsonSchemaType.Object, + Properties = new Dictionary { { "value", context.CreateEdmTypeSchema(operation.ReturnType) @@ -210,20 +172,13 @@ public static OpenApiResponse CreateOperationResponse(this ODataContext context, { schema = new OpenApiSchema { - AllOf = new List - { - new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = operation.IsDeltaFunction() ? Constants.BaseDeltaFunctionResponse // @odata.nextLink + @odata.deltaLink - : Constants.BaseCollectionPaginationCountResponse // @odata.nextLink + @odata.count - } - }, + AllOf = + [ + new OpenApiSchemaReference(operation.IsDeltaFunction() ? Constants.BaseDeltaFunctionResponse // @odata.nextLink + @odata.deltaLink + : Constants.BaseCollectionPaginationCountResponse // @odata.nextLink + @odata.count) + ), baseSchema - } + ] }; } else if (operation.IsDeltaFunction()) @@ -245,9 +200,12 @@ public static OpenApiResponse CreateOperationResponse(this ODataContext context, schema = baseSchema; } - schema.Title = operation.ReturnType.Definition.AsElementType() is not IEdmEntityType entityType - ? null : $"Collection of {entityType.Name}"; - schema.Type = "object"; + if (schema is OpenApiSchema openApiSchema) + { + openApiSchema.Title = operation.ReturnType.Definition.AsElementType() is not IEdmEntityType entityType + ? null : $"Collection of {entityType.Name}"; + openApiSchema.Type = JsonSchemaType.Object; + } } else if (operation.ReturnType.IsPrimitive()) { @@ -255,8 +213,8 @@ public static OpenApiResponse CreateOperationResponse(this ODataContext context, // whose name is value and whose value is a primitive value. schema = new OpenApiSchema { - Type = "object", - Properties = new Dictionary + Type = JsonSchemaType.Object, + Properties = new Dictionary { { "value", context.CreateEdmTypeSchema(operation.ReturnType) @@ -315,15 +273,7 @@ private static OpenApiResponse CreateCollectionResponse(string typeName) Constants.ApplicationJsonMediaType, new OpenApiMediaType { - Schema = new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = $"{typeName}{Constants.CollectionSchemaSuffix}" - } - } + Schema = new OpenApiSchemaReference($"{typeName}{Constants.CollectionSchemaSuffix}") } } } @@ -332,14 +282,7 @@ private static OpenApiResponse CreateCollectionResponse(string typeName) private static OpenApiResponse CreateCountResponse() { - OpenApiSchema schema = new() - { - UnresolvedReference = true, - Reference = new() { - Type = ReferenceType.Schema, - Id = Constants.DollarCountSchemaName - } - }; + var schema = new OpenApiSchemaReference(Constants.DollarCountSchemaName); return new OpenApiResponse { Description = "The count of the resource", @@ -368,15 +311,7 @@ private static OpenApiResponse CreateErrorResponse(this ODataContext context) Constants.ApplicationJsonMediaType, new OpenApiMediaType { - Schema = new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = $"{errorNamespaceName}{OpenApiErrorSchemaGenerator.ODataErrorClassName}" - } - } + Schema = new OpenApiSchemaReference($"{errorNamespaceName}{OpenApiErrorSchemaGenerator.ODataErrorClassName}") } } } diff --git a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSchemaGenerator.cs b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSchemaGenerator.cs index 2834322ed..eaf3609cc 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSchemaGenerator.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSchemaGenerator.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Diagnostics; using Microsoft.OData.Edm; -using Microsoft.OpenApi.Any; using Microsoft.OpenApi.OData.Properties; using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; @@ -17,6 +16,12 @@ using Microsoft.OpenApi.Interfaces; using Microsoft.OpenApi.MicrosoftExtensions; using Microsoft.OpenApi.OData.Vocabulary.Core; +using System.Text.Json.Nodes; +using Microsoft.OpenApi.Any; +using Microsoft.OpenApi.Extensions; +using Microsoft.OpenApi.Models.References; +using System.Globalization; +using Microsoft.OpenApi.Models.Interfaces; namespace Microsoft.OpenApi.OData.Generator { @@ -26,142 +31,141 @@ namespace Microsoft.OpenApi.OData.Generator internal static class OpenApiSchemaGenerator { /// - /// Create the dictionary of object. - /// The name of each pair is the namespace-qualified name of the type. It uses the namespace instead of the alias. - /// The value of each pair is a . + /// Adds the component schemas to the Open API document. /// /// The OData to Open API context. - /// The string/schema dictionary. - public static IDictionary CreateSchemas(this ODataContext context) + /// The Open API document to use for references lookup. + public static void AddSchemasToDocument(this ODataContext context, OpenApiDocument document) { Utils.CheckArgumentNull(context, nameof(context)); - - IDictionary schemas = new Dictionary(); - - // Each entity type, complex type, enumeration type, and type definition directly - // or indirectly used in the paths field is represented as a name / value pair of the schemas map. - // Ideally this would be driven off the types used in the paths, but in practice, it is simply - // all of the types present in the model. - IEnumerable elements = context.Model.GetAllElements(); - - foreach (var element in elements) - { - switch (element.SchemaElementKind) - { - case EdmSchemaElementKind.TypeDefinition: // Type definition - { - IEdmType reference = (IEdmType)element; - var fullTypeName = reference.FullTypeName(); - if(reference is IEdmComplexType && - fullTypeName.Split(new char[] {'.'}, StringSplitOptions.RemoveEmptyEntries) - .Last() - .Equals(context.Settings.InnerErrorComplexTypeName, StringComparison.Ordinal)) - continue; - - schemas.Add(fullTypeName, context.CreateSchemaTypeSchema(reference)); - } - break; - } - } + Utils.CheckArgumentNull(document, nameof(document)); // append the Edm.Spatial foreach(var schema in context.CreateSpatialSchemas()) { - schemas[schema.Key] = schema.Value; + document.AddComponent(schema.Key, schema.Value); } // append the OData errors foreach(var schema in context.CreateODataErrorSchemas()) { - schemas[schema.Key] = schema.Value; + document.AddComponent(schema.Key, schema.Value); } if(context.Settings.EnableDollarCountPath) - schemas[Constants.DollarCountSchemaName] = new OpenApiSchema { - Type = "integer", - Format = "int32" - }; + document.AddComponent(Constants.DollarCountSchemaName, new OpenApiSchema { + Type = JsonSchemaType.Number, + Format = "int64" + }); - schemas = schemas.Concat(context.GetAllCollectionEntityTypes() - .Select(x => new KeyValuePair( - $"{(x is IEdmEntityType eType ? eType.FullName() : x.FullTypeName())}{Constants.CollectionSchemaSuffix}", - CreateCollectionSchema(context, x))) - .Where(x => !schemas.ContainsKey(x.Key))) - .Concat(context.GetAllCollectionComplexTypes() - .Select(x => new KeyValuePair( - $"{x.FullTypeName()}{Constants.CollectionSchemaSuffix}", - CreateCollectionSchema(context, x))) - .Where(x => !schemas.ContainsKey(x.Key))) - .ToDictionary(x => x.Key, x => x.Value); - if(context.HasAnyNonContainedCollections()) { - schemas[$"String{Constants.CollectionSchemaSuffix}"] = CreateCollectionSchema(context, new OpenApiSchema { Type = Constants.StringType }, Constants.StringType); + document.AddComponent($"String{Constants.CollectionSchemaSuffix}", CreateCollectionSchema(context, new OpenApiSchema { Type = JsonSchemaType.String }, Constants.StringType)); } - schemas[Constants.ReferenceUpdateSchemaName] = new() + document.AddComponent(Constants.ReferenceUpdateSchemaName, new OpenApiSchema() { - Type = Constants.ObjectType, - Properties = new Dictionary + Type = JsonSchemaType.Object, + Properties = new Dictionary { - {Constants.OdataId, new OpenApiSchema { Type = Constants.StringType, Nullable = false }}, - {Constants.OdataType, new OpenApiSchema { Type = Constants.StringType, Nullable = true }}, + {Constants.OdataId, new OpenApiSchema { Type = JsonSchemaType.String }}, + {Constants.OdataType, new OpenApiSchema { Type = JsonSchemaType.String | JsonSchemaType.Null }}, } - }; + }); - schemas[Constants.ReferenceCreateSchemaName] = new() + document.AddComponent(Constants.ReferenceCreateSchemaName, new OpenApiSchema() { - Type = Constants.ObjectType, - Properties = new Dictionary + Type = JsonSchemaType.Object, + Properties = new Dictionary { - {Constants.OdataId, new OpenApiSchema { Type = Constants.StringType, Nullable = false }} + {Constants.OdataId, new OpenApiSchema { Type = JsonSchemaType.String }} }, - AdditionalProperties = new OpenApiSchema { Type = Constants.ObjectType } - }; + AdditionalProperties = new OpenApiSchema { Type = JsonSchemaType.Object } + }); - schemas[Constants.ReferenceNumericName] = new() + document.AddComponent(Constants.ReferenceNumericName, new OpenApiSchema() { - Type = Constants.StringType, - Nullable = true, + Type = JsonSchemaType.String | JsonSchemaType.Null, Enum = [ - new OpenApiString("-INF"), - new OpenApiString("INF"), - new OpenApiString("NaN") + "-INF", + "INF", + "NaN" ] - }; + }); if (context.Settings.EnableODataAnnotationReferencesForResponses) { // @odata.nextLink + @odata.count if (context.Settings.EnablePagination || context.Settings.EnableCount) { - schemas[Constants.BaseCollectionPaginationCountResponse] = new() + var responseSchema = new OpenApiSchema() { Title = "Base collection pagination and count responses", - Type = Constants.ObjectType, + Type = JsonSchemaType.Object, }; + document.AddComponent(Constants.BaseCollectionPaginationCountResponse, responseSchema); if (context.Settings.EnableCount) - schemas[Constants.BaseCollectionPaginationCountResponse].Properties.Add(ODataConstants.OdataCount); + responseSchema.Properties.Add(ODataConstants.OdataCount); if (context.Settings.EnablePagination) - schemas[Constants.BaseCollectionPaginationCountResponse].Properties.Add(ODataConstants.OdataNextLink); + responseSchema.Properties.Add(ODataConstants.OdataNextLink); } // @odata.nextLink + @odata.deltaLink if (context.Model.SchemaElements.OfType().Any(static x => x.IsDeltaFunction())) { - schemas[Constants.BaseDeltaFunctionResponse] = new() + document.AddComponent(Constants.BaseDeltaFunctionResponse, new OpenApiSchema() { Title = "Base delta function response", - Type = Constants.ObjectType - }; - schemas[Constants.BaseDeltaFunctionResponse].Properties.Add(ODataConstants.OdataNextLink); - schemas[Constants.BaseDeltaFunctionResponse].Properties.Add(ODataConstants.OdataDeltaLink); + Type = JsonSchemaType.Object, + Properties = new Dictionary + { + {ODataConstants.OdataNextLink.Key, ODataConstants.OdataNextLink.Value}, + {ODataConstants.OdataDeltaLink.Key, ODataConstants.OdataDeltaLink.Value} + } + }); + } + } + + // Each entity type, complex type, enumeration type, and type definition directly + // or indirectly used in the paths field is represented as a name / value pair of the schemas map. + // Ideally this would be driven off the types used in the paths, but in practice, it is simply + // all of the types present in the model. + IEnumerable elements = context.Model.GetAllElements(); + + foreach (var element in elements) + { + switch (element.SchemaElementKind) + { + case EdmSchemaElementKind.TypeDefinition: // Type definition + { + IEdmType reference = (IEdmType)element; + var fullTypeName = reference.FullTypeName(); + if(reference is IEdmComplexType && + fullTypeName.Split(['.'], StringSplitOptions.RemoveEmptyEntries) + .Last() + .Equals(context.Settings.InnerErrorComplexTypeName, StringComparison.Ordinal)) + continue; + + document.AddComponent(fullTypeName, context.CreateSchemaTypeSchema(reference)); + } + break; } } - return schemas; + foreach(var collectionEntry in context.GetAllCollectionEntityTypes() + .Select(x => new KeyValuePair( + $"{(x is IEdmEntityType eType ? eType.FullName() : x.FullTypeName())}{Constants.CollectionSchemaSuffix}", + CreateCollectionSchema(context, x))) + .Concat(context.GetAllCollectionComplexTypes() + .Select(x => new KeyValuePair( + $"{x.FullTypeName()}{Constants.CollectionSchemaSuffix}", + CreateCollectionSchema(context, x)))) + .ToArray()) + { + document.AddComponent(collectionEntry.Key, collectionEntry.Value); + } } internal static bool HasAnyNonContainedCollections(this ODataContext context) { @@ -206,7 +210,7 @@ internal static IEnumerable GetAllCollectionEntityTypes(this private static OpenApiSchema CreateCollectionSchema(ODataContext context, IEdmStructuredType structuredType) { - OpenApiSchema schema = null; + IOpenApiSchema schema = null; var entityType = structuredType as IEdmEntityType; if (context.Settings.EnableDerivedTypesReferencesForResponses && entityType != null) @@ -216,27 +220,19 @@ private static OpenApiSchema CreateCollectionSchema(ODataContext context, IEdmSt if (schema == null) { - schema = new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = entityType?.FullName() ?? structuredType.FullTypeName() - } - }; + schema = new OpenApiSchemaReference(entityType?.FullName() ?? structuredType.FullTypeName()); } return CreateCollectionSchema(context, schema, entityType?.Name ?? structuredType.FullTypeName()); } - private static OpenApiSchema CreateCollectionSchema(ODataContext context, OpenApiSchema schema, string typeName) + private static OpenApiSchema CreateCollectionSchema(ODataContext context, IOpenApiSchema schema, string typeName) { - var properties = new Dictionary + var properties = new Dictionary { { "value", new OpenApiSchema { - Type = "array", + Type = JsonSchemaType.Array, Items = schema } } @@ -244,7 +240,7 @@ private static OpenApiSchema CreateCollectionSchema(ODataContext context, OpenAp OpenApiSchema baseSchema = new() { - Type = Constants.ObjectType, + Type = JsonSchemaType.Object, Properties = properties }; @@ -254,23 +250,15 @@ private static OpenApiSchema CreateCollectionSchema(ODataContext context, OpenAp if (context.Settings.EnableODataAnnotationReferencesForResponses) { // @odata.nextLink + @odata.count - OpenApiSchema paginationCountSchema = new() - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = Constants.BaseCollectionPaginationCountResponse - } - }; + var paginationCountSchema = new OpenApiSchemaReference(Constants.BaseCollectionPaginationCountResponse); collectionSchema = new OpenApiSchema { - AllOf = new List - { + AllOf = + [ paginationCountSchema, baseSchema - } + ] }; } else @@ -290,7 +278,7 @@ private static OpenApiSchema CreateCollectionSchema(ODataContext context, OpenAp } collectionSchema.Title = $"Collection of {typeName}"; - collectionSchema.Type = Constants.ObjectType; + collectionSchema.Type = JsonSchemaType.Object; return collectionSchema; } @@ -310,10 +298,10 @@ public static OpenApiSchema CreateEnumTypeSchema(this ODataContext context, IEdm OpenApiSchema schema = new() { // An enumeration type is represented as a Schema Object of type string - Type = Constants.StringType, + Type = JsonSchemaType.String, // containing the OpenAPI Specification enum keyword. - Enum = new List(), + Enum = new List(), // It optionally can contain the field description, // whose value is the value of the unqualified annotation Core.Description of the enumeration type. @@ -331,7 +319,8 @@ public static OpenApiSchema CreateEnumTypeSchema(this ODataContext context, IEdm } var extension = (context.Settings.OpenApiSpecVersion == OpenApiSpecVersion.OpenApi2_0 || - context.Settings.OpenApiSpecVersion == OpenApiSpecVersion.OpenApi3_0 ) && + context.Settings.OpenApiSpecVersion == OpenApiSpecVersion.OpenApi3_0 || + context.Settings.OpenApiSpecVersion == OpenApiSpecVersion.OpenApi3_1) && context.Settings.AddEnumDescriptionExtension ? new OpenApiEnumValuesDescriptionExtension { EnumName = enumType.Name, @@ -341,7 +330,7 @@ public static OpenApiSchema CreateEnumTypeSchema(this ODataContext context, IEdm // Enum value is an array that contains a string with the member name for each enumeration member. foreach (IEdmEnumMember member in enumType.Members) { - schema.Enum.Add(new OpenApiString(member.Name)); + schema.Enum.Add(member.Name); AddEnumDescription(member, extension, context); } @@ -387,28 +376,30 @@ public static OpenApiSchema CreateStructuredTypeSchema(this ODataContext context /// /// The OData context. /// The Edm property. - /// The created . - public static OpenApiSchema CreatePropertySchema(this ODataContext context, IEdmProperty property) + /// The created . + public static IOpenApiSchema CreatePropertySchema(this ODataContext context, IEdmProperty property) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(property, nameof(property)); - OpenApiSchema schema = context.CreateEdmTypeSchema(property.Type); + var schema = context.CreateEdmTypeSchema(property.Type); - switch (property.PropertyKind) + + if (schema is OpenApiSchema openApiSchema) { - case EdmPropertyKind.Structural: - IEdmStructuralProperty structuralProperty = (IEdmStructuralProperty)property; - schema.Default = CreateDefault(structuralProperty); - break; - } + if (property.PropertyKind is EdmPropertyKind.Structural && + property is IEdmStructuralProperty structuralProperty) + { + openApiSchema.Default = CreateDefault(structuralProperty); + } - // The Schema Object for a property optionally can contain the field description, - // whose value is the value of the unqualified annotation Core.Description of the property. - schema.Description = context.Model.GetDescriptionAnnotation(property); + // The Schema Object for a property optionally can contain the field description, + // whose value is the value of the unqualified annotation Core.Description of the property. + openApiSchema.Description = context.Model.GetDescriptionAnnotation(property); - // Set property with Computed Annotation in CSDL to readonly - schema.ReadOnly = context.Model.GetBoolean(property, CoreConstants.Computed) ?? false; + // Set property with Computed Annotation in CSDL to readonly + openApiSchema.ReadOnly = context.Model.GetBoolean(property, CoreConstants.Computed) ?? false; + } return schema; } @@ -419,42 +410,52 @@ public static OpenApiSchema CreatePropertySchema(this ODataContext context, IEdm /// The OData context. /// The Edm structured type. /// The created map of . - public static IDictionary CreateStructuredTypePropertiesSchema(this ODataContext context, IEdmStructuredType structuredType) + public static IDictionary CreateStructuredTypePropertiesSchema(this ODataContext context, IEdmStructuredType structuredType) { Utils.CheckArgumentNull(context, nameof(context)); Utils.CheckArgumentNull(structuredType, nameof(structuredType)); // The name is the property name, the value is a Schema Object describing the allowed values of the property. - IDictionary properties = new Dictionary(); + var properties = new Dictionary(); // structure properties foreach (var property in structuredType.DeclaredStructuralProperties()) { - OpenApiSchema propertySchema = context.CreatePropertySchema(property); - propertySchema.Description = context.Model.GetDescriptionAnnotation(property); - propertySchema.Extensions.AddCustomAttributesToExtensions(context, property); + var propertySchema = context.CreatePropertySchema(property); + if (propertySchema is OpenApiSchema openApiSchema) + { + openApiSchema.Description = context.Model.GetDescriptionAnnotation(property); + // we always want a new copy because it's a reference + openApiSchema.Extensions = propertySchema.Extensions is null ? [] : new Dictionary(propertySchema.Extensions); + openApiSchema.Extensions.AddCustomAttributesToExtensions(context, property); + } properties.Add(property.Name, propertySchema); } // navigation properties foreach (var property in structuredType.DeclaredNavigationProperties()) { - OpenApiSchema propertySchema = context.CreateEdmTypeSchema(property.Type); - propertySchema.Description = context.Model.GetDescriptionAnnotation(property); - propertySchema.Extensions.AddCustomAttributesToExtensions(context, property); - propertySchema.Extensions.Add(Constants.xMsNavigationProperty, new OpenApiBoolean(true)); + var propertySchema = context.CreateEdmTypeSchema(property.Type); + if (propertySchema is OpenApiSchema openApiSchema) + { + openApiSchema.Description = context.Model.GetDescriptionAnnotation(property); + // we always want a new copy because it's a reference + openApiSchema.Extensions = propertySchema.Extensions is null ? [] : new Dictionary(propertySchema.Extensions); + openApiSchema.Extensions.AddCustomAttributesToExtensions(context, property); + openApiSchema.Extensions.Add(Constants.xMsNavigationProperty, new OpenApiAny(true)); + } properties.Add(property.Name, propertySchema); } return properties; } - public static OpenApiSchema CreateSchemaTypeDefinitionSchema(this ODataContext context, IEdmTypeDefinition typeDefinition) + public static IOpenApiSchema CreateSchemaTypeDefinitionSchema(this ODataContext context, IEdmTypeDefinition typeDefinition) { return context.CreateSchema(typeDefinition.UnderlyingType); } - internal static OpenApiSchema CreateSchemaTypeSchema(this ODataContext context, IEdmType edmType) + internal static IOpenApiSchema CreateSchemaTypeSchema(this ODataContext context, IEdmType edmType) { Debug.Assert(context != null); Debug.Assert(edmType != null); @@ -473,7 +474,7 @@ internal static OpenApiSchema CreateSchemaTypeSchema(this ODataContext context, case EdmTypeKind.None: default: - throw Error.NotSupported(String.Format(SRResource.NotSupportedEdmTypeKind, edmType.TypeKind)); + throw Error.NotSupported(string.Format(SRResource.NotSupportedEdmTypeKind, edmType.TypeKind)); } } @@ -483,7 +484,7 @@ private static OpenApiSchema CreateStructuredTypeSchema(this ODataContext contex Debug.Assert(context != null); Debug.Assert(structuredType != null); - IOpenApiAny example = null; + JsonNode example = null; if (context.Settings.ShowSchemaExamples) { example = CreateStructuredTypePropertiesExample(context, structuredType); @@ -502,7 +503,7 @@ private static OpenApiSchema CreateStructuredTypeSchema(this ODataContext contex { extension = new Dictionary { - { Constants.xMsDiscriminatorValue, new OpenApiString("#" + structuredType.FullTypeName()) } + { Constants.xMsDiscriminatorValue, new OpenApiAny("#" + structuredType.FullTypeName()) } }; } @@ -512,22 +513,14 @@ private static OpenApiSchema CreateStructuredTypeSchema(this ODataContext contex { Extensions = extension, - AllOf = new List - { + AllOf = + [ // 1. a JSON Reference to the Schema Object of the base type - new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = structuredType.BaseType.FullTypeName() - } - }, + new OpenApiSchemaReference(structuredType.BaseType.FullTypeName()), // 2. a Schema Object describing the derived type context.CreateStructuredTypeSchema(structuredType, false, false, derivedTypes) - }, + ], AnyOf = null, OneOf = null, @@ -542,14 +535,7 @@ private static OpenApiSchema CreateStructuredTypeSchema(this ODataContext contex if (context.Settings.EnableDiscriminatorValue && derivedTypes.Any()) { Dictionary mapping = derivedTypes - .ToDictionary(x => $"#{x.FullTypeName()}", x => new OpenApiSchema - { - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = x.FullTypeName() - } - }.Reference.ReferenceV3); + .ToDictionary(x => $"#{x.FullTypeName()}", x => new OpenApiSchemaReference(x.FullTypeName()).Reference.ReferenceV3); discriminator = new OpenApiDiscriminator { @@ -563,7 +549,7 @@ private static OpenApiSchema CreateStructuredTypeSchema(this ODataContext contex { Title = (structuredType as IEdmSchemaElement)?.Name, - Type = Constants.ObjectType, + Type = JsonSchemaType.Object, Discriminator = discriminator, @@ -579,7 +565,7 @@ private static OpenApiSchema CreateStructuredTypeSchema(this ODataContext contex if (context.Settings.EnableDiscriminatorValue) { - OpenApiString defaultValue = null; + JsonNode defaultValue = null; bool isBaseTypeEntity = Constants.EntityName.Equals(structuredType.BaseType?.FullTypeName().Split('.').Last(), StringComparison.OrdinalIgnoreCase); bool isBaseTypeAbstractNonEntity = (structuredType.BaseType?.IsAbstract ?? false) && !isBaseTypeEntity; @@ -587,12 +573,12 @@ private static OpenApiSchema CreateStructuredTypeSchema(this ODataContext contex isBaseTypeAbstractNonEntity || context.Model.IsBaseTypeReferencedAsTypeInModel(structuredType.BaseType)) { - defaultValue = new("#" + structuredType.FullTypeName()); + defaultValue = "#" + structuredType.FullTypeName(); } if (!schema.Properties.TryAdd(Constants.OdataType, new OpenApiSchema() { - Type = Constants.StringType, + Type = JsonSchemaType.String, Default = defaultValue, })) { @@ -624,34 +610,24 @@ private static OpenApiSchema CreateStructuredTypeSchema(this ODataContext contex } } - private static IOpenApiAny CreateStructuredTypePropertiesExample(ODataContext context, IEdmStructuredType structuredType) + internal static JsonObject CreateStructuredTypePropertiesExample(ODataContext context, IEdmStructuredType structuredType) { - OpenApiObject example = new OpenApiObject(); - - IEdmEntityType entityType = structuredType as IEdmEntityType; + JsonObject example = []; // properties foreach (var property in structuredType.Properties()) { - // IOpenApiAny item; IEdmTypeReference propertyType = property.Type; - IOpenApiAny item = GetTypeNameForExample(context, propertyType); + JsonNode item = GetTypeNameForExample(context, propertyType); - EdmTypeKind typeKind = propertyType.TypeKind(); - if (typeKind == EdmTypeKind.Primitive && item is OpenApiString) + if (propertyType.TypeKind() == EdmTypeKind.Primitive && + item is JsonValue jsonValue && + jsonValue.TryGetValue(out string stringAny) && + structuredType is IEdmEntityType entityType && + entityType.Key().Any(k => StringComparer.Ordinal.Equals(k.Name, property.Name))) { - OpenApiString stringAny = item as OpenApiString; - string value = stringAny.Value; - if (entityType != null && entityType.Key().Any(k => k.Name == property.Name)) - { - value += " (identifier)"; - } - if (propertyType.IsDateTimeOffset() || propertyType.IsDate() || propertyType.IsTimeOfDay()) - { - value += " (timestamp)"; - } - item = new OpenApiString(value); + item = $"{stringAny} (identifier)"; } example.Add(property.Name, item); @@ -660,58 +636,64 @@ private static IOpenApiAny CreateStructuredTypePropertiesExample(ODataContext co return example; } - private static IOpenApiAny GetTypeNameForExample(ODataContext context, IEdmTypeReference edmTypeReference) + private static JsonNode GetTypeNameForPrimitive(ODataContext context, IEdmTypeReference edmTypeReference) { - switch (edmTypeReference.TypeKind()) - { - case EdmTypeKind.Primitive: - IEdmPrimitiveType primitiveType = edmTypeReference.AsPrimitive().PrimitiveDefinition(); - OpenApiSchema schema = context.CreateSchema(primitiveType); + IEdmPrimitiveType primitiveType = edmTypeReference.AsPrimitive().PrimitiveDefinition(); + IOpenApiSchema schema = context.CreateSchema(primitiveType); - if (edmTypeReference.IsBoolean()) - { - return new OpenApiBoolean(true); - } - else - { - if (schema.Reference != null) - { - return new OpenApiString(schema.Reference.Id); - } - else - { - return new OpenApiString(schema.Type ?? - (schema.AnyOf ?? Enumerable.Empty()) - .Union(schema.AllOf ?? Enumerable.Empty()) - .Union(schema.OneOf ?? Enumerable.Empty()) - .FirstOrDefault(static x => !string.IsNullOrEmpty(x.Format))?.Format ?? schema.Format); - } - } - - case EdmTypeKind.Entity: - case EdmTypeKind.Complex: - case EdmTypeKind.Enum: - OpenApiObject obj = new OpenApiObject(); - obj[Constants.OdataType] = new OpenApiString(edmTypeReference.FullName()); - return obj; - - case EdmTypeKind.Collection: - OpenApiArray array = new OpenApiArray(); - IEdmTypeReference elementType = edmTypeReference.AsCollection().ElementType(); - array.Add(GetTypeNameForExample(context, elementType)); - return array; + if (edmTypeReference.IsBoolean()) + { + return true; + } + else + { + if (schema is OpenApiSchemaReference { Reference.Id: not null } reference && !string.IsNullOrEmpty(reference.Reference.Id)) + { + return reference.Reference.Id; + } + else + { + return schema.Type.ToIdentifier() ?? + (schema.AnyOf ?? Enumerable.Empty()) + .Union(schema.AllOf ?? Enumerable.Empty()) + .Union(schema.OneOf ?? Enumerable.Empty()) + .FirstOrDefault(static x => !string.IsNullOrEmpty(x.Format))?.Format ?? schema.Format; + } + } + } - case EdmTypeKind.Untyped: - return new OpenApiObject(); + private static JsonNode GetTypeNameForExample(ODataContext context, IEdmTypeReference edmTypeReference) + { + return edmTypeReference.TypeKind() switch + { + // return new OpenApiBinary(new byte[] { 0x00 }); issue on binary writing + EdmTypeKind.Primitive when edmTypeReference.IsBinary() => Convert.ToBase64String(new byte[] { 0x00 }), + EdmTypeKind.Primitive when edmTypeReference.IsBoolean() => true, + EdmTypeKind.Primitive when edmTypeReference.IsByte() => 0x00, + EdmTypeKind.Primitive when edmTypeReference.IsDate() => DateTime.MinValue.ToString("o", CultureInfo.InvariantCulture), + EdmTypeKind.Primitive when edmTypeReference.IsDateTimeOffset() => DateTimeOffset.MinValue.ToString("o", CultureInfo.InvariantCulture), + EdmTypeKind.Primitive when edmTypeReference.IsGuid() => Guid.Empty.ToString("D", CultureInfo.InvariantCulture), + EdmTypeKind.Primitive when edmTypeReference.IsInt16() || + edmTypeReference.IsInt32() || + edmTypeReference.IsDecimal() || + edmTypeReference.IsInt64() || + edmTypeReference.IsFloating() || + edmTypeReference.IsDouble() => 0, + EdmTypeKind.Primitive => GetTypeNameForPrimitive(context, edmTypeReference), + + EdmTypeKind.Entity or EdmTypeKind.Complex or EdmTypeKind.Enum => new JsonObject() + {//TODO this is wrong for enums, and should instead use one of the enum members + [Constants.OdataType] = edmTypeReference.FullName() + }, - case EdmTypeKind.TypeDefinition: - case EdmTypeKind.EntityReference: - default: - throw new OpenApiException("Not support for the type kind " + edmTypeReference.TypeKind()); - } + EdmTypeKind.Collection => new JsonArray(GetTypeNameForExample(context, edmTypeReference.AsCollection().ElementType())), + EdmTypeKind.TypeDefinition => GetTypeNameForExample(context, new EdmPrimitiveTypeReference(edmTypeReference.AsTypeDefinition().TypeDefinition().UnderlyingType, edmTypeReference.IsNullable)), + EdmTypeKind.Untyped => new JsonObject(), + _ => throw new OpenApiException("Not support for the type kind " + edmTypeReference.TypeKind()), + }; } - private static IOpenApiAny CreateDefault(this IEdmStructuralProperty property) + private static JsonNode CreateDefault(this IEdmStructuralProperty property) { if (property == null || property.DefaultValueString == null) @@ -721,7 +703,7 @@ private static IOpenApiAny CreateDefault(this IEdmStructuralProperty property) if (property.Type.IsEnum()) { - return new OpenApiString(property.DefaultValueString); + return property.DefaultValueString; } if (!property.Type.IsPrimitive()) @@ -734,10 +716,9 @@ private static IOpenApiAny CreateDefault(this IEdmStructuralProperty property) { case EdmPrimitiveTypeKind.Boolean: { - bool result; - if (Boolean.TryParse(property.DefaultValueString, out result)) + if (bool.TryParse(property.DefaultValueString, out bool result)) { - return new OpenApiBoolean(result); + return result; } } break; @@ -745,10 +726,9 @@ private static IOpenApiAny CreateDefault(this IEdmStructuralProperty property) case EdmPrimitiveTypeKind.Int16: case EdmPrimitiveTypeKind.Int32: { - int result; - if (Int32.TryParse(property.DefaultValueString, out result)) + if (int.TryParse(property.DefaultValueString, out int result)) { - return new OpenApiInteger(result); + return result; } } break; @@ -769,7 +749,7 @@ private static IOpenApiAny CreateDefault(this IEdmStructuralProperty property) break; } - return new OpenApiString(property.DefaultValueString); + return property.DefaultValueString; } } } diff --git a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSecurityRequirementGenerator.cs b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSecurityRequirementGenerator.cs index 8df137aea..93b32e330 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSecurityRequirementGenerator.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSecurityRequirementGenerator.cs @@ -10,6 +10,7 @@ using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Vocabulary.Authorization; using Microsoft.OpenApi.OData.Vocabulary.Capabilities; +using Microsoft.OpenApi.Models.References; namespace Microsoft.OpenApi.OData.Generator { @@ -18,39 +19,6 @@ namespace Microsoft.OpenApi.OData.Generator /// internal static class OpenApiSecurityRequirementGenerator { - /// - /// Create the list of object. - /// - /// The OData to Open API context. - /// The securitySchemes. - /// The created collection. - public static IEnumerable CreateSecurityRequirements(this ODataContext context, - IList securitySchemes) - { - Utils.CheckArgumentNull(context, nameof(context)); - - if (securitySchemes != null) - { - foreach (var securityScheme in securitySchemes) - { - yield return new OpenApiSecurityRequirement - { - [ - new OpenApiSecurityScheme - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.SecurityScheme, - Id = securityScheme.Authorization - } - } - ] = new List(securityScheme.RequiredScopes ?? new List()) - }; - } - } - } - /// /// Create the list of object. /// @@ -69,15 +37,7 @@ public static IEnumerable CreateSecurityRequirements yield return new OpenApiSecurityRequirement { [ - new OpenApiSecurityScheme - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.SecurityScheme, - Id = permission.SchemeName - } - } + new OpenApiSecuritySchemeReference(permission.SchemeName) ] = new List(permission.Scopes?.Select(c => c.Scope) ?? new List()) }; } diff --git a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSecuritySchemeGenerator.cs b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSecuritySchemeGenerator.cs index f0cfb92cc..e5156a837 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSecuritySchemeGenerator.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSecuritySchemeGenerator.cs @@ -24,21 +24,15 @@ internal static class OpenApiSecuritySchemeGenerator /// The name of each pair is the name of authorization. The value of each pair is a . /// /// The OData to Open API context. - /// The string/security scheme dictionary. - public static IDictionary CreateSecuritySchemes(this ODataContext context) + /// The Open API document. + public static void AddSecuritySchemesToDocument(this ODataContext context, OpenApiDocument document) { Utils.CheckArgumentNull(context, nameof(context)); + Utils.CheckArgumentNull(document, nameof(document)); - if (context.Model == null || context.Model.EntityContainer == null) + if (context.Model == null || context.Model.EntityContainer == null || context.Model.GetAuthorizations(context.EntityContainer) is not {} authorizations) { - return null; - } - - IDictionary securitySchemes = new Dictionary(); - var authorizations = context.Model.GetAuthorizations(context.EntityContainer); - if (authorizations == null) - { - return securitySchemes; + return; } foreach (var authorization in authorizations) @@ -68,10 +62,8 @@ public static IDictionary CreateSecuritySchemes(t break; } - securitySchemes[authorization.Name] = scheme; + document.AddComponent(authorization.Name, scheme); } - - return securitySchemes; } private static void AppendApiKey(OpenApiSecurityScheme scheme, ApiKey apiKey) diff --git a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSpatialTypeSchemaGenerator.cs b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSpatialTypeSchemaGenerator.cs index 3fcd31680..3bbdb43b2 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSpatialTypeSchemaGenerator.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSpatialTypeSchemaGenerator.cs @@ -4,8 +4,10 @@ // ------------------------------------------------------------ using System.Collections.Generic; -using Microsoft.OpenApi.Any; +using System.Text.Json.Nodes; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; @@ -23,11 +25,11 @@ internal static class OpenApiSpatialTypeSchemaGenerator /// /// The OData to Open API context. /// The string/schema dictionary. - public static IDictionary CreateSpatialSchemas(this ODataContext context) + public static IDictionary CreateSpatialSchemas(this ODataContext context) { Utils.CheckArgumentNull(context, nameof(context)); - IDictionary schemas = new Dictionary(); + var schemas = new Dictionary(); if (context.IsSpatialTypeUsed) { @@ -73,136 +75,72 @@ public static IDictionary CreateSpatialSchemas(this OData /// Create for Edm.Geography. /// /// The created . - public static OpenApiSchema CreateEdmGeographySchema() + public static IOpenApiSchema CreateEdmGeographySchema() { - return new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.Geometry" - } - }; + return new OpenApiSchemaReference("Edm.Geometry"); } /// /// Create for Edm.GeographyPoint. /// /// The created . - public static OpenApiSchema CreateEdmGeographyPointSchema() + public static IOpenApiSchema CreateEdmGeographyPointSchema() { - return new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeometryPoint" - } - }; + return new OpenApiSchemaReference("Edm.GeometryPoint"); } /// /// Create for Edm.GeographyLineString. /// /// The created . - public static OpenApiSchema CreateEdmGeographyLineStringSchema() + public static IOpenApiSchema CreateEdmGeographyLineStringSchema() { - return new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeometryLineString" - } - }; + return new OpenApiSchemaReference("Edm.GeometryLineString"); } /// /// Create for Edm.GeographyPolygon. /// /// The created . - public static OpenApiSchema CreateEdmGeographyPolygonSchema() + public static IOpenApiSchema CreateEdmGeographyPolygonSchema() { - return new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeometryPolygon" - } - }; + return new OpenApiSchemaReference("Edm.GeometryPolygon"); } /// /// Create for Edm.GeographyMultiPoint. /// /// The created . - public static OpenApiSchema CreateEdmGeographyMultiPointSchema() + public static IOpenApiSchema CreateEdmGeographyMultiPointSchema() { - return new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeometryMultiPoint" - } - }; + return new OpenApiSchemaReference("Edm.GeometryMultiPoint"); } /// /// Create for Edm.GeographyMultiLineString. /// /// The created . - public static OpenApiSchema CreateEdmGeographyMultiLineStringSchema() + public static IOpenApiSchema CreateEdmGeographyMultiLineStringSchema() { - return new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeometryMultiLineString" - } - }; + return new OpenApiSchemaReference("Edm.GeometryMultiLineString"); } /// /// Create for Edm.GeographyMultiPolygon. /// /// The created . - public static OpenApiSchema CreateEdmGeographyMultiPolygonSchema() + public static IOpenApiSchema CreateEdmGeographyMultiPolygonSchema() { - return new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeometryMultiPolygon" - } - }; + return new OpenApiSchemaReference("Edm.GeometryMultiPolygon"); } /// /// Create for Edm.GeographyCollection. /// /// The created . - public static OpenApiSchema CreateEdmGeographyCollectionSchema() + public static IOpenApiSchema CreateEdmGeographyCollectionSchema() { - return new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = "Edm.GeometryCollection" - } - }; + return new OpenApiSchemaReference("Edm.GeometryCollection"); } /// @@ -213,17 +151,17 @@ public static OpenApiSchema CreateEdmGeometrySchema() { return new OpenApiSchema { - Type = "object", - OneOf = new List - { - new OpenApiSchema { UnresolvedReference = true, Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = "Edm.GeometryPoint" } }, - new OpenApiSchema { UnresolvedReference = true, Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = "Edm.GeometryLineString" } }, - new OpenApiSchema { UnresolvedReference = true, Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = "Edm.GeometryPolygon" } }, - new OpenApiSchema { UnresolvedReference = true, Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = "Edm.GeometryMultiPoint" } }, - new OpenApiSchema { UnresolvedReference = true, Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = "Edm.GeometryMultiLineString" } }, - new OpenApiSchema { UnresolvedReference = true, Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = "Edm.GeometryMultiPolygon" } }, - new OpenApiSchema { UnresolvedReference = true, Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = "Edm.GeometryCollection" } } - } + Type = JsonSchemaType.Object, + OneOf = + [ + new OpenApiSchemaReference("Edm.GeometryPoint"), + new OpenApiSchemaReference("Edm.GeometryLineString"), + new OpenApiSchemaReference("Edm.GeometryPolygon"), + new OpenApiSchemaReference("Edm.GeometryMultiPoint"), + new OpenApiSchemaReference("Edm.GeometryMultiLineString"), + new OpenApiSchemaReference("Edm.GeometryMultiPolygon"), + new OpenApiSchemaReference("Edm.GeometryCollection"), + ] }; } @@ -235,20 +173,20 @@ public static OpenApiSchema CreateEdmGeometryPointSchema() { return new OpenApiSchema { - Type = "object", - Properties = new Dictionary + Type = JsonSchemaType.Object, + Properties = new Dictionary { { "type", new OpenApiSchema { - Type = "string", - Enum = new List + Type = JsonSchemaType.String, + Enum = new List { - new OpenApiString("Point") + "Point" }, - Default = new OpenApiString("Point") + Default = "Point" } }, - { "coordinates", new OpenApiSchema { UnresolvedReference = true, Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = "GeoJSON.position" } } } + { "coordinates", new OpenApiSchemaReference("GeoJSON.position") } }, Required = new HashSet { @@ -266,21 +204,21 @@ public static OpenApiSchema CreateEdmGeometryLineStringSchema() { return new OpenApiSchema { - Type = "object", - Properties = new Dictionary + Type = JsonSchemaType.Object, + Properties = new Dictionary { { "type", new OpenApiSchema { - Enum = new List + Enum = new List { - new OpenApiString("LineString") + "LineString" }, } }, { "coordinates", new OpenApiSchema { - Type = "array", - Items = new OpenApiSchema { UnresolvedReference = true, Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = "GeoJSON.position" }}, + Type = JsonSchemaType.Array, + Items = new OpenApiSchemaReference("GeoJSON.position"), MinItems = 2 } } @@ -301,24 +239,24 @@ public static OpenApiSchema CreateEdmGeometryPolygonSchema() { return new OpenApiSchema { - Type = "object", - Properties = new Dictionary + Type = JsonSchemaType.Object, + Properties = new Dictionary { { "type", new OpenApiSchema { - Enum = new List + Enum = new List { - new OpenApiString("Polygon") + "Polygon" }, } }, { "coordinates", new OpenApiSchema { - Type = "array", + Type = JsonSchemaType.Array, Items = new OpenApiSchema { - Type = "array", - Items = new OpenApiSchema { UnresolvedReference = true, Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = "GeoJSON.position" } } + Type = JsonSchemaType.Array, + Items = new OpenApiSchemaReference("GeoJSON.position") }, MinItems = 4 } @@ -340,21 +278,21 @@ public static OpenApiSchema CreateEdmGeometryMultiPointSchema() { return new OpenApiSchema { - Type = "object", - Properties = new Dictionary + Type = JsonSchemaType.Object, + Properties = new Dictionary { { "type", new OpenApiSchema { - Enum = new List + Enum = new List { - new OpenApiString("MultiPoint") + "MultiPoint" }, } }, { "coordinates", new OpenApiSchema { - Type = "array", - Items = new OpenApiSchema { UnresolvedReference = true, Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = "GeoJSON.position" }} + Type = JsonSchemaType.Array, + Items = new OpenApiSchemaReference("GeoJSON.position") } } }, @@ -374,24 +312,24 @@ public static OpenApiSchema CreateEdmGeometryMultiLineStringSchema() { return new OpenApiSchema { - Type = "object", - Properties = new Dictionary + Type = JsonSchemaType.Object, + Properties = new Dictionary { { "type", new OpenApiSchema { - Enum = new List + Enum = new List { - new OpenApiString("MultiLineString") + "MultiLineString" }, } }, { "coordinates", new OpenApiSchema { - Type = "array", + Type = JsonSchemaType.Array, Items = new OpenApiSchema { - Type = "array", - Items = new OpenApiSchema { UnresolvedReference = true, Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = "GeoJSON.position" } } + Type = JsonSchemaType.Array, + Items = new OpenApiSchemaReference("GeoJSON.position") }, MinItems = 2 } @@ -413,27 +351,27 @@ public static OpenApiSchema CreateEdmGeometryMultiPolygonSchema() { return new OpenApiSchema { - Type = "object", - Properties = new Dictionary + Type = JsonSchemaType.Object, + Properties = new Dictionary { { "type", new OpenApiSchema { - Enum = new List + Enum = new List { - new OpenApiString("MultiPolygon") + "MultiPolygon" }, } }, { "coordinates", new OpenApiSchema { - Type = "array", + Type = JsonSchemaType.Array, Items = new OpenApiSchema { - Type = "array", + Type = JsonSchemaType.Array, Items = new OpenApiSchema { - Type = "array", - Items = new OpenApiSchema { UnresolvedReference = true, Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = "GeoJSON.position" } } + Type = JsonSchemaType.Array, + Items = new OpenApiSchemaReference("GeoJSON.position") } }, MinItems = 4 @@ -456,21 +394,21 @@ public static OpenApiSchema CreateEdmGeometryCollectionSchema() { return new OpenApiSchema { - Type = "object", - Properties = new Dictionary + Type = JsonSchemaType.Object, + Properties = new Dictionary { { "type", new OpenApiSchema { - Enum = new List + Enum = new List { - new OpenApiString("GeometryCollection") + "GeometryCollection" }, } }, { "coordinates", new OpenApiSchema { - Type = "array", - Items = new OpenApiSchema { UnresolvedReference = true, Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = "Edm.Geometry" } } + Type = JsonSchemaType.Array, + Items = new OpenApiSchemaReference("Edm.Geometry") } } }, @@ -490,8 +428,8 @@ public static OpenApiSchema CreateGeoJsonPointSchema() { return new OpenApiSchema { - Type = "array", - Items = new OpenApiSchema { Type = "number" }, + Type = JsonSchemaType.Array, + Items = new OpenApiSchema { Type = JsonSchemaType.Number }, MinItems = 2 }; } diff --git a/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj b/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj index 0b4aa2a10..3a8e8260e 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj +++ b/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj @@ -54,7 +54,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Microsoft.OpenApi.OData.Reader/OData/ODataConstants.cs b/src/Microsoft.OpenApi.OData.Reader/OData/ODataConstants.cs index 2344f3880..4515aec96 100644 --- a/src/Microsoft.OpenApi.OData.Reader/OData/ODataConstants.cs +++ b/src/Microsoft.OpenApi.OData.Reader/OData/ODataConstants.cs @@ -4,7 +4,7 @@ // ------------------------------------------------------------ using Microsoft.OpenApi.Models; -using Microsoft.OpenApi.OData.Common; +using Microsoft.OpenApi.Models.Interfaces; using System.Collections.Generic; namespace Microsoft.OpenApi.OData @@ -24,16 +24,16 @@ internal static class ODataConstants /// /// @odata.nextLink KeyValue pair /// - public static KeyValuePair OdataNextLink = new("@odata.nextLink", new OpenApiSchema { Type = Constants.StringType, Nullable = true }); + public static KeyValuePair OdataNextLink = new("@odata.nextLink", new OpenApiSchema { Type = JsonSchemaType.String | JsonSchemaType.Null }); /// /// @odata.count KeyValue pair /// - public static KeyValuePair OdataCount = new("@odata.count", new OpenApiSchema { Type = "integer", Format = "int64", Nullable = true }); + public static KeyValuePair OdataCount = new("@odata.count", new OpenApiSchema { Type = JsonSchemaType.Number | JsonSchemaType.Null, Format = "int64"}); /// /// @odata.deltaLink KeyValue pair /// - public static KeyValuePair OdataDeltaLink = new("@odata.deltaLink", new OpenApiSchema { Type = Constants.StringType, Nullable = true }); + public static KeyValuePair OdataDeltaLink = new("@odata.deltaLink", new OpenApiSchema { Type = JsonSchemaType.String | JsonSchemaType.Null }); } } diff --git a/src/Microsoft.OpenApi.OData.Reader/OpenApiConvertSettings.cs b/src/Microsoft.OpenApi.OData.Reader/OpenApiConvertSettings.cs index 188675bf7..ecb73a7d4 100644 --- a/src/Microsoft.OpenApi.OData.Reader/OpenApiConvertSettings.cs +++ b/src/Microsoft.OpenApi.OData.Reader/OpenApiConvertSettings.cs @@ -66,7 +66,7 @@ public class OpenApiConvertSettings /// Gets/sets a value indicating whether the version of openApi to serialize to is v2. /// Currently only impacts nullable references for EdmTypeSchemaGenerator /// - public OpenApiSpecVersion OpenApiSpecVersion { get; set; } = OpenApiSpecVersion.OpenApi3_0; + public OpenApiSpecVersion OpenApiSpecVersion { get; set; } = OpenApiSpecVersion.OpenApi3_1; /// /// Gets/sets a value indicating to set the OperationId on Open API operation. diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/CachedOperationHandlerProvider.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/CachedOperationHandlerProvider.cs new file mode 100644 index 000000000..5fac7c1b6 --- /dev/null +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/CachedOperationHandlerProvider.cs @@ -0,0 +1,37 @@ + + +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. +// ------------------------------------------------------------ + +using System.Collections.Generic; +using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.OData.Common; +using Microsoft.OpenApi.OData.Edm; + +namespace Microsoft.OpenApi.OData.Operation; + +/// +/// A class to provide the . +/// +internal class CachedOperationHandlerProvider : IOperationHandlerProvider +{ + private readonly IOperationHandlerProvider _concreteProvider; + private readonly Dictionary<(ODataPathKind, OperationType), IOperationHandler> _cache = new(); + public CachedOperationHandlerProvider(IOperationHandlerProvider concreteProvider) + { + Utils.CheckArgumentNull(concreteProvider, nameof(concreteProvider)); + _concreteProvider = concreteProvider; + } + /// + public IOperationHandler GetHandler(ODataPathKind pathKind, OperationType operationType) + { + if (!_cache.TryGetValue((pathKind, operationType), out IOperationHandler handler)) + { + handler = _concreteProvider.GetHandler(pathKind, operationType); + _cache[(pathKind, operationType)] = handler; + } + return handler; + } +} \ No newline at end of file diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyBaseOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyBaseOperationHandler.cs index 426386b2b..33bd1ffc5 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyBaseOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyBaseOperationHandler.cs @@ -5,6 +5,7 @@ using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Vocabulary.Core; @@ -29,15 +30,11 @@ protected override void SetTags(OpenApiOperation operation) if (!string.IsNullOrEmpty(tagName)) { - OpenApiTag tag = new() - { - Name = tagName - }; - - tag.Extensions.Add(Constants.xMsTocType, new OpenApiString("page")); - operation.Tags.Add(tag); - - Context.AppendTag(tag); + Context.AddExtensionToTag(tagName, Constants.xMsTocType, new OpenApiAny("page"), () => new OpenApiTag() + { + Name = tagName + }); + operation.Tags.Add(new OpenApiTagReference(tagName)); } base.SetTags(operation); diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyGetOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyGetOperationHandler.cs index 1f8d3124f..4bc44f072 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyGetOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyGetOperationHandler.cs @@ -3,11 +3,13 @@ // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // ------------------------------------------------------------ -using System.Collections.Generic; using System.Linq; +using System.Text.Json.Nodes; using Microsoft.OData.Edm; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -54,7 +56,7 @@ protected override void SetParameters(OpenApiOperation operation) { base.SetParameters(operation); - OpenApiParameter parameter; + IOpenApiParameter parameter; if(ComplexPropertySegment.Property.Type.IsCollection()) { // The parameters array contains Parameter Objects for all system query options allowed for this collection, @@ -130,12 +132,12 @@ protected override void SetExtensions(OpenApiOperation operation) { if (Context.Settings.EnablePagination && ComplexPropertySegment.Property.Type.IsCollection()) { - OpenApiObject extension = new() + JsonObject extension = new() { - { "nextLinkName", new OpenApiString("@odata.nextLink")}, - { "operationName", new OpenApiString(Context.Settings.PageableOperationName)} + { "nextLinkName", "@odata.nextLink"}, + { "operationName", Context.Settings.PageableOperationName} }; - operation.Extensions.Add(Constants.xMsPageable, extension); + operation.Extensions.Add(Constants.xMsPageable, new OpenApiAny(extension)); base.SetExtensions(operation); } @@ -149,15 +151,7 @@ protected override void SetResponses(OpenApiOperation operation) } else { - OpenApiSchema schema = new() - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = ComplexPropertySegment.ComplexType.FullName() - } - }; + var schema = new OpenApiSchemaReference(ComplexPropertySegment.ComplexType.FullName()); SetSingleResponse(operation, schema); } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyPostOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyPostOperationHandler.cs index 6fd736c64..736931c1d 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyPostOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyPostOperationHandler.cs @@ -8,6 +8,7 @@ using System.Linq; using Microsoft.OData.Edm; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -65,7 +66,7 @@ protected override void SetParameters(OpenApiOperation operation) Description = "ETag", Schema = new OpenApiSchema { - Type = "string" + Type = JsonSchemaType.String } }); } @@ -128,16 +129,8 @@ private OpenApiSchema GetOpenApiSchema() { return new() { - Type = "array", - Items = new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = ComplexPropertySegment.ComplexType.FullName() - } - } + Type = JsonSchemaType.Array, + Items = new OpenApiSchemaReference(ComplexPropertySegment.ComplexType.FullName()) }; } } \ No newline at end of file diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyUpdateOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyUpdateOperationHandler.cs index cb9e616f1..f101f2118 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyUpdateOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyUpdateOperationHandler.cs @@ -7,6 +7,8 @@ using System.Linq; using Microsoft.OData.Edm; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -16,16 +18,15 @@ namespace Microsoft.OpenApi.OData.Operation; internal abstract class ComplexPropertyUpdateOperationHandler : ComplexPropertyBaseOperationHandler { - private UpdateRestrictionsType _updateRestrictions; protected override void Initialize(ODataContext context, ODataPath path) { base.Initialize(context, path); - _updateRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.UpdateRestrictions); - var complexPropertyUpdateRestrictions = Context.Model.GetRecord(ComplexPropertySegment.Property, CapabilitiesConstants.UpdateRestrictions); - _updateRestrictions?.MergePropertiesIfNull(complexPropertyUpdateRestrictions); + _updateRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.UpdateRestrictions); + var complexPropertyUpdateRestrictions = Context.Model.GetRecord(ComplexPropertySegment.Property, CapabilitiesConstants.UpdateRestrictions); + _updateRestrictions?.MergePropertiesIfNull(complexPropertyUpdateRestrictions); _updateRestrictions ??= complexPropertyUpdateRestrictions; } @@ -39,7 +40,7 @@ protected override void SetBasicInfo(OpenApiOperation operation) // OperationId if (Context.Settings.EnableOperationId) - { + { string prefix = OperationType == OperationType.Patch ? "Update" : "Set"; operation.OperationId = EdmModelHelper.GenerateComplexPropertyPathOperationId(Path, Context, prefix); } @@ -100,39 +101,31 @@ protected override void AppendCustomParameters(OpenApiOperation operation) } } - private OpenApiSchema GetOpenApiSchema() + private IOpenApiSchema GetOpenApiSchema() { - var schema = new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = ComplexPropertySegment.ComplexType.FullName() - } - }; - - if (ComplexPropertySegment.Property.Type.IsCollection()) - { + var schema = new OpenApiSchemaReference(ComplexPropertySegment.ComplexType.FullName()); + + if (ComplexPropertySegment.Property.Type.IsCollection()) + { return new OpenApiSchema { - Type = Constants.ObjectType, - Properties = new Dictionary - { - { + Type = JsonSchemaType.Object, + Properties = new Dictionary + { + { "value", new OpenApiSchema { - Type = "array", + Type = JsonSchemaType.Array, Items = schema - } - } + } + } } - }; - } - else - { - return schema; + }; + } + else + { + return schema; } } } \ No newline at end of file diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/DollarCountGetOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/DollarCountGetOperationHandler.cs index 69b76302b..7fd5fa0c9 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/DollarCountGetOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/DollarCountGetOperationHandler.cs @@ -3,11 +3,15 @@ // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // ------------------------------------------------------------ +using System; +using System.Collections.Generic; using System.Linq; using Microsoft.OData.Edm; using Microsoft.OData.Edm.Vocabularies; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -31,7 +35,7 @@ internal class DollarCountGetOperationHandler : OperationHandler private ODataSegment firstSegment; private int pathCount; private const int SecondLastSegmentIndex = 2; - private IEdmVocabularyAnnotatable annotatable; + private readonly List annotatables = []; /// protected override void Initialize(ODataContext context, ODataPath path) @@ -39,20 +43,32 @@ protected override void Initialize(ODataContext context, ODataPath path) base.Initialize(context, path); // Get the first segment - firstSegment = path.Segments.First(); + firstSegment = path.Segments[0]; // get the last second segment pathCount = path.Segments.Count; if(pathCount >= SecondLastSegmentIndex) - SecondLastSegment = path.Segments.ElementAt(pathCount - SecondLastSegmentIndex); + SecondLastSegment = path.Segments[pathCount - SecondLastSegmentIndex]; - if (SecondLastSegment is ODataNavigationSourceSegment sourceSegment) + AddODataSegmentToAnnotables(SecondLastSegment, path.Segments.Count > SecondLastSegmentIndex ? path.Segments.SkipLast(SecondLastSegmentIndex).ToArray() : []); + } + private void AddODataSegmentToAnnotables(ODataSegment oDataSegment, ODataSegment[] oDataSegments) + { + if (oDataSegment is ODataNavigationSourceSegment sourceSegment) + { + annotatables.Add(sourceSegment.NavigationSource as IEdmEntitySet); + } + else if (oDataSegment is ODataNavigationPropertySegment navigationPropertySegment) { - annotatable = sourceSegment.NavigationSource as IEdmEntitySet; + annotatables.Add(navigationPropertySegment.NavigationProperty); } - else if (SecondLastSegment is ODataNavigationPropertySegment navigationPropertySegment) + else if (oDataSegment is ODataTypeCastSegment odataTypeCastSegment) { - annotatable = navigationPropertySegment.NavigationProperty; + annotatables.Add(odataTypeCastSegment.StructuredType as IEdmVocabularyAnnotatable); + if (annotatables.Count == 1 && oDataSegments.Length > 0) + {// we want to look at the parent navigation property or entity set + AddODataSegmentToAnnotables(oDataSegments[oDataSegments.Length - 1], oDataSegments.SkipLast(1).ToArray()); + } } } @@ -70,7 +86,7 @@ protected override void SetTags(OpenApiOperation operation) } else if (SecondLastSegment is ODataTypeCastSegment) { - ODataSegment lastThirdSegment = Path.Segments.ElementAt(pathCount - 3); + ODataSegment lastThirdSegment = Path.Segments[pathCount - 3]; if (lastThirdSegment is ODataNavigationSourceSegment sourceSegment2) { tagName = TagNameFromNavigationSourceSegment(sourceSegment2); @@ -87,17 +103,12 @@ protected override void SetTags(OpenApiOperation operation) if (tagName != null) { - OpenApiTag tag = new() + Context.AddExtensionToTag(tagName, Constants.xMsTocType, new OpenApiAny("page"), () => new OpenApiTag() { Name = tagName - }; - - // Use an extension for TOC (Table of Content) - tag.Extensions.Add(Constants.xMsTocType, new OpenApiString("page")); - - operation.Tags.Add(tag); + }); - Context.AppendTag(tag); + operation.Tags.Add(new OpenApiTagReference(tagName)); } string TagNameFromNavigationSourceSegment(ODataNavigationSourceSegment sourceSegment) @@ -152,14 +163,7 @@ protected override void SetResponses(OpenApiOperation operation) { { Context.Settings.UseSuccessStatusCodeRange ? Constants.StatusCodeClass2XX : Constants.StatusCode200, - new OpenApiResponse - { - UnresolvedReference = true, - Reference = new OpenApiReference() { - Type = ReferenceType.Response, - Id = Constants.DollarCountSchemaName - } - } + new OpenApiResponseReference(Constants.DollarCountSchemaName) } }; operation.AddErrorResponses(Context.Settings, false); @@ -172,20 +176,15 @@ protected override void SetParameters(OpenApiOperation operation) { base.SetParameters(operation); - if (annotatable == null) - { - return; - } - - OpenApiParameter parameter; + IOpenApiParameter parameter; - parameter = Context.CreateSearch(TargetPath) ?? Context.CreateSearch(annotatable); + parameter = Context.CreateSearch(TargetPath) ?? (annotatables.Count == 0 ? null : annotatables.Select(x => Context.CreateSearch(x)).FirstOrDefault(static x => x is not null)); if (parameter != null) { operation.Parameters.Add(parameter); } - parameter = Context.CreateFilter(TargetPath) ?? Context.CreateFilter(annotatable); + parameter = Context.CreateFilter(TargetPath) ?? (annotatables.Count == 0 ? null : annotatables.Select(x => Context.CreateFilter(x)).FirstOrDefault(static x => x is not null)); if (parameter != null) { operation.Parameters.Add(parameter); @@ -194,15 +193,13 @@ protected override void SetParameters(OpenApiOperation operation) protected override void AppendCustomParameters(OpenApiOperation operation) { - if (annotatable == null) + ReadRestrictionsType readRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.ReadRestrictions); + if (annotatables.Count > 0) { - return; + ReadRestrictionsType annotatableReadRestrictions = annotatables.Select(x => Context.Model.GetRecord(x, CapabilitiesConstants.ReadRestrictions)).FirstOrDefault(static x => x is not null); + readRestrictions?.MergePropertiesIfNull(annotatableReadRestrictions); + readRestrictions ??= annotatableReadRestrictions; } - - ReadRestrictionsType readRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.ReadRestrictions); - ReadRestrictionsType annotatableReadRestrictions = Context.Model.GetRecord(annotatable, CapabilitiesConstants.ReadRestrictions); - readRestrictions?.MergePropertiesIfNull(annotatableReadRestrictions); - readRestrictions ??= annotatableReadRestrictions; if (readRestrictions == null) { diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/EdmActionImportOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/EdmActionImportOperationHandler.cs index f2f0424a9..2f27652d7 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/EdmActionImportOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/EdmActionImportOperationHandler.cs @@ -33,7 +33,7 @@ protected override void SetRequestBody(OpenApiOperation operation) /// protected override void SetExtensions(OpenApiOperation operation) { - operation.Extensions.Add(Constants.xMsDosOperationType, new OpenApiString("actionImport")); + operation.Extensions.Add(Constants.xMsDosOperationType, new OpenApiAny("actionImport")); base.SetExtensions(operation); } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/EdmActionOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/EdmActionOperationHandler.cs index e099e3714..bb595c083 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/EdmActionOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/EdmActionOperationHandler.cs @@ -6,6 +6,7 @@ using Microsoft.OData.Edm; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -45,15 +46,7 @@ protected override void SetRequestBody(OpenApiOperation operation) { if (Context.Model.OperationTargetsMultiplePaths(action)) { - operation.RequestBody = new OpenApiRequestBody - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.RequestBody, - Id = $"{action.Name}RequestBody" - } - }; + operation.RequestBody = new OpenApiRequestBodyReference($"{action.Name}RequestBody"); } else { @@ -67,7 +60,7 @@ protected override void SetRequestBody(OpenApiOperation operation) /// protected override void SetExtensions(OpenApiOperation operation) { - operation.Extensions.Add(Constants.xMsDosOperationType, new OpenApiString("action")); + operation.Extensions.Add(Constants.xMsDosOperationType, new OpenApiAny("action")); base.SetExtensions(operation); } } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/EdmFunctionImportOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/EdmFunctionImportOperationHandler.cs index 9e36f21f4..b284e9791 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/EdmFunctionImportOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/EdmFunctionImportOperationHandler.cs @@ -24,7 +24,10 @@ protected override void SetParameters(OpenApiOperation operation) { base.SetParameters(operation); - IEdmFunctionImport functionImport = EdmOperationImport as IEdmFunctionImport; + if (EdmOperationImport is not IEdmFunctionImport functionImport) + { + return; + } if (OperationImportSegment.ParameterMappings != null) { @@ -47,7 +50,7 @@ protected override void SetParameters(OpenApiOperation operation) /// protected override void SetExtensions(OpenApiOperation operation) { - operation.Extensions.Add(Constants.xMsDosOperationType, new OpenApiString("functionImport")); + operation.Extensions.Add(Constants.xMsDosOperationType, new OpenApiAny("functionImport")); base.SetExtensions(operation); } } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/EdmFunctionOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/EdmFunctionOperationHandler.cs index 60184c8fe..995e3abaf 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/EdmFunctionOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/EdmFunctionOperationHandler.cs @@ -45,7 +45,7 @@ protected override void SetBasicInfo(OpenApiOperation operation) /// protected override void SetExtensions(OpenApiOperation operation) { - operation.Extensions.Add(Constants.xMsDosOperationType, new OpenApiString("function")); + operation.Extensions.Add(Constants.xMsDosOperationType, new OpenApiAny("function")); base.SetExtensions(operation); } } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/EdmOperationImportOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/EdmOperationImportOperationHandler.cs index 91cee642a..30b745a81 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/EdmOperationImportOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/EdmOperationImportOperationHandler.cs @@ -9,6 +9,7 @@ using Microsoft.OData.Edm; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -129,35 +130,27 @@ protected override void AppendCustomParameters(OpenApiOperation operation) /// protected override void SetTags(OpenApiOperation operation) { - operation.Tags = CreateTags(EdmOperationImport); - operation.Tags[0].Extensions.Add(Constants.xMsTocType, new OpenApiString("container")); - Context.AppendTag(operation.Tags[0]); + var tag = CreateTag(EdmOperationImport); + tag.Extensions.Add(Constants.xMsTocType, new OpenApiAny("container")); + Context.AppendTag(tag); + operation.Tags.Add(new OpenApiTagReference(tag.Name)); base.SetTags(operation); } - private static IList CreateTags(IEdmOperationImport operationImport) + private static OpenApiTag CreateTag(IEdmOperationImport operationImport) { - if (operationImport.EntitySet != null) + if (operationImport.EntitySet is IEdmPathExpression pathExpression) { - var pathExpression = operationImport.EntitySet as IEdmPathExpression; - if (pathExpression != null) + return new OpenApiTag { - return new List - { - new OpenApiTag - { - Name = PathAsString(pathExpression.PathSegments) - } - }; - } + Name = PathAsString(pathExpression.PathSegments) + }; } - return new List{ - new OpenApiTag - { - Name = operationImport.Name - } + return new OpenApiTag + { + Name = operationImport.Name }; } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/EdmOperationOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/EdmOperationOperationHandler.cs index 404e936fa..33419aa0b 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/EdmOperationOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/EdmOperationOperationHandler.cs @@ -5,9 +5,11 @@ using System.Collections.Generic; using System.Linq; +using System.Text.Json.Nodes; using Microsoft.OData.Edm; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -143,8 +145,8 @@ protected override void SetTags(OpenApiOperation operation) { Name = tagName, }; - tag.Extensions.Add(Constants.xMsTocType, new OpenApiString("container")); - operation.Tags.Add(tag); + tag.Extensions.Add(Constants.xMsTocType, new OpenApiAny("container")); + operation.Tags.Add(new OpenApiTagReference(tag.Name)); Context.AppendTag(tag); @@ -239,31 +241,31 @@ private void AppendSystemQueryOptions(IEdmFunction function, OpenApiOperation op if (function.ReturnType.IsCollection()) { // $top - if (Context.CreateTop(function) is OpenApiParameter topParameter) + if (Context.CreateTop(function) is {} topParameter) { operation.Parameters.AppendParameter(topParameter); } // $skip - if (Context.CreateSkip(function) is OpenApiParameter skipParameter) + if (Context.CreateSkip(function) is {} skipParameter) { operation.Parameters.AppendParameter(skipParameter); } // $search - if (Context.CreateSearch(function) is OpenApiParameter searchParameter) + if (Context.CreateSearch(function) is {} searchParameter) { operation.Parameters.AppendParameter(searchParameter); } // $filter - if (Context.CreateFilter(function) is OpenApiParameter filterParameter) + if (Context.CreateFilter(function) is {} filterParameter) { operation.Parameters.AppendParameter(filterParameter); } // $count - if (Context.CreateCount(function) is OpenApiParameter countParameter) + if (Context.CreateCount(function) is {} countParameter) { operation.Parameters.AppendParameter(countParameter); } @@ -271,19 +273,19 @@ private void AppendSystemQueryOptions(IEdmFunction function, OpenApiOperation op if (function.ReturnType?.Definition?.AsElementType() is IEdmEntityType entityType) { // $select - if (Context.CreateSelect(function, entityType) is OpenApiParameter selectParameter) + if (Context.CreateSelect(function, entityType) is {} selectParameter) { operation.Parameters.AppendParameter(selectParameter); } // $orderby - if (Context.CreateOrderBy(function, entityType) is OpenApiParameter orderbyParameter) + if (Context.CreateOrderBy(function, entityType) is {} orderbyParameter) { operation.Parameters.AppendParameter(orderbyParameter); } // $expand - if (Context.CreateExpand(function, entityType) is OpenApiParameter expandParameter) + if (Context.CreateExpand(function, entityType) is {} expandParameter) { operation.Parameters.AppendParameter(expandParameter); } @@ -326,13 +328,13 @@ protected override void SetExtensions(OpenApiOperation operation) { if (Context.Settings.EnablePagination && EdmOperation.ReturnType?.TypeKind() == EdmTypeKind.Collection) { - OpenApiObject extension = new OpenApiObject + JsonObject extension = new JsonObject { - { "nextLinkName", new OpenApiString("@odata.nextLink")}, - { "operationName", new OpenApiString(Context.Settings.PageableOperationName)} + { "nextLinkName", "@odata.nextLink"}, + { "operationName", Context.Settings.PageableOperationName} }; - operation.Extensions.Add(Constants.xMsPageable, extension); + operation.Extensions.Add(Constants.xMsPageable, new OpenApiAny(extension)); } base.SetExtensions(operation); } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/EntityDeleteOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/EntityDeleteOperationHandler.cs index f34d83450..83933ba56 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/EntityDeleteOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/EntityDeleteOperationHandler.cs @@ -76,7 +76,7 @@ protected override void SetParameters(OpenApiOperation operation) Description = "ETag", Schema = new OpenApiSchema { - Type = "string" + Type = JsonSchemaType.String } }); } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/EntityGetOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/EntityGetOperationHandler.cs index 8a506cf82..be37820c8 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/EntityGetOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/EntityGetOperationHandler.cs @@ -11,6 +11,8 @@ using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Vocabulary.Capabilities; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.Models.References; +using Microsoft.OpenApi.Models.Interfaces; namespace Microsoft.OpenApi.OData.Operation { @@ -88,8 +90,8 @@ protected override void SetParameters(OpenApiOperation operation) /// protected override void SetResponses(OpenApiOperation operation) { - OpenApiSchema schema = null; - IDictionary links = null; + IOpenApiSchema schema = null; + IDictionary links = null; if (Context.Settings.EnableDerivedTypesReferencesForResponses) { @@ -104,15 +106,7 @@ protected override void SetResponses(OpenApiOperation operation) if (schema == null) { - schema = new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = EntitySet.EntityType.FullName() - } - }; + schema = new OpenApiSchemaReference(EntitySet.EntityType.FullName()); } operation.Responses = new OpenApiResponses diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/EntitySetGetOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/EntitySetGetOperationHandler.cs index 96b967d38..3c6af965c 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/EntitySetGetOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/EntitySetGetOperationHandler.cs @@ -4,9 +4,11 @@ // ------------------------------------------------------------ using System.Linq; +using System.Text.Json.Nodes; using Microsoft.OData.Edm; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -57,12 +59,12 @@ protected override void SetExtensions(OpenApiOperation operation) { if (Context.Settings.EnablePagination) { - OpenApiObject extension = new OpenApiObject + JsonObject extension = new JsonObject { - { "nextLinkName", new OpenApiString("@odata.nextLink")}, - { "operationName", new OpenApiString(Context.Settings.PageableOperationName)} + { "nextLinkName", "@odata.nextLink"}, + { "operationName", Context.Settings.PageableOperationName} }; - operation.Extensions.Add(Constants.xMsPageable, extension); + operation.Extensions.Add(Constants.xMsPageable, new OpenApiAny(extension)); base.SetExtensions(operation); } @@ -78,7 +80,7 @@ protected override void SetParameters(OpenApiOperation operation) // Capabilities.TopSupported, Capabilities.SkipSupported, Capabilities.SearchRestrictions, // Capabilities.FilterRestrictions, and Capabilities.CountRestrictions // $top - OpenApiParameter parameter = Context.CreateTop(TargetPath) ?? Context.CreateTop(EntitySet); + var parameter = Context.CreateTop(TargetPath) ?? Context.CreateTop(EntitySet); if (parameter != null) { operation.Parameters.Add(parameter); @@ -145,15 +147,7 @@ protected override void SetResponses(OpenApiOperation operation) { { Context.Settings.UseSuccessStatusCodeRange ? Constants.StatusCodeClass2XX : Constants.StatusCode200, - new OpenApiResponse - { - UnresolvedReference = true, - Reference = new OpenApiReference() - { - Type = ReferenceType.Response, - Id = $"{EntitySet.EntityType.FullName()}{Constants.CollectionSchemaSuffix}" - }, - } + new OpenApiResponseReference($"{EntitySet.EntityType.FullName()}{Constants.CollectionSchemaSuffix}") } }; diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/EntitySetOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/EntitySetOperationHandler.cs index 58c3f66d9..2a71c84fe 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/EntitySetOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/EntitySetOperationHandler.cs @@ -6,6 +6,7 @@ using Microsoft.OData.Edm; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Vocabulary.Core; @@ -36,16 +37,14 @@ protected override void Initialize(ODataContext context, ODataPath path) /// protected override void SetTags(OpenApiOperation operation) { - OpenApiTag tag = new OpenApiTag - { - Name = EntitySet.Name + "." + EntitySet.EntityType.Name, - }; - - tag.Extensions.Add(Constants.xMsTocType, new OpenApiString("page")); + var tagName = EntitySet.Name + "." + EntitySet.EntityType.Name; - operation.Tags.Add(tag); + operation.Tags.Add(new OpenApiTagReference(tagName)); - Context.AppendTag(tag); + Context.AddExtensionToTag(tagName, Constants.xMsTocType, new OpenApiAny("page"), () => new OpenApiTag() + { + Name = tagName + }); base.SetTags(operation); } @@ -53,7 +52,7 @@ protected override void SetTags(OpenApiOperation operation) /// protected override void SetExtensions(OpenApiOperation operation) { - operation.Extensions.Add(Constants.xMsDosOperationType, new OpenApiString("operation")); + operation.Extensions.Add(Constants.xMsDosOperationType, new OpenApiAny("operation")); base.SetExtensions(operation); } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/EntitySetPostOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/EntitySetPostOperationHandler.cs index 4367beacf..16987c879 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/EntitySetPostOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/EntitySetPostOperationHandler.cs @@ -7,6 +7,8 @@ using System.Linq; using Microsoft.OData.Edm; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -122,7 +124,7 @@ protected override void AppendCustomParameters(OpenApiOperation operation) /// The entity content description. private IDictionary GetContentDescription() { - OpenApiSchema schema = GetEntitySchema(); + var schema = GetEntitySchema(); var content = new Dictionary(); if (EntitySet.EntityType.HasStream) @@ -144,7 +146,7 @@ private IDictionary GetContentDescription() { Schema = new OpenApiSchema { - Type = "string", + Type = JsonSchemaType.String, Format = "binary" } }); @@ -181,29 +183,11 @@ private IDictionary GetContentDescription() /// Get the entity schema. /// /// The entity schema. - private OpenApiSchema GetEntitySchema() + private IOpenApiSchema GetEntitySchema() { - OpenApiSchema schema = null; - - if (Context.Settings.EnableDerivedTypesReferencesForRequestBody) - { - schema = EdmModelHelper.GetDerivedTypesReferenceSchema(EntitySet.EntityType, Context.Model); - } - - if (schema == null) - { - schema = new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = EntitySet.EntityType.FullName() - } - }; - } - - return schema; + return Context.Settings.EnableDerivedTypesReferencesForRequestBody ? + EdmModelHelper.GetDerivedTypesReferenceSchema(EntitySet.EntityType, Context.Model) : + new OpenApiSchemaReference(EntitySet.EntityType.FullName()); } } } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/EntityUpdateOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/EntityUpdateOperationHandler.cs index 3595b30b7..26e6aaa74 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/EntityUpdateOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/EntityUpdateOperationHandler.cs @@ -7,6 +7,8 @@ using System.Linq; using Microsoft.OData.Edm; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -76,7 +78,7 @@ protected override void SetRequestBody(OpenApiOperation operation) protected IDictionary GetContent() { - OpenApiSchema schema = GetOpenApiSchema(); + var schema = GetOpenApiSchema(); var content = new Dictionary(); IEnumerable mediaTypes = _updateRestrictions?.RequestContentTypes; @@ -138,22 +140,14 @@ protected override void AppendCustomParameters(OpenApiOperation operation) } } - private OpenApiSchema GetOpenApiSchema() + private IOpenApiSchema GetOpenApiSchema() { if (Context.Settings.EnableDerivedTypesReferencesForRequestBody) { return EdmModelHelper.GetDerivedTypesReferenceSchema(EntitySet.EntityType, Context.Model); } - return new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = EntitySet.EntityType.FullName() - } - }; + return new OpenApiSchemaReference(EntitySet.EntityType.FullName()); } } } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityDeleteOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityDeleteOperationHandler.cs index 54e712a2c..bcd947aa8 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityDeleteOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityDeleteOperationHandler.cs @@ -73,7 +73,7 @@ protected override void SetParameters(OpenApiOperation operation) Description = "ETag", Schema = new OpenApiSchema { - Type = "string" + Type = JsonSchemaType.String } }); } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityGetOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityGetOperationHandler.cs index 125141e98..20c10d1d3 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityGetOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityGetOperationHandler.cs @@ -23,27 +23,27 @@ internal class MediaEntityGetOperationHandler : MediaEntityOperationalHandler public override OperationType OperationType => OperationType.Get; private ReadRestrictionsType _readRestrictions = null; - protected override void Initialize(ODataContext context, ODataPath path) - { - base.Initialize(context, path); - - if (Property != null) - { - _readRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.ReadRestrictions); - if (Property is IEdmNavigationProperty) - { - var navigationReadRestrictions = Context.Model.GetRecord(Property, CapabilitiesConstants.NavigationRestrictions)? - .RestrictedProperties?.FirstOrDefault()?.ReadRestrictions; - _readRestrictions?.MergePropertiesIfNull(navigationReadRestrictions); - _readRestrictions ??= navigationReadRestrictions; - } - else - { - var propertyReadRestrictions = Context.Model.GetRecord(Property, CapabilitiesConstants.ReadRestrictions); - _readRestrictions?.MergePropertiesIfNull(propertyReadRestrictions); - _readRestrictions ??= propertyReadRestrictions; - } - } + protected override void Initialize(ODataContext context, ODataPath path) + { + base.Initialize(context, path); + + if (Property != null) + { + _readRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.ReadRestrictions); + if (Property is IEdmNavigationProperty) + { + var navigationReadRestrictions = Context.Model.GetRecord(Property, CapabilitiesConstants.NavigationRestrictions)? + .RestrictedProperties?.FirstOrDefault()?.ReadRestrictions; + _readRestrictions?.MergePropertiesIfNull(navigationReadRestrictions); + _readRestrictions ??= navigationReadRestrictions; + } + else + { + var propertyReadRestrictions = Context.Model.GetRecord(Property, CapabilitiesConstants.ReadRestrictions); + _readRestrictions?.MergePropertiesIfNull(propertyReadRestrictions); + _readRestrictions ??= propertyReadRestrictions; + } + } } /// @@ -51,7 +51,7 @@ protected override void SetBasicInfo(OpenApiOperation operation) { // Summary string placeholderValue = LastSegmentIsStreamPropertySegment ? Path.LastSegment.Identifier : "media content"; - operation.Summary = _readRestrictions?.Description; + operation.Summary = _readRestrictions?.Description; operation.Summary ??= IsNavigationPropertyPath ? $"Get {placeholderValue} for the navigation property {NavigationProperty.Name} from {NavigationSourceSegment.NavigationSource.Name}" : $"Get {placeholderValue} for {NavigationSourceSegment.EntityType.Name} from {NavigationSourceSegment.Identifier}"; @@ -67,8 +67,8 @@ protected override void SetBasicInfo(OpenApiOperation operation) ?? Context.Model.GetDescriptionAnnotation(Property); } else - { - // Structural property + { + // Structural property description = _readRestrictions?.LongDescription ?? Context.Model.GetDescriptionAnnotation(Property); } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityOperationalHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityOperationalHandler.cs index 3a159ace6..c7ac1fa47 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityOperationalHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityOperationalHandler.cs @@ -6,6 +6,7 @@ using Microsoft.OData.Edm; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Vocabulary.Core; @@ -56,7 +57,7 @@ protected override void Initialize(ODataContext context, ODataPath path) // Check whether path is a navigation property path IsNavigationPropertyPath = Path.Segments.Contains( - Path.Segments.Where(segment => segment is ODataNavigationPropertySegment).FirstOrDefault()); + Path.Segments.FirstOrDefault(segment => segment is ODataNavigationPropertySegment)); LastSegmentIsStreamPropertySegment = Path.LastSegment.Kind == ODataSegmentKind.StreamProperty; @@ -82,17 +83,12 @@ protected override void SetTags(OpenApiOperation operation) ? EdmModelHelper.GenerateNavigationPropertyPathTagName(Path, Context) : NavigationSourceSegment.Identifier + "." + NavigationSourceSegment.EntityType.Name; - OpenApiTag tag = new() - { - Name = tagIdentifier - }; - - // Use an extension for TOC (Table of Content) - tag.Extensions.Add(Constants.xMsTocType, new OpenApiString("page")); - - operation.Tags.Add(tag); - Context.AppendTag(tag); + Context.AddExtensionToTag(tagIdentifier, Constants.xMsTocType, new OpenApiAny("page"), () => new OpenApiTag() + { + Name = tagIdentifier + }); + operation.Tags.Add(new OpenApiTagReference(tagIdentifier)); } /// @@ -112,7 +108,7 @@ protected string GetOperationId(string prefix, string identifier) Utils.CheckArgumentNullOrEmpty(prefix, nameof(prefix)); Utils.CheckArgumentNullOrEmpty(identifier, nameof(identifier)); - IList items = new List + var items = new List { NavigationSourceSegment.Identifier }; @@ -146,7 +142,7 @@ protected string GetOperationId(string prefix, string identifier) } } - return string.Join(".", items); + return $"{string.Join(".", items)}-{Path.GetPathHash(Context.Settings)}"; } /// @@ -166,7 +162,7 @@ protected IDictionary GetContentDescription() OpenApiSchema schema = new() { - Type = "string", + Type = JsonSchemaType.String, Format = "binary" }; diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityPutOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityPutOperationHandler.cs index 20f810b84..e7f99e5ee 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityPutOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/MediaEntityPutOperationHandler.cs @@ -8,6 +8,7 @@ using Microsoft.OData.Edm; using Microsoft.OData.Edm.Vocabularies; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -29,23 +30,23 @@ protected override void Initialize(ODataContext context, ODataPath path) { base.Initialize(context, path); - if (Property != null) - { - _updateRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.UpdateRestrictions); - if (Property is IEdmNavigationProperty) - { - var navigationUpdateRestrictions = Context.Model.GetRecord(Property, CapabilitiesConstants.NavigationRestrictions)? - .RestrictedProperties?.FirstOrDefault()?.UpdateRestrictions; - _updateRestrictions?.MergePropertiesIfNull(navigationUpdateRestrictions); - _updateRestrictions ??= navigationUpdateRestrictions; - } - else - { - var propertyUpdateRestrictions = Context.Model.GetRecord(Property, CapabilitiesConstants.UpdateRestrictions); - _updateRestrictions?.MergePropertiesIfNull(propertyUpdateRestrictions); - _updateRestrictions ??= propertyUpdateRestrictions; - } - } + if (Property != null) + { + _updateRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.UpdateRestrictions); + if (Property is IEdmNavigationProperty) + { + var navigationUpdateRestrictions = Context.Model.GetRecord(Property, CapabilitiesConstants.NavigationRestrictions)? + .RestrictedProperties?.FirstOrDefault()?.UpdateRestrictions; + _updateRestrictions?.MergePropertiesIfNull(navigationUpdateRestrictions); + _updateRestrictions ??= navigationUpdateRestrictions; + } + else + { + var propertyUpdateRestrictions = Context.Model.GetRecord(Property, CapabilitiesConstants.UpdateRestrictions); + _updateRestrictions?.MergePropertiesIfNull(propertyUpdateRestrictions); + _updateRestrictions ??= propertyUpdateRestrictions; + } + } } /// @@ -90,15 +91,7 @@ protected override void SetResponses(OpenApiOperation operation) // Get the entity type declaring this stream property. (var entityType, _) = GetStreamElements(); - OpenApiSchema schema = new() - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = entityType.FullName() - } - }; + var schema = new OpenApiSchemaReference(entityType.FullName()); operation.AddErrorResponses(Context.Settings, addNoContent: true, schema: schema); } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/MetadataGetOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/MetadataGetOperationHandler.cs index f12e9fa98..22d600a30 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/MetadataGetOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/MetadataGetOperationHandler.cs @@ -6,7 +6,6 @@ using System.Collections.Generic; using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Common; -using Microsoft.OpenApi.OData.Generator; namespace Microsoft.OpenApi.OData.Operation { @@ -46,7 +45,7 @@ protected override void SetResponses(OpenApiOperation operation) { OpenApiSchema schema = new OpenApiSchema { - Type = "string" + Type = JsonSchemaType.String }; operation.Responses = new OpenApiResponses diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/NavigationPropertyDeleteOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/NavigationPropertyDeleteOperationHandler.cs index 11e852053..ad0ac7eaa 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/NavigationPropertyDeleteOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/NavigationPropertyDeleteOperationHandler.cs @@ -61,7 +61,7 @@ protected override void SetParameters(OpenApiOperation operation) Description = "ETag", Schema = new OpenApiSchema { - Type = "string" + Type = JsonSchemaType.String } }); } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/NavigationPropertyGetOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/NavigationPropertyGetOperationHandler.cs index fd94a4f50..40801332b 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/NavigationPropertyGetOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/NavigationPropertyGetOperationHandler.cs @@ -5,9 +5,12 @@ using System.Collections.Generic; using System.Linq; +using System.Text.Json.Nodes; using Microsoft.OData.Edm; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -64,13 +67,13 @@ protected override void SetExtensions(OpenApiOperation operation) { if (!LastSegmentIsKeySegment && NavigationProperty.TargetMultiplicity() == EdmMultiplicity.Many) { - OpenApiObject extension = new OpenApiObject + JsonObject extension = new JsonObject { - { "nextLinkName", new OpenApiString("@odata.nextLink")}, - { "operationName", new OpenApiString(Context.Settings.PageableOperationName)} + { "nextLinkName", "@odata.nextLink"}, + { "operationName", Context.Settings.PageableOperationName} }; - operation.Extensions.Add(Constants.xMsPageable, extension); + operation.Extensions.Add(Constants.xMsPageable, new OpenApiAny(extension)); } } @@ -80,7 +83,7 @@ protected override void SetExtensions(OpenApiOperation operation) /// protected override void SetResponses(OpenApiOperation operation) { - IDictionary links = null; + IDictionary links = null; if (Context.Settings.ShowLinks) { string operationId = GetOperationId(); @@ -96,22 +99,13 @@ protected override void SetResponses(OpenApiOperation operation) { { Context.Settings.UseSuccessStatusCodeRange ? Constants.StatusCodeClass2XX : Constants.StatusCode200, - new OpenApiResponse - { - UnresolvedReference = true, - Reference = new OpenApiReference() - { - Type = ReferenceType.Response, - Id = $"{NavigationProperty.ToEntityType().FullName()}{Constants.CollectionSchemaSuffix}" - }, - Links = links - } + new OpenApiResponseReference($"{NavigationProperty.ToEntityType().FullName()}{Constants.CollectionSchemaSuffix}") } }; } else { - OpenApiSchema schema = null; + IOpenApiSchema schema = null; var entityType = NavigationProperty.ToEntityType(); if (Context.Settings.EnableDerivedTypesReferencesForResponses) @@ -119,18 +113,7 @@ protected override void SetResponses(OpenApiOperation operation) schema = EdmModelHelper.GetDerivedTypesReferenceSchema(entityType, Context.Model); } - if (schema == null) - { - schema = new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = entityType.FullName() - } - }; - } + schema ??= new OpenApiSchemaReference(entityType.FullName()); operation.Responses = new OpenApiResponses { @@ -175,7 +158,7 @@ protected override void SetParameters(OpenApiOperation operation) { // Need to verify that TopSupported or others should be applied to navigation source. // So, how about for the navigation property. - OpenApiParameter parameter = Context.CreateTop(TargetPath) ?? Context.CreateTop(NavigationProperty); + var parameter = Context.CreateTop(TargetPath) ?? Context.CreateTop(NavigationProperty); if (parameter != null) { operation.Parameters.Add(parameter); diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/NavigationPropertyOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/NavigationPropertyOperationHandler.cs index 743a10e88..a09511cba 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/NavigationPropertyOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/NavigationPropertyOperationHandler.cs @@ -6,6 +6,8 @@ using Microsoft.OData.Edm; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Vocabulary; @@ -39,10 +41,10 @@ internal abstract class NavigationPropertyOperationHandler : OperationHandler /// /// Gets a bool value indicating whether the last segment is a key segment. /// - protected bool LastSegmentIsKeySegment { get; private set; } - - /// - /// Gets a bool value indicating whether the second last segment in a $ref path is a key segment + protected bool LastSegmentIsKeySegment { get; private set; } + + /// + /// Gets a bool value indicating whether the second last segment in a $ref path is a key segment /// protected bool SecondLastSegmentIsKeySegment { get; private set; } @@ -60,7 +62,7 @@ protected override void Initialize(ODataContext context, ODataPath path) NavigationSource = navigationSourceSegment.NavigationSource; LastSegmentIsKeySegment = path.LastSegment is ODataKeySegment; - LastSegmentIsRefSegment = path.LastSegment is ODataRefSegment; + LastSegmentIsRefSegment = path.LastSegment is ODataRefSegment; SecondLastSegmentIsKeySegment = Path.Segments.Reverse().Skip(1).Take(1).Single().Kind == ODataSegmentKind.Key; NavigationProperty = path.OfType().Last().NavigationProperty; @@ -85,14 +87,11 @@ protected override void Initialize(ODataContext context, ODataPath path) protected override void SetTags(OpenApiOperation operation) { string name = EdmModelHelper.GenerateNavigationPropertyPathTagName(Path, Context); - OpenApiTag tag = new() - { - Name = name - }; - tag.Extensions.Add(Constants.xMsTocType, new OpenApiString("page")); - operation.Tags.Add(tag); - - Context.AppendTag(tag); + Context.AddExtensionToTag(name, Constants.xMsTocType, new OpenApiAny("page"), () => new OpenApiTag() + { + Name = name + }); + operation.Tags.Add(new OpenApiTagReference(name)); base.SetTags(operation); } @@ -100,7 +99,7 @@ protected override void SetTags(OpenApiOperation operation) /// protected override void SetExtensions(OpenApiOperation operation) { - operation.Extensions.Add(Constants.xMsDosOperationType, new OpenApiString("operation")); + operation.Extensions.Add(Constants.xMsDosOperationType, new OpenApiAny("operation")); base.SetExtensions(operation); } @@ -116,78 +115,78 @@ protected override void SetExternalDocs(OpenApiOperation operation) if (Context.Settings.ShowExternalDocs) { var externalDocs = Context.Model.GetLinkRecord(TargetPath, CustomLinkRel) ?? - Context.Model.GetLinkRecord(NavigationProperty, CustomLinkRel); - - if (externalDocs != null) - { - operation.ExternalDocs = new OpenApiExternalDocs() - { - Description = CoreConstants.ExternalDocsDescription, - Url = externalDocs.Href - }; + Context.Model.GetLinkRecord(NavigationProperty, CustomLinkRel); + + if (externalDocs != null) + { + operation.ExternalDocs = new OpenApiExternalDocs() + { + Description = CoreConstants.ExternalDocsDescription, + Url = externalDocs.Href + }; } } - } - + } + /// /// Retrieves the CRUD restrictions annotations for the navigation property /// in context, given a capability annotation term. /// /// The fully qualified restriction annotation term. /// The restriction annotation, or null if not available. - protected IRecord GetRestrictionAnnotation(string annotationTerm) - { - switch (annotationTerm) - { - case CapabilitiesConstants.ReadRestrictions: - var readRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.ReadRestrictions); - readRestrictions?.MergePropertiesIfNull(Restriction?.ReadRestrictions); - readRestrictions ??= Restriction?.ReadRestrictions; - - var navPropReadRestrictions = Context.Model.GetRecord(NavigationProperty, CapabilitiesConstants.ReadRestrictions); - readRestrictions?.MergePropertiesIfNull(navPropReadRestrictions); - readRestrictions ??= navPropReadRestrictions; - - return readRestrictions; - case CapabilitiesConstants.UpdateRestrictions: - var updateRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.UpdateRestrictions); - updateRestrictions?.MergePropertiesIfNull(Restriction?.UpdateRestrictions); - updateRestrictions ??= Restriction?.UpdateRestrictions; - - var navPropUpdateRestrictions = Context.Model.GetRecord(NavigationProperty, CapabilitiesConstants.UpdateRestrictions); - updateRestrictions?.MergePropertiesIfNull(navPropUpdateRestrictions); - updateRestrictions ??= navPropUpdateRestrictions; - - return updateRestrictions; - case CapabilitiesConstants.InsertRestrictions: - var insertRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.InsertRestrictions); - insertRestrictions?.MergePropertiesIfNull(Restriction?.InsertRestrictions); - insertRestrictions ??= Restriction?.InsertRestrictions; - - var navPropInsertRestrictions = Context.Model.GetRecord(NavigationProperty, CapabilitiesConstants.InsertRestrictions); - insertRestrictions?.MergePropertiesIfNull(navPropInsertRestrictions); - insertRestrictions ??= navPropInsertRestrictions; - - return insertRestrictions; - case CapabilitiesConstants.DeleteRestrictions: - var deleteRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.DeleteRestrictions); - deleteRestrictions?.MergePropertiesIfNull(Restriction?.DeleteRestrictions); - deleteRestrictions ??= Restriction?.DeleteRestrictions; - - var navPropDeleteRestrictions = Context.Model.GetRecord(NavigationProperty, CapabilitiesConstants.DeleteRestrictions); - deleteRestrictions?.MergePropertiesIfNull(navPropDeleteRestrictions); - deleteRestrictions ??= navPropDeleteRestrictions; - - return deleteRestrictions; - default: - return null; - - } + protected IRecord GetRestrictionAnnotation(string annotationTerm) + { + switch (annotationTerm) + { + case CapabilitiesConstants.ReadRestrictions: + var readRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.ReadRestrictions); + readRestrictions?.MergePropertiesIfNull(Restriction?.ReadRestrictions); + readRestrictions ??= Restriction?.ReadRestrictions; + + var navPropReadRestrictions = Context.Model.GetRecord(NavigationProperty, CapabilitiesConstants.ReadRestrictions); + readRestrictions?.MergePropertiesIfNull(navPropReadRestrictions); + readRestrictions ??= navPropReadRestrictions; + + return readRestrictions; + case CapabilitiesConstants.UpdateRestrictions: + var updateRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.UpdateRestrictions); + updateRestrictions?.MergePropertiesIfNull(Restriction?.UpdateRestrictions); + updateRestrictions ??= Restriction?.UpdateRestrictions; + + var navPropUpdateRestrictions = Context.Model.GetRecord(NavigationProperty, CapabilitiesConstants.UpdateRestrictions); + updateRestrictions?.MergePropertiesIfNull(navPropUpdateRestrictions); + updateRestrictions ??= navPropUpdateRestrictions; + + return updateRestrictions; + case CapabilitiesConstants.InsertRestrictions: + var insertRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.InsertRestrictions); + insertRestrictions?.MergePropertiesIfNull(Restriction?.InsertRestrictions); + insertRestrictions ??= Restriction?.InsertRestrictions; + + var navPropInsertRestrictions = Context.Model.GetRecord(NavigationProperty, CapabilitiesConstants.InsertRestrictions); + insertRestrictions?.MergePropertiesIfNull(navPropInsertRestrictions); + insertRestrictions ??= navPropInsertRestrictions; + + return insertRestrictions; + case CapabilitiesConstants.DeleteRestrictions: + var deleteRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.DeleteRestrictions); + deleteRestrictions?.MergePropertiesIfNull(Restriction?.DeleteRestrictions); + deleteRestrictions ??= Restriction?.DeleteRestrictions; + + var navPropDeleteRestrictions = Context.Model.GetRecord(NavigationProperty, CapabilitiesConstants.DeleteRestrictions); + deleteRestrictions?.MergePropertiesIfNull(navPropDeleteRestrictions); + deleteRestrictions ??= navPropDeleteRestrictions; + + return deleteRestrictions; + default: + return null; + + } } - protected IDictionary GetContent(OpenApiSchema schema = null, IEnumerable mediaTypes = null) + protected IDictionary GetContent(IOpenApiSchema schema = null, IEnumerable mediaTypes = null) { - schema ??= GetOpenApiSchema(); + schema ??= GetOpenApiSchema(); var content = new Dictionary(); if (mediaTypes != null) @@ -212,17 +211,9 @@ protected IDictionary GetContent(OpenApiSchema schema return content; } - protected OpenApiSchema GetOpenApiSchema() + protected IOpenApiSchema GetOpenApiSchema() { - return new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = NavigationProperty.ToEntityType().FullName() - } - }; + return new OpenApiSchemaReference(NavigationProperty.ToEntityType().FullName()); } } } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/NavigationPropertyPostOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/NavigationPropertyPostOperationHandler.cs index cebb88c9a..849178aab 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/NavigationPropertyPostOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/NavigationPropertyPostOperationHandler.cs @@ -52,14 +52,14 @@ protected override void SetBasicInfo(OpenApiOperation operation) /// protected override void SetRequestBody(OpenApiOperation operation) - { - OpenApiSchema schema = null; - - if (Context.Settings.EnableDerivedTypesReferencesForRequestBody) - { - schema = EdmModelHelper.GetDerivedTypesReferenceSchema(NavigationProperty.ToEntityType(), Context.Model); - } - + { + OpenApiSchema schema = null; + + if (Context.Settings.EnableDerivedTypesReferencesForRequestBody) + { + schema = EdmModelHelper.GetDerivedTypesReferenceSchema(NavigationProperty.ToEntityType(), Context.Model); + } + operation.RequestBody = new OpenApiRequestBody { Required = true, @@ -72,7 +72,7 @@ protected override void SetRequestBody(OpenApiOperation operation) /// protected override void SetResponses(OpenApiOperation operation) - { + { OpenApiSchema schema = null; if (Context.Settings.EnableDerivedTypesReferencesForResponses) @@ -94,8 +94,8 @@ protected override void SetResponses(OpenApiOperation operation) operation.AddErrorResponses(Context.Settings, false); base.SetResponses(operation); - } - + } + protected override void SetSecurity(OpenApiOperation operation) { if (_insertRestriction == null) diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/ODataTypeCastGetOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/ODataTypeCastGetOperationHandler.cs index 8c3231e52..fae852cf3 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/ODataTypeCastGetOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/ODataTypeCastGetOperationHandler.cs @@ -6,10 +6,13 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Text.Json.Nodes; using Microsoft.OData.Edm; using Microsoft.OData.Edm.Vocabularies; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -62,7 +65,7 @@ private bool IsSingleElement /// protected override void Initialize(ODataContext context, ODataPath path) { - // reseting the fields as we're reusing the handler + // resetting the fields as we're reusing the handler singleton = null; isKeySegment = false; secondLastSegmentIsComplexProperty = false; @@ -188,7 +191,7 @@ protected override void SetBasicInfo(OpenApiOperation operation) // OperationId if (Context.Settings.EnableOperationId) - operation.OperationId = EdmModelHelper.GenerateODataTypeCastPathOperationIdPrefix(Path, Context) + $".As{Utils.UpperFirstChar(TargetSchemaElement.Name)}"; + operation.OperationId = EdmModelHelper.GenerateODataTypeCastPathOperationIdPrefix(Path, Context) + $".As{Utils.UpperFirstChar(TargetSchemaElement.Name)}-{Path.GetPathHash(Context.Settings)}"; base.SetBasicInfo(operation); } @@ -198,7 +201,7 @@ protected override void SetResponses(OpenApiOperation operation) { if (IsSingleElement) { - OpenApiSchema schema = null; + IOpenApiSchema schema = null; if (Context.Settings.EnableDerivedTypesReferencesForResponses) { @@ -207,15 +210,7 @@ protected override void SetResponses(OpenApiOperation operation) if (schema == null) { - schema = new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = TargetSchemaElement.FullName() - } - }; + schema = new OpenApiSchemaReference(TargetSchemaElement.FullName()); } SetSingleResponse(operation, schema); @@ -242,12 +237,11 @@ protected override void SetTags(OpenApiOperation operation) else if ((SecondLastSegment is ODataKeySegment && !isIndexedCollValuedNavProp) || (SecondLastSegment is ODataNavigationSourceSegment)) { - var entitySet = navigationSource as IEdmEntitySet; - var singleton = navigationSource as IEdmSingleton; + var singletonNavigationSource = navigationSource as IEdmSingleton; - tagName = entitySet != null - ? entitySet.Name + "." + entitySet.EntityType.Name - : singleton.Name + "." + singleton.EntityType.Name; + tagName = navigationSource is IEdmEntitySet entitySetNavigationSource + ? entitySetNavigationSource.Name + "." + entitySetNavigationSource.EntityType.Name + : singletonNavigationSource.Name + "." + singletonNavigationSource.EntityType.Name; } else if (SecondLastSegment is ODataComplexPropertySegment) { @@ -256,17 +250,14 @@ protected override void SetTags(OpenApiOperation operation) if (tagName != null) { - OpenApiTag tag = new() - { - Name = tagName - }; - - if (!IsSingleElement) - tag.Extensions.Add(Constants.xMsTocType, new OpenApiString("page")); - - operation.Tags.Add(tag); - - Context.AppendTag(tag); + if (IsSingleElement) + Context.AppendTag(new OpenApiTag() { Name = tagName }); + else + Context.AddExtensionToTag(tagName, Constants.xMsTocType, new OpenApiAny("page"), () => new OpenApiTag() + { + Name = tagName + }); + operation.Tags.Add(new OpenApiTagReference(tagName)); } base.SetTags(operation); @@ -305,23 +296,23 @@ protected override void SetParameters(OpenApiOperation operation) { if(IsSingleElement) { - new OpenApiParameter[] { + new IOpenApiParameter[] { Context.CreateSelect(TargetPath, entitySet.EntityType) ?? Context.CreateSelect(entitySet), Context.CreateExpand(TargetPath, entitySet.EntityType) ?? Context.CreateExpand(entitySet), } .Where(x => x != null) .ToList() - .ForEach(p => operation.Parameters.Add(p)); + .ForEach(operation.Parameters.Add); } else { GetParametersForAnnotableOfMany(entitySet) .Union( - new OpenApiParameter[] { + [ Context.CreateOrderBy(TargetPath, entitySet.EntityType) ?? Context.CreateOrderBy(entitySet), Context.CreateSelect(TargetPath, entitySet.EntityType) ?? Context.CreateSelect(entitySet), Context.CreateExpand(TargetPath, entitySet.EntityType) ?? Context.CreateExpand(entitySet), - }) + ]) .Where(x => x != null) .ToList() .ForEach(p => operation.Parameters.Add(p)); @@ -338,17 +329,17 @@ protected override void SetParameters(OpenApiOperation operation) .ForEach(p => operation.Parameters.Add(p)); } } - private IEnumerable GetParametersForAnnotableOfMany(IEdmVocabularyAnnotatable annotable) + private IEnumerable GetParametersForAnnotableOfMany(IEdmVocabularyAnnotatable annotable) { // Need to verify that TopSupported or others should be applied to navigation source. // So, how about for the navigation property. - return new OpenApiParameter[] { + return [ Context.CreateTop(annotable), Context.CreateSkip(annotable), Context.CreateSearch(annotable), Context.CreateFilter(annotable), Context.CreateCount(annotable), - }; + ]; } protected override void SetSecurity(OpenApiOperation operation) @@ -367,13 +358,13 @@ protected override void SetExtensions(OpenApiOperation operation) { if (Context.Settings.EnablePagination && !IsSingleElement) { - OpenApiObject extension = new() + JsonObject extension = new() { - { "nextLinkName", new OpenApiString("@odata.nextLink")}, - { "operationName", new OpenApiString(Context.Settings.PageableOperationName)} + { "nextLinkName", "@odata.nextLink"}, + { "operationName", Context.Settings.PageableOperationName} }; - operation.Extensions.Add(Constants.xMsPageable, extension); + operation.Extensions.Add(Constants.xMsPageable, new OpenApiAny(extension)); } base.SetExtensions(operation); diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/OperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/OperationHandler.cs index 43cdc43cb..dd0ac2a31 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/OperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/OperationHandler.cs @@ -5,9 +5,10 @@ using System.Collections.Generic; using System.Linq; -using Microsoft.OpenApi.Any; using Microsoft.OpenApi.MicrosoftExtensions; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -30,7 +31,7 @@ internal abstract class OperationHandler : IOperationHandler /// /// The path parameters in the path /// - protected IList PathParameters; + protected IList PathParameters; /// /// The string representation of the Edm target path for annotations. @@ -244,14 +245,14 @@ protected static void AppendCustomParameters(OpenApiOperation operation, IList(); + parameter.Examples = new Dictionary(); int index = 1; foreach (var example in param.ExampleValues) { @@ -261,7 +262,7 @@ protected static void AppendCustomParameters(OpenApiOperation operation, IList internal class OperationHandlerProvider : IOperationHandlerProvider { - private readonly IDictionary> _handlers - = new Dictionary>{ - - // entity set (Get/Post) - {ODataPathKind.EntitySet, new Dictionary + /// + public IOperationHandler GetHandler(ODataPathKind pathKind, OperationType operationType) + { + return (pathKind, operationType) switch { - {OperationType.Get, new EntitySetGetOperationHandler() }, - {OperationType.Post, new EntitySetPostOperationHandler() } - }}, + // entity set (Get/Post) + (ODataPathKind.EntitySet, OperationType.Get) => new EntitySetGetOperationHandler(), + (ODataPathKind.EntitySet, OperationType.Post) => new EntitySetPostOperationHandler(), - // entity (Get/Patch/Put/Delete) - {ODataPathKind.Entity, new Dictionary - { - {OperationType.Get, new EntityGetOperationHandler() }, - {OperationType.Patch, new EntityPatchOperationHandler() }, - {OperationType.Put, new EntityPutOperationHandler() }, - {OperationType.Delete, new EntityDeleteOperationHandler() } - }}, + // entity (Get/Patch/Put/Delete) + (ODataPathKind.Entity, OperationType.Get) => new EntityGetOperationHandler(), + (ODataPathKind.Entity, OperationType.Patch) => new EntityPatchOperationHandler(), + (ODataPathKind.Entity, OperationType.Put) => new EntityPutOperationHandler(), + (ODataPathKind.Entity, OperationType.Delete) => new EntityDeleteOperationHandler(), - // singleton (Get/Patch) - {ODataPathKind.Singleton, new Dictionary - { - {OperationType.Get, new SingletonGetOperationHandler() }, - {OperationType.Patch, new SingletonPatchOperationHandler() } - }}, + // singleton (Get/Patch) + (ODataPathKind.Singleton, OperationType.Get) => new SingletonGetOperationHandler(), + (ODataPathKind.Singleton, OperationType.Patch) => new SingletonPatchOperationHandler(), - // edm operation (Get|Post) - {ODataPathKind.Operation, new Dictionary - { - {OperationType.Get, new EdmFunctionOperationHandler() }, - {OperationType.Post, new EdmActionOperationHandler() } - }}, + // edm operation (Get|Post) + (ODataPathKind.Operation, OperationType.Get) => new EdmFunctionOperationHandler(), + (ODataPathKind.Operation, OperationType.Post) => new EdmActionOperationHandler(), - // edm operation import (Get|Post) - {ODataPathKind.OperationImport, new Dictionary - { - {OperationType.Get, new EdmFunctionImportOperationHandler() }, - {OperationType.Post, new EdmActionImportOperationHandler() } - }}, + // edm operation import (Get|Post) + (ODataPathKind.OperationImport, OperationType.Get) => new EdmFunctionImportOperationHandler(), + (ODataPathKind.OperationImport, OperationType.Post) => new EdmActionImportOperationHandler(), - // navigation property (Get/Patch/Put/Post/Delete) - {ODataPathKind.NavigationProperty, new Dictionary - { - {OperationType.Get, new NavigationPropertyGetOperationHandler() }, - {OperationType.Patch, new NavigationPropertyPatchOperationHandler() }, - {OperationType.Put, new NavigationPropertyPutOperationHandler() }, - {OperationType.Post, new NavigationPropertyPostOperationHandler() }, - {OperationType.Delete, new NavigationPropertyDeleteOperationHandler() } - }}, + // navigation property (Get/Patch/Put/Post/Delete) + (ODataPathKind.NavigationProperty, OperationType.Get) => new NavigationPropertyGetOperationHandler(), + (ODataPathKind.NavigationProperty, OperationType.Patch) => new NavigationPropertyPatchOperationHandler(), + (ODataPathKind.NavigationProperty, OperationType.Put) => new NavigationPropertyPutOperationHandler(), + (ODataPathKind.NavigationProperty, OperationType.Post) => new NavigationPropertyPostOperationHandler(), + (ODataPathKind.NavigationProperty, OperationType.Delete) => new NavigationPropertyDeleteOperationHandler(), - // navigation property ref (Get/Post/Put/Delete) - {ODataPathKind.Ref, new Dictionary - { - {OperationType.Get, new RefGetOperationHandler() }, - {OperationType.Put, new RefPutOperationHandler() }, - {OperationType.Post, new RefPostOperationHandler() }, - {OperationType.Delete, new RefDeleteOperationHandler() } - }}, + // navigation property ref (Get/Post/Put/Delete) + (ODataPathKind.Ref, OperationType.Get) => new RefGetOperationHandler(), + (ODataPathKind.Ref, OperationType.Put) => new RefPutOperationHandler(), + (ODataPathKind.Ref, OperationType.Post) => new RefPostOperationHandler(), + (ODataPathKind.Ref, OperationType.Delete) => new RefDeleteOperationHandler(), - // media entity operation (Get|Put|Delete) - {ODataPathKind.MediaEntity, new Dictionary - { - {OperationType.Get, new MediaEntityGetOperationHandler() }, - {OperationType.Put, new MediaEntityPutOperationHandler() }, - {OperationType.Delete, new MediaEntityDeleteOperationHandler() } - }}, + // media entity operation (Get|Put|Delete) + (ODataPathKind.MediaEntity, OperationType.Get) => new MediaEntityGetOperationHandler(), + (ODataPathKind.MediaEntity, OperationType.Put) => new MediaEntityPutOperationHandler(), + (ODataPathKind.MediaEntity, OperationType.Delete) => new MediaEntityDeleteOperationHandler(), - // $metadata operation (Get) - {ODataPathKind.Metadata, new Dictionary - { - {OperationType.Get, new MetadataGetOperationHandler() } - }}, + // $metadata operation (Get) - // $count operation (Get) - {ODataPathKind.DollarCount, new Dictionary - { - {OperationType.Get, new DollarCountGetOperationHandler() } - }}, + (ODataPathKind.Metadata, OperationType.Get) => new MetadataGetOperationHandler(), - // .../namespace.typename (cast, get) - {ODataPathKind.TypeCast, new Dictionary - { - {OperationType.Get, new ODataTypeCastGetOperationHandler() }, - }}, + // $count operation (Get) + (ODataPathKind.DollarCount, OperationType.Get) => new DollarCountGetOperationHandler(), - // .../entity/propertyOfComplexType (Get/Patch/Put/Delete) - {ODataPathKind.ComplexProperty, new Dictionary - { - {OperationType.Get, new ComplexPropertyGetOperationHandler() }, - {OperationType.Patch, new ComplexPropertyPatchOperationHandler() }, - {OperationType.Put, new ComplexPropertyPutOperationHandler() }, - {OperationType.Post, new ComplexPropertyPostOperationHandler() } - }} - }; + // .../namespace.typename (cast, get) + (ODataPathKind.TypeCast, OperationType.Get) => new ODataTypeCastGetOperationHandler(), - /// - public IOperationHandler GetHandler(ODataPathKind pathKind, OperationType operationType) - { - return _handlers[pathKind][operationType]; + // .../entity/propertyOfComplexType (Get/Patch/Put/Delete) + (ODataPathKind.ComplexProperty, OperationType.Get) => new ComplexPropertyGetOperationHandler(), + (ODataPathKind.ComplexProperty, OperationType.Patch) => new ComplexPropertyPatchOperationHandler(), + (ODataPathKind.ComplexProperty, OperationType.Put) => new ComplexPropertyPutOperationHandler(), + (ODataPathKind.ComplexProperty, OperationType.Post) => new ComplexPropertyPostOperationHandler(), + + (_, _) => null, + }; } } } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/RefDeleteOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/RefDeleteOperationHandler.cs index d986396b3..9fe9673c5 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/RefDeleteOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/RefDeleteOperationHandler.cs @@ -40,21 +40,21 @@ protected override void SetBasicInfo(OpenApiOperation operation) // OperationId if (Context.Settings.EnableOperationId) { - string prefix = "DeleteRef"; + string prefix = "DeleteRef"; var segments = GetOperationId().Split('.').ToList(); - if (SecondLastSegmentIsKeySegment) - { - segments[segments.Count - 1] = Utils.ToFirstCharacterLowerCase(segments[segments.Count - 1]); - var lastSegment = prefix + Utils.UpperFirstChar(NavigationProperty.ToEntityType().Name); - segments.Add(lastSegment); - operation.OperationId = string.Join(".", segments); + if (SecondLastSegmentIsKeySegment) + { + segments[segments.Count - 1] = Utils.ToFirstCharacterLowerCase(segments[segments.Count - 1]); + var lastSegment = prefix + Utils.UpperFirstChar(NavigationProperty.ToEntityType().Name); + segments.Add(lastSegment); + operation.OperationId = string.Join(".", segments); } - else - { - var lastSegment = segments.LastOrDefault(); - segments[segments.Count - 1] = prefix + lastSegment; - operation.OperationId = string.Join(".", segments); + else + { + var lastSegment = segments.LastOrDefault(); + segments[segments.Count - 1] = prefix + lastSegment; + operation.OperationId = string.Join(".", segments); } } } @@ -71,26 +71,26 @@ protected override void SetParameters(OpenApiOperation operation) Description = "ETag", Schema = new OpenApiSchema { - Type = "string" + Type = JsonSchemaType.String } - }); - - // for collection, we should have @id in query - if (NavigationProperty.TargetMultiplicity() == EdmMultiplicity.Many && - Path.Segments.Reverse().Skip(1).First() is ODataNavigationPropertySegment) - { - operation.Parameters.Add(new OpenApiParameter - { - Name = "@id", - In = ParameterLocation.Query, - Description = "The delete Uri", - Required = true, - Schema = new OpenApiSchema - { - Type = "string" - } - }); - } + }); + + // for collection, we should have @id in query + if (NavigationProperty.TargetMultiplicity() == EdmMultiplicity.Many && + Path.Segments.Reverse().Skip(1).First() is ODataNavigationPropertySegment) + { + operation.Parameters.Add(new OpenApiParameter + { + Name = "@id", + In = ParameterLocation.Query, + Description = "The delete Uri", + Required = true, + Schema = new OpenApiSchema + { + Type = JsonSchemaType.String + } + }); + } } /// diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/RefGetOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/RefGetOperationHandler.cs index bf07dcf74..48d3fe7e1 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/RefGetOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/RefGetOperationHandler.cs @@ -5,9 +5,12 @@ using System.Collections.Generic; using System.Linq; +using System.Text.Json.Nodes; using Microsoft.OData.Edm; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -59,13 +62,13 @@ protected override void SetExtensions(OpenApiOperation operation) { if (NavigationProperty.TargetMultiplicity() == EdmMultiplicity.Many) { - OpenApiObject extension = new OpenApiObject + JsonObject extension = new JsonObject { - { "nextLinkName", new OpenApiString("@odata.nextLink")}, - { "operationName", new OpenApiString(Context.Settings.PageableOperationName)} + { "nextLinkName", "@odata.nextLink"}, + { "operationName", Context.Settings.PageableOperationName} }; - operation.Extensions.Add(Constants.xMsPageable, extension); + operation.Extensions.Add(Constants.xMsPageable, new OpenApiAny(extension)); } } @@ -81,15 +84,7 @@ protected override void SetResponses(OpenApiOperation operation) { { Context.Settings.UseSuccessStatusCodeRange ? Constants.StatusCodeClass2XX : Constants.StatusCode200, - new OpenApiResponse - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Response, - Id = $"String{Constants.CollectionSchemaSuffix}" - }, - } + new OpenApiResponseReference($"String{Constants.CollectionSchemaSuffix}") } }; } @@ -98,9 +93,9 @@ protected override void SetResponses(OpenApiOperation operation) OpenApiSchema schema = new() { // $ref returns string for the Uri? - Type = "string" + Type = JsonSchemaType.String }; - IDictionary links = null; + IDictionary links = null; if (Context.Settings.ShowLinks) { string operationId = GetOperationId(); @@ -147,7 +142,7 @@ protected override void SetParameters(OpenApiOperation operation) { // Need to verify that TopSupported or others should be applied to navigaiton source. // So, how about for the navigation property. - OpenApiParameter parameter = Context.CreateTop(TargetPath) ?? Context.CreateTop(NavigationProperty); + var parameter = Context.CreateTop(TargetPath) ?? Context.CreateTop(NavigationProperty); if (parameter != null) { operation.Parameters.Add(parameter); diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/RefPostOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/RefPostOperationHandler.cs index bafaad2d0..7b2548ab4 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/RefPostOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/RefPostOperationHandler.cs @@ -5,6 +5,7 @@ using System.Linq; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -47,15 +48,7 @@ protected override void SetBasicInfo(OpenApiOperation operation) /// protected override void SetRequestBody(OpenApiOperation operation) { - operation.RequestBody = new OpenApiRequestBody - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.RequestBody, - Id = Constants.ReferencePostRequestBodyName - } - }; + operation.RequestBody = new OpenApiRequestBodyReference(Constants.ReferencePostRequestBodyName); base.SetRequestBody(operation); } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/RefPutOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/RefPutOperationHandler.cs index 08c3aa9e9..ff2fb25ec 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/RefPutOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/RefPutOperationHandler.cs @@ -5,6 +5,7 @@ using System.Linq; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -47,15 +48,7 @@ protected override void SetBasicInfo(OpenApiOperation operation) /// protected override void SetRequestBody(OpenApiOperation operation) { - operation.RequestBody = new OpenApiRequestBody - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.RequestBody, - Id = Constants.ReferencePutRequestBodyName - } - }; + operation.RequestBody = new OpenApiRequestBodyReference(Constants.ReferencePutRequestBodyName); base.SetRequestBody(operation); } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/SingletonGetOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/SingletonGetOperationHandler.cs index 758c94ee8..bb39b8bfe 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/SingletonGetOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/SingletonGetOperationHandler.cs @@ -7,6 +7,8 @@ using System.Linq; using Microsoft.OData.Edm; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -75,8 +77,8 @@ protected override void SetParameters(OpenApiOperation operation) /// protected override void SetResponses(OpenApiOperation operation) { - OpenApiSchema schema = null; - IDictionary links = null; + IOpenApiSchema schema = null; + IDictionary links = null; if (Context.Settings.EnableDerivedTypesReferencesForResponses) { @@ -89,18 +91,7 @@ protected override void SetResponses(OpenApiOperation operation) entityKind: Singleton.ContainerElementKind.ToString(), path: Path, parameters: PathParameters); } - if (schema == null) - { - schema = new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = Singleton.EntityType.FullName() - } - }; - } + schema ??= new OpenApiSchemaReference(Singleton.EntityType.FullName()); operation.Responses = new OpenApiResponses { diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/SingletonOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/SingletonOperationHandler.cs index 638f05d18..cbc8971c6 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/SingletonOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/SingletonOperationHandler.cs @@ -6,6 +6,7 @@ using Microsoft.OData.Edm; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Vocabulary.Core; @@ -38,17 +39,14 @@ protected override void SetTags(OpenApiOperation operation) { // In this SDK, we use "[Singleton Name].[Singleton Entity Type Name] // For example: "Me.User" - OpenApiTag tag = new OpenApiTag - { - Name = Singleton.Name + "." + Singleton.EntityType.Name, - }; - - // Use an extension for TOC (Table of Content) - tag.Extensions.Add(Constants.xMsTocType, new OpenApiString("page")); + var tagName = Singleton.Name + "." + Singleton.EntityType.Name; - operation.Tags.Add(tag); + Context.AddExtensionToTag(tagName, Constants.xMsTocType, new OpenApiAny("page"), () => new OpenApiTag() + { + Name = tagName + }); - Context.AppendTag(tag); + operation.Tags.Add(new OpenApiTagReference(tagName)); // Call base.SetTags() at the end of this method. base.SetTags(operation); @@ -57,7 +55,7 @@ protected override void SetTags(OpenApiOperation operation) /// protected override void SetExtensions(OpenApiOperation operation) { - operation.Extensions.Add(Constants.xMsDosOperationType, new OpenApiString("operation")); + operation.Extensions.Add(Constants.xMsDosOperationType, new OpenApiAny("operation")); base.SetExtensions(operation); } diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/SingletonPatchOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/SingletonPatchOperationHandler.cs index 03c0b47bb..51eebb81e 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/SingletonPatchOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/SingletonPatchOperationHandler.cs @@ -7,6 +7,8 @@ using System.Linq; using Microsoft.OData.Edm; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -110,22 +112,11 @@ protected override void AppendCustomParameters(OpenApiOperation operation) } } - private OpenApiSchema GetOpenApiSchema() + private IOpenApiSchema GetOpenApiSchema() { - if (Context.Settings.EnableDerivedTypesReferencesForRequestBody) - { - return EdmModelHelper.GetDerivedTypesReferenceSchema(Singleton.EntityType, Context.Model); - } - - return new OpenApiSchema - { - UnresolvedReference = true, - Reference = new OpenApiReference - { - Type = ReferenceType.Schema, - Id = Singleton.EntityType.FullName() - } - }; + return Context.Settings.EnableDerivedTypesReferencesForRequestBody ? + EdmModelHelper.GetDerivedTypesReferenceSchema(Singleton.EntityType, Context.Model) : + new OpenApiSchemaReference(Singleton.EntityType.FullName()); } } } diff --git a/src/Microsoft.OpenApi.OData.Reader/PathItem/CachedPathItemHandlerProvider.cs b/src/Microsoft.OpenApi.OData.Reader/PathItem/CachedPathItemHandlerProvider.cs new file mode 100644 index 000000000..e978c2227 --- /dev/null +++ b/src/Microsoft.OpenApi.OData.Reader/PathItem/CachedPathItemHandlerProvider.cs @@ -0,0 +1,33 @@ +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. +// ------------------------------------------------------------ + +using System.Collections.Generic; +using Microsoft.OpenApi.OData.Common; +using Microsoft.OpenApi.OData.Edm; + +namespace Microsoft.OpenApi.OData.PathItem; +/// +/// Cached path item handler provider. +/// +internal class CachedPathItemHandlerProvider : IPathItemHandlerProvider +{ + private readonly IPathItemHandlerProvider _concreteProvider; + private readonly Dictionary _cache = new(); + public CachedPathItemHandlerProvider(IPathItemHandlerProvider concreteProvider) + { + Utils.CheckArgumentNull(concreteProvider, nameof(concreteProvider)); + _concreteProvider = concreteProvider; + } + /// + public IPathItemHandler GetHandler(ODataPathKind pathKind) + { + if (!_cache.TryGetValue(pathKind, out IPathItemHandler handler)) + { + handler = _concreteProvider.GetHandler(pathKind); + _cache[pathKind] = handler; + } + return handler; + } +} \ No newline at end of file diff --git a/src/Microsoft.OpenApi.OData.Reader/PathItem/IPathItemHandlerProvider.cs b/src/Microsoft.OpenApi.OData.Reader/PathItem/IPathItemHandlerProvider.cs index 7c5b509fe..b1cac2e16 100644 --- a/src/Microsoft.OpenApi.OData.Reader/PathItem/IPathItemHandlerProvider.cs +++ b/src/Microsoft.OpenApi.OData.Reader/PathItem/IPathItemHandlerProvider.cs @@ -3,6 +3,7 @@ // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // ------------------------------------------------------------ +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; namespace Microsoft.OpenApi.OData.PathItem diff --git a/src/Microsoft.OpenApi.OData.Reader/PathItem/NavigationPropertyPathItemHandler.cs b/src/Microsoft.OpenApi.OData.Reader/PathItem/NavigationPropertyPathItemHandler.cs index e66675f75..45f18fc5a 100644 --- a/src/Microsoft.OpenApi.OData.Reader/PathItem/NavigationPropertyPathItemHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/PathItem/NavigationPropertyPathItemHandler.cs @@ -13,6 +13,7 @@ using Microsoft.OpenApi.Any; using Microsoft.OData.Edm.Vocabularies; using Microsoft.OpenApi.OData.Vocabulary.Capabilities; +using System.Text.Json.Nodes; namespace Microsoft.OpenApi.OData.PathItem { @@ -74,19 +75,19 @@ protected override void SetOperations(OpenApiPathItem item) AddGetOperation(item, restriction); // Update restrictions - UpdateRestrictionsType navPropUpdateRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.UpdateRestrictions); - navPropUpdateRestrictions?.MergePropertiesIfNull(restriction?.UpdateRestrictions); + UpdateRestrictionsType navPropUpdateRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.UpdateRestrictions); + navPropUpdateRestrictions?.MergePropertiesIfNull(restriction?.UpdateRestrictions); navPropUpdateRestrictions ??= restriction?.UpdateRestrictions; UpdateRestrictionsType updateRestrictions = Context.Model.GetRecord(NavigationProperty); - navPropUpdateRestrictions?.MergePropertiesIfNull(updateRestrictions); + navPropUpdateRestrictions?.MergePropertiesIfNull(updateRestrictions); navPropUpdateRestrictions ??= updateRestrictions; // Insert restrictions - InsertRestrictionsType navPropInsertRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.InsertRestrictions); - navPropInsertRestrictions?.MergePropertiesIfNull(restriction?.InsertRestrictions); + InsertRestrictionsType navPropInsertRestrictions = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.InsertRestrictions); + navPropInsertRestrictions?.MergePropertiesIfNull(restriction?.InsertRestrictions); navPropInsertRestrictions ??= restriction?.InsertRestrictions; InsertRestrictionsType insertRestrictions = Context.Model.GetRecord(NavigationProperty); - navPropInsertRestrictions?.MergePropertiesIfNull(insertRestrictions); + navPropInsertRestrictions?.MergePropertiesIfNull(insertRestrictions); navPropInsertRestrictions ??= insertRestrictions; // Entity insert restrictions @@ -161,11 +162,11 @@ protected override void SetOperations(OpenApiPathItem item) private void AddGetOperation(OpenApiPathItem item, NavigationPropertyRestriction restriction) { - ReadRestrictionsType navPropReadRestriction = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.ReadRestrictions); - navPropReadRestriction?.MergePropertiesIfNull(restriction?.ReadRestrictions); + ReadRestrictionsType navPropReadRestriction = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.ReadRestrictions); + navPropReadRestriction?.MergePropertiesIfNull(restriction?.ReadRestrictions); navPropReadRestriction ??= restriction?.ReadRestrictions; ReadRestrictionsType readRestrictions = Context.Model.GetRecord(NavigationProperty); - navPropReadRestriction?.MergePropertiesIfNull(readRestrictions); + navPropReadRestriction?.MergePropertiesIfNull(readRestrictions); navPropReadRestriction ??= readRestrictions; ReadRestrictionsType entityReadRestriction = Context.Model.GetRecord(_navPropEntityType); @@ -211,31 +212,31 @@ private void AddDeleteOperation(OpenApiPathItem item, NavigationPropertyRestrict { Debug.Assert(!LastSegmentIsRefSegment); - DeleteRestrictionsType navPropDeleteRestriction = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.DeleteRestrictions); - navPropDeleteRestriction?.MergePropertiesIfNull(restriction?.DeleteRestrictions); + DeleteRestrictionsType navPropDeleteRestriction = Context.Model.GetRecord(TargetPath, CapabilitiesConstants.DeleteRestrictions); + navPropDeleteRestriction?.MergePropertiesIfNull(restriction?.DeleteRestrictions); navPropDeleteRestriction ??= restriction?.DeleteRestrictions; DeleteRestrictionsType insertRestrictions = Context.Model.GetRecord(NavigationProperty); - navPropDeleteRestriction?.MergePropertiesIfNull(insertRestrictions); - navPropDeleteRestriction ??= insertRestrictions; - - if (!(NavigationProperty.TargetMultiplicity() != EdmMultiplicity.Many || LastSegmentIsKeySegment)) - return; - - DeleteRestrictionsType entityDeleteRestriction = Context.Model.GetRecord(_navPropEntityType); - bool isDeletable = - (navPropDeleteRestriction == null && entityDeleteRestriction == null) || - ((entityDeleteRestriction?.IsDeletable ?? true) && - (navPropDeleteRestriction?.IsDeletable ?? true)); - + navPropDeleteRestriction?.MergePropertiesIfNull(insertRestrictions); + navPropDeleteRestriction ??= insertRestrictions; + + if (!(NavigationProperty.TargetMultiplicity() != EdmMultiplicity.Many || LastSegmentIsKeySegment)) + return; + + DeleteRestrictionsType entityDeleteRestriction = Context.Model.GetRecord(_navPropEntityType); + bool isDeletable = + (navPropDeleteRestriction == null && entityDeleteRestriction == null) || + ((entityDeleteRestriction?.IsDeletable ?? true) && + (navPropDeleteRestriction?.IsDeletable ?? true)); + if (NavigationProperty.ContainsTarget && isDeletable) - { - AddOperation(item, OperationType.Delete); + { + AddOperation(item, OperationType.Delete); } - else if (navPropDeleteRestriction?.Deletable ?? false) - { - // Add delete operation for non-contained nav. props only if explicitly set to true via annotation - // Note: Use Deletable and NOT IsDeletable - AddOperation(item, OperationType.Delete); + else if (navPropDeleteRestriction?.Deletable ?? false) + { + // Add delete operation for non-contained nav. props only if explicitly set to true via annotation + // Note: Use Deletable and NOT IsDeletable + AddOperation(item, OperationType.Delete); } return; @@ -243,22 +244,22 @@ private void AddDeleteOperation(OpenApiPathItem item, NavigationPropertyRestrict private void AddUpdateOperation(OpenApiPathItem item, UpdateRestrictionsType updateRestrictionsType) { - if (updateRestrictionsType?.IsUpdatable ?? true) - { - if (updateRestrictionsType?.IsUpdateMethodPutAndPatch == true) - { - AddOperation(item, OperationType.Put); - AddOperation(item, OperationType.Patch); - } - else if (updateRestrictionsType?.IsUpdateMethodPut == true) - { - AddOperation(item, OperationType.Put); - } - else - { - AddOperation(item, OperationType.Patch); - } - } + if (updateRestrictionsType?.IsUpdatable ?? true) + { + if (updateRestrictionsType?.IsUpdateMethodPutAndPatch == true) + { + AddOperation(item, OperationType.Put); + AddOperation(item, OperationType.Patch); + } + else if (updateRestrictionsType?.IsUpdateMethodPut == true) + { + AddOperation(item, OperationType.Put); + } + else + { + AddOperation(item, OperationType.Patch); + } + } } @@ -313,15 +314,15 @@ protected override void SetExtensions(OpenApiPathItem item) if (samePaths.Any()) { - OpenApiArray array = new(); + JsonArray array = new(); OpenApiConvertSettings settings = Context.Settings.Clone(); settings.EnableKeyAsSegment = Context.KeyAsSegment; foreach (var p in samePaths) { - array.Add(new OpenApiString(p.GetPathItemName(settings))); + array.Add(p.GetPathItemName(settings)); } - item.Extensions.Add(Constants.xMsDosGroupPath, array); + item.Extensions.Add(Constants.xMsDosGroupPath, new OpenApiAny(array)); } base.SetExtensions(item); diff --git a/src/Microsoft.OpenApi.OData.Reader/PathItem/OperationPathItemHandler.cs b/src/Microsoft.OpenApi.OData.Reader/PathItem/OperationPathItemHandler.cs index f527238e7..484e8cd02 100644 --- a/src/Microsoft.OpenApi.OData.Reader/PathItem/OperationPathItemHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/PathItem/OperationPathItemHandler.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using System.Linq; +using System.Text.Json.Nodes; using Microsoft.OData.Edm; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; @@ -83,15 +84,15 @@ protected override void SetExtensions(OpenApiPathItem item) if (samePaths.Any()) { - OpenApiArray array = new OpenApiArray(); + JsonArray array = new JsonArray(); OpenApiConvertSettings settings = Context.Settings.Clone(); settings.EnableKeyAsSegment = Context.KeyAsSegment; foreach (var p in samePaths) { - array.Add(new OpenApiString(p.GetPathItemName(settings))); + array.Add(p.GetPathItemName(settings)); } - item.Extensions.Add(Constants.xMsDosGroupPath, array); + item.Extensions.Add(Constants.xMsDosGroupPath, new OpenApiAny(array)); } base.SetExtensions(item); diff --git a/src/Microsoft.OpenApi.OData.Reader/PathItem/PathItemHandler.cs b/src/Microsoft.OpenApi.OData.Reader/PathItem/PathItemHandler.cs index 5cd00b386..914003cf2 100644 --- a/src/Microsoft.OpenApi.OData.Reader/PathItem/PathItemHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/PathItem/PathItemHandler.cs @@ -109,9 +109,9 @@ protected virtual void AddOperation(OpenApiPathItem item, OperationType operatio return; } - IOperationHandlerProvider provider = Context.OperationHanderProvider; - IOperationHandler operationHander = provider.GetHandler(Path.Kind, operationType); - item.AddOperation(operationType, operationHander.CreateOperation(Context, Path)); + IOperationHandlerProvider provider = Context.OperationHandlerProvider; + IOperationHandler operationHandler = provider.GetHandler(Path.Kind, operationType); + item.AddOperation(operationType, operationHandler.CreateOperation(Context, Path)); } /// diff --git a/src/Microsoft.OpenApi.OData.Reader/PathItem/PathItemHandlerProvider.cs b/src/Microsoft.OpenApi.OData.Reader/PathItem/PathItemHandlerProvider.cs index a675615c1..9815a0db7 100644 --- a/src/Microsoft.OpenApi.OData.Reader/PathItem/PathItemHandlerProvider.cs +++ b/src/Microsoft.OpenApi.OData.Reader/PathItem/PathItemHandlerProvider.cs @@ -3,7 +3,6 @@ // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // ------------------------------------------------------------ -using System.Collections.Generic; using Microsoft.OpenApi.OData.Edm; namespace Microsoft.OpenApi.OData.PathItem @@ -13,52 +12,49 @@ namespace Microsoft.OpenApi.OData.PathItem /// internal class PathItemHandlerProvider : IPathItemHandlerProvider { - private readonly IDictionary _handlers = new Dictionary + /// + public IPathItemHandler GetHandler(ODataPathKind pathKind) { + return pathKind switch { // EntitySet - { ODataPathKind.EntitySet, new EntitySetPathItemHandler() }, + ODataPathKind.EntitySet => new EntitySetPathItemHandler(), // Entity - { ODataPathKind.Entity, new EntityPathItemHandler() }, + ODataPathKind.Entity => new EntityPathItemHandler(), // Singleton - { ODataPathKind.Singleton, new SingletonPathItemHandler() }, + ODataPathKind.Singleton => new SingletonPathItemHandler(), // Navigation property - { ODataPathKind.NavigationProperty, new NavigationPropertyPathItemHandler() }, + ODataPathKind.NavigationProperty => new NavigationPropertyPathItemHandler(), // Edm Operation - { ODataPathKind.Operation, new OperationPathItemHandler() }, + ODataPathKind.Operation => new OperationPathItemHandler(), // Edm OperationImport - { ODataPathKind.OperationImport, new OperationImportPathItemHandler() }, + ODataPathKind.OperationImport => new OperationImportPathItemHandler(), // Edm Ref - { ODataPathKind.Ref, new RefPathItemHandler() }, + ODataPathKind.Ref => new RefPathItemHandler(), // Media Entity - { ODataPathKind.MediaEntity, new MediaEntityPathItemHandler() }, + ODataPathKind.MediaEntity => new MediaEntityPathItemHandler(), // $Metadata - { ODataPathKind.Metadata, new MetadataPathItemHandler() }, + ODataPathKind.Metadata => new MetadataPathItemHandler(), // $count - { ODataPathKind.DollarCount, new DollarCountPathItemHandler() }, + ODataPathKind.DollarCount => new DollarCountPathItemHandler(), // ~/groups/{id}/members/microsoft.graph.user - { ODataPathKind.TypeCast, new ODataTypeCastPathItemHandler() }, + ODataPathKind.TypeCast => new ODataTypeCastPathItemHandler(), // ~/users/{id}/mailboxSettings - { ODataPathKind.ComplexProperty, new ComplexPropertyItemHandler() }, + ODataPathKind.ComplexProperty => new ComplexPropertyItemHandler(), // Unknown - { ODataPathKind.Unknown, null }, - }; - - /// - public IPathItemHandler GetHandler(ODataPathKind pathKind) - { - return _handlers[pathKind]; + _ => null, + }; } } } diff --git a/src/Microsoft.OpenApi.OData.Reader/PublicAPI.Unshipped.txt b/src/Microsoft.OpenApi.OData.Reader/PublicAPI.Unshipped.txt index eb93babff..96bcd04af 100644 --- a/src/Microsoft.OpenApi.OData.Reader/PublicAPI.Unshipped.txt +++ b/src/Microsoft.OpenApi.OData.Reader/PublicAPI.Unshipped.txt @@ -70,7 +70,6 @@ override Microsoft.OpenApi.OData.Edm.ODataRefSegment.GetPathItemName(Microsoft.O override Microsoft.OpenApi.OData.Edm.ODataStreamContentSegment.GetPathItemName(Microsoft.OpenApi.OData.OpenApiConvertSettings settings, System.Collections.Generic.HashSet parameters) -> string override Microsoft.OpenApi.OData.Edm.ODataStreamPropertySegment.GetPathItemName(Microsoft.OpenApi.OData.OpenApiConvertSettings settings, System.Collections.Generic.HashSet parameters) -> string override Microsoft.OpenApi.OData.Edm.ODataTypeCastSegment.GetPathItemName(Microsoft.OpenApi.OData.OpenApiConvertSettings settings, System.Collections.Generic.HashSet parameters) -> string -static Microsoft.OpenApi.OData.Common.OpenApiOperationExtensions.AddErrorResponses(this Microsoft.OpenApi.Models.OpenApiOperation operation, Microsoft.OpenApi.OData.OpenApiConvertSettings settings, bool addNoContent = false, Microsoft.OpenApi.Models.OpenApiSchema schema = null) -> void static Microsoft.OpenApi.OData.Edm.EdmModelExtensions.OperationTargetsMultiplePaths(this Microsoft.OData.Edm.IEdmModel model, Microsoft.OData.Edm.IEdmOperation operation) -> bool static Microsoft.OpenApi.OData.Edm.EdmTypeExtensions.ShouldPathParameterBeQuoted(this Microsoft.OData.Edm.IEdmType edmType, Microsoft.OpenApi.OData.OpenApiConvertSettings settings) -> bool Microsoft.OpenApi.OData.Edm.IODataPathProvider @@ -302,7 +301,6 @@ static Microsoft.OpenApi.OData.Edm.EdmModelExtensions.FindAllBaseTypes(this Micr static Microsoft.OpenApi.OData.Edm.EdmModelExtensions.GetAllElements(this Microsoft.OData.Edm.IEdmModel model) -> System.Collections.Generic.IEnumerable static Microsoft.OpenApi.OData.Edm.EdmModelExtensions.IsOperationImportOverload(this Microsoft.OData.Edm.IEdmModel model, Microsoft.OData.Edm.IEdmOperationImport operationImport) -> bool static Microsoft.OpenApi.OData.Edm.EdmModelExtensions.IsOperationOverload(this Microsoft.OData.Edm.IEdmModel model, Microsoft.OData.Edm.IEdmOperation operation) -> bool -static Microsoft.OpenApi.OData.Edm.EdmModelExtensions.IsUrlEscapeFunction(this Microsoft.OData.Edm.IEdmModel model, Microsoft.OData.Edm.IEdmFunction function) -> bool static Microsoft.OpenApi.OData.Edm.EdmModelExtensions.IsUrlEscapeFunction(this Microsoft.OData.Edm.IEdmModel model, Microsoft.OData.Edm.IEdmOperation operation) -> bool static Microsoft.OpenApi.OData.Edm.EdmModelExtensions.LoadAllNavigationSources(this Microsoft.OData.Edm.IEdmModel model) -> System.Collections.Generic.IDictionary> static Microsoft.OpenApi.OData.Edm.ODataRefSegment.Instance -> Microsoft.OpenApi.OData.Edm.ODataRefSegment @@ -313,4 +311,3 @@ virtual Microsoft.OpenApi.OData.Edm.ODataPathProvider.CanFilter(Microsoft.OData. virtual Microsoft.OpenApi.OData.Edm.ODataPathProvider.GetPaths(Microsoft.OData.Edm.IEdmModel model, Microsoft.OpenApi.OData.OpenApiConvertSettings settings) -> System.Collections.Generic.IEnumerable virtual Microsoft.OpenApi.OData.Edm.ODataPathProvider.Initialize(Microsoft.OData.Edm.IEdmModel model) -> void virtual Microsoft.OpenApi.OData.Edm.ODataSegment.EntityType.get -> Microsoft.OData.Edm.IEdmEntityType -Microsoft.OpenApi.OData.Common.OpenApiOperationExtensions diff --git a/src/OoasGui/MainForm.cs b/src/OoasGui/MainForm.cs index e10bbae39..63cea0f30 100644 --- a/src/OoasGui/MainForm.cs +++ b/src/OoasGui/MainForm.cs @@ -27,7 +27,7 @@ public partial class MainForm : Form { private OpenApiFormat Format { get; set; } = OpenApiFormat.Json; - private OpenApiSpecVersion Version { get; set; } = OpenApiSpecVersion.OpenApi3_0; + private OpenApiSpecVersion Version { get; set; } = OpenApiSpecVersion.OpenApi3_1; private OpenApiConvertSettings Settings = new OpenApiConvertSettings(); @@ -202,15 +202,12 @@ private async Task ConvertAsync() } string openApi = null; - await Task.Run(() => - { - _document = EdmModel.ConvertToOpenApi(Settings); - MemoryStream stream = new MemoryStream(); - _document.Serialize(stream, Version, Format); - stream.Flush(); - stream.Position = 0; - openApi = new StreamReader(stream).ReadToEnd(); - }); + _document = EdmModel.ConvertToOpenApi(Settings); + MemoryStream stream = new MemoryStream(); + await _document.SerializeAsync(stream, Version, Format); + await stream.FlushAsync(); + stream.Position = 0; + openApi = await new StreamReader(stream).ReadToEndAsync(); oasRichTextBox.Text = openApi; saveBtn.Enabled = true; @@ -252,14 +249,9 @@ private async void saveBtn_Click(object sender, EventArgs e) if (saveFileDialog.ShowDialog() == DialogResult.OK) { string output = saveFileDialog.FileName; - using (FileStream fs = File.Create(output)) - { - await Task.Run(() => - { - _document?.Serialize(fs, Version, Format); - fs.Flush(); - }); - } + using FileStream fs = File.Create(output); + await _document?.SerializeAsync(fs, Version, Format); + await fs.FlushAsync(); MessageBox.Show("Saved successfully!"); } diff --git a/src/OoasGui/OoasGui.csproj b/src/OoasGui/OoasGui.csproj index 86d5d7051..52d080615 100644 --- a/src/OoasGui/OoasGui.csproj +++ b/src/OoasGui/OoasGui.csproj @@ -17,7 +17,7 @@ - + \ No newline at end of file diff --git a/src/OoasUtil/ComLineProcesser.cs b/src/OoasUtil/ComLineProcesser.cs index bea0f1d8c..9f73d63be 100644 --- a/src/OoasUtil/ComLineProcesser.cs +++ b/src/OoasUtil/ComLineProcesser.cs @@ -245,7 +245,7 @@ public bool Process() if (Version == null) { - Version = OpenApiSpecVersion.OpenApi3_0; + Version = OpenApiSpecVersion.OpenApi3_1; } if (KeyAsSegment == null) @@ -432,7 +432,7 @@ private bool ProcessTarget(int version) return false; } - Version = version == 2 ? OpenApiSpecVersion.OpenApi2_0 : OpenApiSpecVersion.OpenApi3_0; + Version = version == 2 ? OpenApiSpecVersion.OpenApi2_0 : OpenApiSpecVersion.OpenApi3_1; return true; } diff --git a/src/OoasUtil/OpenApiGenerator.cs b/src/OoasUtil/OpenApiGenerator.cs index 3a9218039..e3ef89c91 100644 --- a/src/OoasUtil/OpenApiGenerator.cs +++ b/src/OoasUtil/OpenApiGenerator.cs @@ -60,12 +60,10 @@ public async Task GenerateAsync(CancellationToken cancellationToken = defa this.ModifySettings(); - using (FileStream fs = File.Create(Output)) - { - OpenApiDocument document = edmModel.ConvertToOpenApi(Settings); - document.Serialize(fs, Settings.OpenApiSpecVersion, Format); - await fs.FlushAsync(cancellationToken); - } + using FileStream fs = File.Create(Output); + OpenApiDocument document = edmModel.ConvertToOpenApi(Settings); + await document.SerializeAsync(fs, Settings.OpenApiSpecVersion, Format, cancellationToken).ConfigureAwait(false); + await fs.FlushAsync(cancellationToken).ConfigureAwait(false); } catch(Exception e) { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Common/EdmModelHelper.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Common/EdmModelHelper.cs index b142a3b31..a7d5841c3 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Common/EdmModelHelper.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Common/EdmModelHelper.cs @@ -13,7 +13,6 @@ using System.IO; using System.Xml; using System.Collections.Generic; -using System.Net; using System.Text; using Microsoft.OData.Edm.Validation; using Xunit.Abstractions; @@ -23,40 +22,27 @@ namespace Microsoft.OpenApi.OData.Tests /// /// Edm model helpers /// - public class EdmModelHelper + public class EdmModelHelper(ITestOutputHelper output) { public static IEdmModel EmptyModel { get; } = new EdmModel(); - public static IEdmModel MultipleInheritanceEdmModel { get; } + public static IEdmModel MultipleInheritanceEdmModel { get; } = CreateMultipleInheritanceEdmModel(); - public static IEdmModel InheritanceEdmModelAcrossReferences { get; } + public static IEdmModel InheritanceEdmModelAcrossReferences { get; } = CreateInheritanceEdmModelAcrossReferences(); - public static IEdmModel BasicEdmModel { get; } + public static IEdmModel BasicEdmModel { get; } = CreateEdmModel(); - public static IEdmModel MultipleSchemasEdmModel { get; } + public static IEdmModel MultipleSchemasEdmModel { get; } = LoadEdmModel("Multiple.Schema.OData.xml"); - public static IEdmModel CompositeKeyModel { get; } + public static IEdmModel CompositeKeyModel { get; } = CreateCompositeKeyModel(); - public static IEdmModel TripServiceModel { get; } + public static IEdmModel TripServiceModel { get; } = LoadEdmModel("TripService.OData.xml"); - public static IEdmModel ContractServiceModel { get; } + public static IEdmModel ContractServiceModel { get; } = LoadEdmModel("Contract.OData.xml"); - public static IEdmModel GraphBetaModel { get; } + public static IEdmModel GraphBetaModel { get; } = LoadEdmModel("Graph.Beta.OData.xml"); - public static IEdmModel ComposableFunctionsModel { get; } - - static EdmModelHelper() - { - MultipleInheritanceEdmModel = CreateMultipleInheritanceEdmModel(); - BasicEdmModel = CreateEdmModel(); - CompositeKeyModel = CreateCompositeKeyModel(); - TripServiceModel = LoadEdmModel("TripService.OData.xml"); - ContractServiceModel = LoadEdmModel("Contract.OData.xml"); - GraphBetaModel = LoadEdmModel("Graph.Beta.OData.xml"); - MultipleSchemasEdmModel = LoadEdmModel("Multiple.Schema.OData.xml"); - InheritanceEdmModelAcrossReferences = CreateInheritanceEdmModelAcrossReferences(); - ComposableFunctionsModel = LoadEdmModel("ComposableFunctions.OData.xml"); - } + public static IEdmModel ComposableFunctionsModel { get; } = LoadEdmModel("ComposableFunctions.OData.xml"); private static IEdmModel LoadEdmModel(string source) { @@ -64,7 +50,7 @@ private static IEdmModel LoadEdmModel(string source) return CsdlReader.Parse(XElement.Parse(csdl).CreateReader()); } - private static IEdmModel CreateMultipleInheritanceEdmModel() + private static EdmModel CreateMultipleInheritanceEdmModel() { var model = new EdmModel(); @@ -112,7 +98,7 @@ private static IEdmModel CreateMultipleInheritanceEdmModel() horse.AddStructuralProperty("Height", EdmCoreModel.Instance.GetDecimal(false)); model.AddElement(horse); - EdmNavigationPropertyInfo navInfo = new EdmNavigationPropertyInfo + EdmNavigationPropertyInfo navInfo = new() { Name = "Creatures", Target = creature, @@ -202,19 +188,17 @@ public static IEdmModel CreateInheritanceEdmModelAcrossReferences() "; - IEdmModel model; - IEnumerable errors; XElement parsed = XElement.Parse(modelText); bool result = CsdlReader.TryParse(parsed.CreateReader(), uri => XElement.Parse(subModelText).CreateReader(), - out model, - out errors); + out var model, + out var _); Assert.True(result); return model; } - private static IEdmModel CreateEdmModel() + private static EdmModel CreateEdmModel() { var model = new EdmModel(); @@ -272,10 +256,10 @@ private static IEdmModel CreateEdmModel() var entityContainer = new EdmEntityContainer("DefaultNs", "Container"); model.AddElement(entityContainer); - EdmSingleton me = new EdmSingleton(entityContainer, "Me", person); - EdmEntitySet people = new EdmEntitySet(entityContainer, "People", person); - EdmEntitySet cities = new EdmEntitySet(entityContainer, "City", city); - EdmEntitySet countriesOrRegions = new EdmEntitySet(entityContainer, "CountryOrRegion", countryOrRegion); + EdmSingleton me = new(entityContainer, "Me", person); + EdmEntitySet people = new(entityContainer, "People", person); + EdmEntitySet cities = new(entityContainer, "City", city); + EdmEntitySet countriesOrRegions = new(entityContainer, "CountryOrRegion", countryOrRegion); people.AddNavigationTarget(navP, cities, new EdmPathExpression("HomeAddress/City")); people.AddNavigationTarget(navP, cities, new EdmPathExpression("Addresses/City")); people.AddNavigationTarget(navP2, countriesOrRegions, @@ -295,7 +279,7 @@ private static IEdmModel CreateEdmModel() return model; } - private static IEdmModel CreateCompositeKeyModel() + private static EdmModel CreateCompositeKeyModel() { var model = new EdmModel(); @@ -311,11 +295,7 @@ private static IEdmModel CreateCompositeKeyModel() return model; } - private ITestOutputHelper _output; - public EdmModelHelper(ITestOutputHelper output) - { - _output = output; - } + private readonly ITestOutputHelper _output = output; [Fact] public void MultipleInheritanceEdmModelMetadataDocumentTest() @@ -413,24 +393,18 @@ public void MultipleInheritanceEdmModelMetadataDocumentTest() public static string GetCsdl(IEdmModel model) { - string edmx = String.Empty; - - using (StringWriter sw = new StringWriter()) + using StringWriter sw = new(); + XmlWriterSettings settings = new() { - XmlWriterSettings settings = new XmlWriterSettings(); - settings.Encoding = Encoding.UTF8; - settings.Indent = true; - - using (XmlWriter xw = XmlWriter.Create(sw, settings)) - { - IEnumerable errors; - CsdlWriter.TryWriteCsdl(model, xw, CsdlTarget.OData, out errors); - xw.Flush(); - } + Encoding = Encoding.UTF8, + Indent = true + }; - edmx = sw.ToString(); - } + using XmlWriter xw = XmlWriter.Create(sw, settings); + CsdlWriter.TryWriteCsdl(model, xw, CsdlTarget.OData, out var _); + xw.Flush(); + string edmx = sw.ToString(); return edmx; } } diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/EdmModelOpenApiExtensionsTest.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/EdmModelOpenApiExtensionsTest.cs index d26f909b6..9d22a50cd 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/EdmModelOpenApiExtensionsTest.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/EdmModelOpenApiExtensionsTest.cs @@ -5,288 +5,182 @@ using System; using System.IO; +using System.Text.Json.Nodes; +using System.Threading.Tasks; using Microsoft.OData.Edm; using Microsoft.OpenApi.Extensions; using Xunit; using Xunit.Abstractions; -namespace Microsoft.OpenApi.OData.Tests +namespace Microsoft.OpenApi.OData.Tests; +public class EdmModelOpenApiExtensionsTest(ITestOutputHelper output) { - public class EdmModelOpenApiExtensionsTest - { - private ITestOutputHelper _output; - - public EdmModelOpenApiExtensionsTest(ITestOutputHelper output) - { - _output = output; - } - - [Fact] - public void ConvertToOpenApiThrowsArgumentNullModel() - { - // Arrange - IEdmModel model = null; + private readonly ITestOutputHelper _output = output; - // Act & Assert - Assert.Throws("model", () => model.ConvertToOpenApi()); - } - - [Theory] - [InlineData(OpenApiSpecVersion.OpenApi2_0)] - [InlineData(OpenApiSpecVersion.OpenApi3_0)] - public void EmptyEdmModelToOpenApiJsonWorks(OpenApiSpecVersion specVersion) - { - // Arrange - IEdmModel model = EdmModelHelper.EmptyModel; - var openApiConvertSettings = new OpenApiConvertSettings(); - openApiConvertSettings.OpenApiSpecVersion = specVersion; - openApiConvertSettings.IncludeAssemblyInfo = false; - - // Act - string json = WriteEdmModelAsOpenApi(model, OpenApiFormat.Json, openApiConvertSettings); - _output.WriteLine(json); + [Fact] + public void ConvertToOpenApiThrowsArgumentNullModel() + { + // Arrange + IEdmModel model = null; - // Assert - if (specVersion == OpenApiSpecVersion.OpenApi2_0) - { - Assert.Equal(Resources.GetString("Empty.OpenApi.V2.json").ChangeLineBreaks(), json); - } - else - { - Assert.Equal(Resources.GetString("Empty.OpenApi.json").ChangeLineBreaks(), json); - } - } + // Act & Assert + Assert.Throws("model", model.ConvertToOpenApi); + } - [Theory] - [InlineData(OpenApiSpecVersion.OpenApi2_0)] - [InlineData(OpenApiSpecVersion.OpenApi3_0)] - public void EmptyEdmModelToOpenApiYamlWorks(OpenApiSpecVersion specVersion) + [Theory] + [InlineData(OpenApiSpecVersion.OpenApi2_0, OpenApiFormat.Json)] + [InlineData(OpenApiSpecVersion.OpenApi3_0, OpenApiFormat.Json)] + [InlineData(OpenApiSpecVersion.OpenApi3_1, OpenApiFormat.Json)] + [InlineData(OpenApiSpecVersion.OpenApi2_0, OpenApiFormat.Yaml)] + [InlineData(OpenApiSpecVersion.OpenApi3_0, OpenApiFormat.Yaml)] + [InlineData(OpenApiSpecVersion.OpenApi3_1, OpenApiFormat.Yaml)] + public async Task EmptyEdmModelToOpenApiWorks(OpenApiSpecVersion specVersion, OpenApiFormat format) + { + // Arrange + IEdmModel model = EdmModelHelper.EmptyModel; + var openApiConvertSettings = new OpenApiConvertSettings { - // Arrange - IEdmModel model = EdmModelHelper.EmptyModel; - var openApiConvertSettings = new OpenApiConvertSettings(); - openApiConvertSettings.OpenApiSpecVersion = specVersion; - openApiConvertSettings.IncludeAssemblyInfo = false; + OpenApiSpecVersion = specVersion, + IncludeAssemblyInfo = false + }; - // Act - string yaml = WriteEdmModelAsOpenApi(model, OpenApiFormat.Yaml, openApiConvertSettings); - _output.WriteLine(yaml); + // Act + string result = await WriteEdmModelAsOpenApi(model, format, openApiConvertSettings); + var fileName = $"Empty.OpenApi.{GetVersion(specVersion)}{GetFormatExt(format)}"; - // Assert - if (specVersion == OpenApiSpecVersion.OpenApi2_0) - { - Assert.Equal(Resources.GetString("Empty.OpenApi.V2.yaml").ChangeLineBreaks(), yaml); - } - else - { - Assert.Equal(Resources.GetString("Empty.OpenApi.yaml").ChangeLineBreaks(), yaml); - } - } + // Assert + AssertDocumentsAreEqual(result, fileName, format); + } - [Theory] - [InlineData(OpenApiSpecVersion.OpenApi2_0)] - [InlineData(OpenApiSpecVersion.OpenApi3_0)] - public void BasicEdmModelToOpenApiJsonWorks(OpenApiSpecVersion specVersion) + [Theory] + [InlineData(OpenApiSpecVersion.OpenApi2_0, OpenApiFormat.Json)] + [InlineData(OpenApiSpecVersion.OpenApi3_0, OpenApiFormat.Json)] + [InlineData(OpenApiSpecVersion.OpenApi3_1, OpenApiFormat.Json)] + [InlineData(OpenApiSpecVersion.OpenApi2_0, OpenApiFormat.Yaml)] + [InlineData(OpenApiSpecVersion.OpenApi3_0, OpenApiFormat.Yaml)] + [InlineData(OpenApiSpecVersion.OpenApi3_1, OpenApiFormat.Yaml)] + public async Task BasicEdmModelToOpenApiWorks(OpenApiSpecVersion specVersion, OpenApiFormat format) + { + // Arrange + IEdmModel model = EdmModelHelper.BasicEdmModel; + var openApiConvertSettings = new OpenApiConvertSettings { - // Arrange - IEdmModel model = EdmModelHelper.BasicEdmModel; - var openApiConvertSettings = new OpenApiConvertSettings - { - OpenApiSpecVersion = specVersion, - ShowSchemaExamples = true, // test for schema examples - IncludeAssemblyInfo = false, - UseStringArrayForQueryOptionsSchema = false - }; - - // Act - string json = WriteEdmModelAsOpenApi(model, OpenApiFormat.Json, openApiConvertSettings); - _output.WriteLine(json); - - // Assert - if (specVersion == OpenApiSpecVersion.OpenApi2_0) - { - Assert.Equal(Resources.GetString("Basic.OpenApi.V2.json").ChangeLineBreaks(), json); - } - else - { - Assert.Equal(Resources.GetString("Basic.OpenApi.json").ChangeLineBreaks(), json); - } - } + OpenApiSpecVersion = specVersion, + ShowSchemaExamples = true, // test for schema examples + IncludeAssemblyInfo = false, + UseStringArrayForQueryOptionsSchema = false + }; + + // Act + string result = await WriteEdmModelAsOpenApi(model, format, openApiConvertSettings); + var fileName = $"Basic.OpenApi.{GetVersion(specVersion)}{GetFormatExt(format)}"; + + // Assert + AssertDocumentsAreEqual(result, fileName, format); + } - [Theory] - [InlineData(OpenApiSpecVersion.OpenApi2_0)] - [InlineData(OpenApiSpecVersion.OpenApi3_0)] - public void BasicEdmModelToOpenApiYamlWorks(OpenApiSpecVersion specVersion) + [Theory] + [InlineData(OpenApiSpecVersion.OpenApi2_0, OpenApiFormat.Json)] + [InlineData(OpenApiSpecVersion.OpenApi3_0, OpenApiFormat.Json)] + [InlineData(OpenApiSpecVersion.OpenApi3_1, OpenApiFormat.Json)] + [InlineData(OpenApiSpecVersion.OpenApi2_0, OpenApiFormat.Yaml)] + [InlineData(OpenApiSpecVersion.OpenApi3_0, OpenApiFormat.Yaml)] + [InlineData(OpenApiSpecVersion.OpenApi3_1, OpenApiFormat.Yaml)] + public async Task MultipleSchemasEdmModelToOpenApiWorks(OpenApiSpecVersion specVersion, OpenApiFormat format) + { + // Arrange + IEdmModel model = EdmModelHelper.MultipleSchemasEdmModel; + var openApiConvertSettings = new OpenApiConvertSettings { - // Arrange - IEdmModel model = EdmModelHelper.BasicEdmModel; - var openApiConvertSettings = new OpenApiConvertSettings - { - OpenApiSpecVersion = specVersion, - ShowSchemaExamples = true, - IncludeAssemblyInfo = false, - UseStringArrayForQueryOptionsSchema = false - }; + OpenApiSpecVersion = specVersion, + ShowLinks = true, // test Links + ShowSchemaExamples = true, + IncludeAssemblyInfo = false, + UseStringArrayForQueryOptionsSchema = false + }; - // Act - string yaml = WriteEdmModelAsOpenApi(model, OpenApiFormat.Yaml, openApiConvertSettings); - _output.WriteLine(yaml); + // Act + string result = await WriteEdmModelAsOpenApi(model, format, openApiConvertSettings); - // Assert - if (specVersion == OpenApiSpecVersion.OpenApi2_0) - { - Assert.Equal(Resources.GetString("Basic.OpenApi.V2.yaml").ChangeLineBreaks(), yaml); - } - else - { - Assert.Equal(Resources.GetString("Basic.OpenApi.yaml").ChangeLineBreaks(), yaml); - } - } - - [Theory] - [InlineData(OpenApiSpecVersion.OpenApi2_0)] - [InlineData(OpenApiSpecVersion.OpenApi3_0)] - public void MultipleSchemasEdmModelToOpenApiJsonWorks(OpenApiSpecVersion specVersion) - { - // Arrange - IEdmModel model = EdmModelHelper.MultipleSchemasEdmModel; - var openApiConvertSettings = new OpenApiConvertSettings - { - OpenApiSpecVersion = specVersion, - ShowLinks = true, // test Links - ShowSchemaExamples = true, - IncludeAssemblyInfo = false, - UseStringArrayForQueryOptionsSchema = false - }; + var fileName = $"Multiple.Schema.OpenApi.{GetVersion(specVersion)}{GetFormatExt(format)}"; - // Act - string json = WriteEdmModelAsOpenApi(model, OpenApiFormat.Json, openApiConvertSettings); - _output.WriteLine(json); - - // Assert - if (specVersion == OpenApiSpecVersion.OpenApi2_0) - { - Assert.Equal(Resources.GetString("Multiple.Schema.OpenApi.V2.json").ChangeLineBreaks(), json); - } - else - { - Assert.Equal(Resources.GetString("Multiple.Schema.OpenApi.json").ChangeLineBreaks(), json); - } - } + // Assert + AssertDocumentsAreEqual(result, fileName, format); + } - [Theory] - [InlineData(OpenApiSpecVersion.OpenApi2_0)] - [InlineData(OpenApiSpecVersion.OpenApi3_0)] - public void MultipleSchemasEdmModelToOpenApiYamlWorks(OpenApiSpecVersion specVersion) + [Theory] + [InlineData(OpenApiSpecVersion.OpenApi2_0, OpenApiFormat.Json)] + [InlineData(OpenApiSpecVersion.OpenApi3_0, OpenApiFormat.Json)] + [InlineData(OpenApiSpecVersion.OpenApi3_1, OpenApiFormat.Json)] + [InlineData(OpenApiSpecVersion.OpenApi2_0, OpenApiFormat.Yaml)] + [InlineData(OpenApiSpecVersion.OpenApi3_0, OpenApiFormat.Yaml)] + [InlineData(OpenApiSpecVersion.OpenApi3_1, OpenApiFormat.Yaml)] + public async Task TripServiceMetadataToOpenApiWorks(OpenApiSpecVersion specVersion, OpenApiFormat format) + { + // Arrange + IEdmModel model = EdmModelHelper.TripServiceModel; + OpenApiConvertSettings settings = new OpenApiConvertSettings { - // Arrange - IEdmModel model = EdmModelHelper.MultipleSchemasEdmModel; - var openApiConvertSettings = new OpenApiConvertSettings - { - OpenApiSpecVersion = specVersion, - ShowLinks = true, // test Links - ShowSchemaExamples = true, - IncludeAssemblyInfo = false, - UseStringArrayForQueryOptionsSchema = false - }; - - // Act - string yaml = WriteEdmModelAsOpenApi(model, OpenApiFormat.Yaml, openApiConvertSettings); - _output.WriteLine(yaml); - - // Assert - if (specVersion == OpenApiSpecVersion.OpenApi2_0) - { - Assert.Equal(Resources.GetString("Multiple.Schema.OpenApi.V2.yaml").ChangeLineBreaks(), yaml); - } - else - { - Assert.Equal(Resources.GetString("Multiple.Schema.OpenApi.yaml").ChangeLineBreaks(), yaml); - } - } + EnableKeyAsSegment = true, + SemVerVersion = "1.0.1", + ServiceRoot = new Uri("http://services.odata.org/TrippinRESTierService"), + IEEE754Compatible = true, + OpenApiSpecVersion = specVersion, + AddSingleQuotesForStringParameters = true, + AddEnumDescriptionExtension = true, + AppendBoundOperationsOnDerivedTypeCastSegments = true, + IncludeAssemblyInfo = false + }; + // Act + string result = await WriteEdmModelAsOpenApi(model, format, settings); + + var fileName = $"TripService.OpenApi.{GetVersion(specVersion)}{GetFormatExt(format)}"; + + // Assert + AssertDocumentsAreEqual(result, fileName, format); + } - [Theory] - [InlineData(OpenApiSpecVersion.OpenApi2_0)] - [InlineData(OpenApiSpecVersion.OpenApi3_0)] - public void TripServiceMetadataToOpenApiJsonWorks(OpenApiSpecVersion specVersion) + private void AssertDocumentsAreEqual(string result, string fileName, OpenApiFormat format) + { + _output.WriteLine(result); + var expected = Resources.GetString(fileName); + if (format is OpenApiFormat.Json) { - // Arrange - IEdmModel model = EdmModelHelper.TripServiceModel; - OpenApiConvertSettings settings = new OpenApiConvertSettings - { - EnableKeyAsSegment = true, - SemVerVersion = "1.0.1", - ServiceRoot = new Uri("http://services.odata.org/TrippinRESTierService"), - IEEE754Compatible = true, - OpenApiSpecVersion = specVersion, - AddSingleQuotesForStringParameters = true, - AddEnumDescriptionExtension = true, - AppendBoundOperationsOnDerivedTypeCastSegments = true, - IncludeAssemblyInfo = false - }; - // Act - string json = WriteEdmModelAsOpenApi(model, OpenApiFormat.Json, settings); - _output.WriteLine(json); - - // Assert - if (specVersion == OpenApiSpecVersion.OpenApi2_0) - { - Assert.Equal(Resources.GetString("TripService.OpenApi.V2.json").ChangeLineBreaks(), json); - } - else - { - Assert.Equal(Resources.GetString("TripService.OpenApi.json").ChangeLineBreaks(), json); - } + var parsedJson = JsonNode.Parse(result); + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(expected), parsedJson)); } - - [Theory] - [InlineData(OpenApiSpecVersion.OpenApi2_0)] - [InlineData(OpenApiSpecVersion.OpenApi3_0)] - public void TripServiceMetadataToOpenApiYamlWorks(OpenApiSpecVersion specVersion) + else { - // Arrange - IEdmModel model = EdmModelHelper.TripServiceModel; - - OpenApiConvertSettings settings = new OpenApiConvertSettings - { - EnableKeyAsSegment = true, - SemVerVersion = "1.2.3", - ServiceRoot = new Uri("http://services.odata.org/TrippinRESTierService"), - IEEE754Compatible = true, - OpenApiSpecVersion = specVersion, - AddSingleQuotesForStringParameters = true, - AddEnumDescriptionExtension = true, - AppendBoundOperationsOnDerivedTypeCastSegments = true, - IncludeAssemblyInfo = false - }; - - // Act - string yaml = WriteEdmModelAsOpenApi(model, OpenApiFormat.Yaml, settings); - _output.WriteLine(yaml); - - // Assert - if (specVersion == OpenApiSpecVersion.OpenApi2_0) - { - Assert.Equal(Resources.GetString("TripService.OpenApi.V2.yaml").ChangeLineBreaks(), yaml); - } - else - { - Assert.Equal(Resources.GetString("TripService.OpenApi.yaml").ChangeLineBreaks(), yaml); - } + Assert.Equal(expected.ChangeLineBreaks(), result); } + } - private static string WriteEdmModelAsOpenApi(IEdmModel model, OpenApiFormat target, - OpenApiConvertSettings settings = null) - { - settings = settings ?? new OpenApiConvertSettings(); - var document = model.ConvertToOpenApi(settings); - Assert.NotNull(document); // guard - - MemoryStream stream = new MemoryStream(); - document.Serialize(stream, settings.OpenApiSpecVersion, target); - stream.Flush(); - stream.Position = 0; - return new StreamReader(stream).ReadToEnd(); - } + private static string GetFormatExt(OpenApiFormat format) => + format switch { + OpenApiFormat.Json => "json", + OpenApiFormat.Yaml => "yaml", + _ => throw new NotImplementedException() + }; + + private static string GetVersion(OpenApiSpecVersion version) => + version switch { + OpenApiSpecVersion.OpenApi2_0 => "V2.", + OpenApiSpecVersion.OpenApi3_0 => string.Empty, + OpenApiSpecVersion.OpenApi3_1 => "V3.1.", + _ => throw new NotImplementedException() + }; + + private static async Task WriteEdmModelAsOpenApi(IEdmModel model, OpenApiFormat target, + OpenApiConvertSettings settings = null) + { + settings ??= new OpenApiConvertSettings(); + var document = model.ConvertToOpenApi(settings); + Assert.NotNull(document); // guard + + MemoryStream stream = new(); + await document.SerializeAsync(stream, settings.OpenApiSpecVersion, target); + await stream.FlushAsync(); + stream.Position = 0; + return await new StreamReader(stream).ReadToEndAsync(); } } diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiComponentsGeneratorTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiComponentsGeneratorTests.cs index 63cd2703a..5e52da5bc 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiComponentsGeneratorTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiComponentsGeneratorTests.cs @@ -5,8 +5,10 @@ using System; using Microsoft.OData.Edm; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Tests; +using Moq; using Xunit; namespace Microsoft.OpenApi.OData.Generator.Tests @@ -18,9 +20,12 @@ public void CreateComponentsThrowArgumentNullContext() { // Arrange ODataContext context = null; + OpenApiDocument openApiDocument = new(); + var mockModel = new Mock().Object; // Act & Assert - Assert.Throws("context", () => context.CreateComponents()); + Assert.Throws("context", () => context.AddComponentsToDocument(openApiDocument)); + Assert.Throws("document", () => new ODataContext(mockModel).AddComponentsToDocument(null)); } [Fact] @@ -29,9 +34,11 @@ public void CreateComponentsReturnsForEmptyModel() // Arrange IEdmModel model = EdmModelHelper.EmptyModel; ODataContext context = new ODataContext(model); + OpenApiDocument openApiDocument = new(); // Act - var components = context.CreateComponents(); + context.AddComponentsToDocument(openApiDocument); + var components = openApiDocument.Components; // Assert Assert.NotNull(components); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiEdmTypeSchemaGeneratorTest.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiEdmTypeSchemaGeneratorTest.cs index 9dbae3953..562cc2c1a 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiEdmTypeSchemaGeneratorTest.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiEdmTypeSchemaGeneratorTest.cs @@ -5,9 +5,12 @@ using System; using System.Linq; +using System.Text.Json.Nodes; +using System.Threading.Tasks; using Microsoft.OData.Edm; using Microsoft.OpenApi.Extensions; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; using Xunit; @@ -30,7 +33,7 @@ public void CreateEdmTypeSchemaThrowArgumentNullContext() ODataContext context = null; // Act & Assert - Assert.Throws("context", () => context.CreateEdmTypeSchema(edmTypeReference: null)); + Assert.Throws("context", () => context.CreateEdmTypeSchema(edmTypeReference: null, new())); } [Fact] @@ -40,13 +43,13 @@ public void CreateEdmTypeSchemaThrowArgumentNullEdmTypeReference() ODataContext context = new ODataContext(EdmCoreModel.Instance); // Act & Assert - Assert.Throws("edmTypeReference", () => context.CreateEdmTypeSchema(edmTypeReference: null)); + Assert.Throws("edmTypeReference", () => context.CreateEdmTypeSchema(edmTypeReference: null, new())); } [Theory] [InlineData(OpenApiSpecVersion.OpenApi2_0)] [InlineData(OpenApiSpecVersion.OpenApi3_0)] - public void CreateEdmTypeSchemaReturnSchemaForNullableCollectionComplexType(OpenApiSpecVersion specVersion) + public async Task CreateEdmTypeSchemaReturnSchemaForNullableCollectionComplexType(OpenApiSpecVersion specVersion) { // Arrange IEdmModel model = EdmModelHelper.TripServiceModel; @@ -59,33 +62,33 @@ public void CreateEdmTypeSchemaReturnSchemaForNullableCollectionComplexType(Open new EdmCollectionType(new EdmComplexTypeReference(complex, true))); // Act - var schema = context.CreateEdmTypeSchema(collectionType); + var schema = context.CreateEdmTypeSchema(collectionType, new()); Assert.NotNull(schema); - string json = schema.SerializeAsJson(context.Settings.OpenApiSpecVersion); + var json = JsonNode.Parse(await schema.SerializeAsJsonAsync(context.Settings.OpenApiSpecVersion)); // & Assert if (specVersion == OpenApiSpecVersion.OpenApi2_0) { - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""type"": ""array"", ""items"": { ""$ref"": ""#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation"" } -}".ChangeLineBreaks(), json); +}"), json)); } else { - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""type"": ""array"", ""items"": { ""$ref"": ""#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation"" } -}".ChangeLineBreaks(), json); +}"), json)); } } [Fact] - public void CreateEdmTypeSchemaReturnSchemaForNonNullableCollectionComplexType() + public async Task CreateEdmTypeSchemaReturnSchemaForNonNullableCollectionComplexType() { // Arrange IEdmModel model = EdmModelHelper.TripServiceModel; @@ -95,21 +98,21 @@ public void CreateEdmTypeSchemaReturnSchemaForNonNullableCollectionComplexType() new EdmCollectionType(new EdmComplexTypeReference(complex, false))); // Act - var schema = context.CreateEdmTypeSchema(collectionType); + var schema = context.CreateEdmTypeSchema(collectionType, new()); Assert.NotNull(schema); - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + var json = JsonNode.Parse(await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); // & Assert - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""type"": ""array"", ""items"": { ""$ref"": ""#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation"" } -}".ChangeLineBreaks(), json); +}"), json)); } [Fact] - public void CreateEdmTypeSchemaReturnSchemaForNonNullableCollectionPrimitiveType() + public async Task CreateEdmTypeSchemaReturnSchemaForNonNullableCollectionPrimitiveType() { // Arrange IEdmModel model = EdmCoreModel.Instance; @@ -118,21 +121,21 @@ public void CreateEdmTypeSchemaReturnSchemaForNonNullableCollectionPrimitiveType new EdmCollectionType(EdmCoreModel.Instance.GetString(false))); // Act - var schema = context.CreateEdmTypeSchema(collectionType); + var schema = context.CreateEdmTypeSchema(collectionType, new()); Assert.NotNull(schema); - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + var json = JsonNode.Parse(await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); // & Assert - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""type"": ""array"", ""items"": { ""type"": ""string"" } -}".ChangeLineBreaks(), json); +}"), json)); } [Fact] - public void CreateEdmTypeSchemaReturnSchemaForNullableCollectionPrimitiveType() + public async Task CreateEdmTypeSchemaReturnSchemaForNullableCollectionPrimitiveType() { // Arrange IEdmModel model = EdmCoreModel.Instance; @@ -141,12 +144,12 @@ public void CreateEdmTypeSchemaReturnSchemaForNullableCollectionPrimitiveType() new EdmCollectionType(EdmCoreModel.Instance.GetInt32(true))); // Act - var schema = context.CreateEdmTypeSchema(collectionType); + var schema = context.CreateEdmTypeSchema(collectionType, new()); Assert.NotNull(schema); - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + var json = JsonNode.Parse(await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); // & Assert - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""type"": ""array"", ""items"": { ""maximum"": 2147483647, @@ -155,14 +158,16 @@ public void CreateEdmTypeSchemaReturnSchemaForNullableCollectionPrimitiveType() ""format"": ""int32"", ""nullable"": true } -}".ChangeLineBreaks(), json); +}"), json)); } [Theory] [InlineData(true, OpenApiSpecVersion.OpenApi2_0)] [InlineData(true, OpenApiSpecVersion.OpenApi3_0)] + [InlineData(true, OpenApiSpecVersion.OpenApi3_1)] [InlineData(false, OpenApiSpecVersion.OpenApi2_0)] [InlineData(false, OpenApiSpecVersion.OpenApi3_0)] + [InlineData(false, OpenApiSpecVersion.OpenApi3_1)] public void CreateEdmTypeSchemaReturnSchemaForEnumType(bool isNullable, OpenApiSpecVersion specVersion) { // Arrange @@ -175,53 +180,50 @@ public void CreateEdmTypeSchemaReturnSchemaForEnumType(bool isNullable, OpenApiS context.Settings.OpenApiSpecVersion = specVersion; // Act - var schema = context.CreateEdmTypeSchema(enumTypeReference); + var schema = context.CreateEdmTypeSchema(enumTypeReference, new()); // & Assert Assert.NotNull(schema); - - if (specVersion == OpenApiSpecVersion.OpenApi2_0) { - Assert.NotNull(schema.Reference); + var schemaReference = Assert.IsType(schema); Assert.Null(schema.AnyOf); - Assert.Equal(ReferenceType.Schema, schema.Reference.Type); - Assert.Equal(enumType.FullTypeName(), schema.Reference.Id); - Assert.Equal(isNullable, schema.Nullable); + Assert.Equal(ReferenceType.Schema, schemaReference.Reference.Type); + Assert.Equal(enumType.FullTypeName(), schemaReference.Reference.Id); } else { - if (isNullable) { Assert.NotNull(schema.AnyOf); Assert.NotEmpty(schema.AnyOf); - Assert.Null(schema.Reference); + Assert.IsNotType(schema); Assert.Equal(2, schema.AnyOf.Count); - var anyOfRef = schema.AnyOf.FirstOrDefault(); + var anyOfRef = Assert.IsType(schema.AnyOf.FirstOrDefault()); Assert.NotNull(anyOfRef.Reference); Assert.Equal(ReferenceType.Schema, anyOfRef.Reference.Type); Assert.Equal(enumType.FullTypeName(), anyOfRef.Reference.Id); var anyOfNull = schema.AnyOf.Skip(1).FirstOrDefault(); Assert.NotNull(anyOfNull.Type); - Assert.Equal("object", anyOfNull.Type); - Assert.True(anyOfNull.Nullable); + Assert.Equal(JsonSchemaType.Null, anyOfNull.Type); } else { Assert.Null(schema.AnyOf); - Assert.NotNull(schema.Reference); - Assert.Equal(ReferenceType.Schema, schema.Reference.Type); - Assert.Equal(enumType.FullTypeName(), schema.Reference.Id); - } + var schemaReference = Assert.IsType(schema); + Assert.Equal(ReferenceType.Schema, schemaReference.Reference.Type); + Assert.Equal(enumType.FullTypeName(), schemaReference.Reference.Id); + } } } [Theory] [InlineData(true, OpenApiSpecVersion.OpenApi2_0)] [InlineData(true, OpenApiSpecVersion.OpenApi3_0)] + [InlineData(true, OpenApiSpecVersion.OpenApi3_1)] [InlineData(false, OpenApiSpecVersion.OpenApi2_0)] [InlineData(false, OpenApiSpecVersion.OpenApi3_0)] + [InlineData(false, OpenApiSpecVersion.OpenApi3_1)] public void CreateEdmTypeSchemaReturnSchemaForComplexType(bool isNullable, OpenApiSpecVersion specVersion) { // Arrange @@ -234,7 +236,7 @@ public void CreateEdmTypeSchemaReturnSchemaForComplexType(bool isNullable, OpenA context.Settings.OpenApiSpecVersion = specVersion; // Act - var schema = context.CreateEdmTypeSchema(complexTypeReference); + var schema = context.CreateEdmTypeSchema(complexTypeReference, new()); // & Assert Assert.NotNull(schema); @@ -242,17 +244,17 @@ public void CreateEdmTypeSchemaReturnSchemaForComplexType(bool isNullable, OpenA if (specVersion == OpenApiSpecVersion.OpenApi2_0 || isNullable == false) { Assert.Null(schema.AnyOf); - Assert.NotNull(schema.Reference); - Assert.Equal(ReferenceType.Schema, schema.Reference.Type); - Assert.Equal(complex.FullTypeName(), schema.Reference.Id); + var schemaReference = Assert.IsType(schema); + Assert.Equal(ReferenceType.Schema, schemaReference.Reference.Type); + Assert.Equal(complex.FullTypeName(), schemaReference.Reference.Id); } else { - Assert.Null(schema.Reference); + Assert.IsNotType(schema); Assert.NotNull(schema.AnyOf); Assert.NotEmpty(schema.AnyOf); Assert.Equal(2, schema.AnyOf.Count); - var anyOf = schema.AnyOf.FirstOrDefault(); + var anyOf = Assert.IsType(schema.AnyOf.FirstOrDefault()); Assert.NotNull(anyOf.Reference); Assert.Equal(ReferenceType.Schema, anyOf.Reference.Type); Assert.Equal(complex.FullTypeName(), anyOf.Reference.Id); @@ -260,10 +262,12 @@ public void CreateEdmTypeSchemaReturnSchemaForComplexType(bool isNullable, OpenA } [Theory] + [InlineData(true, OpenApiSpecVersion.OpenApi3_1)] [InlineData(true, OpenApiSpecVersion.OpenApi3_0)] [InlineData(true, OpenApiSpecVersion.OpenApi2_0)] [InlineData(false, OpenApiSpecVersion.OpenApi2_0)] [InlineData(false, OpenApiSpecVersion.OpenApi3_0)] + [InlineData(false, OpenApiSpecVersion.OpenApi3_1)] public void CreateEdmTypeSchemaReturnSchemaForEntityType(bool isNullable, OpenApiSpecVersion specVersion) { // Arrange @@ -276,31 +280,31 @@ public void CreateEdmTypeSchemaReturnSchemaForEntityType(bool isNullable, OpenAp context.Settings.OpenApiSpecVersion = specVersion; // Act - var schema = context.CreateEdmTypeSchema(entityTypeReference); + var schema = context.CreateEdmTypeSchema(entityTypeReference, new()); // & Assert Assert.NotNull(schema); - if (specVersion == OpenApiSpecVersion.OpenApi2_0 || isNullable == false) + if (specVersion == OpenApiSpecVersion.OpenApi2_0 || !isNullable) { Assert.Null(schema.AnyOf); - Assert.NotNull(schema.Reference); - Assert.Equal(ReferenceType.Schema, schema.Reference.Type); - Assert.Equal(entity.FullTypeName(), schema.Reference.Id); + var schemaReference = Assert.IsType(schema); + Assert.NotNull(schemaReference.Reference); + Assert.Equal(ReferenceType.Schema, schemaReference.Reference.Type); + Assert.Equal(entity.FullTypeName(), schemaReference.Reference.Id); } else { - Assert.Null(schema.Reference); + Assert.IsNotType(schema); Assert.NotNull(schema.AnyOf); Assert.NotEmpty(schema.AnyOf); - var anyOfRef = schema.AnyOf.FirstOrDefault(); + var anyOfRef = Assert.IsType(schema.AnyOf.FirstOrDefault()); Assert.NotNull(anyOfRef.Reference); Assert.Equal(ReferenceType.Schema, anyOfRef.Reference.Type); Assert.Equal(entity.FullTypeName(), anyOfRef.Reference.Id); var anyOfNull = schema.AnyOf.Skip(1).FirstOrDefault(); Assert.NotNull(anyOfNull.Type); - Assert.Equal("object", anyOfNull.Type); - Assert.True(anyOfNull.Nullable); + Assert.Equal(JsonSchemaType.Null, anyOfNull.Type); } } @@ -309,7 +313,7 @@ public void CreateEdmTypeSchemaReturnSchemaForEntityType(bool isNullable, OpenAp [Theory] [InlineData(true)] [InlineData(false)] - public void CreateEdmTypeSchemaReturnSchemaForString(bool isNullable) + public async Task CreateEdmTypeSchemaReturnSchemaForString(bool isNullable) { // Arrange IEdmModel model = EdmCoreModel.Instance; @@ -317,30 +321,30 @@ public void CreateEdmTypeSchemaReturnSchemaForString(bool isNullable) IEdmTypeReference edmTypeReference = EdmCoreModel.Instance.GetString(isNullable); // Act - var schema = context.CreateEdmTypeSchema(edmTypeReference); + var schema = context.CreateEdmTypeSchema(edmTypeReference, new()); Assert.NotNull(schema); // guard - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + var json = JsonNode.Parse(await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); // & Assert if (isNullable) { - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""type"": ""string"", ""nullable"": true -}".ChangeLineBreaks(), json); +}"), json)); } else { - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""type"": ""string"" -}".ChangeLineBreaks(), json); +}"), json)); } } [Theory] [InlineData(true)] [InlineData(false)] - public void CreateEdmTypeSchemaReturnSchemaForInt32(bool isNullable) + public async Task CreateEdmTypeSchemaReturnSchemaForInt32(bool isNullable) { // Arrange IEdmModel model = EdmCoreModel.Instance; @@ -348,29 +352,29 @@ public void CreateEdmTypeSchemaReturnSchemaForInt32(bool isNullable) IEdmTypeReference edmTypeReference = EdmCoreModel.Instance.GetInt32(isNullable); // Act - var schema = context.CreateEdmTypeSchema(edmTypeReference); + var schema = context.CreateEdmTypeSchema(edmTypeReference, new()); Assert.NotNull(schema); // guard - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + var json = JsonNode.Parse(await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); // & Assert if (isNullable) { - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""maximum"": 2147483647, ""minimum"": -2147483648, ""type"": ""number"", ""format"": ""int32"", ""nullable"": true -}".ChangeLineBreaks(), json); +}"), json)); } else { - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""maximum"": 2147483647, ""minimum"": -2147483648, ""type"": ""number"", ""format"": ""int32"" -}".ChangeLineBreaks(), json); +}"), json)); } } @@ -392,7 +396,7 @@ public void CreateEdmTypeSchemaReturnSchemaForDecimal(bool isNullable, bool IEEE IEdmTypeReference edmTypeReference = EdmCoreModel.Instance.GetDecimal(isNullable); // Act - var schema = context.CreateEdmTypeSchema(edmTypeReference); + var schema = context.CreateEdmTypeSchema(edmTypeReference, new()); Assert.NotNull(schema); // guard // & Assert @@ -401,19 +405,15 @@ public void CreateEdmTypeSchemaReturnSchemaForDecimal(bool isNullable, bool IEEE Assert.Null(schema.Type); Assert.NotNull(schema.OneOf); Assert.Equal(2, schema.OneOf.Count); - var numberSchema = schema.OneOf.FirstOrDefault(x => x.Type.Equals("number", StringComparison.OrdinalIgnoreCase)); - Assert.NotNull(numberSchema); - Assert.True(numberSchema.Nullable); - var stringSchema = schema.OneOf.FirstOrDefault(x => x.Type.Equals("string", StringComparison.OrdinalIgnoreCase)); - Assert.NotNull(stringSchema); - Assert.True(stringSchema.Nullable); - Assert.False(schema.Nullable); + Assert.Single(schema.OneOf, x => x.Type.Equals(JsonSchemaType.Number | JsonSchemaType.Null)); + Assert.Single(schema.OneOf, x => x.Type.Equals(JsonSchemaType.String | JsonSchemaType.Null)); + Assert.NotEqual(JsonSchemaType.Null, schema.Type & JsonSchemaType.Null); } else { - Assert.Equal("number", schema.Type); + Assert.Equal(JsonSchemaType.Number, schema.Type & JsonSchemaType.Number); Assert.Null(schema.OneOf); - Assert.Equal(isNullable, schema.Nullable); + Assert.Equal(isNullable, (schema.Type & JsonSchemaType.Null) is JsonSchemaType.Null); } } @@ -435,7 +435,7 @@ public void CreateEdmTypeSchemaReturnSchemaForInt64(bool isNullable, bool IEEE75 IEdmTypeReference edmTypeReference = EdmCoreModel.Instance.GetInt64(isNullable); // Act - var schema = context.CreateEdmTypeSchema(edmTypeReference); + var schema = context.CreateEdmTypeSchema(edmTypeReference, new()); Assert.NotNull(schema); // guard // & Assert @@ -444,26 +444,22 @@ public void CreateEdmTypeSchemaReturnSchemaForInt64(bool isNullable, bool IEEE75 Assert.Null(schema.Type); Assert.NotNull(schema.OneOf); Assert.Equal(2, schema.OneOf.Count); - var numberSchema = schema.OneOf.FirstOrDefault(x => x.Type.Equals("number", StringComparison.OrdinalIgnoreCase)); - Assert.NotNull(numberSchema); - Assert.True(numberSchema.Nullable); - var stringSchema = schema.OneOf.FirstOrDefault(x => x.Type.Equals("string", StringComparison.OrdinalIgnoreCase)); - Assert.NotNull(stringSchema); - Assert.True(stringSchema.Nullable); - Assert.False(schema.Nullable); + Assert.Single(schema.OneOf, x => x.Type.Equals(JsonSchemaType.Number | JsonSchemaType.Null)); + Assert.Single(schema.OneOf, x => x.Type.Equals(JsonSchemaType.String | JsonSchemaType.Null)); + Assert.NotEqual(JsonSchemaType.Null, schema.Type & JsonSchemaType.Null); } else { - Assert.Equal("number", schema.Type); + Assert.Equal(JsonSchemaType.Number, schema.Type & JsonSchemaType.Number); Assert.Null(schema.AnyOf); - Assert.Equal(isNullable, schema.Nullable); + Assert.Equal(isNullable, (schema.Type & JsonSchemaType.Null) is JsonSchemaType.Null); } } [Theory] [InlineData(true)] [InlineData(false)] - public void CreateEdmTypeSchemaReturnSchemaForGuid(bool isNullable) + public async Task CreateEdmTypeSchemaReturnSchemaForGuid(bool isNullable) { // Arrange IEdmModel model = EdmCoreModel.Instance; @@ -471,27 +467,27 @@ public void CreateEdmTypeSchemaReturnSchemaForGuid(bool isNullable) IEdmTypeReference edmTypeReference = EdmCoreModel.Instance.GetGuid(isNullable); // Act - var schema = context.CreateEdmTypeSchema(edmTypeReference); + var schema = context.CreateEdmTypeSchema(edmTypeReference, new()); Assert.NotNull(schema); // guard - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + var json = JsonNode.Parse(await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); // & Assert if (isNullable) { - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""pattern"": ""^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"", ""type"": ""string"", ""format"": ""uuid"", ""nullable"": true -}".ChangeLineBreaks(), json); +}"), json)); } else { - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""pattern"": ""^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"", ""type"": ""string"", ""format"": ""uuid"" -}".ChangeLineBreaks(), json); +}"), json)); } } @@ -506,22 +502,17 @@ public void CreateEdmTypeSchemaReturnSchemaForDouble(bool isNullable) IEdmTypeReference edmTypeReference = EdmCoreModel.Instance.GetDouble(isNullable); // Act - var schema = context.CreateEdmTypeSchema(edmTypeReference); + var schema = context.CreateEdmTypeSchema(edmTypeReference, new()); Assert.NotNull(schema); // guard // & Assert Assert.Null(schema.Type); - var numberSchema = schema.OneOf.FirstOrDefault(x => x.Type.Equals("number", StringComparison.OrdinalIgnoreCase)); - Assert.NotNull(numberSchema); - Assert.True(numberSchema.Nullable); - Assert.Equal("double", numberSchema.Format, StringComparer.OrdinalIgnoreCase); + Assert.Single(schema.OneOf, x => x.Type.Equals(JsonSchemaType.Number | JsonSchemaType.Null) && x.Format.Equals("double", StringComparison.OrdinalIgnoreCase)); - var stringSchema = schema.OneOf.FirstOrDefault(x => x.Type.Equals("string", StringComparison.OrdinalIgnoreCase)); - Assert.NotNull(stringSchema); - Assert.True(stringSchema.Nullable); + Assert.Single(schema.OneOf, x => x.Type.Equals(JsonSchemaType.String | JsonSchemaType.Null)); - Assert.False(schema.Nullable); + Assert.NotEqual(JsonSchemaType.Null, schema.Type & JsonSchemaType.Null); Assert.Null(schema.AnyOf); @@ -540,22 +531,17 @@ public void CreateEdmTypeSchemaReturnSchemaForSingle(bool isNullable) IEdmTypeReference edmTypeReference = EdmCoreModel.Instance.GetSingle(isNullable); // Act - var schema = context.CreateEdmTypeSchema(edmTypeReference); + var schema = context.CreateEdmTypeSchema(edmTypeReference, new()); Assert.NotNull(schema); // guard // & Assert Assert.Null(schema.Type); - var numberSchema = schema.OneOf.FirstOrDefault(x => x.Type.Equals("number", StringComparison.OrdinalIgnoreCase)); - Assert.NotNull(numberSchema); - Assert.True(numberSchema.Nullable); - Assert.Equal("float", numberSchema.Format, StringComparer.OrdinalIgnoreCase); + Assert.Single(schema.OneOf, x => x.Type.Equals(JsonSchemaType.Number | JsonSchemaType.Null) && x.Format.Equals("float", StringComparison.OrdinalIgnoreCase)); + + Assert.Single(schema.OneOf, x => x.Type.Equals(JsonSchemaType.String | JsonSchemaType.Null)); - var stringSchema = schema.OneOf.FirstOrDefault(x => x.Type.Equals("string", StringComparison.OrdinalIgnoreCase)); - Assert.NotNull(stringSchema); - Assert.True(stringSchema.Nullable); - - Assert.False(schema.Nullable); + Assert.NotEqual(JsonSchemaType.Null, schema.Type & JsonSchemaType.Null); Assert.Null(schema.AnyOf); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiErrorSchemaGeneraratorTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiErrorSchemaGeneraratorTests.cs index f4a761a45..6898c61ed 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiErrorSchemaGeneraratorTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiErrorSchemaGeneraratorTests.cs @@ -4,6 +4,7 @@ // ------------------------------------------------------------ using Microsoft.OData.Edm; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; using Xunit; @@ -23,7 +24,7 @@ public void AddsEmptyInnerErrorWhenNoComplexTypeIsProvided() var schema = OpenApiErrorSchemaGenerator.CreateInnerErrorSchema(context); - Assert.Equal("object", schema.Type); + Assert.Equal(JsonSchemaType.Object, schema.Type); Assert.Empty(schema.Properties); } [Fact] @@ -38,7 +39,7 @@ public void AddsInnerErrorPropertiesWhenComplexTypeIsProvided() var schema = OpenApiErrorSchemaGenerator.CreateInnerErrorSchema(context); - Assert.Equal("object", schema.Type); + Assert.Equal(JsonSchemaType.Object, schema.Type); Assert.NotEmpty(schema.Properties); Assert.Contains("Date", schema.Properties.Keys); Assert.Contains("RequestId", schema.Properties.Keys); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiLinkGeneratorTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiLinkGeneratorTests.cs index 8110f075a..3d630d7c8 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiLinkGeneratorTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiLinkGeneratorTests.cs @@ -7,6 +7,7 @@ using System.Linq; using Microsoft.OData.Edm; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.Interfaces; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Tests; using Xunit; @@ -36,7 +37,7 @@ public void CreateLinksForSingleValuedNavigationProperties() new ODataNavigationPropertySegment(navProperty)); // Act - IDictionary links = context.CreateLinks( + var links = context.CreateLinks( entityType: navProperty.ToEntityType(), entityName: adminEntityType.Name, entityKind: navProperty.PropertyKind.ToString(), @@ -87,7 +88,7 @@ public void CreateLinksForCollectionValuedNavigationProperties() new ODataNavigationPropertySegment(navProperty2)); // Act - IDictionary links = context.CreateLinks( + var links = context.CreateLinks( entityType: navProperty2.ToEntityType(), entityName: singletonEntityType.Name, entityKind: navProperty2.PropertyKind.ToString(), @@ -150,7 +151,7 @@ public void CreateLinksForSingletons() new ODataNavigationSourceSegment(singleton)); // Act - IDictionary links = context.CreateLinks( + var links = context.CreateLinks( entityType: singleton.EntityType, entityName: singleton.Name, entityKind: singleton.ContainerElementKind.ToString(), @@ -205,7 +206,7 @@ public void CreateLinksForEntities() new ODataNavigationSourceSegment(entityset), new ODataKeySegment(entityset.EntityType)); - var parameters = new List() + var parameters = new List() { new OpenApiParameter() { @@ -215,13 +216,13 @@ public void CreateLinksForEntities() Required = true, Schema = new OpenApiSchema() { - Type = "string" + Type = JsonSchemaType.String } } }; // Act - IDictionary links = context.CreateLinks( + var links = context.CreateLinks( entityType: entityset.EntityType, entityName: entityset.Name, entityKind: entityset.ContainerElementKind.ToString(), diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiParameterGeneratorTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiParameterGeneratorTests.cs index 93c51417c..d819da8fc 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiParameterGeneratorTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiParameterGeneratorTests.cs @@ -6,6 +6,8 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Text.Json.Nodes; +using System.Threading.Tasks; using System.Xml.Linq; using Microsoft.OData.Edm; using Microsoft.OData.Edm.Csdl; @@ -13,6 +15,7 @@ using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Tests; +using Moq; using Xunit; namespace Microsoft.OpenApi.OData.Generator.Tests @@ -24,20 +27,24 @@ public void CreateParametersThrowArgumentNullContext() { // Arrange ODataContext context = null; + var mockModel = new Mock().Object; // Act & Assert - Assert.Throws("context", () => context.CreateParameters()); + Assert.Throws("context", () => context.AddParametersToDocument(new())); + Assert.Throws("document", () => new ODataContext(mockModel).AddParametersToDocument(null)); } [Fact] - public void CreateParametersReturnsCreatedParameters() + public async Task CreateParametersReturnsCreatedParameters() { // Arrange IEdmModel model = EdmCoreModel.Instance; ODataContext context = new ODataContext(model); + OpenApiDocument openApiDocument = new (); // Act - var parameters = context.CreateParameters(); + context.AddParametersToDocument(openApiDocument); + var parameters = openApiDocument.Components.Parameters; // Assert Assert.NotNull(parameters); @@ -45,123 +52,98 @@ public void CreateParametersReturnsCreatedParameters() Assert.Equal(5, parameters.Count); Assert.Equal(new[] { "top", "skip", "count", "filter", "search" }, parameters.Select(p => p.Key)); - Assert.Collection(parameters, - item => // $top - { - string json = item.Value.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - string expected = @"{ + var expectedTop = JsonNode.Parse(@"{ ""name"": ""$top"", ""in"": ""query"", ""description"": ""Show only the first n items"", - ""style"": ""form"", ""explode"": false, ""schema"": { ""minimum"": 0, - ""type"": ""integer"" + ""type"": ""number"", + ""format"": ""int64"" }, ""example"": 50 -}"; - - Assert.Equal(expected.ChangeLineBreaks(), json); - }, - item => // $skip - { - string json = item.Value.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - string expected = @"{ +}"); + var expectedSkip = JsonNode.Parse(@"{ ""name"": ""$skip"", ""in"": ""query"", ""description"": ""Skip the first n items"", - ""style"": ""form"", ""explode"": false, ""schema"": { ""minimum"": 0, - ""type"": ""integer"" + ""type"": ""number"", + ""format"": ""int64"" } -}"; - - Assert.Equal(expected.ChangeLineBreaks(), json); - }, - item => // $count - { - string json = item.Value.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - string expected = @"{ +}"); + var expectedCount = JsonNode.Parse(@"{ ""name"": ""$count"", ""in"": ""query"", ""description"": ""Include count of items"", - ""style"": ""form"", ""explode"": false, ""schema"": { ""type"": ""boolean"" } -}"; - - Assert.Equal(expected.ChangeLineBreaks(), json); - }, - item => // $filter - { - string json = item.Value.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - string expected = @"{ +}"); + var expectedFilter = JsonNode.Parse(@"{ ""name"": ""$filter"", ""in"": ""query"", ""description"": ""Filter items by property values"", - ""style"": ""form"", ""explode"": false, ""schema"": { ""type"": ""string"" } -}"; - - Assert.Equal(expected.ChangeLineBreaks(), json); - }, - item => // $search - { - string json = item.Value.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - string expected = @"{ +}"); + var expectedSearch = JsonNode.Parse(@"{ ""name"": ""$search"", ""in"": ""query"", ""description"": ""Search items by search phrases"", - ""style"": ""form"", ""explode"": false, ""schema"": { ""type"": ""string"" } -}"; - - Assert.Equal(expected.ChangeLineBreaks(), json); - }); +}"); + var parametersAsRawJson = await Task.WhenAll(parameters.Select(p => p.Value.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0))); + var parametersAsJson = parametersAsRawJson.Select(x => JsonNode.Parse(x)).ToArray(); + Assert.Contains(parametersAsJson, p => JsonNode.DeepEquals(expectedTop, p)); + Assert.Contains(parametersAsJson, p => JsonNode.DeepEquals(expectedSkip, p)); + Assert.Contains(parametersAsJson, p => JsonNode.DeepEquals(expectedCount, p)); + Assert.Contains(parametersAsJson, p => JsonNode.DeepEquals(expectedFilter, p)); + Assert.Contains(parametersAsJson, p => JsonNode.DeepEquals(expectedSearch, p)); } [Fact] - public void CanSeralizeAsYamlFromTheCreatedParameters() + public async Task CanSerializeAsYamlFromTheCreatedParameters() { // Arrange IEdmModel model = EdmCoreModel.Instance; ODataContext context = new ODataContext(model); + OpenApiDocument openApiDocument = new (); // Act - var parameters = context.CreateParameters(); + context.AddParametersToDocument(openApiDocument); + var parameters = openApiDocument.Components.Parameters; // Assert Assert.Contains("skip", parameters.Select(p => p.Key)); var skip = parameters.First(c => c.Key == "skip").Value; - string yaml = skip.SerializeAsYaml(OpenApiSpecVersion.OpenApi3_0); + string yaml = await skip.SerializeAsYamlAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Equal( @"name: $skip in: query description: Skip the first n items -style: form explode: false schema: minimum: 0 - type: integer + type: number + format: int64 ".ChangeLineBreaks(), yaml); } [Theory] [InlineData(true)] [InlineData(false)] - public void CreateKeyParametersForSingleKeyWorks(bool prefix) + public async Task CreateKeyParametersForSingleKeyWorks(bool prefix) { // Arrange EdmModel model = new EdmModel(); @@ -182,12 +164,12 @@ public void CreateKeyParametersForSingleKeyWorks(bool prefix) Assert.NotNull(parameters); var parameter = Assert.Single(parameters); - string json = parameter.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - string expected; + var json = JsonNode.Parse(await parameter.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); + JsonNode expected; if (prefix) { - expected = @"{ + expected = JsonNode.Parse(@"{ ""name"": ""Customer-Id"", ""in"": ""path"", ""description"": ""The unique identifier of Customer"", @@ -197,11 +179,11 @@ public void CreateKeyParametersForSingleKeyWorks(bool prefix) ""nullable"": true }, ""x-ms-docs-key-type"": ""Customer"" -}"; +}"); } else { - expected = @"{ + expected = JsonNode.Parse(@"{ ""name"": ""Id"", ""in"": ""path"", ""description"": ""The unique identifier of Customer"", @@ -211,16 +193,16 @@ public void CreateKeyParametersForSingleKeyWorks(bool prefix) ""nullable"": true }, ""x-ms-docs-key-type"": ""Customer"" -}"; +}"); } - Assert.Equal(expected.ChangeLineBreaks(), json); + Assert.True(JsonNode.DeepEquals(expected, json)); } [Theory] [InlineData(true)] [InlineData(false)] - public void CreateKeyParametersForCompositeKeyWorks(bool prefix) + public async Task CreateKeyParametersForCompositeKeyWorks(bool prefix) { // Arrange EdmModel model = new EdmModel(); @@ -244,8 +226,8 @@ public void CreateKeyParametersForCompositeKeyWorks(bool prefix) // 1st var parameter = parameters.First(); - string json = parameter.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - string expected = @"{ + var json = JsonNode.Parse(await parameter.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); + var expected = JsonNode.Parse(@"{ ""name"": ""firstName"", ""in"": ""path"", ""description"": ""Property in multi-part unique identifier of Customer"", @@ -255,13 +237,13 @@ public void CreateKeyParametersForCompositeKeyWorks(bool prefix) ""nullable"": true }, ""x-ms-docs-key-type"": ""Customer"" -}"; - Assert.Equal(expected.ChangeLineBreaks(), json); +}"); + Assert.True(JsonNode.DeepEquals(expected, json)); // 2nd parameter = parameters.Last(); - json = parameter.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - expected = @"{ + json = JsonNode.Parse(await parameter.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); + expected = JsonNode.Parse(@"{ ""name"": ""lastName"", ""in"": ""path"", ""description"": ""Property in multi-part unique identifier of Customer"", @@ -271,12 +253,12 @@ public void CreateKeyParametersForCompositeKeyWorks(bool prefix) ""nullable"": true }, ""x-ms-docs-key-type"": ""Customer"" -}"; - Assert.Equal(expected.ChangeLineBreaks(), json); +}"); + Assert.True(JsonNode.DeepEquals(expected, json)); } [Fact] - public void CreateKeyParametersForAlternateKeyWithSinglePropertyWorks() + public async Task CreateKeyParametersForAlternateKeyWithSinglePropertyWorks() { // Arrange EdmModel model = new(); @@ -303,8 +285,8 @@ public void CreateKeyParametersForAlternateKeyWithSinglePropertyWorks() // Assert Assert.NotNull(parameters); Assert.Single(parameters); - string json = altParameter.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - Assert.Equal(@"{ + var json = JsonNode.Parse(await altParameter.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); + var expected = JsonNode.Parse(@"{ ""name"": ""AltId1"", ""in"": ""path"", ""description"": ""Alternate key of Customer"", @@ -313,11 +295,12 @@ public void CreateKeyParametersForAlternateKeyWithSinglePropertyWorks() ""type"": ""string"", ""nullable"": true } -}".ChangeLineBreaks(), json); +}"); + Assert.True(JsonNode.DeepEquals(expected, json)); } [Fact] - public void CreateKeyParametersForAlternateKeyWithMultiplePropertiesWorks() + public async Task CreateKeyParametersForAlternateKeyWithMultiplePropertiesWorks() { // Arrange EdmModel model = new(); @@ -350,8 +333,8 @@ public void CreateKeyParametersForAlternateKeyWithMultiplePropertiesWorks() // Assert Assert.NotNull(parameters); Assert.Equal(2, parameters.Count); - string json1 = altParameter1.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - Assert.Equal(@"{ + var json1 = JsonNode.Parse(await altParameter1.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); + var expected1 = JsonNode.Parse(@"{ ""name"": ""AltId1"", ""in"": ""path"", ""description"": ""Property in multi-part alternate key of Customer"", @@ -360,10 +343,11 @@ public void CreateKeyParametersForAlternateKeyWithMultiplePropertiesWorks() ""type"": ""string"", ""nullable"": true } -}".ChangeLineBreaks(), json1); +}"); + Assert.True(JsonNode.DeepEquals(expected1, json1)); - string json2 = altParameter2.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - Assert.Equal(@"{ + var json2 = JsonNode.Parse(await altParameter2.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); + var expected2 = JsonNode.Parse(@"{ ""name"": ""AltId2"", ""in"": ""path"", ""description"": ""Property in multi-part alternate key of Customer"", @@ -372,13 +356,14 @@ public void CreateKeyParametersForAlternateKeyWithMultiplePropertiesWorks() ""type"": ""string"", ""nullable"": true } -}".ChangeLineBreaks(), json2); +}"); + Assert.True(JsonNode.DeepEquals(expected2, json2)); } [Theory] [InlineData(true)] [InlineData(false)] - public void CreateOrderByAndSelectAndExpandParametersWorks(bool useStringArrayForQueryOptionsSchema) + public async Task CreateOrderByAndSelectAndExpandParametersWorks(bool useStringArrayForQueryOptionsSchema) { // Arrange IEdmModel model = GetEdmModel(); @@ -398,34 +383,34 @@ public void CreateOrderByAndSelectAndExpandParametersWorks(bool useStringArrayFo ""ID"", ""ID desc"" ],"; - VerifyCreateOrderByParameter(entitySet, context, orderByItemsText); - VerifyCreateOrderByParameter(singleton, context); - VerifyCreateOrderByParameter(navigationProperty, context); + await VerifyCreateOrderByParameter(entitySet, context, orderByItemsText); + await VerifyCreateOrderByParameter(singleton, context); + await VerifyCreateOrderByParameter(navigationProperty, context); // Select string selectItemsText = useStringArrayForQueryOptionsSchema ? null : @"""enum"": [ ""ID"", ""Addresses"" ],"; - VerifyCreateSelectParameter(entitySet, context, selectItemsText); - VerifyCreateSelectParameter(singleton, context); - VerifyCreateSelectParameter(navigationProperty, context); + await VerifyCreateSelectParameter(entitySet, context, selectItemsText); + await VerifyCreateSelectParameter(singleton, context); + await VerifyCreateSelectParameter(navigationProperty, context); // Expand string expandItemsText = useStringArrayForQueryOptionsSchema ? null : @"""enum"": [ ""*"", ""Addresses"" ],"; - VerifyCreateExpandParameter(entitySet, context, expandItemsText); + await VerifyCreateExpandParameter(entitySet, context, expandItemsText); string expandItemsDefaultText = useStringArrayForQueryOptionsSchema ? null : @"""enum"": [ ""*"" ],"; - VerifyCreateExpandParameter(singleton, context, expandItemsDefaultText); - VerifyCreateExpandParameter(navigationProperty, context, expandItemsDefaultText); + await VerifyCreateExpandParameter(singleton, context, expandItemsDefaultText); + await VerifyCreateExpandParameter(navigationProperty, context, expandItemsDefaultText); } - private void VerifyCreateOrderByParameter(IEdmElement edmElement, ODataContext context, string orderByItemsText = null) + private static async Task VerifyCreateOrderByParameter(IEdmElement edmElement, ODataContext context, string orderByItemsText = null) { // Arrange & Act OpenApiParameter parameter; @@ -452,13 +437,11 @@ private void VerifyCreateOrderByParameter(IEdmElement edmElement, ODataContext c // Assert Assert.NotNull(parameter); - string json = parameter.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - - string expected = $@"{{ + var json = JsonNode.Parse(await parameter.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); + var expectedJson = JsonNode.Parse($@"{{ ""name"": ""$orderby"", ""in"": ""query"", ""description"": ""Order items by property values"", - ""style"": ""form"", ""explode"": false, ""schema"": {{ ""uniqueItems"": true, @@ -467,12 +450,12 @@ private void VerifyCreateOrderByParameter(IEdmElement edmElement, ODataContext c {itemsText} }} }} -}}"; +}}"); - Assert.Equal(expected.ChangeLineBreaks(), json); + Assert.True(JsonNode.DeepEquals(expectedJson, json)); } - private void VerifyCreateSelectParameter(IEdmElement edmElement, ODataContext context, string selectItemsText = null) + private static async Task VerifyCreateSelectParameter(IEdmElement edmElement, ODataContext context, string selectItemsText = null) { // Arrange & Act OpenApiParameter parameter; @@ -499,13 +482,11 @@ private void VerifyCreateSelectParameter(IEdmElement edmElement, ODataContext co // Assert Assert.NotNull(parameter); - string json = parameter.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - - string expected = $@"{{ + var json = JsonNode.Parse(await parameter.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); + var expectedJson = JsonNode.Parse($@"{{ ""name"": ""$select"", ""in"": ""query"", ""description"": ""Select properties to be returned"", - ""style"": ""form"", ""explode"": false, ""schema"": {{ ""uniqueItems"": true, @@ -514,12 +495,11 @@ private void VerifyCreateSelectParameter(IEdmElement edmElement, ODataContext co {itemsText} }} }} -}}"; - - Assert.Equal(expected.ChangeLineBreaks(), json); +}}"); + Assert.True(JsonNode.DeepEquals(expectedJson, json)); } - private void VerifyCreateExpandParameter(IEdmElement edmElement, ODataContext context, string expandItemsText) + private static async Task VerifyCreateExpandParameter(IEdmElement edmElement, ODataContext context, string expandItemsText) { // Arrange & Act OpenApiParameter parameter; @@ -541,15 +521,13 @@ private void VerifyCreateExpandParameter(IEdmElement edmElement, ODataContext co // Assert Assert.NotNull(parameter); - string json = parameter.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - - string expected = expandItemsText == null + var json = JsonNode.Parse(await parameter.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); + var expectedJson = expandItemsText == null ? $@"{{ ""name"": ""$expand"", ""in"": ""query"", ""description"": ""Expand related entities"", - ""style"": ""form"", ""explode"": false, ""schema"": {{ ""uniqueItems"": true, @@ -564,7 +542,6 @@ private void VerifyCreateExpandParameter(IEdmElement edmElement, ODataContext co ""name"": ""$expand"", ""in"": ""query"", ""description"": ""Expand related entities"", - ""style"": ""form"", ""explode"": false, ""schema"": {{ ""uniqueItems"": true, @@ -575,12 +552,12 @@ private void VerifyCreateExpandParameter(IEdmElement edmElement, ODataContext co }} }} }}"; - - Assert.Equal(expected.ChangeLineBreaks(), json); + var expectedJsonNode = JsonNode.Parse(expectedJson); + Assert.True(JsonNode.DeepEquals(expectedJsonNode, json)); } [Fact] - public void CreateParametersWorks() + public async Task CreateParametersWorks() { // Arrange IEdmModel model = EdmModelHelper.GraphBetaModel; @@ -598,23 +575,23 @@ public void CreateParametersWorks() Assert.NotNull(function3); // Act - IList parameters1 = context.CreateParameters(function1); - IList parameters2 = context.CreateParameters(function2); - IList parameters3 = context.CreateParameters(function3); + var parameters1 = context.CreateParameters(function1); + var parameters2 = context.CreateParameters(function2); + var parameters3 = context.CreateParameters(function3); // Assert Assert.NotNull(parameters1); - OpenApiParameter parameter1 = Assert.Single(parameters1); + var parameter1 = Assert.Single(parameters1); Assert.NotNull(parameters2); - OpenApiParameter parameter2 = Assert.Single(parameters2); + var parameter2 = Assert.Single(parameters2); Assert.NotNull(parameters3); Assert.Equal(4, parameters3.Count); - OpenApiParameter parameter3 = parameters3.First(); + var parameter3 = parameters3.First(); - string json1 = parameter1.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - string expectedPayload1 = $@"{{ + var json1 = JsonNode.Parse(await parameter1.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); + var expectedPayload1 = JsonNode.Parse($@"{{ ""name"": ""ids"", ""in"": ""path"", ""description"": ""The URL-encoded JSON object"", @@ -629,10 +606,11 @@ public void CreateParametersWorks() }} }} }} -}}"; +}}"); + Assert.True(JsonNode.DeepEquals(expectedPayload1, json1)); - string json2 = parameter2.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - string expectedPayload2 = $@"{{ + var json2 = JsonNode.Parse(await parameter2.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); + var expectedPayload2 = JsonNode.Parse($@"{{ ""name"": ""resource"", ""in"": ""path"", ""required"": true, @@ -640,21 +618,19 @@ public void CreateParametersWorks() ""type"": ""string"", ""nullable"": true }} -}}"; +}}"); + Assert.True(JsonNode.DeepEquals(expectedPayload2, json2)); - string json3 = parameter3.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - string expectedPayload3 = $@"{{ + var json3 = JsonNode.Parse(await parameter3.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); + var expectedPayload3 = JsonNode.Parse($@"{{ ""name"": ""directoryScopeId"", ""in"": ""query"", ""schema"": {{ ""type"": ""string"", ""nullable"": true }} -}}"; - - Assert.Equal(expectedPayload1.ChangeLineBreaks(), json1); - Assert.Equal(expectedPayload2.ChangeLineBreaks(), json2); - Assert.Equal(expectedPayload3.ChangeLineBreaks(), json3); +}}"); + Assert.True(JsonNode.DeepEquals(expectedPayload3, json3)); } public static IEdmModel GetEdmModel() diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiPathItemGeneratorTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiPathItemGeneratorTests.cs index 134befc9a..187c36bd5 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiPathItemGeneratorTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiPathItemGeneratorTests.cs @@ -9,6 +9,7 @@ using Microsoft.OData.Edm.Csdl; using Microsoft.OData.Edm.Vocabularies; using Microsoft.OData.Edm.Vocabularies.Community.V1; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Tests; using Microsoft.OpenApi.OData.Vocabulary.Capabilities; @@ -22,10 +23,11 @@ public class OpenApiPathItemGeneratorTest public void CreatePathItemsThrowArgumentNullContext() { // Arrange + OpenApiDocument openApiDocument = new(); ODataContext context = null; // Act & Assert - Assert.Throws("context", () => context.CreatePathItems()); + Assert.Throws("context", () => context.AddPathItemsToDocument(openApiDocument)); } [Fact] @@ -33,10 +35,12 @@ public void CreatePathItemsReturnsForEmptyModel() { // Arrange IEdmModel model = EdmModelHelper.EmptyModel; + OpenApiDocument openApiDocument = new(); ODataContext context = new ODataContext(model); // Act - var pathItems = context.CreatePathItems(); + context.AddPathItemsToDocument(openApiDocument); + var pathItems = openApiDocument.Paths; // Assert Assert.NotNull(pathItems); @@ -50,6 +54,7 @@ public void CreatePathItemsReturnsForBasicModel(bool useAnnotationToGeneratePath { // Arrange IEdmModel model = EdmModelHelper.BasicEdmModel; + OpenApiDocument openApiDocument = new(); OpenApiConvertSettings settings = new OpenApiConvertSettings { EnableKeyAsSegment = true, @@ -58,7 +63,8 @@ public void CreatePathItemsReturnsForBasicModel(bool useAnnotationToGeneratePath ODataContext context = new ODataContext(model, settings); // Act - var pathItems = context.CreatePathItems(); + context.AddPathItemsToDocument(openApiDocument); + var pathItems = openApiDocument.Paths; // Assert Assert.NotNull(pathItems); @@ -115,6 +121,7 @@ public void CreatePathItemsReturnsForEscapeFunctionModel(bool enableEscaped, boo { // Arrange EdmModel model = new EdmModel(); + OpenApiDocument openApiDocument = new(); EdmEntityType customer = new EdmEntityType("NS", "Customer"); customer.AddKeys(customer.AddStructuralProperty("ID", EdmPrimitiveTypeKind.Int32)); model.AddElement(customer); @@ -144,7 +151,8 @@ public void CreatePathItemsReturnsForEscapeFunctionModel(bool enableEscaped, boo ODataContext context = new ODataContext(model, settings); // Act - var pathItems = context.CreatePathItems(); + context.AddPathItemsToDocument(openApiDocument); + var pathItems = openApiDocument.Paths; // Assert Assert.NotNull(pathItems); @@ -161,6 +169,7 @@ public void CreatePathItemsDoesNotAddPathItemEntryForPathItemsWithNoOperations() { // Arrange EdmModel model = new(); + OpenApiDocument openApiDocument = new(); EdmEntityType customer = new("NS", "Customer"); customer.AddKeys(customer.AddStructuralProperty("ID", EdmPrimitiveTypeKind.Int32)); model.AddElement(customer); @@ -199,7 +208,8 @@ public void CreatePathItemsDoesNotAddPathItemEntryForPathItemsWithNoOperations() ODataContext context = new(model); // Act - var pathItems = context.CreatePathItems(); + context.AddPathItemsToDocument(openApiDocument); + var pathItems = openApiDocument.Paths; // Assert Assert.NotNull(pathItems); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiPathsGeneratorTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiPathsGeneratorTests.cs index d643dc089..f658bfdac 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiPathsGeneratorTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiPathsGeneratorTests.cs @@ -5,24 +5,27 @@ using System; using Microsoft.OData.Edm; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Tests; +using Moq; using Xunit; namespace Microsoft.OpenApi.OData.Generator.Tests { public class OpenApiPathsGeneratorTest { - private OpenApiConvertSettings _settings = new OpenApiConvertSettings(); - [Fact] public void CreatePathsThrowArgumentNullContext() { // Arrange + OpenApiDocument openApiDocument = new(); ODataContext context = null; + var mockModel = new Mock().Object; // Act & Assert - Assert.Throws("context", () => context.CreatePaths()); + Assert.Throws("context", () => context.AddPathsToDocument(openApiDocument)); + Assert.Throws("document", () => new ODataContext(mockModel).AddPathsToDocument(null)); } [Fact] @@ -30,10 +33,12 @@ public void CreatePathsReturnsForEmptyModel() { // Arrange IEdmModel model = EdmModelHelper.EmptyModel; + OpenApiDocument openApiDocument = new(); ODataContext context = new ODataContext(model); // Act - var paths = context.CreatePaths(); + context.AddPathsToDocument(openApiDocument); + var paths = openApiDocument.Paths; // Assert Assert.NotNull(paths); @@ -47,6 +52,7 @@ public void CreatePathsReturnsForBasicModel(bool useAnnotationToGeneratePath, in { // Arrange IEdmModel model = EdmModelHelper.BasicEdmModel; + OpenApiDocument openApiDocument = new(); OpenApiConvertSettings settings = new OpenApiConvertSettings { EnableKeyAsSegment = true, @@ -55,7 +61,8 @@ public void CreatePathsReturnsForBasicModel(bool useAnnotationToGeneratePath, in ODataContext context = new ODataContext(model, settings); // Act - var paths = context.CreatePaths(); + context.AddPathsToDocument(openApiDocument); + var paths = openApiDocument.Paths; // Assert Assert.NotNull(paths); @@ -106,6 +113,7 @@ public void CreatePathsReturnsForBasicModelWithPrefix(bool useAnnotationToGenera { // Arrange IEdmModel model = EdmModelHelper.BasicEdmModel; + OpenApiDocument openApiDocument = new(); OpenApiConvertSettings settings = new OpenApiConvertSettings { EnableKeyAsSegment = true, @@ -115,7 +123,8 @@ public void CreatePathsReturnsForBasicModelWithPrefix(bool useAnnotationToGenera ODataContext context = new ODataContext(model, settings); // Act - var paths = context.CreatePaths(); + context.AddPathsToDocument(openApiDocument); + var paths = openApiDocument.Paths; // Assert Assert.NotNull(paths); @@ -164,6 +173,7 @@ public void CreatePathsReturnsForContractModelWithHierarhicalClass() { // Arrange IEdmModel model = EdmModelHelper.ContractServiceModel; + OpenApiDocument openApiDocument = new(); OpenApiConvertSettings settings = new OpenApiConvertSettings { EnableKeyAsSegment = true, @@ -172,7 +182,8 @@ public void CreatePathsReturnsForContractModelWithHierarhicalClass() ODataContext context = new ODataContext(model, settings); // Act - var paths = context.CreatePaths(); + context.AddPathsToDocument(openApiDocument); + var paths = openApiDocument.Paths; // Assert Assert.NotNull(paths); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiRequestBodyGeneratorTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiRequestBodyGeneratorTests.cs index 6abc39ee7..acc14c881 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiRequestBodyGeneratorTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiRequestBodyGeneratorTests.cs @@ -5,8 +5,12 @@ using System; using System.Linq; +using System.Text.Json.Nodes; +using System.Threading.Tasks; using Microsoft.OData.Edm; using Microsoft.OpenApi.Extensions; +using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Tests; using Xunit; @@ -87,15 +91,15 @@ public void CreateRequestBodyForActionImportReturnCorrectRequestBody() Assert.NotNull(content.Value.Schema); var schema = content.Value.Schema; - Assert.Equal("object", schema.Type); + Assert.Equal(JsonSchemaType.Object, schema.Type); Assert.NotNull(schema.Properties); var parameter = Assert.Single(schema.Properties); Assert.Equal("param", parameter.Key); - Assert.Equal("string", parameter.Value.Type); + Assert.Equal(JsonSchemaType.String | JsonSchemaType.Null, parameter.Value.Type); } [Fact] - public void CanSerializeAsJsonFromTheCreatedRequestBody() + public async Task CanSerializeAsJsonFromTheCreatedRequestBody() { // Arrange ODataContext context = new ODataContext(_model); @@ -104,9 +108,8 @@ public void CanSerializeAsJsonFromTheCreatedRequestBody() var requestBody = context.CreateRequestBody(_actionImport); // Assert - string json = requestBody.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - - Assert.Equal(@"{ + string json = await requestBody.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); + var expectedJson = @"{ ""description"": ""Action parameters"", ""content"": { ""application/json"": { @@ -122,7 +125,12 @@ public void CanSerializeAsJsonFromTheCreatedRequestBody() } }, ""required"": true -}".ChangeLineBreaks(), json); +}"; + + var actualJsonNode = JsonNode.Parse(json); + var expectedJsonNode = JsonNode.Parse(expectedJson); + + Assert.True(JsonNode.DeepEquals(actualJsonNode, expectedJsonNode)); } [Fact] @@ -144,11 +152,11 @@ public void CreateRequestBodyForActionReturnCorrectRequestBody() Assert.NotNull(content.Value.Schema); var schema = content.Value.Schema; - Assert.Equal("object", schema.Type); + Assert.Equal(JsonSchemaType.Object, schema.Type); Assert.NotNull(schema.Properties); var parameter = Assert.Single(schema.Properties); Assert.Equal("param", parameter.Key); - Assert.Equal("string", parameter.Value.Type); + Assert.Equal(JsonSchemaType.String | JsonSchemaType.Null, parameter.Value.Type); } [Fact] @@ -156,15 +164,18 @@ public void CreateRefRequestBodies() { // Arrange ODataContext context = new ODataContext(_model); + OpenApiDocument openApiDocument = new OpenApiDocument(); // Act - var requestBodies = context.CreateRequestBodies(); - requestBodies.TryGetValue(Common.Constants.ReferencePostRequestBodyName, out Models.OpenApiRequestBody refPostBody); + context.AddRequestBodiesToDocument(openApiDocument); + var requestBodies = openApiDocument.Components.RequestBodies; + requestBodies.TryGetValue(Common.Constants.ReferencePostRequestBodyName, out var refPostBody); // Assert Assert.NotNull(refPostBody); Assert.Equal("New navigation property ref value", refPostBody.Description); - Assert.Equal(Common.Constants.ReferenceCreateSchemaName, refPostBody.Content.First().Value.Schema.Reference.Id); + var schemaReference = Assert.IsType(refPostBody.Content.First().Value.Schema); + Assert.Equal(Common.Constants.ReferenceCreateSchemaName, schemaReference.Reference.Id); } } } diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiResponseGeneratorTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiResponseGeneratorTests.cs index 857b2740e..d45a3001e 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiResponseGeneratorTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiResponseGeneratorTests.cs @@ -11,6 +11,10 @@ using Microsoft.OpenApi.Models; using Xunit; using Microsoft.OpenApi.OData.Edm; +using System.Text.Json.Nodes; +using System.Threading.Tasks; +using Moq; +using Microsoft.OpenApi.Models.References; namespace Microsoft.OpenApi.OData.Generator.Tests { @@ -46,9 +50,11 @@ public void CreateResponsesThrowArgumentNullContext() { // Arrange ODataContext context = null; + var mockModel = new Mock().Object; // Act & Assert - Assert.Throws("context", () => context.CreateResponses()); + Assert.Throws("context", () => context.AddResponsesToDocument(new())); + Assert.Throws("document", () => new ODataContext(mockModel).AddResponsesToDocument(null)); } [Fact] @@ -62,15 +68,19 @@ public void CreatesCollectionResponses() EnablePagination = true, }; ODataContext context = new(model, settings); + OpenApiDocument document = new(); // Act & Assert - var responses = context.CreateResponses(); + context.AddResponsesToDocument(document); + var responses = document.Components.Responses; var flightCollectionResponse = responses["Microsoft.OData.Service.Sample.TrippinInMemory.Models.FlightCollectionResponse"]; var stringCollectionResponse = responses["StringCollectionResponse"]; - Assert.Equal("Microsoft.OData.Service.Sample.TrippinInMemory.Models.FlightCollectionResponse", flightCollectionResponse.Content["application/json"].Schema.Reference.Id); - Assert.Equal("StringCollectionResponse", stringCollectionResponse.Content["application/json"].Schema.Reference.Id); + var flightCollectionResponseSchemaReference = Assert.IsType(flightCollectionResponse.Content["application/json"].Schema); + Assert.Equal("Microsoft.OData.Service.Sample.TrippinInMemory.Models.FlightCollectionResponse", flightCollectionResponseSchemaReference.Reference.Id); + var stringCollectionResponseSchemaReference = Assert.IsType(stringCollectionResponse.Content["application/json"].Schema); + Assert.Equal("StringCollectionResponse", stringCollectionResponseSchemaReference.Reference.Id); } [Fact] @@ -79,9 +89,11 @@ public void CreateResponsesReturnsCreatedResponses() // Arrange IEdmModel model = EdmCoreModel.Instance; ODataContext context = new ODataContext(model); + OpenApiDocument document = new(); // Act - var responses = context.CreateResponses(); + context.AddResponsesToDocument(document); + var responses = document.Components.Responses; // Assert Assert.NotNull(responses); @@ -94,21 +106,23 @@ public void CreateResponsesReturnsCreatedResponses() } [Fact] - public void CanSerializeAsJsonFromTheCreatedResponses() + public async Task CanSerializeAsJsonFromTheCreatedResponses() { // Arrange IEdmModel model = EdmCoreModel.Instance; ODataContext context = new ODataContext(model); + OpenApiDocument document = new(); // Act - var responses = context.CreateResponses(); + context.AddResponsesToDocument(document); + var responses = document.Components.Responses; // Assert var response = responses["error"]; Assert.NotNull(response); - string json = response.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await response.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); - Assert.Equal(@"{ + var expectedJson = @"{ ""description"": ""error"", ""content"": { ""application/json"": { @@ -117,7 +131,10 @@ public void CanSerializeAsJsonFromTheCreatedResponses() } } } -}".ChangeLineBreaks(), json); +}"; + var expectedJsonNode = JsonNode.Parse(expectedJson); + var actualJsonNode = JsonNode.Parse(json); + Assert.True(JsonNode.DeepEquals(expectedJsonNode, actualJsonNode)); } [Fact] @@ -158,73 +175,72 @@ public void CreateResponseForOperationThrowArgumentNullOperation() // Act & Assert Assert.Throws("operation", () => context.CreateResponses(operation: null)); - } - - [Theory] - [InlineData(true, OpenApiSpecVersion.OpenApi3_0)] - [InlineData(false, OpenApiSpecVersion.OpenApi3_0)] - [InlineData(true, OpenApiSpecVersion.OpenApi2_0)] - [InlineData(false, OpenApiSpecVersion.OpenApi2_0)] - public void CreateResponseForEdmFunctionReturnCorrectResponses(bool isFunctionImport, OpenApiSpecVersion specVersion) - { - // Arrange - string operationName = "GetPersonWithMostFriends"; - IEdmModel model = EdmModelHelper.TripServiceModel; - ODataContext context = new ODataContext(model); - - context.Settings.OpenApiSpecVersion = specVersion; - - // Act - OpenApiResponses responses; - if (isFunctionImport) - { - IEdmOperationImport operationImport = model.EntityContainer.OperationImports().First(o => o.Name == operationName); - Assert.NotNull(operationImport); // guard - ODataPath path = new ODataPath(new ODataOperationImportSegment(operationImport)); - responses = context.CreateResponses(operationImport); - } - else - { - IEdmOperation operation = model.SchemaElements.OfType().First(o => o.Name == operationName); - Assert.NotNull(operation); // guard - ODataPath path = new ODataPath(new ODataOperationSegment(operation)); - responses = context.CreateResponses(operation); - } - - // Assert - Assert.NotNull(responses); - Assert.NotEmpty(responses); - Assert.Equal(2, responses.Count); - Assert.Equal(new string[] { "200", "default" }, responses.Select(r => r.Key)); - - OpenApiResponse response = responses["200"]; - Assert.NotNull(response.Content); - OpenApiMediaType mediaType = response.Content["application/json"]; - - // openApi version 2 should not use AnyOf - if (specVersion == OpenApiSpecVersion.OpenApi2_0) - { - Assert.NotNull(mediaType.Schema); - Assert.Null(mediaType.Schema.AnyOf); - Assert.NotNull(mediaType.Schema.Reference); - Assert.Equal("Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person", mediaType.Schema.Reference.Id); - Assert.True(mediaType.Schema.Nullable); - } - else - { - Assert.NotNull(mediaType.Schema); - Assert.Null(mediaType.Schema.Reference); - Assert.NotNull(mediaType.Schema.AnyOf); - Assert.Equal(2, mediaType.Schema.AnyOf.Count); - var anyOfRef = mediaType.Schema.AnyOf.FirstOrDefault(); - Assert.NotNull(anyOfRef); - Assert.Equal("Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person", anyOfRef.Reference.Id); - var anyOfNull = mediaType.Schema.AnyOf.Skip(1).FirstOrDefault(); - Assert.NotNull(anyOfNull.Type); - Assert.Equal("object", anyOfNull.Type); - Assert.True(anyOfNull.Nullable); - - } + } + + [Theory] + [InlineData(true, OpenApiSpecVersion.OpenApi3_1)] + [InlineData(false, OpenApiSpecVersion.OpenApi3_1)] + [InlineData(true, OpenApiSpecVersion.OpenApi3_0)] + [InlineData(false, OpenApiSpecVersion.OpenApi3_0)] + [InlineData(true, OpenApiSpecVersion.OpenApi2_0)] + [InlineData(false, OpenApiSpecVersion.OpenApi2_0)] + public void CreateResponseForEdmFunctionReturnCorrectResponses(bool isFunctionImport, OpenApiSpecVersion specVersion) + { + // Arrange + string operationName = "GetPersonWithMostFriends"; + IEdmModel model = EdmModelHelper.TripServiceModel; + ODataContext context = new ODataContext(model); + + context.Settings.OpenApiSpecVersion = specVersion; + + // Act + OpenApiResponses responses; + if (isFunctionImport) + { + IEdmOperationImport operationImport = model.EntityContainer.OperationImports().First(o => o.Name == operationName); + Assert.NotNull(operationImport); // guard + ODataPath path = new ODataPath(new ODataOperationImportSegment(operationImport)); + responses = context.CreateResponses(operationImport); + } + else + { + IEdmOperation operation = model.SchemaElements.OfType().First(o => o.Name == operationName); + Assert.NotNull(operation); // guard + ODataPath path = new ODataPath(new ODataOperationSegment(operation)); + responses = context.CreateResponses(operation); + } + + // Assert + Assert.NotNull(responses); + Assert.NotEmpty(responses); + Assert.Equal(2, responses.Count); + Assert.Equal(new string[] { "200", "default" }, responses.Select(r => r.Key)); + + var response = responses["200"]; + Assert.NotNull(response.Content); + OpenApiMediaType mediaType = response.Content["application/json"]; +// openApi version 2 should not use AnyOf + if (specVersion == OpenApiSpecVersion.OpenApi2_0) + { + Assert.NotNull(mediaType.Schema); + Assert.Null(mediaType.Schema.AnyOf); + var mediaTypeSchemaReference = Assert.IsType(mediaType.Schema); + Assert.NotNull(mediaTypeSchemaReference.Reference); + Assert.Equal("Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person", mediaTypeSchemaReference.Reference.Id); + } + else + { + Assert.NotNull(mediaType.Schema); + Assert.IsNotType(mediaType.Schema); + Assert.NotNull(mediaType.Schema.AnyOf); + Assert.Equal(2, mediaType.Schema.AnyOf.Count); + var anyOfRef = Assert.IsType(mediaType.Schema.AnyOf.FirstOrDefault()); + Assert.NotNull(anyOfRef); + Assert.Equal("Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person", anyOfRef.Reference.Id); + var anyOfNull = mediaType.Schema.AnyOf.Skip(1).FirstOrDefault(); + Assert.NotNull(anyOfNull.Type); + Assert.Equal(JsonSchemaType.Null, anyOfNull.Type); + } } [Fact] @@ -252,7 +268,7 @@ public void CreateResponseForEdmFunctionOfStreamReturnTypeReturnsCorrectResponse Assert.Equal(2, responses1.Count); Assert.Equal(new string[] { "200", "default" }, responses1.Select(r => r.Key)); - OpenApiResponse response = responses1["200"]; + var response = responses1["200"]; Assert.NotNull(response.Content); Assert.Equal("application/octet-stream", response.Content.First().Key); @@ -338,7 +354,7 @@ public void CreateResponseForEdmActionWhenErrorResponsesAsDefaultIsSet(string ac [Theory] [InlineData(true)] [InlineData(false)] - public void CreateResponseForDeltaEdmFunctionReturnCorrectResponses(bool enableOdataAnnotationRef) + public async Task CreateResponseForDeltaEdmFunctionReturnCorrectResponses(bool enableOdataAnnotationRef) { // Arrange IEdmModel model = EdmModelHelper.GraphBetaModel; @@ -353,14 +369,14 @@ public void CreateResponseForDeltaEdmFunctionReturnCorrectResponses(bool enableO o.Parameters.First().Type.FullName() == "Collection(microsoft.graph.application)"); Assert.NotNull(operation); // guard OpenApiResponses responses = context.CreateResponses(operation); - string json = responses.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await responses.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.NotNull(responses); Assert.NotEmpty(responses); if (enableOdataAnnotationRef) { - Assert.Equal(@"{ + var expectedJson = @"{ ""200"": { ""description"": ""Success"", ""content"": { @@ -391,11 +407,14 @@ public void CreateResponseForDeltaEdmFunctionReturnCorrectResponses(bool enableO ""default"": { ""$ref"": ""#/components/responses/error"" } -}".ChangeLineBreaks(), json); +}"; + var expectedJsonNode = JsonNode.Parse(expectedJson); + var actualJsonNode = JsonNode.Parse(json); + Assert.True(JsonNode.DeepEquals(expectedJsonNode, actualJsonNode)); } else { - Assert.Equal(@"{ + var expectedJson = @"{ ""200"": { ""description"": ""Success"", ""content"": { @@ -426,7 +445,10 @@ public void CreateResponseForDeltaEdmFunctionReturnCorrectResponses(bool enableO ""default"": { ""$ref"": ""#/components/responses/error"" } -}".ChangeLineBreaks(), json); +}"; + var expectedJsonNode = JsonNode.Parse(expectedJson); + var actualJsonNode = JsonNode.Parse(json); + Assert.True(JsonNode.DeepEquals(expectedJsonNode, actualJsonNode)); } } } diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiSchemaGeneratorTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiSchemaGeneratorTests.cs index de5a38643..b5637cf48 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiSchemaGeneratorTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiSchemaGeneratorTests.cs @@ -5,10 +5,12 @@ using System; using System.Linq; +using System.Text.Json.Nodes; +using System.Threading.Tasks; using Microsoft.OData.Edm; -using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Extensions; using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; @@ -19,7 +21,7 @@ namespace Microsoft.OpenApi.OData.Tests { public class OpenApiSchemaGeneratorTest { - private ITestOutputHelper _output; + private readonly ITestOutputHelper _output; public OpenApiSchemaGeneratorTest(ITestOutputHelper output) { _output = output; @@ -30,9 +32,10 @@ public void CreateSchemasThrowArgumentNullContext() { // Arrange ODataContext context = null; + OpenApiDocument openApiDocument = new(); // Act & Assert - Assert.Throws("context", () => context.CreateSchemas()); + Assert.Throws("context", () => context.AddSchemasToDocument(openApiDocument)); } [Theory] @@ -44,6 +47,7 @@ public void CreatesCollectionResponseSchema(bool enablePagination, bool enableCo { // Arrange IEdmModel model = EdmModelHelper.TripServiceModel; + OpenApiDocument openApiDocument = new(); OpenApiConvertSettings settings = new() { EnableOperationId = true, @@ -53,32 +57,35 @@ public void CreatesCollectionResponseSchema(bool enablePagination, bool enableCo ODataContext context = new(model, settings); // Act & Assert - var schemas = context.CreateSchemas(); + context.AddSchemasToDocument(openApiDocument); - var stringCollectionResponse = schemas["StringCollectionResponse"]; - var flightCollectionResponse = schemas["Microsoft.OData.Service.Sample.TrippinInMemory.Models.FlightCollectionResponse"]; + var stringCollectionResponse = openApiDocument.Components.Schemas["StringCollectionResponse"]; + var flightCollectionResponse = openApiDocument.Components.Schemas["Microsoft.OData.Service.Sample.TrippinInMemory.Models.FlightCollectionResponse"]; if (enablePagination || enableCount) { Assert.Collection(stringCollectionResponse.AllOf, item => { - Assert.Equal(referenceId, item.Reference.Id); + var itemReference = Assert.IsType(item); + Assert.Equal(referenceId, itemReference.Reference.Id); }, item => { - Assert.Equal("array", item.Properties["value"].Type); + Assert.Equal(JsonSchemaType.Array, item.Properties["value"].Type); }); - Assert.Equal("array", flightCollectionResponse.AllOf?.FirstOrDefault(x => x.Properties.Any())?.Properties["value"].Type); - Assert.Equal("Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight", - flightCollectionResponse.AllOf?.FirstOrDefault(x => x.Properties.Any())?.Properties["value"].Items.Reference.Id); + Assert.Single(flightCollectionResponse.AllOf?.Where(x => x.Properties.TryGetValue("value", out var valueProp) && + (valueProp.Type & JsonSchemaType.Array) is JsonSchemaType.Array && + valueProp.Items is OpenApiSchemaReference openApiSchemaReference && + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight".Equals(openApiSchemaReference.Reference.Id))); } else { - Assert.Equal("array", stringCollectionResponse.Properties["value"].Type); - Assert.Equal("array", flightCollectionResponse.Properties["value"].Type); - Assert.Equal("Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight", flightCollectionResponse.Properties["value"].Items.Reference.Id); + Assert.Equal(JsonSchemaType.Array, stringCollectionResponse.Properties["value"].Type); + Assert.Equal(JsonSchemaType.Array, flightCollectionResponse.Properties["value"].Type); + var itemsReference = Assert.IsType(flightCollectionResponse.Properties["value"].Items); + Assert.Equal("Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight", itemsReference.Reference.Id); } } @@ -87,6 +94,7 @@ public void CreatesRefRequestBodySchema() { // Arrange IEdmModel model = EdmModelHelper.TripServiceModel; + OpenApiDocument openApiDocument = new(); OpenApiConvertSettings settings = new() { EnableOperationId = true, @@ -95,15 +103,15 @@ public void CreatesRefRequestBodySchema() ODataContext context = new(model, settings); // Act & Assert - var schemas = context.CreateSchemas(); + context.AddSchemasToDocument(openApiDocument); - schemas.TryGetValue(Constants.ReferenceCreateSchemaName, out OpenApiSchema refRequestBody); + openApiDocument.Components.Schemas.TryGetValue(Constants.ReferenceCreateSchemaName, out var refRequestBody); Assert.NotNull(refRequestBody); - Assert.Equal("object", refRequestBody.Type); + Assert.Equal(JsonSchemaType.Object, refRequestBody.Type); Assert.Equal(Constants.OdataId, refRequestBody.Properties.First().Key); - Assert.Equal("string", refRequestBody.Properties.First().Value.Type); - Assert.Equal("object", refRequestBody.AdditionalProperties.Type); + Assert.Equal(JsonSchemaType.String, refRequestBody.Properties.First().Value.Type); + Assert.Equal(JsonSchemaType.Object, refRequestBody.AdditionalProperties.Type); } [Theory] @@ -113,6 +121,7 @@ public void CreatesRefOdataAnnotationResponseSchemas(bool enableOdataAnnotationR { // Arrange IEdmModel model = EdmModelHelper.GraphBetaModel; + OpenApiDocument openApiDocument = new(); OpenApiConvertSettings settings = new() { EnableOperationId = true, @@ -123,13 +132,13 @@ public void CreatesRefOdataAnnotationResponseSchemas(bool enableOdataAnnotationR ODataContext context = new(model, settings); // Act - var schemas = context.CreateSchemas(); + context.AddSchemasToDocument(openApiDocument); // Assert - Assert.NotNull(schemas); - Assert.NotEmpty(schemas); - schemas.TryGetValue(Constants.BaseCollectionPaginationCountResponse, out OpenApiSchema refPaginationCount); - schemas.TryGetValue(Constants.BaseDeltaFunctionResponse, out OpenApiSchema refDeltaFunc); + Assert.NotNull(openApiDocument.Components.Schemas); + Assert.NotEmpty(openApiDocument.Components.Schemas); + openApiDocument.Components.Schemas.TryGetValue(Constants.BaseCollectionPaginationCountResponse, out var refPaginationCount); + openApiDocument.Components.Schemas.TryGetValue(Constants.BaseDeltaFunctionResponse, out var refDeltaFunc); if (enableOdataAnnotationRef) { Assert.NotNull(refPaginationCount); @@ -168,7 +177,7 @@ public void CreateStructuredTypeSchemaThrowArgumentNullEnumType() } [Fact] - public void CreateStructuredTypeSchemaForEntityTypeWithDiscriminatorValueEnabledReturnsCorrectSchema() + public async Task CreateStructuredTypeSchemaForEntityTypeWithDiscriminatorValueEnabledReturnsCorrectSchema() { // Arrange IEdmModel model = EdmModelHelper.GraphBetaModel; @@ -186,12 +195,12 @@ public void CreateStructuredTypeSchemaForEntityTypeWithDiscriminatorValueEnabled // Act var schema = context.CreateStructuredTypeSchema(entity); var derivedSchema = context.CreateStructuredTypeSchema(derivedEntity); - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + var json = JsonNode.Parse(await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); // Assert Assert.True(derivedSchema.AllOf.FirstOrDefault(x => derivedType.Equals(x.Title))?.Properties.ContainsKey("@odata.type")); Assert.NotNull(json); - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""allOf"": [ { ""$ref"": ""#/components/schemas/microsoft.graph.entity"" @@ -254,13 +263,13 @@ public void CreateStructuredTypeSchemaForEntityTypeWithDiscriminatorValueEnabled } } ] -}".ChangeLineBreaks(), json); +}"), json)); } [Theory] [InlineData(true)] [InlineData(false)] - public void CreateStructuredTypeSchemaForComplexTypeWithDiscriminatorValueEnabledReturnsCorrectSchema(bool enableTypeDisambiguationForOdataTypePropertyDefaultValue) + public async Task CreateStructuredTypeSchemaForComplexTypeWithDiscriminatorValueEnabledReturnsCorrectSchema(bool enableTypeDisambiguationForOdataTypePropertyDefaultValue) { // Arrange IEdmModel model = EdmModelHelper.GraphBetaModel; @@ -275,7 +284,7 @@ public void CreateStructuredTypeSchemaForComplexTypeWithDiscriminatorValueEnable // Act var schema = context.CreateStructuredTypeSchema(complex); - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.NotNull(json); @@ -307,7 +316,7 @@ public void CreateStructuredTypeSchemaForComplexTypeWithDiscriminatorValueEnable ""#microsoft.graph.singleUser"": ""#/components/schemas/microsoft.graph.singleUser"" } } -}".ChangeLineBreaks() +}" : @"{ ""title"": ""userSet"", @@ -337,13 +346,13 @@ public void CreateStructuredTypeSchemaForComplexTypeWithDiscriminatorValueEnable ""#microsoft.graph.singleUser"": ""#/components/schemas/microsoft.graph.singleUser"" } } -}".ChangeLineBreaks(); +}"; - Assert.Equal(expected, json); + Assert.True(JsonObject.DeepEquals(JsonObject.Parse(expected), JsonObject.Parse(json))); } [Fact] - public void CreateStructuredTypePropertiesSchemaWithCustomAttributeReturnsCorrectSchema() + public async Task CreateStructuredTypePropertiesSchemaWithCustomAttributeReturnsCorrectSchema() { // Arrange IEdmModel model = EdmModelHelper.GraphBetaModel; @@ -354,11 +363,11 @@ public void CreateStructuredTypePropertiesSchemaWithCustomAttributeReturnsCorrec // Act OpenApiSchema schema = context.CreateStructuredTypeSchema(entity); - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.NotNull(json); - Assert.Equal(@"{ + Assert.True(JsonObject.DeepEquals(JsonObject.Parse(@"{ ""allOf"": [ { ""$ref"": ""#/components/schemas/microsoft.graph.entity"" @@ -430,11 +439,11 @@ public void CreateStructuredTypePropertiesSchemaWithCustomAttributeReturnsCorrec } } ] -}".ChangeLineBreaks(), json); +}"), JsonObject.Parse(json))); } [Fact] - public void CreateComplexTypeWithoutBaseSchemaReturnCorrectSchema() + public async Task CreateComplexTypeWithoutBaseSchemaReturnCorrectSchema() { // Arrange IEdmModel model = EdmModelHelper.MultipleInheritanceEdmModel; @@ -450,7 +459,7 @@ public void CreateComplexTypeWithoutBaseSchemaReturnCorrectSchema() // Assert Assert.NotNull(schema); - Assert.Equal("object", schema.Type); + Assert.Equal(JsonSchemaType.Object, schema.Type); Assert.Null(schema.AllOf); Assert.NotNull(schema.Properties); @@ -460,11 +469,11 @@ public void CreateComplexTypeWithoutBaseSchemaReturnCorrectSchema() Assert.Equal("Address", schema.Title); // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.NotNull(json); - Assert.Equal(@"{ + Assert.True(JsonObject.DeepEquals(JsonObject.Parse(@"{ ""title"": ""Address"", ""type"": ""object"", ""properties"": { @@ -482,11 +491,11 @@ public void CreateComplexTypeWithoutBaseSchemaReturnCorrectSchema() ""Street"": ""string"", ""City"": ""string"" } -}".ChangeLineBreaks(), json); +}"), JsonObject.Parse(json))); } [Fact] - public void CreateComplexTypeWithBaseSchemaReturnCorrectSchema() + public async Task CreateComplexTypeWithBaseSchemaReturnCorrectSchema() { // Arrange IEdmModel model = EdmModelHelper.MultipleInheritanceEdmModel; @@ -503,7 +512,7 @@ public void CreateComplexTypeWithBaseSchemaReturnCorrectSchema() // Assert Assert.NotNull(schema); - Assert.True(String.IsNullOrEmpty(schema.Type)); + Assert.True(String.IsNullOrEmpty(schema.Type.ToIdentifier())); Assert.NotNull(schema.AllOf); Assert.Null(schema.AnyOf); @@ -511,13 +520,13 @@ public void CreateComplexTypeWithBaseSchemaReturnCorrectSchema() Assert.Null(schema.Properties); Assert.Equal(2, schema.AllOf.Count); - var baseSchema = schema.AllOf.First(); + var baseSchema = Assert.IsType(schema.AllOf.First()); Assert.NotNull(baseSchema.Reference); Assert.Equal(ReferenceType.Schema, baseSchema.Reference.Type); Assert.Equal("NS.LandPlant", baseSchema.Reference.Id); var declaredSchema = schema.AllOf.Last(); - Assert.Equal("object", declaredSchema.Type); + Assert.Equal(JsonSchemaType.Object, declaredSchema.Type); Assert.Null(declaredSchema.AllOf); Assert.Null(declaredSchema.AnyOf); Assert.Null(declaredSchema.OneOf); @@ -528,17 +537,17 @@ public void CreateComplexTypeWithBaseSchemaReturnCorrectSchema() Assert.Equal("Price", property.Key); Assert.Equal("decimal", property.Value.OneOf.FirstOrDefault(x => !string.IsNullOrEmpty(x.Format))?.Format); Assert.NotNull(property.Value.OneOf); - Assert.Equal(new string[] { "number", "string" }, property.Value.OneOf.Select(e => e.Type)); + Assert.Equal([JsonSchemaType.Number | JsonSchemaType.Null, JsonSchemaType.String | JsonSchemaType.Null], property.Value.OneOf.Select(e => e.Type)); Assert.Equal("Complex type 'Tree' description.", declaredSchema.Description); Assert.Equal("Tree", declaredSchema.Title); // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.NotNull(json); - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""allOf"": [ { ""$ref"": ""#/components/schemas/NS.LandPlant"" @@ -572,14 +581,13 @@ public void CreateComplexTypeWithBaseSchemaReturnCorrectSchema() ""@odata.type"": ""NS.Continent"" }, ""Name"": ""string"", - ""Price"": ""decimal"" + ""Price"": 0 } -}" -.ChangeLineBreaks(), json); +}"), JsonNode.Parse(json))); } [Fact] - public void CreateEntityTypeWithoutBaseSchemaReturnCorrectSchema() + public async Task CreateEntityTypeWithoutBaseSchemaReturnCorrectSchema() { // Arrange IEdmModel model = EdmModelHelper.MultipleInheritanceEdmModel; @@ -595,7 +603,7 @@ public void CreateEntityTypeWithoutBaseSchemaReturnCorrectSchema() // Assert Assert.NotNull(schema); - Assert.Equal("object", schema.Type); + Assert.Equal(JsonSchemaType.Object, schema.Type); Assert.Null(schema.AllOf); Assert.NotNull(schema.Properties); @@ -605,11 +613,11 @@ public void CreateEntityTypeWithoutBaseSchemaReturnCorrectSchema() Assert.Equal("Zoo", schema.Title); // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.NotNull(json); - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""title"": ""Zoo"", ""type"": ""object"", ""properties"": { @@ -629,18 +637,18 @@ public void CreateEntityTypeWithoutBaseSchemaReturnCorrectSchema() }, ""description"": ""Entity type 'Zoo' description."", ""example"": { - ""Id"": ""number (identifier)"", + ""Id"": 0, ""Creatures"": [ { ""@odata.type"": ""NS.Creature"" } ] } -}".ChangeLineBreaks(), json); +}"), JsonNode.Parse(json))); } [Fact] - public void CreateEntityTypeWithBaseSchemaReturnCorrectSchema() + public async Task CreateEntityTypeWithBaseSchemaReturnCorrectSchema() { // Arrange IEdmModel model = EdmModelHelper.MultipleInheritanceEdmModel; @@ -656,7 +664,7 @@ public void CreateEntityTypeWithBaseSchemaReturnCorrectSchema() // Assert Assert.NotNull(schema); - Assert.True(String.IsNullOrEmpty(schema.Type)); + Assert.True(String.IsNullOrEmpty(schema.Type.ToIdentifier())); Assert.NotNull(schema.AllOf); Assert.Null(schema.AnyOf); @@ -664,13 +672,13 @@ public void CreateEntityTypeWithBaseSchemaReturnCorrectSchema() Assert.Null(schema.Properties); Assert.Equal(2, schema.AllOf.Count); - var baseSchema = schema.AllOf.First(); + var baseSchema = Assert.IsType(schema.AllOf.First()); Assert.NotNull(baseSchema.Reference); Assert.Equal(ReferenceType.Schema, baseSchema.Reference.Type); Assert.Equal("NS.Animal", baseSchema.Reference.Id); var declaredSchema = schema.AllOf.Last(); - Assert.Equal("object", declaredSchema.Type); + Assert.Equal(JsonSchemaType.Object, declaredSchema.Type); Assert.Null(declaredSchema.AllOf); Assert.Null(declaredSchema.AnyOf); Assert.Null(declaredSchema.OneOf); @@ -679,18 +687,18 @@ public void CreateEntityTypeWithBaseSchemaReturnCorrectSchema() Assert.Single(declaredSchema.Properties); var property = Assert.Single(declaredSchema.Properties); Assert.Equal("Name", property.Key); - Assert.Equal("string", property.Value.Type); + Assert.Equal(JsonSchemaType.String, property.Value.Type); Assert.Null(property.Value.OneOf); Assert.Equal("Entity type 'Human' description.", declaredSchema.Description); Assert.Equal("Human", declaredSchema.Title); // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); _output.WriteLine(json); // Assert Assert.NotNull(json); - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""allOf"": [ { ""$ref"": ""#/components/schemas/NS.Animal"" @@ -707,12 +715,11 @@ public void CreateEntityTypeWithBaseSchemaReturnCorrectSchema() } ], ""example"": { - ""Id"": ""number (identifier)"", - ""Age"": ""number"", + ""Id"": 0, + ""Age"": 0, ""Name"": ""string"" } -}" -.ChangeLineBreaks(), json); +}"), JsonNode.Parse(json))); } [Fact] @@ -732,7 +739,7 @@ public void CreateEntityTypeWithCrossReferenceBaseSchemaReturnCorrectSchema() // Assert Assert.NotNull(schema); - Assert.True(String.IsNullOrEmpty(schema.Type)); + Assert.True(string.IsNullOrEmpty(schema.Type.ToIdentifier())); Assert.NotNull(schema.AllOf); Assert.Null(schema.AnyOf); @@ -740,13 +747,13 @@ public void CreateEntityTypeWithCrossReferenceBaseSchemaReturnCorrectSchema() Assert.Null(schema.Properties); Assert.Equal(2, schema.AllOf.Count); - var baseSchema = schema.AllOf.First(); + var baseSchema = Assert.IsType(schema.AllOf.First()); Assert.NotNull(baseSchema.Reference); Assert.Equal(ReferenceType.Schema, baseSchema.Reference.Type); Assert.Equal("SubNS.CustomerBase", baseSchema.Reference.Id); var declaredSchema = schema.AllOf.Last(); - Assert.Equal("object", declaredSchema.Type); + Assert.Equal(JsonSchemaType.Object, declaredSchema.Type); Assert.Null(declaredSchema.AllOf); Assert.Null(declaredSchema.AnyOf); Assert.Null(declaredSchema.OneOf); @@ -755,7 +762,7 @@ public void CreateEntityTypeWithCrossReferenceBaseSchemaReturnCorrectSchema() Assert.Single(declaredSchema.Properties); var property = Assert.Single(declaredSchema.Properties); Assert.Equal("Extra", property.Key); - Assert.Equal("number", property.Value.Type); + Assert.Equal(JsonSchemaType.Number, property.Value.Type); Assert.Null(property.Value.OneOf); Assert.Equal("Customer", declaredSchema.Title); @@ -764,7 +771,7 @@ public void CreateEntityTypeWithCrossReferenceBaseSchemaReturnCorrectSchema() [Theory] [InlineData(true)] [InlineData(false)] - public void CreateStructuredTypeSchemaForEntityTypeWithDefaultValueForOdataTypePropertyEnabledOrDisabledReturnsCorrectSchema(bool enableTypeDisambiguationForOdataTypePropertyDefaultValue) + public async Task CreateStructuredTypeSchemaForEntityTypeWithDefaultValueForOdataTypePropertyEnabledOrDisabledReturnsCorrectSchema(bool enableTypeDisambiguationForOdataTypePropertyDefaultValue) { // Arrange IEdmModel model = EdmModelHelper.GraphBetaModel; @@ -779,7 +786,7 @@ public void CreateStructuredTypeSchemaForEntityTypeWithDefaultValueForOdataTypeP // Act var schema = context.CreateStructuredTypeSchema(entityType); - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.NotNull(json); @@ -810,7 +817,7 @@ public void CreateEnumTypeSchemaThrowArgumentNullEnumType() } [Fact] - public void CreateEnumTypeSchemaReturnCorrectSchema() + public async Task CreateEnumTypeSchemaReturnCorrectSchema() { // Arrange IEdmModel model = EdmModelHelper.BasicEdmModel; @@ -823,20 +830,20 @@ public void CreateEnumTypeSchemaReturnCorrectSchema() // Assert Assert.NotNull(schema); - Assert.Equal("string", schema.Type); + Assert.Equal(JsonSchemaType.String, schema.Type); Assert.Equal("Enum type 'Color' description.", schema.Description); Assert.Equal("Color", schema.Title); Assert.NotNull(schema.Enum); Assert.Equal(2, schema.Enum.Count); - Assert.Equal(new string[] { "Blue", "White" }, schema.Enum.Select(e => ((OpenApiString)e).Value)); + Assert.Equal([ "Blue", "White" ], schema.Enum.Select(e => e.ToString())); // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.NotNull(json); - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""title"": ""Color"", ""enum"": [ ""Blue"", @@ -844,7 +851,7 @@ public void CreateEnumTypeSchemaReturnCorrectSchema() ], ""type"": ""string"", ""description"": ""Enum type 'Color' description."" -}".ChangeLineBreaks(), json); +}"), JsonNode.Parse(json))); } #endregion @@ -852,7 +859,7 @@ public void CreateEnumTypeSchemaReturnCorrectSchema() [Theory] [InlineData(OpenApiSpecVersion.OpenApi2_0)] [InlineData(OpenApiSpecVersion.OpenApi3_0)] - public void CreatePropertySchemaForNonNullableEnumPropertyReturnSchema(OpenApiSpecVersion specVersion) + public async Task CreatePropertySchemaForNonNullableEnumPropertyReturnSchema(OpenApiSpecVersion specVersion) { // Arrange IEdmModel model = EdmModelHelper.BasicEdmModel; @@ -867,28 +874,29 @@ public void CreatePropertySchemaForNonNullableEnumPropertyReturnSchema(OpenApiSp // Act var schema = context.CreatePropertySchema(property); Assert.NotNull(schema); - string json = schema.SerializeAsJson(specVersion); + string json = await schema.SerializeAsJsonAsync(specVersion); // Assert if (specVersion == OpenApiSpecVersion.OpenApi2_0) { - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""$ref"": ""#/definitions/DefaultNs.Color"" -}".ChangeLineBreaks(), json); +}"), JsonNode.Parse(json))); } else { - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""$ref"": ""#/components/schemas/DefaultNs.Color"" -}".ChangeLineBreaks(), json); +}"), JsonNode.Parse(json))); } } [Theory] + [InlineData(OpenApiSpecVersion.OpenApi3_1)] [InlineData(OpenApiSpecVersion.OpenApi3_0)] [InlineData(OpenApiSpecVersion.OpenApi2_0)] - public void CreatePropertySchemaForNullableEnumPropertyReturnSchema(OpenApiSpecVersion specVersion) + public async Task CreatePropertySchemaForNullableEnumPropertyReturnSchema(OpenApiSpecVersion specVersion) { // Arrange IEdmModel model = EdmModelHelper.BasicEdmModel; @@ -897,43 +905,61 @@ public void CreatePropertySchemaForNullableEnumPropertyReturnSchema(OpenApiSpecV context.Settings.OpenApiSpecVersion = specVersion; IEdmEnumType enumType = model.SchemaElements.OfType().First(e => e.Name == "Color"); - EdmEntityType entitType = new EdmEntityType("NS", "Entity"); - IEdmProperty property = new EdmStructuralProperty(entitType, "ColorEnumValue", new EdmEnumTypeReference(enumType, true), "yellow"); + EdmEntityType entityType = new EdmEntityType("NS", "Entity"); + IEdmProperty property = new EdmStructuralProperty(entityType, "ColorEnumValue", new EdmEnumTypeReference(enumType, true), "yellow"); // Act var schema = context.CreatePropertySchema(property); Assert.NotNull(schema); - string json = schema.SerializeAsJson(specVersion); + string json = await schema.SerializeAsJsonAsync(specVersion); _output.WriteLine(json); - // Assert - if (specVersion == OpenApiSpecVersion.OpenApi2_0) - { - Assert.Equal(@"{ - ""$ref"": ""#/definitions/DefaultNs.Color"" -}".ChangeLineBreaks(), json); - } - else - { - Assert.Equal(@"{ - ""anyOf"": [ - { - ""$ref"": ""#/components/schemas/DefaultNs.Color"" - }, - { - ""type"": ""object"", - ""nullable"": true - } - ], - ""default"": ""yellow"" -}".ChangeLineBreaks(), json); - } + var expected = JsonNode.Parse(specVersion switch { + OpenApiSpecVersion.OpenApi2_0 => + """ + { + "$ref": "#/definitions/DefaultNs.Color" + } + """, + OpenApiSpecVersion.OpenApi3_0 => + """ + { + "anyOf": [ + { + "$ref": "#/components/schemas/DefaultNs.Color" + }, + { + "type": "object", + "nullable": true + } + ], + "default": "yellow" + } + """, + OpenApiSpecVersion.OpenApi3_1 => + """ + { + "anyOf": [ + { + "$ref": "#/components/schemas/DefaultNs.Color" + }, + { + "type": "null" + } + ], + "default": "yellow" + } + """, + _ => throw new NotSupportedException() + }); + + Assert.True(JsonNode.DeepEquals(expected, JsonNode.Parse(json))); } [Theory] [InlineData(OpenApiSpecVersion.OpenApi3_0)] [InlineData(OpenApiSpecVersion.OpenApi2_0)] - public void CreatePropertySchemaWithComputedAnnotationReturnsCorrectSchema(OpenApiSpecVersion specVersion) + public async Task CreatePropertySchemaWithComputedAnnotationReturnsCorrectSchema(OpenApiSpecVersion specVersion) { // Arrange IEdmModel model = EdmModelHelper.GraphBetaModel; @@ -947,28 +973,28 @@ public void CreatePropertySchemaWithComputedAnnotationReturnsCorrectSchema(OpenA // Act var schema = context.CreatePropertySchema(property); Assert.NotNull(schema); - string json = schema.SerializeAsJson(specVersion); + var json = JsonNode.Parse(await schema.SerializeAsJsonAsync(specVersion)); // Assert if (specVersion == OpenApiSpecVersion.OpenApi2_0) { - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""format"": ""duration"", ""description"": ""The length of the appointment, denoted in ISO8601 format."", ""pattern"": ""^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$"", ""type"": ""string"", ""readOnly"": true -}".ChangeLineBreaks(), json); +}"), json)); } else { - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""pattern"": ""^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$"", ""type"": ""string"", ""description"": ""The length of the appointment, denoted in ISO8601 format."", ""format"": ""duration"", ""readOnly"": true -}".ChangeLineBreaks(), json); +}"), json)); } } #endregion @@ -1010,7 +1036,7 @@ public void GetDerivedTypesReferenceSchemaReturnsNullSchemaIfNotExist() #endregion [Fact] - public void NonNullableBooleanPropertyWithDefaultValueWorks() + public async Task NonNullableBooleanPropertyWithDefaultValueWorks() { // Arrange ODataContext context = new ODataContext(EdmModelHelper.BasicEdmModel); @@ -1023,17 +1049,17 @@ public void NonNullableBooleanPropertyWithDefaultValueWorks() // Assert Assert.NotNull(schema); - Assert.Equal("boolean", schema.Type); + Assert.Equal(JsonSchemaType.Boolean, schema.Type); - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - Assert.Equal(@"{ + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""type"": ""boolean"", ""default"": false -}".ChangeLineBreaks(), json); +}"), JsonNode.Parse(json))); } [Fact] - public void NonNullableBinaryPropertyWithBothMaxLengthAndDefaultValueWorks() + public async Task NonNullableBinaryPropertyWithBothMaxLengthAndDefaultValueWorks() { // Arrange ODataContext context = new ODataContext(EdmModelHelper.BasicEdmModel); @@ -1048,19 +1074,19 @@ public void NonNullableBinaryPropertyWithBothMaxLengthAndDefaultValueWorks() // Assert Assert.NotNull(schema); - Assert.Equal("string", schema.Type); + Assert.Equal(JsonSchemaType.String, schema.Type); - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - Assert.Equal(@"{ + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""maxLength"": 44, ""type"": ""string"", ""format"": ""base64url"", ""default"": ""T0RhdGE"" -}".ChangeLineBreaks(), json); +}"), JsonNode.Parse(json))); } [Fact] - public void NonNullableIntegerPropertyWithDefaultValueWorks() + public async Task NonNullableIntegerPropertyWithDefaultValueWorks() { // Arrange ODataContext context = new ODataContext(EdmModelHelper.BasicEdmModel); @@ -1073,20 +1099,20 @@ public void NonNullableIntegerPropertyWithDefaultValueWorks() // Assert Assert.NotNull(schema); - Assert.Equal("number", schema.Type); + Assert.Equal(JsonSchemaType.Number, schema.Type); - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - Assert.Equal(@"{ + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""maximum"": 2147483647, ""minimum"": -2147483648, ""type"": ""number"", ""format"": ""int32"", ""default"": -128 -}".ChangeLineBreaks(), json); +}"), JsonNode.Parse(json))); } [Fact] - public void NonNullableDoublePropertyWithDefaultStringWorks() + public async Task NonNullableDoublePropertyWithDefaultStringWorks() { // Arrange ODataContext context = new ODataContext(EdmModelHelper.BasicEdmModel); @@ -1101,9 +1127,9 @@ public void NonNullableDoublePropertyWithDefaultStringWorks() Assert.NotNull(schema); Assert.Null(schema.Type); - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); - Assert.Equal(@"{ + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(@"{ ""oneOf"": [ { ""type"": ""number"", @@ -1119,12 +1145,12 @@ public void NonNullableDoublePropertyWithDefaultStringWorks() } ], ""default"": ""3.1415926535897931"" -}".ChangeLineBreaks(), json); +}"), JsonNode.Parse(json))); } [Fact] - public void NonNullableUntypedPropertyWorks() + public async Task NonNullableUntypedPropertyWorks() { ODataContext context = new ODataContext( EdmModelHelper.BasicEdmModel, @@ -1132,9 +1158,9 @@ public void NonNullableUntypedPropertyWorks() { ShowSchemaExamples = true }); - EdmEntityType entitType = new EdmEntityType("NS", "Entity"); + EdmEntityType entityType = new EdmEntityType("NS", "Entity"); IEdmStructuralProperty property = new EdmStructuralProperty( - entitType, "UntypedProperty", EdmCoreModel.Instance.GetUntyped()); + entityType, "UntypedProperty", EdmCoreModel.Instance.GetUntyped()); // Act var schema = context.CreatePropertySchema(property); @@ -1143,7 +1169,7 @@ public void NonNullableUntypedPropertyWorks() Assert.NotNull(schema); Assert.Null(schema.Type); - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Equal("{ }", json); } diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiSecuritySchemeGeneratorTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiSecuritySchemeGeneratorTests.cs index 2e7813fc8..6686ea29a 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiSecuritySchemeGeneratorTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiSecuritySchemeGeneratorTests.cs @@ -14,19 +14,23 @@ using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Generator; using Xunit; +using System.Text.Json.Nodes; +using System.Threading.Tasks; namespace Microsoft.OpenApi.OData.Tests { public class OpenApiSecuritySchemeGeneratorTest { [Fact] - public void CreateSecuritySchemesWorksForAuthorizationsOnEntitySetContainer() + public async Task CreateSecuritySchemesWorksForAuthorizationsOnEntitySetContainer() { // Arrange ODataContext context = new ODataContext(GetEdmModel()); + OpenApiDocument openApiDocument = new(); // Act - var schemes = context.CreateSecuritySchemes(); + context.AddSecuritySchemesToDocument(openApiDocument); + var schemes = openApiDocument.Components.SecuritySchemes; // Assert Assert.NotNull(schemes); @@ -39,8 +43,8 @@ public void CreateSecuritySchemesWorksForAuthorizationsOnEntitySetContainer() Assert.Equal("http://TokenUrl", scheme.Flows.ClientCredentials.TokenUrl.OriginalString); Assert.Equal("http://RefreshUrl", scheme.Flows.ClientCredentials.RefreshUrl.OriginalString); Assert.Equal("OAuth2ClientCredentials Description", scheme.Description); - string json = scheme.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - Assert.Equal(@"{ + string json = await scheme.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); + var expectedJson = JsonNode.Parse(@"{ ""type"": ""oauth2"", ""description"": ""OAuth2ClientCredentials Description"", ""flows"": { @@ -52,17 +56,19 @@ public void CreateSecuritySchemesWorksForAuthorizationsOnEntitySetContainer() } } } -}".ChangeLineBreaks(), json); +}"); + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(json), expectedJson)); scheme = schemes["Http Name"]; Assert.Equal(SecuritySchemeType.Http, scheme.Type); - json = scheme.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); - Assert.Equal(@"{ + json = await scheme.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); + expectedJson = JsonNode.Parse(@"{ ""type"": ""http"", ""description"": ""Http Description"", ""scheme"": ""Http Scheme"", ""bearerFormat"": ""Http BearerFormat"" -}".ChangeLineBreaks(), json); +}"); + Assert.True(JsonNode.DeepEquals(JsonNode.Parse(json), expectedJson)); } private static IEdmModel GetEdmModel() diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiSpatialTypeSchemaGeneratorTest.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiSpatialTypeSchemaGeneratorTest.cs index a036b1ca6..70772d6db 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiSpatialTypeSchemaGeneratorTest.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiSpatialTypeSchemaGeneratorTest.cs @@ -5,6 +5,7 @@ using System; using System.Linq; +using System.Threading.Tasks; using Microsoft.OData.Edm; using Microsoft.OpenApi.Extensions; using Microsoft.OpenApi.OData.Edm; @@ -22,7 +23,7 @@ public void CreateSpatialSchemasThrowArgumentNullContext() ODataContext context = null; // Act & Assert - Assert.Throws("context", () => context.CreateSpatialSchemas()); + Assert.Throws("context", context.CreateSpatialSchemas); } [Fact] @@ -82,14 +83,14 @@ public void CreateSpatialSchemasReturnFullSpatialSchemasForModelWithEdmSpatialTy } [Fact] - public void CreateEdmGeographySchemaSerializeAsJsonWorks() + public async Task CreateEdmGeographySchemaSerializeAsJsonWorks() { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateEdmGeographySchema(); Assert.NotNull(schema); // guard // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal(@"{ @@ -98,14 +99,14 @@ public void CreateEdmGeographySchemaSerializeAsJsonWorks() } [Fact] - public void CreateEdmGeographyPointSchemaSerializeAsJsonWorks() + public async Task CreateEdmGeographyPointSchemaSerializeAsJsonWorks() { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateEdmGeographyPointSchema(); Assert.NotNull(schema); // guard // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal(@"{ @@ -114,14 +115,14 @@ public void CreateEdmGeographyPointSchemaSerializeAsJsonWorks() } [Fact] - public void CreateEdmGeographyLineStringSchemaSerializeAsJsonWorks() + public async Task CreateEdmGeographyLineStringSchemaSerializeAsJsonWorks() { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateEdmGeographyLineStringSchema(); Assert.NotNull(schema); // guard // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal(@"{ @@ -130,14 +131,14 @@ public void CreateEdmGeographyLineStringSchemaSerializeAsJsonWorks() } [Fact] - public void CreateEdmGeographyPolygonSchemaSerializeAsJsonWorks() + public async Task CreateEdmGeographyPolygonSchemaSerializeAsJsonWorks() { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateEdmGeographyPolygonSchema(); Assert.NotNull(schema); // guard // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal(@"{ @@ -146,14 +147,14 @@ public void CreateEdmGeographyPolygonSchemaSerializeAsJsonWorks() } [Fact] - public void CreateEdmGeographyMultiPointSchemaSerializeAsJsonWorks() + public async Task CreateEdmGeographyMultiPointSchemaSerializeAsJsonWorks() { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateEdmGeographyMultiPointSchema(); Assert.NotNull(schema); // guard // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal(@"{ @@ -162,14 +163,14 @@ public void CreateEdmGeographyMultiPointSchemaSerializeAsJsonWorks() } [Fact] - public void CreateEdmGeographyMultiLineStringSchemaSerializeAsJsonWorks() + public async Task CreateEdmGeographyMultiLineStringSchemaSerializeAsJsonWorks() { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateEdmGeographyMultiLineStringSchema(); Assert.NotNull(schema); // guard // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal(@"{ @@ -178,14 +179,14 @@ public void CreateEdmGeographyMultiLineStringSchemaSerializeAsJsonWorks() } [Fact] - public void CreateEdmGeographyMultiPolygonSchemaSerializeAsJsonWorks() + public async Task CreateEdmGeographyMultiPolygonSchemaSerializeAsJsonWorks() { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateEdmGeographyMultiPolygonSchema(); Assert.NotNull(schema); // guard // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal(@"{ @@ -194,14 +195,14 @@ public void CreateEdmGeographyMultiPolygonSchemaSerializeAsJsonWorks() } [Fact] - public void CreateEdmGeographyCollectionSchemaSerializeAsJsonWorks() + public async Task CreateEdmGeographyCollectionSchemaSerializeAsJsonWorks() { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateEdmGeographyCollectionSchema(); Assert.NotNull(schema); // guard // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal(@"{ @@ -210,14 +211,14 @@ public void CreateEdmGeographyCollectionSchemaSerializeAsJsonWorks() } [Fact] - public void CreateEdmGeometrySchemaSerializeAsJsonWorks() + public async Task CreateEdmGeometrySchemaSerializeAsJsonWorks() { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateEdmGeometrySchema(); Assert.NotNull(schema); // guard // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal(@"{ @@ -249,14 +250,14 @@ public void CreateEdmGeometrySchemaSerializeAsJsonWorks() } [Fact] - public void CreateEdmGeometryPointSchemaSerializeAsYamlWorks() // test yaml + public async Task CreateEdmGeometryPointSchemaSerializeAsYamlWorks() // test yaml { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateEdmGeometryPointSchema(); Assert.NotNull(schema); // guard // Act - string yaml = schema.SerializeAsYaml(OpenApiSpecVersion.OpenApi3_0); + string yaml = await schema.SerializeAsYamlAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal( @@ -275,14 +276,14 @@ public void CreateEdmGeometryPointSchemaSerializeAsYamlWorks() // test yaml } [Fact] - public void CreateEdmGeometryLineStringSchemaSerializeAsJsonWorks() + public async Task CreateEdmGeometryLineStringSchemaSerializeAsJsonWorks() { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateEdmGeometryLineStringSchema(); Assert.NotNull(schema); // guard // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal(@"{ @@ -309,14 +310,14 @@ public void CreateEdmGeometryLineStringSchemaSerializeAsJsonWorks() } [Fact] - public void CreateEdmGeometryPolygonSchemaSerializeAsJsonWorks() + public async Task CreateEdmGeometryPolygonSchemaSerializeAsJsonWorks() { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateEdmGeometryPolygonSchema(); Assert.NotNull(schema); // guard // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal(@"{ @@ -346,14 +347,14 @@ public void CreateEdmGeometryPolygonSchemaSerializeAsJsonWorks() } [Fact] - public void CreateEdmGeometryMultiPointSchemaSerializeAsJsonWorks() + public async Task CreateEdmGeometryMultiPointSchemaSerializeAsJsonWorks() { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateEdmGeometryMultiPointSchema(); Assert.NotNull(schema); // guard // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal(@"{ @@ -379,14 +380,14 @@ public void CreateEdmGeometryMultiPointSchemaSerializeAsJsonWorks() } [Fact] - public void CreateEdmGeometryMultiLineStringSchemaSerializeAsYamlWorks() // Test yaml + public async Task CreateEdmGeometryMultiLineStringSchemaSerializeAsYamlWorks() // Test yaml { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateEdmGeometryMultiLineStringSchema(); Assert.NotNull(schema); // guard // Act - string yaml = schema.SerializeAsYaml(OpenApiSpecVersion.OpenApi3_0); + string yaml = await schema.SerializeAsYamlAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal(@"required: @@ -407,14 +408,14 @@ public void CreateEdmGeometryMultiLineStringSchemaSerializeAsYamlWorks() // Test } [Fact] - public void CreateEdmGeometryMultiPolygonSchemaSerializeAsJsonWorks() + public async Task CreateEdmGeometryMultiPolygonSchemaSerializeAsJsonWorks() { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateEdmGeometryMultiPolygonSchema(); Assert.NotNull(schema); // guard // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal(@"{ @@ -447,14 +448,14 @@ public void CreateEdmGeometryMultiPolygonSchemaSerializeAsJsonWorks() } [Fact] - public void CreateEdmGeometryCollectionSchemaSerializeAsJsonWorks() + public async Task CreateEdmGeometryCollectionSchemaSerializeAsJsonWorks() { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateEdmGeometryCollectionSchema(); Assert.NotNull(schema); // guard // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal(@"{ @@ -480,14 +481,14 @@ public void CreateEdmGeometryCollectionSchemaSerializeAsJsonWorks() } [Fact] - public void CreateGeoJSON_PositionSchemaSerializeAsJsonWorks() + public async Task CreateGeoJSON_PositionSchemaSerializeAsJsonWorks() { // Arrange var schema = OpenApiSpatialTypeSchemaGenerator.CreateGeoJsonPointSchema(); Assert.NotNull(schema); // guard // Act - string json = schema.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await schema.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); // Assert Assert.Equal(@"{ diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Microsoft.OpenAPI.OData.Reader.Tests.csproj b/test/Microsoft.OpenAPI.OData.Reader.Tests/Microsoft.OpenAPI.OData.Reader.Tests.csproj index af5b65e22..c9fb7ef59 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Microsoft.OpenAPI.OData.Reader.Tests.csproj +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Microsoft.OpenAPI.OData.Reader.Tests.csproj @@ -15,23 +15,31 @@ + + + + + + + + @@ -42,22 +50,30 @@ + + + + + + + + @@ -73,7 +89,8 @@ all - + + all diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/ComplexPropertyPutOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/ComplexPropertyPutOperationHandlerTests.cs index bde8ab378..84f7e9fa2 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/ComplexPropertyPutOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/ComplexPropertyPutOperationHandlerTests.cs @@ -5,6 +5,7 @@ using System.Linq; using Microsoft.OData.Edm; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; using Xunit; @@ -102,9 +103,9 @@ public void CreateComplexPropertyPutOperationReturnsCorrectOperationForCollectio var schema = put.RequestBody?.Content.FirstOrDefault().Value?.Schema; Assert.NotNull(schema); - Assert.Equal("object", schema.Type); + Assert.Equal(JsonSchemaType.Object, schema.Type); Assert.Equal("value", schema.Properties.FirstOrDefault().Key); - Assert.Equal("array", schema.Properties.FirstOrDefault().Value.Type); + Assert.Equal(JsonSchemaType.Array, schema.Properties.FirstOrDefault().Value.Type); if (enableOperationId) { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/DollarCountGetOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/DollarCountGetOperationHandlerTests.cs index f2ca5ddf9..b7ba20554 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/DollarCountGetOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/DollarCountGetOperationHandlerTests.cs @@ -14,7 +14,14 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class DollarCountGetOperationHandlerTests { - private readonly DollarCountGetOperationHandler _operationHandler = new(); + private readonly OpenApiDocument openApiDocument = new(); + private static DollarCountGetOperationHandler _operationHandler => new(); + public DollarCountGetOperationHandlerTests() + { + openApiDocument.AddComponent("search", new OpenApiParameter {Name = "search", In = ParameterLocation.Query, Schema = new OpenApiSchema {Type = JsonSchemaType.String}}); + openApiDocument.AddComponent("filter", new OpenApiParameter {Name = "filter", In = ParameterLocation.Query, Schema = new OpenApiSchema {Type = JsonSchemaType.String}}); + openApiDocument.AddComponent("ConsistencyLevel", new OpenApiParameter {Name = "ConsistencyLevel", In = ParameterLocation.Query, Schema = new OpenApiSchema {Type = JsonSchemaType.String}}); + } [Theory] [InlineData(true, true)] @@ -50,8 +57,8 @@ public void CreateDollarCountGetOperationForNavigationPropertyReturnsCorrectOper Assert.NotNull(operation.Parameters); Assert.Equal(4, operation.Parameters.Count); - Assert.Equal(new[] { "UserName", "ConsistencyLevel", "search", "filter"}, - operation.Parameters.Select(x => x.Name ?? x.Reference.Id).ToList()); + Assert.Equivalent(new[] { "UserName", "ConsistencyLevel", "search", "filter"}, + operation.Parameters.Select(x => x.Name).ToList()); Assert.Null(operation.RequestBody); @@ -91,8 +98,8 @@ public void CreateDollarCountGetOperationForNavigationPropertyWithTargetPathAnno // Assert Assert.NotNull(operation.Parameters); Assert.Equal(4, operation.Parameters.Count); - Assert.Equal(new[] { "id", "ConsistencyLevel", "search", "filter" }, - operation.Parameters.Select(x => x.Name ?? x.Reference.Id).ToList()); + Assert.Equivalent(new[] { "id", "ConsistencyLevel", "search", "filter" }, + operation.Parameters.Select(x => x.Name).ToList()); Assert.Equal("Get the number of the resource", operation.Summary); @@ -130,8 +137,8 @@ public void CreateDollarCountGetOperationForNavigationSourceReturnsCorrectOperat Assert.Equal("Get the number of the resource", operation.Summary); Assert.NotNull(operation.Parameters); Assert.Equal(3, operation.Parameters.Count); - Assert.Equal(new[] { "ConsistencyLevel", "search", "filter" }, - operation.Parameters.Select(x => x.Name ?? x.Reference.Id).ToList()); + Assert.Equivalent(new[] { "ConsistencyLevel", "search", "filter" }, + operation.Parameters.Select(x => x.Name).ToList()); Assert.Null(operation.RequestBody); Assert.Equal(2, operation.Responses.Count); @@ -168,8 +175,8 @@ public void CreateDollarCountGetOperationForNavigationSourceWithTargetPathAnnota Assert.Equal("Get the number of the resource", operation.Summary); Assert.NotNull(operation.Parameters); Assert.Equal(3, operation.Parameters.Count); - Assert.Equal(new[] { "ConsistencyLevel", "search", "filter" }, - operation.Parameters.Select(x => x.Name ?? x.Reference.Id).ToList()); + Assert.Equivalent(new[] { "ConsistencyLevel", "search", "filter" }, + operation.Parameters.Select(x => x.Name).ToList()); Assert.Null(operation.RequestBody); Assert.Equal(2, operation.Responses.Count); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmActionImportOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmActionImportOperationHandlerTests.cs index acb5f3a72..9fa4495e5 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmActionImportOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmActionImportOperationHandlerTests.cs @@ -4,10 +4,12 @@ // ------------------------------------------------------------ using System.Linq; +using System.Threading.Tasks; using System.Xml.Linq; using Microsoft.OData.Edm; using Microsoft.OData.Edm.Csdl; using Microsoft.OpenApi.Extensions; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; using Microsoft.OpenApi.OData.Tests; using Xunit; @@ -16,7 +18,17 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class EdmActionImportOperationHandlerTests { - private EdmActionImportOperationHandler _operationHandler = new EdmActionImportOperationHandler(); + private readonly OpenApiDocument openApiDocument = new(); + private static EdmActionImportOperationHandler _operationHandler => new(); + public EdmActionImportOperationHandlerTests() + { + openApiDocument.AddComponent("Delegated (work or school account)", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + openApiDocument.AddComponent("Application", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + } [Fact] public void CreateOperationForEdmActionImportReturnsCorrectOperation() @@ -92,7 +104,7 @@ public void CreateOperationForEdmActionImportReturnsCorrectOperationId(bool enab [Theory] [InlineData(true)] [InlineData(false)] - public void OperationRestrictionsTermWorksToCreateOperationForEdmActionImport(bool enableAnnotation) + public async Task OperationRestrictionsTermWorksToCreateOperationForEdmActionImport(bool enableAnnotation) { string template = @" @@ -191,7 +203,7 @@ public void OperationRestrictionsTermWorksToCreateOperationForEdmActionImport(bo { Assert.Equal(2, operation.Security.Count); - string json = operation.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await operation.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Contains(@" ""security"": [ { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmActionOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmActionOperationHandlerTests.cs index 42557659b..b16a58f9f 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmActionOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmActionOperationHandlerTests.cs @@ -4,11 +4,16 @@ // ------------------------------------------------------------ using System.Linq; +using System.Reflection.Metadata; +using System.Threading.Tasks; using System.Xml.Linq; using Microsoft.OData.Edm; using Microsoft.OData.Edm.Csdl; using Microsoft.OpenApi.Extensions; +using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Tests; using Xunit; @@ -16,7 +21,17 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class EdmActionOperationHandlerTests { - private EdmActionOperationHandler _operationHandler = new EdmActionOperationHandler(); + public EdmActionOperationHandlerTests() + { + _openApiDocument.AddComponent("Delegated (work or school account)", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + _openApiDocument.AddComponent("Application", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + } + private readonly OpenApiDocument _openApiDocument = new(); + private static EdmActionOperationHandler _operationHandler => new(); [Fact] public void CreateOperationForEdmActionReturnsCorrectOperation() @@ -33,6 +48,7 @@ public void CreateOperationForEdmActionReturnsCorrectOperation() // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -46,11 +62,8 @@ public void CreateOperationForEdmActionReturnsCorrectOperation() Assert.Single(operation.Parameters); Assert.Equal(new string[] { "UserName" }, operation.Parameters.Select(p => p.Name)); - Assert.NotNull(operation.RequestBody); - if (operation.RequestBody.Reference != null) - Assert.Equal("ShareTripRequestBody", operation.RequestBody.Reference.Id); - else - Assert.Equal("Action parameters", operation.RequestBody.Description); + var requestBodyReference = Assert.IsType(operation.RequestBody); + Assert.Equal("ShareTripRequestBody", requestBodyReference.Reference.Id); Assert.Equal(2, operation.Responses.Count); Assert.Equal(new string[] { "204", "default" }, operation.Responses.Select(e => e.Key)); @@ -73,6 +86,7 @@ public void CreateOperationForEdmActionReturnsCorrectOperationHierarchicalClass( // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -192,7 +206,7 @@ public void CreateOperationForEdmActionWithTypeCastReturnsCorrectOperationId(boo [Theory] [InlineData(true)] [InlineData(false)] - public void OperationRestrictionsTermWorksToCreateOperationForEdmAction(bool enableAnnotation) + public async Task OperationRestrictionsTermWorksToCreateOperationForEdmAction(bool enableAnnotation) { string template = @" @@ -276,7 +290,7 @@ public void OperationRestrictionsTermWorksToCreateOperationForEdmAction(bool ena { Assert.Equal(2, operation.Security.Count); - string json = operation.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await operation.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Contains(@" ""security"": [ { @@ -372,8 +386,8 @@ public void CreateOperationForEdmActionWithCollectionReturnTypeHasResponseWithNe // Assert if (enablePagination && enableOdataAnnotationRef) { - var reference = operation.Responses.First().Value.Content.First().Value.Schema.AllOf.First().Reference.Id; - Assert.Equal(Common.Constants.BaseCollectionPaginationCountResponse, reference); + var schemaReference = Assert.IsType(operation.Responses.First().Value.Content.First().Value.Schema.AllOf[0]); + Assert.Equal(Common.Constants.BaseCollectionPaginationCountResponse, schemaReference.Reference.Id); } else if (enablePagination) diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmFunctionImportOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmFunctionImportOperationHandlerTests.cs index 8869dd6df..f63fd4eef 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmFunctionImportOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmFunctionImportOperationHandlerTests.cs @@ -4,11 +4,14 @@ // ------------------------------------------------------------ using System.Linq; +using System.Threading.Tasks; using System.Xml.Linq; using Microsoft.OData.Edm; using Microsoft.OData.Edm.Csdl; using Microsoft.OpenApi.Extensions; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Tests; using Xunit; @@ -16,7 +19,17 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class EdmFunctionImportOperationHandlerTests { - private EdmFunctionImportOperationHandler _operationHandler = new EdmFunctionImportOperationHandler(); + public EdmFunctionImportOperationHandlerTests() + { + _openApiDocument.AddComponent("Delegated (work or school account)", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + _openApiDocument.AddComponent("Application", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + } + private readonly OpenApiDocument _openApiDocument = new(); + private static EdmFunctionImportOperationHandler _operationHandler => new(); [Theory] [InlineData(true)] @@ -36,6 +49,7 @@ public void CreateOperationForEdmFunctionImportReturnsCorrectOperation(bool useH // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -153,7 +167,7 @@ public void CreateOperationIdWithSHA5ForOverloadEdmFunctionImport(bool enableOpe [Theory] [InlineData(true)] [InlineData(false)] - public void OperationRestrictionsTermWorksToCreateOperationForEdmFunctionImport(bool enableAnnotation) + public async Task OperationRestrictionsTermWorksToCreateOperationForEdmFunctionImport(bool enableAnnotation) { string template = @" @@ -267,7 +281,7 @@ public void OperationRestrictionsTermWorksToCreateOperationForEdmFunctionImport( { Assert.Equal(2, operation.Security.Count); - string json = operation.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await operation.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Contains(@" ""security"": [ { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmFunctionOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmFunctionOperationHandlerTests.cs index b83e414b4..119172dfc 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmFunctionOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmFunctionOperationHandlerTests.cs @@ -5,12 +5,14 @@ using System.Collections.Generic; using System.Linq; +using System.Threading.Tasks; using System.Xml.Linq; using Microsoft.OData.Edm; using Microsoft.OData.Edm.Csdl; using Microsoft.OpenApi.Extensions; using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Tests; using Xunit; @@ -18,7 +20,18 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class EdmFunctionOperationHandlerTests { - private EdmFunctionOperationHandler _operationHandler = new(); + public EdmFunctionOperationHandlerTests() + { + _openApiDocument.AddComponent("Delegated (work or school account)", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + _openApiDocument.AddComponent("Application", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + } + private readonly OpenApiDocument _openApiDocument = new(); + + private static EdmFunctionOperationHandler _operationHandler => new(); #region OperationHandlerTests [Fact] public void SetsDeprecationInformation() @@ -94,6 +107,7 @@ public void CreateOperationForEdmFunctionReturnsCorrectOperation(bool useHTTPSta // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -131,6 +145,7 @@ public void CreateOperationForEdmFunctionReturnsCorrectOperationHierarchicalClas // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -395,7 +410,7 @@ public void CreateOperationForComposableOverloadEdmFunctionReturnsCorrectOperati [Theory] [InlineData(true)] [InlineData(false)] - public void OperationRestrictionsTermWorksToCreateOperationForEdmFunction(bool enableAnnotation) + public async Task OperationRestrictionsTermWorksToCreateOperationForEdmFunction(bool enableAnnotation) { string template = @" @@ -480,7 +495,7 @@ public void OperationRestrictionsTermWorksToCreateOperationForEdmFunction(bool e { Assert.Equal(2, operation.Security.Count); - string json = operation.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await operation.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Contains(@" ""security"": [ { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntityDeleteOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntityDeleteOperationHandlerTests.cs index 8e3590869..cd6ffef99 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntityDeleteOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntityDeleteOperationHandlerTests.cs @@ -4,9 +4,12 @@ // ------------------------------------------------------------ using System.Linq; +using System.Threading.Tasks; using Microsoft.OData.Edm; using Microsoft.OpenApi.Extensions; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Tests; using Xunit; @@ -14,7 +17,17 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class EntityDeleteOperationHandlerTests { - private EntityDeleteOperationHandler _operationHandler = new EntityDeleteOperationHandler(); + public EntityDeleteOperationHandlerTests() + { + _openApiDocument.AddComponent("Delegated (work or school account)", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + _openApiDocument.AddComponent("Application", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + } + private readonly OpenApiDocument _openApiDocument = new(); + private static EntityDeleteOperationHandler _operationHandler => new (); [Theory] [InlineData(true)] @@ -33,6 +46,7 @@ public void CreateEntityDeleteOperationReturnsCorrectOperation(bool enableOperat // Act var delete = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(delete); @@ -64,7 +78,7 @@ public void CreateEntityDeleteOperationReturnsCorrectOperation(bool enableOperat [Theory] [InlineData(true)] [InlineData(false)] - public void CreateEntityDeleteReturnsSecurityForDeleteRestrictions(bool enableAnnotation) + public async Task CreateEntityDeleteReturnsSecurityForDeleteRestrictions(bool enableAnnotation) { string annotation = @" @@ -140,7 +154,7 @@ public void CreateEntityDeleteReturnsSecurityForDeleteRestrictions(bool enableAn { Assert.Equal(2, delete.Security.Count); - string json = delete.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await delete.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Contains(@" ""security"": [ { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntityGetOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntityGetOperationHandlerTests.cs index b5d275ed4..aa847e07c 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntityGetOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntityGetOperationHandlerTests.cs @@ -5,9 +5,12 @@ using System; using System.Linq; +using System.Threading.Tasks; using Microsoft.OData.Edm; using Microsoft.OpenApi.Extensions; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Tests; using Xunit; @@ -15,7 +18,18 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class EntityGetOperationHandlerTests { - private EntityGetOperationHandler _operationHandler = new EntityGetOperationHandler(); + public EntityGetOperationHandlerTests() + { + _openApiDocument.AddComponent("Delegated (work or school account)", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + _openApiDocument.AddComponent("Application", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + } + private readonly OpenApiDocument _openApiDocument = new(); + + private static EntityGetOperationHandler _operationHandler => new (); [Theory] [InlineData(true, true)] @@ -37,6 +51,8 @@ public void CreateEntityGetOperationReturnsCorrectOperation(bool enableOperation // Act var get = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); + // Assert Assert.NotNull(get); @@ -110,7 +126,7 @@ public void CreateEntityGetOperationReturnsParameterForNavigationRestrictions(bo [Theory] [InlineData(true)] [InlineData(false)] - public void CreateEntityGetOperationReturnsSecurityForReadRestrictions(bool enableAnnotation) + public async Task CreateEntityGetOperationReturnsSecurityForReadRestrictions(bool enableAnnotation) { string annotation = @" @@ -190,7 +206,7 @@ public void CreateEntityGetOperationReturnsSecurityForReadRestrictions(bool enab { Assert.Equal(2, get.Security.Count); - string json = get.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await get.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Contains(@" ""security"": [ { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntityPatchOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntityPatchOperationHandlerTests.cs index 5534a8713..059e022be 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntityPatchOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntityPatchOperationHandlerTests.cs @@ -4,9 +4,12 @@ // ------------------------------------------------------------ using System.Linq; +using System.Threading.Tasks; using Microsoft.OData.Edm; using Microsoft.OpenApi.Extensions; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Tests; using Xunit; @@ -14,7 +17,18 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class EntityPatchOperationHandlerTests { - private EntityPatchOperationHandler _operationHandler = new EntityPatchOperationHandler(); + public EntityPatchOperationHandlerTests() + { + _openApiDocument.AddComponent("Delegated (work or school account)", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + _openApiDocument.AddComponent("Application", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + } + private readonly OpenApiDocument _openApiDocument = new(); + + private static EntityPatchOperationHandler _operationHandler => new (); [Theory] [InlineData(true, true)] @@ -36,6 +50,7 @@ public void CreateEntityPatchOperationReturnsCorrectOperation(bool enableOperati // Act var patch = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(patch); @@ -77,7 +92,7 @@ public void CreateEntityPatchOperationReturnsCorrectOperation(bool enableOperati [Theory] [InlineData(true)] [InlineData(false)] - public void CreateEntityPatchReturnsSecurityForUpdateRestrictions(bool enableAnnotation) + public async Task CreateEntityPatchReturnsSecurityForUpdateRestrictions(bool enableAnnotation) { string annotation = @" @@ -153,7 +168,7 @@ public void CreateEntityPatchReturnsSecurityForUpdateRestrictions(bool enableAnn { Assert.Equal(2, patch.Security.Count); - string json = patch.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await patch.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Contains(@" ""security"": [ { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntityPutOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntityPutOperationHandlerTests.cs index 96634cd4c..fe506becd 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntityPutOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntityPutOperationHandlerTests.cs @@ -4,9 +4,12 @@ // ------------------------------------------------------------ using System.Linq; +using System.Threading.Tasks; using Microsoft.OData.Edm; using Microsoft.OpenApi.Extensions; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Tests; using Xunit; @@ -14,7 +17,18 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class EntityPutOperationHandlerTests { - private EntityPutOperationHandler _operationHandler = new EntityPutOperationHandler(); + public EntityPutOperationHandlerTests() + { + _openApiDocument.AddComponent("Delegated (work or school account)", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + _openApiDocument.AddComponent("Application", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + } + private readonly OpenApiDocument _openApiDocument = new(); + + private static EntityPutOperationHandler _operationHandler => new(); [Theory] [InlineData(true, true)] @@ -36,6 +50,7 @@ public void CreateEntityPutOperationReturnsCorrectOperation(bool enableOperation // Act var putOperation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(putOperation); @@ -77,7 +92,7 @@ public void CreateEntityPutOperationReturnsCorrectOperation(bool enableOperation [Theory] [InlineData(true)] [InlineData(false)] - public void CreateEntityPutReturnsSecurityForUpdateRestrictions(bool enableAnnotation) + public async Task CreateEntityPutReturnsSecurityForUpdateRestrictions(bool enableAnnotation) { string annotation = @" @@ -153,7 +168,7 @@ public void CreateEntityPutReturnsSecurityForUpdateRestrictions(bool enableAnnot { Assert.Equal(2, putOperation.Security.Count); - string json = putOperation.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await putOperation.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Contains(@" ""security"": [ { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntitySetGetOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntitySetGetOperationHandlerTests.cs index 74e270fec..2aa31da5a 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntitySetGetOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntitySetGetOperationHandlerTests.cs @@ -5,12 +5,16 @@ using System; using System.Linq; +using System.Threading.Tasks; using System.Xml.Linq; using Microsoft.OData.Edm; using Microsoft.OData.Edm.Csdl; using Microsoft.OpenApi.Extensions; +using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Tests; using Xunit; @@ -18,7 +22,18 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class EntitySetGetOperationHandlerTests { - private EntitySetGetOperationHandler _operationHandler = new EntitySetGetOperationHandler(); + public EntitySetGetOperationHandlerTests() + { + _openApiDocument.AddComponent("Delegated (work or school account)", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + _openApiDocument.AddComponent("Application", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + } + private readonly OpenApiDocument _openApiDocument = new(); + + private static EntitySetGetOperationHandler _operationHandler => new(); [Theory] [InlineData(true, true, true)] @@ -41,6 +56,7 @@ public void CreateEntitySetGetOperationReturnsCorrectOperation(bool enableOperat // Act var get = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(get); @@ -227,7 +243,7 @@ public void CreateEntitySetGetOperationReturnsParameterForNavigationRestrictions [Theory] [InlineData(true)] [InlineData(false)] - public void CreateEntitySetGetOperationReturnsSecurityForReadRestrictions(bool enableAnnotation) + public async Task CreateEntitySetGetOperationReturnsSecurityForReadRestrictions(bool enableAnnotation) { string annotation = @" @@ -303,7 +319,7 @@ public void CreateEntitySetGetOperationReturnsSecurityForReadRestrictions(bool e { Assert.Equal(2, get.Security.Count); - string json = get.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await get.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Contains(@" ""security"": [ { @@ -435,7 +451,7 @@ private void VerifyParameter(string annotation, bool hasRestriction, bool suppor Assert.Equal(8, get.Parameters.Count); if (isReference) { - Assert.Contains(queryOption, get.Parameters.Select(p => p.Reference?.Id)); + Assert.Contains(queryOption, get.Parameters.OfType().Select(p => p.Reference?.Id)); } else { @@ -447,7 +463,7 @@ private void VerifyParameter(string annotation, bool hasRestriction, bool suppor Assert.Equal(7, get.Parameters.Count); if (isReference) { - Assert.DoesNotContain(queryOption, get.Parameters.Select(p => p.Reference?.Id)); + Assert.DoesNotContain(queryOption, get.Parameters.OfType().Select(p => p.Reference?.Id)); } else { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntitySetPostOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntitySetPostOperationHandlerTests.cs index 61ace688d..8ab7caae5 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntitySetPostOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EntitySetPostOperationHandlerTests.cs @@ -9,9 +9,11 @@ using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Tests; using Microsoft.OpenApi.OData.Vocabulary.Core; using System.Linq; +using System.Threading.Tasks; using System.Xml.Linq; using Xunit; @@ -19,7 +21,18 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class EntitySetPostOperationHandlerTests { - private EntitySetPostOperationHandler _operationHandler = new EntitySetPostOperationHandler(); + public EntitySetPostOperationHandlerTests() + { + _openApiDocument.AddComponent("Delegated (work or school account)", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + _openApiDocument.AddComponent("Application", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + } + private readonly OpenApiDocument _openApiDocument = new(); + + private static EntitySetPostOperationHandler _operationHandler => new(); [Theory] [InlineData(true, true, true)] @@ -57,6 +70,7 @@ private void VerifyEntitySetPostOperation(string annotation, bool enableOperatio // Act var post = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(post); @@ -123,7 +137,7 @@ private void VerifyEntitySetPostOperation(string annotation, bool enableOperatio [Theory] [InlineData(true)] [InlineData(false)] - public void CreateEntitySetPostReturnsSecurityForInsertRestrictions(bool enableAnnotation) + public async Task CreateEntitySetPostReturnsSecurityForInsertRestrictions(bool enableAnnotation) { string annotation = @" @@ -199,7 +213,7 @@ public void CreateEntitySetPostReturnsSecurityForInsertRestrictions(bool enableA { Assert.Equal(2, post.Security.Count); - string json = post.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await post.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Contains(@" ""security"": [ { @@ -226,8 +240,8 @@ public void CreateEntitySetPostReturnsSecurityForInsertRestrictions(bool enableA { Assert.Empty(post.Security); } - } - + } + [Fact] public void CreateEntitySetPostOperationReturnsCorrectOperationWithAnnotatedRequestBodyAndResponseContent() { @@ -235,8 +249,8 @@ public void CreateEntitySetPostOperationReturnsCorrectOperationWithAnnotatedRequ OpenApiConvertSettings settings = new(); ODataContext context = new(model, settings); IEdmEntitySet entitySet = model.EntityContainer.FindEntitySet("directoryObjects"); - Assert.NotNull(entitySet); - + Assert.NotNull(entitySet); + ODataPath path = new(new ODataNavigationSourceSegment(entitySet)); // Act @@ -244,7 +258,7 @@ public void CreateEntitySetPostOperationReturnsCorrectOperationWithAnnotatedRequ // Assert Assert.NotNull(operation.RequestBody); - Assert.Equal("multipart/form-data", operation.RequestBody.Content.First().Key); + Assert.Equal("multipart/form-data", operation.RequestBody.Content.First().Key); Assert.NotNull(operation.Responses); Assert.Equal("multipart/form-data", operation.Responses.First().Value.Content.First().Key); } diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/MediaEntityDeleteOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/MediaEntityDeleteOperationHandlerTests.cs index 3819e89ae..e539f6460 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/MediaEntityDeleteOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/MediaEntityDeleteOperationHandlerTests.cs @@ -5,8 +5,10 @@ using Microsoft.OData.Edm; using Microsoft.OData.Edm.Csdl; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using System.Linq; using System.Xml.Linq; using Xunit; @@ -15,7 +17,9 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class MediaEntityDeleteOperationHandlerTests { - private readonly MediaEntityDeleteOperationHandler _operationalHandler = new MediaEntityDeleteOperationHandler(); + private readonly OpenApiDocument _openApiDocument = new(); + + private static MediaEntityDeleteOperationHandler _operationHandler => new(); [Fact] public void CreateMediaEntityPropertyDeleteOperationWithTargetPathAnnotationsReturnsCorrectOperation() @@ -33,7 +37,8 @@ public void CreateMediaEntityPropertyDeleteOperationWithTargetPathAnnotationsRet new ODataStreamPropertySegment(property.Name)); // Act - var operation = _operationalHandler.CreateOperation(context, path); + var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -56,7 +61,7 @@ public void CreateMediaEntityPropertyDeleteOperationWithTargetPathAnnotationsRet Assert.Equal(2, operation.Responses.Count); Assert.Equal(new string[] { "204", "default" }, operation.Responses.Select(e => e.Key)); - Assert.Equal("People.Person.DeletePhoto", operation.OperationId); + Assert.Equal("People.Person.DeletePhoto-883f", operation.OperationId); } [Theory] @@ -123,9 +128,10 @@ private void VerifyMediaEntityDeleteOperation(string annotation, bool enableOper new ODataStreamPropertySegment(structuralProperty2.Name)); // Act - var deleteOperation = _operationalHandler.CreateOperation(context, path); - var deleteOperation2 = _operationalHandler.CreateOperation(context, path2); - var deleteOperation3 = _operationalHandler.CreateOperation(context, path3); + var deleteOperation = _operationHandler.CreateOperation(context, path); + var deleteOperation2 = _operationHandler.CreateOperation(context, path2); + var deleteOperation3 = _operationHandler.CreateOperation(context, path3); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(deleteOperation); @@ -170,8 +176,8 @@ private void VerifyMediaEntityDeleteOperation(string annotation, bool enableOper if (enableOperationId) { - Assert.Equal("Todos.Todo.DeleteLogo", deleteOperation.OperationId); - Assert.Equal("me.DeletePhotoContent", deleteOperation2.OperationId); + Assert.Equal("Todos.Todo.DeleteLogo-9540", deleteOperation.OperationId); + Assert.Equal("me.DeletePhotoContent-797b", deleteOperation2.OperationId); } else { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/MediaEntityGetOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/MediaEntityGetOperationHandlerTests.cs index 09951b336..04c937a91 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/MediaEntityGetOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/MediaEntityGetOperationHandlerTests.cs @@ -5,8 +5,10 @@ using Microsoft.OData.Edm; using Microsoft.OData.Edm.Csdl; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using System.Linq; using System.Xml.Linq; using Xunit; @@ -15,7 +17,13 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class MediaEntityGetOperationHandlerTests { - private readonly MediaEntityGetOperationHandler _operationalHandler = new MediaEntityGetOperationHandler(); + public MediaEntityGetOperationHandlerTests() + { + _operationHandler = new (); + } + private readonly OpenApiDocument _openApiDocument = new(); + + private readonly MediaEntityGetOperationHandler _operationHandler; [Theory] [InlineData(true, true)] @@ -81,8 +89,9 @@ private void VerifyMediaEntityGetOperation(string annotation, bool enableOperati new ODataStreamContentSegment()); // Act - var getOperation = _operationalHandler.CreateOperation(context, path); - var getOperation2 = _operationalHandler.CreateOperation(context, path2); + var getOperation = _operationHandler.CreateOperation(context, path); + var getOperation2 = _operationHandler.CreateOperation(context, path2); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(getOperation); @@ -109,7 +118,7 @@ private void VerifyMediaEntityGetOperation(string annotation, bool enableOperati foreach (var item in getOperation.Responses[statusCode].Content) { Assert.Equal("binary", item.Value.Schema.Format); - Assert.Equal("string", item.Value.Schema.Type); + Assert.Equal(JsonSchemaType.String, item.Value.Schema.Type); } if (!string.IsNullOrEmpty(annotation)) @@ -135,8 +144,8 @@ private void VerifyMediaEntityGetOperation(string annotation, bool enableOperati if (enableOperationId) { - Assert.Equal("Todos.Todo.GetLogo", getOperation.OperationId); - Assert.Equal("me.GetPhotoContent", getOperation2.OperationId); + Assert.Equal("Todos.Todo.GetLogo-9540", getOperation.OperationId); + Assert.Equal("me.GetPhotoContent-797b", getOperation2.OperationId); } else { @@ -201,7 +210,8 @@ public void CreateMediaEntityPropertyGetOperationWithTargetPathAnnotationsReturn new ODataStreamPropertySegment(property.Name)); // Act - var operation = _operationalHandler.CreateOperation(context, path); + var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/MediaEntityPutOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/MediaEntityPutOperationHandlerTests.cs index 9dc2f99e3..2f66bccd3 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/MediaEntityPutOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/MediaEntityPutOperationHandlerTests.cs @@ -4,8 +4,11 @@ // ------------------------------------------------------------ using Microsoft.OData.Edm; +using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Common; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Vocabulary.Core; using System.Linq; using Xunit; @@ -14,7 +17,12 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class MediaEntityPutOperationHandlerTests { - private readonly MediaEntityPutOperationHandler _operationalHandler = new MediaEntityPutOperationHandler(); + public MediaEntityPutOperationHandlerTests() + { + _operationHandler = new (); + } + private readonly OpenApiDocument _openApiDocument = new(); + private readonly MediaEntityPutOperationHandler _operationHandler; [Theory] [InlineData(true, false)] @@ -84,9 +92,10 @@ private void VerifyMediaEntityPutOperation(string annotation, bool enableOperati new ODataStreamPropertySegment(sp2.Name)); // Act - var putOperation = _operationalHandler.CreateOperation(context, path); - var putOperation2 = _operationalHandler.CreateOperation(context, path2); - var putOperation3 = _operationalHandler.CreateOperation(context, path3); + var putOperation = _operationHandler.CreateOperation(context, path); + var putOperation2 = _operationHandler.CreateOperation(context, path2); + var putOperation3 = _operationHandler.CreateOperation(context, path3); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(putOperation); @@ -118,9 +127,9 @@ private void VerifyMediaEntityPutOperation(string annotation, bool enableOperati // Test only for stream properties of identifier 'content' if (useSuccessStatusCodeRange) { - var referenceId = putOperation3.Responses[statusCode]?.Content[Constants.ApplicationJsonMediaType]?.Schema?.Reference.Id; - Assert.NotNull(referenceId); - Assert.Equal("microsoft.graph.Todo", referenceId); + var schemaReference = Assert.IsType(putOperation3.Responses[statusCode]?.Content[Constants.ApplicationJsonMediaType]?.Schema); + Assert.NotNull(schemaReference.Reference.Id); + Assert.Equal("microsoft.graph.Todo", schemaReference.Reference.Id); } else { @@ -150,8 +159,8 @@ private void VerifyMediaEntityPutOperation(string annotation, bool enableOperati if (enableOperationId) { - Assert.Equal("Todos.Todo.UpdateLogo", putOperation.OperationId); - Assert.Equal("me.UpdatePhotoContent", putOperation2.OperationId); + Assert.Equal("Todos.Todo.UpdateLogo-9540", putOperation.OperationId); + Assert.Equal("me.UpdatePhotoContent-797b", putOperation2.OperationId); } else { @@ -176,7 +185,8 @@ public void CreateMediaEntityPropertyPutOperationWithTargetPathAnnotationsReturn new ODataStreamPropertySegment(property.Name)); // Act - var operation = _operationalHandler.CreateOperation(context, path); + var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyDeleteOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyDeleteOperationHandlerTests.cs index 3b4d65ed8..d00cad9b9 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyDeleteOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyDeleteOperationHandlerTests.cs @@ -4,7 +4,9 @@ // ------------------------------------------------------------ using Microsoft.OData.Edm; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Tests; using System.Linq; using Xunit; @@ -13,7 +15,12 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class NavigationPropertyDeleteOperationHandlerTests { - private NavigationPropertyDeleteOperationHandler _operationHandler = new NavigationPropertyDeleteOperationHandler(); + public NavigationPropertyDeleteOperationHandlerTests() + { + _operationHandler = new (); + } + private readonly OpenApiDocument _openApiDocument = new(); + private readonly NavigationPropertyDeleteOperationHandler _operationHandler; [Theory] [InlineData(true, false)] @@ -39,6 +46,7 @@ public void CreateNavigationDeleteOperationReturnsCorrectOperation(bool enableOp // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -81,6 +89,8 @@ public void CreateNavigationDeleteOperationWithTargetPathAnnotationsReturnsCorre // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); + // Assert Assert.NotNull(operation); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyGetOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyGetOperationHandlerTests.cs index 8e5d9d6aa..12030b39a 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyGetOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyGetOperationHandlerTests.cs @@ -5,9 +5,12 @@ using System.Collections.Generic; using System.Linq; +using System.Threading.Tasks; using Microsoft.OData.Edm; using Microsoft.OpenApi.Extensions; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.PathItem.Tests; using Microsoft.OpenApi.OData.Tests; using Xunit; @@ -16,7 +19,17 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class NavigationPropertyGetOperationHandlerTests { - private NavigationPropertyGetOperationHandler _operationHandler = new NavigationPropertyGetOperationHandler(); + public NavigationPropertyGetOperationHandlerTests() + { + _openApiDocument.AddComponent("Delegated (work or school account)", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + _openApiDocument.AddComponent("Application", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + } + private readonly OpenApiDocument _openApiDocument = new(); + private static NavigationPropertyGetOperationHandler _operationHandler => new(); [Theory] [InlineData(true, true)] @@ -42,6 +55,7 @@ public void CreateNavigationGetOperationReturnsCorrectOperation(bool enableOpera // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -85,6 +99,7 @@ public void CreateNavigationGetOperationWithTargetPathAnnotationsAndNavigationPr // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -122,6 +137,7 @@ public void CreateNavigationGetOperationViaComposableFunctionReturnsCorrectOpera // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -178,6 +194,7 @@ public void CreateNavigationGetOperationViaOverloadedComposableFunctionReturnsCo // Act var operation1 = _operationHandler.CreateOperation(context, path1); var operation2 = _operationHandler.CreateOperation(context, path2); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation1); @@ -198,7 +215,7 @@ public void CreateNavigationGetOperationViaOverloadedComposableFunctionReturnsCo [Theory] [InlineData(true)] [InlineData(false)] - public void CreateNavigationGetOperationReturnsSecurityForReadRestrictions(bool enableAnnotation) + public async Task CreateNavigationGetOperationReturnsSecurityForReadRestrictions(bool enableAnnotation) { string annotation = @" @@ -284,6 +301,7 @@ public void CreateNavigationGetOperationReturnsSecurityForReadRestrictions(bool // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -293,7 +311,7 @@ public void CreateNavigationGetOperationReturnsSecurityForReadRestrictions(bool { Assert.Equal(2, operation.Security.Count); - string json = operation.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await operation.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Contains(@" ""security"": [ { @@ -362,6 +380,7 @@ public void CreateNavigationGetOperationWithAlternateKeyReturnsCorrectOperationI // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyPatchOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyPatchOperationHandlerTests.cs index 9dad564b8..eb01c06ce 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyPatchOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyPatchOperationHandlerTests.cs @@ -5,17 +5,30 @@ using Microsoft.OData.Edm; using Microsoft.OpenApi.Extensions; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.PathItem.Tests; using Microsoft.OpenApi.OData.Tests; using System.Linq; +using System.Threading.Tasks; using Xunit; namespace Microsoft.OpenApi.OData.Operation.Tests { public class NavigationPropertyPatchOperationHandlerTests { - private NavigationPropertyPatchOperationHandler _operationHandler = new NavigationPropertyPatchOperationHandler(); + public NavigationPropertyPatchOperationHandlerTests() + { + _openApiDocument.AddComponent("Delegated (work or school account)", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + _openApiDocument.AddComponent("Application", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + } + private readonly OpenApiDocument _openApiDocument = new(); + private static NavigationPropertyPatchOperationHandler _operationHandler => new(); [Theory] [InlineData(true, true)] @@ -41,6 +54,7 @@ public void CreateNavigationPatchOperationReturnsCorrectOperation(bool enableOpe // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -94,6 +108,7 @@ public void CreateNavigationPatchOperationReturnsCorrectOperationWithAnnotatedRe // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation.RequestBody); @@ -103,7 +118,7 @@ public void CreateNavigationPatchOperationReturnsCorrectOperationWithAnnotatedRe [Theory] [InlineData(true)] [InlineData(false)] - public void CreateNavigationPatchOperationReturnsSecurityForUpdateRestrictions(bool enableAnnotation) + public async Task CreateNavigationPatchOperationReturnsSecurityForUpdateRestrictions(bool enableAnnotation) { string annotation = @" @@ -191,6 +206,7 @@ public void CreateNavigationPatchOperationReturnsSecurityForUpdateRestrictions(b // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -200,7 +216,7 @@ public void CreateNavigationPatchOperationReturnsSecurityForUpdateRestrictions(b { Assert.Equal(2, operation.Security.Count); - string json = operation.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await operation.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Contains(@" ""security"": [ { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyPostOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyPostOperationHandlerTests.cs index 47e23bd7f..30243d367 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyPostOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyPostOperationHandlerTests.cs @@ -5,17 +5,30 @@ using Microsoft.OData.Edm; using Microsoft.OpenApi.Extensions; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.PathItem.Tests; using Microsoft.OpenApi.OData.Tests; using System.Linq; +using System.Threading.Tasks; using Xunit; namespace Microsoft.OpenApi.OData.Operation.Tests { public class NavigationPropertyPostOperationHandlerTests { - private NavigationPropertyPostOperationHandler _operationHandler = new NavigationPropertyPostOperationHandler(); + public NavigationPropertyPostOperationHandlerTests() + { + _openApiDocument.AddComponent("Delegated (work or school account)", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + _openApiDocument.AddComponent("Application", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + } + private readonly OpenApiDocument _openApiDocument = new(); + private static NavigationPropertyPostOperationHandler _operationHandler => new(); [Theory] [InlineData(true, true)] @@ -41,6 +54,7 @@ public void CreateNavigationPostOperationReturnsCorrectOperation(bool enableOper // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -85,6 +99,7 @@ public void CreateNavigationPostOperationWithTargetPathAnnotationsReturnsCorrect // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -111,6 +126,7 @@ public void CreateNavigationPostOperationReturnsCorrectOperationWithAnnotatedReq // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation.RequestBody); @@ -120,7 +136,7 @@ public void CreateNavigationPostOperationReturnsCorrectOperationWithAnnotatedReq [Theory] [InlineData(true)] [InlineData(false)] - public void CreateNavigationPostOperationReturnsSecurityForInsertRestrictions(bool enableAnnotation) + public async Task CreateNavigationPostOperationReturnsSecurityForInsertRestrictions(bool enableAnnotation) { string annotation = @" @@ -207,6 +223,7 @@ public void CreateNavigationPostOperationReturnsSecurityForInsertRestrictions(bo // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -216,7 +233,7 @@ public void CreateNavigationPostOperationReturnsSecurityForInsertRestrictions(bo { Assert.Equal(2, operation.Security.Count); - string json = operation.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await operation.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Contains(@" ""security"": [ { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyPutOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyPutOperationHandlerTests.cs index 91f1763ae..ae629ef31 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyPutOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/NavigationPropertyPutOperationHandlerTests.cs @@ -5,17 +5,30 @@ using Microsoft.OData.Edm; using Microsoft.OpenApi.Extensions; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.PathItem.Tests; using Microsoft.OpenApi.OData.Tests; using System.Linq; +using System.Threading.Tasks; using Xunit; namespace Microsoft.OpenApi.OData.Operation.Tests { public class NavigationPropertyPutOperationHandlerTests { - private NavigationPropertyPutOperationHandler _operationHandler = new NavigationPropertyPutOperationHandler(); + public NavigationPropertyPutOperationHandlerTests() + { + _openApiDocument.AddComponent("Delegated (work or school account)", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + _openApiDocument.AddComponent("Application", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + } + private readonly OpenApiDocument _openApiDocument = new(); + private static NavigationPropertyPutOperationHandler _operationHandler => new(); [Theory] [InlineData(true, true)] @@ -41,6 +54,7 @@ public void CreateNavigationPutOperationReturnsCorrectOperation(bool enableOpera // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -82,7 +96,7 @@ public void CreateNavigationPutOperationReturnsCorrectOperation(bool enableOpera [Theory] [InlineData(true)] [InlineData(false)] - public void CreateNavigationPuthOperationReturnsSecurityForUpdateRestrictions(bool enableAnnotation) + public async Task CreateNavigationPuthOperationReturnsSecurityForUpdateRestrictions(bool enableAnnotation) { string annotation = @" @@ -170,6 +184,7 @@ public void CreateNavigationPuthOperationReturnsSecurityForUpdateRestrictions(bo // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -179,7 +194,7 @@ public void CreateNavigationPuthOperationReturnsSecurityForUpdateRestrictions(bo { Assert.Equal(2, operation.Security.Count); - string json = operation.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await operation.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Contains(@" ""security"": [ { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/ODataTypeCastGetOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/ODataTypeCastGetOperationHandlerTests.cs index 3a3e11099..92544d7c8 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/ODataTypeCastGetOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/ODataTypeCastGetOperationHandlerTests.cs @@ -5,15 +5,15 @@ using System.Linq; using Microsoft.OData.Edm; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Tests; using Xunit; namespace Microsoft.OpenApi.OData.Operation.Tests; public class ODataTypeCastGetOperationHandlerTests { - private readonly ODataTypeCastGetOperationHandler _operationHandler = new (); - [Theory] [InlineData(true, true, true)] [InlineData(true, false, true)] @@ -42,8 +42,13 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForCollectionN new ODataNavigationPropertySegment(navProperty), new ODataTypeCastSegment(employee, model)); + var document = new OpenApiDocument(); + context.AddSchemasToDocument(document); + ODataTypeCastGetOperationHandler operationHandler = new (); // Act - var operation = _operationHandler.CreateOperation(context, path); + var operation = operationHandler.CreateOperation(context, path); + document.Tags = context.CreateTags(); + // Assert Assert.NotNull(operation); @@ -66,7 +71,7 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForCollectionN if (enableOperationId) { - Assert.Equal("People.ListFriends.AsEmployee", operation.OperationId); + Assert.Equal("People.ListFriends.AsEmployee-11bf", operation.OperationId); } else { @@ -101,8 +106,13 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForCollectionN new ODataKeySegment(people.EntityType), new ODataTypeCastSegment(employee,model)); + var document = new OpenApiDocument(); + context.AddSchemasToDocument(document); + ODataTypeCastGetOperationHandler operationHandler = new (); + // Act - var operation = _operationHandler.CreateOperation(context, path); + var operation = operationHandler.CreateOperation(context, path); + document.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -120,17 +130,17 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForCollectionN Assert.Single(operation.Extensions); //deprecated Assert.Equal(2, operation.Responses.Count); - Assert.Equal(new string[] { "200", "default" }, operation.Responses.Select(e => e.Key)); + Assert.Equal(["200", "default"], operation.Responses.Select(e => e.Key)); if (enableOperationId) { - Assert.Equal("People.GetFriends.AsEmployee", operation.OperationId); + Assert.Equal("People.GetFriends.AsEmployee-11bf", operation.OperationId); } else { Assert.Null(operation.OperationId); } - Assert.False(operation.Responses["200"].Content["application/json"].Schema.Properties.ContainsKey("value")); + Assert.False(operation.Responses["200"].Content["application/json"].Schema.Properties?.ContainsKey("value") ?? false); } [Theory] [InlineData(true, true)] @@ -154,8 +164,12 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForEntitySet(b ODataPath path = new(new ODataNavigationSourceSegment(people), new ODataTypeCastSegment(employee,model)); + var document = new OpenApiDocument(); + context.AddSchemasToDocument(document); + ODataTypeCastGetOperationHandler operationHandler = new (); // Act - var operation = _operationHandler.CreateOperation(context, path); + var operation = operationHandler.CreateOperation(context, path); + document.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -177,7 +191,7 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForEntitySet(b if (enableOperationId) { - Assert.Equal("People.Person.ListPerson.AsEmployee", operation.OperationId); + Assert.Equal("People.Person.ListPerson.AsEmployee-013a", operation.OperationId); } else { @@ -209,8 +223,13 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForEntitySetId new ODataKeySegment(people.EntityType), new ODataTypeCastSegment(employee,model)); + var document = new OpenApiDocument(); + context.AddSchemasToDocument(document); + ODataTypeCastGetOperationHandler operationHandler = new (); // Act - var operation = _operationHandler.CreateOperation(context, path); + var operation = operationHandler.CreateOperation(context, path); + document.Tags = context.CreateTags(); + // Assert Assert.NotNull(operation); @@ -232,13 +251,13 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForEntitySetId if (enableOperationId) { - Assert.Equal("People.Person.GetPerson.AsEmployee", operation.OperationId); + Assert.Equal("People.Person.GetPerson.AsEmployee-317b", operation.OperationId); } else { Assert.Null(operation.OperationId); } - Assert.False(operation.Responses["200"].Content["application/json"].Schema.Properties.ContainsKey("value")); + Assert.False(operation.Responses["200"].Content["application/json"].Schema.Properties?.ContainsKey("value") ?? false); } [Theory] [InlineData(true, true)] @@ -266,8 +285,12 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForSingleNavig new ODataNavigationPropertySegment(navProperty), new ODataTypeCastSegment(employee, model)); + var document = new OpenApiDocument(); + context.AddSchemasToDocument(document); + ODataTypeCastGetOperationHandler operationHandler = new (); // Act - var operation = _operationHandler.CreateOperation(context, path); + var operation = operationHandler.CreateOperation(context, path); + document.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -289,13 +312,13 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForSingleNavig if (enableOperationId) { - Assert.Equal("People.GetBestFriend.AsEmployee", operation.OperationId); + Assert.Equal("People.GetBestFriend.AsEmployee-7188", operation.OperationId); } else { Assert.Null(operation.OperationId); } - Assert.False(operation.Responses["200"].Content["application/json"].Schema.Properties.ContainsKey("value")); + Assert.False(operation.Responses["200"].Content["application/json"].Schema.Properties?.ContainsKey("value") ?? false); } [Theory] [InlineData(true, true)] @@ -319,8 +342,12 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForSingleton(b ODataPath path = new(new ODataNavigationSourceSegment(me), new ODataTypeCastSegment(employee, model)); + var document = new OpenApiDocument(); + context.AddSchemasToDocument(document); + ODataTypeCastGetOperationHandler operationHandler = new (); // Act - var operation = _operationHandler.CreateOperation(context, path); + var operation = operationHandler.CreateOperation(context, path); + document.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -342,13 +369,13 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForSingleton(b if (enableOperationId) { - Assert.Equal("Me.Person.GetPerson.AsEmployee", operation.OperationId); + Assert.Equal("Me.Person.GetPerson.AsEmployee-bd18", operation.OperationId); } else { Assert.Null(operation.OperationId); } - Assert.False(operation.Responses["200"].Content["application/json"].Schema.Properties.ContainsKey("value")); + Assert.False(operation.Responses["200"].Content["application/json"].Schema.Properties?.ContainsKey("value") ?? false); } [Fact] public void CreateODataTypeCastGetOperationReturnsCorrectOperationForSingleNavigationPropertyWithTargetPathAnnotations() @@ -367,8 +394,12 @@ public void CreateODataTypeCastGetOperationReturnsCorrectOperationForSingleNavig new ODataNavigationPropertySegment(navProperty), new ODataTypeCastSegment(manager, model)); + var document = new OpenApiDocument(); + context.AddSchemasToDocument(document); + ODataTypeCastGetOperationHandler operationHandler = new (); // Act - var operation = _operationHandler.CreateOperation(context, path); + var operation = operationHandler.CreateOperation(context, path); + document.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/RefDeleteOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/RefDeleteOperationHandlerTests.cs index 66cf5a138..0d29d5c5a 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/RefDeleteOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/RefDeleteOperationHandlerTests.cs @@ -5,7 +5,9 @@ using System.Linq; using Microsoft.OData.Edm; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Tests; using Xunit; @@ -13,7 +15,12 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class RefDeleteOperationHandlerTests { - private RefDeleteOperationHandler _operationHandler = new RefDeleteOperationHandler(); + public RefDeleteOperationHandlerTests() + { + _operationHandler = new (); + } + private readonly OpenApiDocument _openApiDocument = new(); + private readonly RefDeleteOperationHandler _operationHandler; [Theory] [InlineData(true)] @@ -39,6 +46,7 @@ public void CreateNavigationRefDeleteOperationReturnsCorrectOperation(bool enabl // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/RefGetOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/RefGetOperationHandlerTests.cs index 029b1f379..1d1fc2b43 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/RefGetOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/RefGetOperationHandlerTests.cs @@ -5,7 +5,9 @@ using System.Linq; using Microsoft.OData.Edm; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Tests; using Xunit; @@ -13,7 +15,12 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class RefGetOperationHandlerTests { - private RefGetOperationHandler _operationHandler = new RefGetOperationHandler(); + public RefGetOperationHandlerTests() + { + _operationHandler = new (); + } + private readonly OpenApiDocument _openApiDocument = new(); + private readonly RefGetOperationHandler _operationHandler; [Theory] [InlineData(true, true)] @@ -42,6 +49,7 @@ public void CreateNavigationRefGetOperationReturnsCorrectOperation(bool enableOp // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/RefPostOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/RefPostOperationHandlerTests.cs index 1f0cd91ea..706094c85 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/RefPostOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/RefPostOperationHandlerTests.cs @@ -4,7 +4,10 @@ // ------------------------------------------------------------ using Microsoft.OData.Edm; +using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Tests; using System.Linq; using Xunit; @@ -13,7 +16,12 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class RefPostOperationHandlerTests { - private RefPostOperationHandler _operationHandler = new RefPostOperationHandler(); + public RefPostOperationHandlerTests() + { + _operationHandler = new (); + } + private readonly OpenApiDocument _openApiDocument = new(); + private readonly RefPostOperationHandler _operationHandler; [Theory] [InlineData(true, true)] @@ -42,6 +50,7 @@ public void CreateNavigationRefPostOperationReturnsCorrectOperation(bool enableO // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -55,8 +64,9 @@ public void CreateNavigationRefPostOperationReturnsCorrectOperation(bool enableO Assert.NotEmpty(operation.Parameters); Assert.NotNull(operation.RequestBody); - Assert.Equal(Models.ReferenceType.RequestBody, operation.RequestBody.Reference.Type); - Assert.Equal(Common.Constants.ReferencePostRequestBodyName, operation.RequestBody.Reference.Id); + var requestBodyReference = Assert.IsType(operation.RequestBody); + Assert.Equal(Models.ReferenceType.RequestBody, requestBodyReference.Reference.Type); + Assert.Equal(Common.Constants.ReferencePostRequestBodyName, requestBodyReference.Reference.Id); Assert.Equal(2, operation.Responses.Count); Assert.Equal(new string[] { "204", "default" }, operation.Responses.Select(e => e.Key)); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/RefPutOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/RefPutOperationHandlerTests.cs index 7e734fe13..78193fe55 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/RefPutOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/RefPutOperationHandlerTests.cs @@ -4,7 +4,10 @@ // ------------------------------------------------------------ using Microsoft.OData.Edm; +using Microsoft.OpenApi.Models; +using Microsoft.OpenApi.Models.References; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Tests; using System.Linq; using Xunit; @@ -13,7 +16,12 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class RefPutOperationHandlerTests { - private RefPutOperationHandler _operationHandler = new RefPutOperationHandler(); + public RefPutOperationHandlerTests() + { + _operationHandler = new (); + } + private readonly OpenApiDocument _openApiDocument = new(); + private readonly RefPutOperationHandler _operationHandler; [Theory] [InlineData(true, true)] @@ -42,6 +50,7 @@ public void CreateNavigationRefPutOperationReturnsCorrectOperation(bool enableOp // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -54,8 +63,9 @@ public void CreateNavigationRefPutOperationReturnsCorrectOperation(bool enableOp Assert.NotNull(operation.Parameters); Assert.Single(operation.Parameters); - Assert.Equal(Models.ReferenceType.RequestBody, operation.RequestBody.Reference.Type); - Assert.Equal(Common.Constants.ReferencePutRequestBodyName, operation.RequestBody.Reference.Id); + var requestBodyReference = Assert.IsType(operation.RequestBody); + Assert.Equal(Models.ReferenceType.RequestBody, requestBodyReference.Reference.Type); + Assert.Equal(Common.Constants.ReferencePutRequestBodyName, requestBodyReference.Reference.Id); Assert.Equal(2, operation.Responses.Count); Assert.Equal(new string[] { "204", "default" }, operation.Responses.Select(e => e.Key)); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/SingletonGetOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/SingletonGetOperationHandlerTests.cs index b5c691bf6..346b21cdf 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/SingletonGetOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/SingletonGetOperationHandlerTests.cs @@ -6,12 +6,15 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Threading.Tasks; using System.Xml.Linq; using Microsoft.OData.Edm; using Microsoft.OData.Edm.Csdl; using Microsoft.OData.Edm.Validation; using Microsoft.OpenApi.Extensions; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Tests; using Xunit; @@ -19,7 +22,17 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class SingletonGetOperationHandlerTests { - private SingletonGetOperationHandler _operationHandler = new SingletonGetOperationHandler(); + public SingletonGetOperationHandlerTests() + { + _openApiDocument.AddComponent("Delegated (work or school account)", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + _openApiDocument.AddComponent("Application", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + } + private readonly OpenApiDocument _openApiDocument = new(); + private static SingletonGetOperationHandler _operationHandler => new(); [Theory] [InlineData(true, true)] @@ -48,6 +61,7 @@ public void CreateSingletonGetOperationReturnsCorrectOperation(bool enableOperat // Act var get = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(get); @@ -122,7 +136,7 @@ public void CreateSingletonGetOperationReturnsParameterForNavigationRestrictions [Theory] [InlineData(true)] [InlineData(false)] - public void ReadRestrictionsTermWorksToCreateOperationForSingletonGetOperation(bool enableAnnotation) + public async Task ReadRestrictionsTermWorksToCreateOperationForSingletonGetOperation(bool enableAnnotation) { string annotation = @" @@ -194,6 +208,7 @@ public void ReadRestrictionsTermWorksToCreateOperationForSingletonGetOperation(b // Act var operation = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(operation); @@ -203,7 +218,7 @@ public void ReadRestrictionsTermWorksToCreateOperationForSingletonGetOperation(b { Assert.Equal(2, operation.Security.Count); - string json = operation.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await operation.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Contains(@" ""security"": [ { @@ -292,6 +307,7 @@ private void VerifyParameter(string annotation, bool hasRestriction, bool suppor // Act var get = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(get); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/SingletonPatchOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/SingletonPatchOperationHandlerTests.cs index ca8d3f7ab..96fe72111 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/SingletonPatchOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/SingletonPatchOperationHandlerTests.cs @@ -4,10 +4,12 @@ // ------------------------------------------------------------ using System.Linq; +using System.Threading.Tasks; using Microsoft.OData.Edm; using Microsoft.OpenApi.Extensions; using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; +using Microsoft.OpenApi.OData.Generator; using Microsoft.OpenApi.OData.Reader.Vocabulary.Capabilities.Tests; using Microsoft.OpenApi.OData.Tests; using Xunit; @@ -16,7 +18,20 @@ namespace Microsoft.OpenApi.OData.Operation.Tests { public class SingletonPatchOperationHandlerTests { - private SingletonPatchOperationHandler _operationHandler = new SingletonPatchOperationHandler(); + public SingletonPatchOperationHandlerTests() + { + _openApiDocument.AddComponent("Delegated (work or school account)", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + _openApiDocument.AddComponent("Application", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + _openApiDocument.AddComponent("authorizationName", new OpenApiSecurityScheme { + Type = SecuritySchemeType.OAuth2, + }); + } + private readonly OpenApiDocument _openApiDocument = new(); + private static SingletonPatchOperationHandler _operationHandler => new(); [Theory] [InlineData(true, true)] @@ -45,6 +60,7 @@ public void CreateSingletonPatchOperationReturnsCorrectOperation(bool enableOper // Act var patch = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(patch); @@ -84,7 +100,7 @@ public void CreateSingletonPatchOperationReturnsCorrectOperation(bool enableOper [Theory] [InlineData(false)] [InlineData(true)] - public void CreateSingletonPatchOperationReturnsParameterForUpdateRestrictions(bool hasRestriction) + public async Task CreateSingletonPatchOperationReturnsParameterForUpdateRestrictions(bool hasRestriction) { // Arrange string annotation = @" @@ -183,10 +199,10 @@ public void CreateSingletonPatchOperationReturnsParameterForUpdateRestrictions(b "; // Act & Assert - VerifyOperation(annotation, hasRestriction); + await VerifyOperation(annotation, hasRestriction); } - private void VerifyOperation(string annotation, bool hasRestriction) + private async Task VerifyOperation(string annotation, bool hasRestriction) { // Arrange IEdmModel model = CapabilitiesModelHelper.GetEdmModelOutline(hasRestriction ? annotation : ""); @@ -197,6 +213,7 @@ private void VerifyOperation(string annotation, bool hasRestriction) // Act var patch = _operationHandler.CreateOperation(context, path); + _openApiDocument.Tags = context.CreateTags(); // Assert Assert.NotNull(patch); @@ -223,7 +240,7 @@ private void VerifyOperation(string annotation, bool hasRestriction) Assert.Equal("authorizationName", securityRequirement.Key.Reference.Id); Assert.Equal(new[] { "scopeName1", "scopeName2" }, securityRequirement.Value); - string json = patch.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0); + string json = await patch.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0); Assert.Contains(@" ""security"": [ { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/ComplexPropertyPathItemHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/ComplexPropertyPathItemHandlerTests.cs index 02385b2ed..ea6b3ccdf 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/ComplexPropertyPathItemHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/ComplexPropertyPathItemHandlerTests.cs @@ -204,8 +204,8 @@ public void CreateComplexPropertyPathItemAddsCustomAttributeValuesToPathExtensio Assert.NotNull(pathItem.Extensions); pathItem.Extensions.TryGetValue("x-ms-isHidden", out IOpenApiExtension isHiddenExtension); - string isHiddenValue = (isHiddenExtension as OpenApiString)?.Value; - Assert.Equal("true", isHiddenValue); + string isHiddenValue = (isHiddenExtension as OpenApiAny).Node.GetValue(); + Assert.Equal("true", isHiddenValue); } [Theory] diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/EntityPathItemHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/EntityPathItemHandlerTests.cs index 5a946926e..073c82199 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/EntityPathItemHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/EntityPathItemHandlerTests.cs @@ -281,11 +281,11 @@ public void CreateEntityPathItemAddsCustomAttributeValuesToPathExtensions() Assert.NotNull(pathItem.Extensions); pathItem.Extensions.TryGetValue("x-ms-isHidden", out IOpenApiExtension isHiddenExtension); - string isHiddenValue = (isHiddenExtension as OpenApiString)?.Value; + string isHiddenValue = (isHiddenExtension as OpenApiAny).Node.GetValue(); Assert.Equal("true", isHiddenValue); pathItem.Extensions.TryGetValue("x-ms-isOwner", out IOpenApiExtension isOwnerExtension); - string isOwnerValue = (isOwnerExtension as OpenApiString)?.Value; + string isOwnerValue = (isOwnerExtension as OpenApiAny).Node.GetValue(); Assert.Equal("true", isOwnerValue); } } diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/EntitySetPathItemHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/EntitySetPathItemHandlerTests.cs index 8be197a47..f431a7df0 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/EntitySetPathItemHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/EntitySetPathItemHandlerTests.cs @@ -173,7 +173,7 @@ public void CreateEntitySetPathItemAddsCustomAttributeValuesToPathExtensions() Assert.NotNull(pathItem.Extensions); pathItem.Extensions.TryGetValue("x-ms-isHidden", out var value); - string isHiddenValue = (value as OpenApiString)?.Value; + string isHiddenValue = (value as OpenApiAny).Node.GetValue(); Assert.Equal("true", isHiddenValue); } @@ -214,7 +214,7 @@ public static IEdmModel GetEdmModel(string annotation, string target = "\"NS.Def } } - internal class MyEntitySetPathItemHandler : EntitySetPathItemHandler + internal class MyEntitySetPathItemHandler() : EntitySetPathItemHandler() { protected override void AddOperation(OpenApiPathItem item, OperationType operationType) { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/MediaEntityPathItemHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/MediaEntityPathItemHandlerTests.cs index 7ed6f8d82..d336ca44f 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/MediaEntityPathItemHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/MediaEntityPathItemHandlerTests.cs @@ -313,7 +313,7 @@ private IEdmModel GetEdmModel(string annotation, string targetPathAnnotation = " } } - internal class MyMediaEntityPathItemHandler : MediaEntityPathItemHandler + internal class MyMediaEntityPathItemHandler() : MediaEntityPathItemHandler() { protected override void AddOperation(OpenApiPathItem item, OperationType operationType) { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/NavigationPropertyPathItemHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/NavigationPropertyPathItemHandlerTests.cs index 31eddf464..32806097b 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/NavigationPropertyPathItemHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/NavigationPropertyPathItemHandlerTests.cs @@ -597,7 +597,7 @@ public void CreateNavigationPropertyPathItemAddsCustomAttributeValuesToPathExten Assert.NotNull(pathItem.Extensions); pathItem.Extensions.TryGetValue("x-ms-isHidden", out var value); - string isHiddenValue = (value as OpenApiString)?.Value; + string isHiddenValue = (value as OpenApiAny).Node.GetValue(); Assert.Equal("true", isHiddenValue); } diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/ODataTypeCastPathItemHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/ODataTypeCastPathItemHandlerTests.cs index 29fa676c7..5d895365c 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/ODataTypeCastPathItemHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/ODataTypeCastPathItemHandlerTests.cs @@ -54,11 +54,11 @@ public void CreateODataTypeCastPathItemAddsCustomAttributeValuesToPathExtensions Assert.NotNull(pathItem.Extensions); pathItem.Extensions.TryGetValue("x-ms-isHidden", out IOpenApiExtension isHiddenExtension); - string isHiddenValue = (isHiddenExtension as OpenApiString)?.Value; + string isHiddenValue = (isHiddenExtension as OpenApiAny).Node.GetValue(); Assert.Equal("true", isHiddenValue); pathItem.Extensions.TryGetValue("x-ms-workloadName", out IOpenApiExtension isOwnerExtension); - string isOwnerValue = (isOwnerExtension as OpenApiString)?.Value; + string isOwnerValue = (isOwnerExtension as OpenApiAny).Node.GetValue(); Assert.Equal("People", isOwnerValue); } } diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/OperationImportPathItemHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/OperationImportPathItemHandlerTests.cs index af717784a..a10fb1e5a 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/OperationImportPathItemHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/OperationImportPathItemHandlerTests.cs @@ -146,7 +146,7 @@ public void CreateOperationImportPathItemAddsCustomAttributeValuesToPathExtensio Assert.NotNull(pathItem.Extensions); pathItem.Extensions.TryGetValue("x-ms-isHidden", out IOpenApiExtension isHiddenExtension); - string isHiddenValue = (isHiddenExtension as OpenApiString)?.Value; + string isHiddenValue = (isHiddenExtension as OpenApiAny).Node.GetValue(); Assert.Equal("true", isHiddenValue); } @@ -187,7 +187,7 @@ public static IEdmModel GetEdmModel(string annotation) } } - internal class MyOperationImportPathItemHandler : OperationImportPathItemHandler + internal class MyOperationImportPathItemHandler() : OperationImportPathItemHandler() { protected override void AddOperation(OpenApiPathItem item, OperationType operationType) { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/OperationPathItemHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/OperationPathItemHandlerTests.cs index 0a39fb51d..6af67477c 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/OperationPathItemHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/OperationPathItemHandlerTests.cs @@ -121,11 +121,11 @@ public void CreateOperationPathItemAddsCustomAttributeValuesToPathExtensions(str Assert.NotNull(pathItem.Extensions); pathItem.Extensions.TryGetValue("x-ms-isHidden", out IOpenApiExtension isHiddenExtension); - string isHiddenValue = (isHiddenExtension as OpenApiString)?.Value; + string isHiddenValue = (isHiddenExtension as OpenApiAny).Node.GetValue(); Assert.Equal("true", isHiddenValue); pathItem.Extensions.TryGetValue("x-ms-workloadName", out IOpenApiExtension isOwnerExtension); - string isOwnerValue = (isOwnerExtension as OpenApiString)?.Value; + string isOwnerValue = (isOwnerExtension as OpenApiAny).Node.GetValue(); Assert.Equal("People", isOwnerValue); } } diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/PathItemHandlerProviderTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/PathItemHandlerProviderTests.cs index b5218abb9..8a8aca68a 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/PathItemHandlerProviderTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/PathItemHandlerProviderTests.cs @@ -4,6 +4,7 @@ // ------------------------------------------------------------ using System; +using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData.Edm; using Xunit; diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/SingletonPathItemHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/SingletonPathItemHandlerTests.cs index da7ef6ab1..0c2ecc1fd 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/SingletonPathItemHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/SingletonPathItemHandlerTests.cs @@ -154,7 +154,7 @@ public void CreateSingletonPathItemAddsCustomAttributeValuesToPathExtensions() Assert.NotNull(pathItem.Extensions); pathItem.Extensions.TryGetValue("x-ms-isHidden", out var value); - string isHiddenValue = (value as OpenApiString)?.Value; + string isHiddenValue = (value as OpenApiAny).Node.GetValue(); Assert.Equal("true", isHiddenValue); } diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V2.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V2.json index b904fcecd..2a2e75db6 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V2.json +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V2.json @@ -17,6 +17,9 @@ ], "summary": "Get entities from City", "operationId": "City.City.ListCity", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -39,11 +42,11 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "Name", "Name desc" - ], - "type": "string" + ] } }, { @@ -52,10 +55,10 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Name" - ], - "type": "string" + ] } }, { @@ -64,10 +67,10 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*" - ], - "type": "string" + ] } } ], @@ -143,10 +146,10 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Name" - ], - "type": "string" + ] } }, { @@ -155,10 +158,10 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*" - ], - "type": "string" + ] } } ], @@ -184,6 +187,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -219,6 +225,9 @@ ], "summary": "Delete entity from City", "operationId": "City.City.DeleteCity", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -254,6 +263,10 @@ ], "summary": "Get the number of the resource", "operationId": "City.GetCount-8728", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -280,6 +293,9 @@ ], "summary": "Get entities from CountryOrRegion", "operationId": "CountryOrRegion.CountryOrRegion.ListCountryOrRegion", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -302,11 +318,11 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "Name", "Name desc" - ], - "type": "string" + ] } }, { @@ -315,10 +331,10 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Name" - ], - "type": "string" + ] } }, { @@ -327,10 +343,10 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*" - ], - "type": "string" + ] } } ], @@ -406,10 +422,10 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Name" - ], - "type": "string" + ] } }, { @@ -418,10 +434,10 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*" - ], - "type": "string" + ] } } ], @@ -447,6 +463,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -482,6 +501,9 @@ ], "summary": "Delete entity from CountryOrRegion", "operationId": "CountryOrRegion.CountryOrRegion.DeleteCountryOrRegion", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -517,6 +539,10 @@ ], "summary": "Get the number of the resource", "operationId": "CountryOrRegion.GetCount-daf5", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -553,13 +579,13 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "UserName", "HomeAddress", "WorkAddress", "Addresses" - ], - "type": "string" + ] } }, { @@ -568,10 +594,10 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*" - ], - "type": "string" + ] } } ], @@ -597,6 +623,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -628,6 +657,9 @@ "summary": "Get entities from People", "description": "People's description.", "operationId": "People.Person.ListPerson", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -650,6 +682,7 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "UserName", "UserName desc", @@ -659,8 +692,7 @@ "WorkAddress desc", "Addresses", "Addresses desc" - ], - "type": "string" + ] } }, { @@ -669,13 +701,13 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "UserName", "HomeAddress", "WorkAddress", "Addresses" - ], - "type": "string" + ] } }, { @@ -684,10 +716,10 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*" - ], - "type": "string" + ] } } ], @@ -763,13 +795,13 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "UserName", "HomeAddress", "WorkAddress", "Addresses" - ], - "type": "string" + ] } }, { @@ -778,10 +810,10 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*" - ], - "type": "string" + ] } } ], @@ -807,6 +839,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -842,6 +877,9 @@ ], "summary": "Delete entity from People", "operationId": "People.Person.DeletePerson", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -877,6 +915,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.GetCount-dd8d", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -898,18 +940,117 @@ } }, "definitions": { + "DefaultNs.ODataErrors.ODataError": { + "type": "object", + "required": [ + "error" + ], + "properties": { + "error": { + "$ref": "#/definitions/DefaultNs.ODataErrors.MainError" + } + } + }, + "DefaultNs.ODataErrors.MainError": { + "type": "object", + "required": [ + "code", + "message" + ], + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string", + "x-ms-primary-error-message": true + }, + "target": { + "type": "string", + "x-nullable": true + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/DefaultNs.ODataErrors.ErrorDetails" + } + }, + "innerError": { + "$ref": "#/definitions/DefaultNs.ODataErrors.InnerError" + } + } + }, + "DefaultNs.ODataErrors.ErrorDetails": { + "type": "object", + "required": [ + "code", + "message" + ], + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "target": { + "type": "string", + "x-nullable": true + } + } + }, + "DefaultNs.ODataErrors.InnerError": { + "type": "object", + "description": "The structure of this object is service-specific" + }, + "ODataCountResponse": { + "type": "number", + "format": "int64" + }, + "ReferenceUpdate": { + "type": "object", + "properties": { + "@odata.id": { + "type": "string" + }, + "@odata.type": { + "type": "string", + "x-nullable": true + } + } + }, + "ReferenceCreate": { + "type": "object", + "properties": { + "@odata.id": { + "type": "string" + } + }, + "additionalProperties": { + "type": "object" + } + }, + "ReferenceNumeric": { + "type": "string", + "x-nullable": true, + "enum": [ + "-INF", + "INF", + "NaN" + ] + }, "DefaultNs.Color": { - "title": "Color", + "type": "string", "description": "Enum type 'Color' description.", + "title": "Color", "enum": [ "Blue", "White" - ], - "type": "string" + ] }, "DefaultNs.Person": { - "title": "Person", "type": "object", + "title": "Person", "properties": { "UserName": { "type": "string" @@ -943,8 +1084,8 @@ } }, "DefaultNs.City": { - "title": "City", "type": "object", + "title": "City", "properties": { "Name": { "type": "string" @@ -955,8 +1096,8 @@ } }, "DefaultNs.CountryOrRegion": { - "title": "CountryOrRegion", "type": "object", + "title": "CountryOrRegion", "properties": { "Name": { "type": "string" @@ -967,21 +1108,21 @@ } }, "DefaultNs.Address": { - "title": "Address", "type": "object", + "title": "Address", "properties": { "Id": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "City": { "$ref": "#/definitions/DefaultNs.City" } }, "example": { - "Id": "number", + "Id": 0, "City": { "@odata.type": "DefaultNs.City" } @@ -993,8 +1134,8 @@ "$ref": "#/definitions/DefaultNs.Address" }, { - "title": "WorkAddress", "type": "object", + "title": "WorkAddress", "properties": { "CountryOrRegion": { "$ref": "#/definitions/DefaultNs.CountryOrRegion" @@ -1003,7 +1144,7 @@ } ], "example": { - "Id": "number", + "Id": 0, "City": { "@odata.type": "DefaultNs.City" }, @@ -1012,74 +1153,9 @@ } } }, - "DefaultNs.ODataErrors.ODataError": { - "required": [ - "error" - ], - "type": "object", - "properties": { - "error": { - "$ref": "#/definitions/DefaultNs.ODataErrors.MainError" - } - } - }, - "DefaultNs.ODataErrors.MainError": { - "required": [ - "code", - "message" - ], - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "message": { - "type": "string", - "x-ms-primary-error-message": true - }, - "target": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/DefaultNs.ODataErrors.ErrorDetails" - } - }, - "innerError": { - "$ref": "#/definitions/DefaultNs.ODataErrors.InnerError" - } - } - }, - "DefaultNs.ODataErrors.ErrorDetails": { - "required": [ - "code", - "message" - ], - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "message": { - "type": "string" - }, - "target": { - "type": "string" - } - } - }, - "DefaultNs.ODataErrors.InnerError": { - "description": "The structure of this object is service-specific", - "type": "object" - }, - "ODataCountResponse": { - "format": "int32", - "type": "integer" - }, "DefaultNs.PersonCollectionResponse": { - "title": "Collection of Person", "type": "object", + "title": "Collection of Person", "properties": { "value": { "type": "array", @@ -1090,8 +1166,8 @@ } }, "DefaultNs.CityCollectionResponse": { - "title": "Collection of City", "type": "object", + "title": "Collection of City", "properties": { "value": { "type": "array", @@ -1102,8 +1178,8 @@ } }, "DefaultNs.CountryOrRegionCollectionResponse": { - "title": "Collection of CountryOrRegion", "type": "object", + "title": "Collection of CountryOrRegion", "properties": { "value": { "type": "array", @@ -1114,8 +1190,8 @@ } }, "DefaultNs.AddressCollectionResponse": { - "title": "Collection of DefaultNs.Address", "type": "object", + "title": "Collection of DefaultNs.Address", "properties": { "value": { "type": "array", @@ -1124,36 +1200,6 @@ } } } - }, - "ReferenceUpdate": { - "type": "object", - "properties": { - "@odata.id": { - "type": "string" - }, - "@odata.type": { - "type": "string" - } - } - }, - "ReferenceCreate": { - "type": "object", - "properties": { - "@odata.id": { - "type": "string" - } - }, - "additionalProperties": { - "type": "object" - } - }, - "ReferenceNumeric": { - "enum": [ - "-INF", - "INF", - "NaN" - ], - "type": "string" } }, "parameters": { @@ -1161,14 +1207,16 @@ "in": "query", "name": "$top", "description": "Show only the first n items", - "type": "integer", + "type": "number", + "format": "int64", "minimum": 0 }, "skip": { "in": "query", "name": "$skip", "description": "Skip the first n items", - "type": "integer", + "type": "number", + "format": "int64", "minimum": 0 }, "count": { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V2.yaml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V2.yaml index 272fd865a..81966d75c 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V2.yaml +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V2.yaml @@ -13,6 +13,8 @@ paths: - City.City summary: Get entities from City operationId: City.City.ListCity + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -24,26 +26,26 @@ paths: description: Order items by property values type: array items: + type: string enum: - Name - Name desc - type: string - in: query name: $select description: Select properties to be returned type: array items: + type: string enum: - Name - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - type: string responses: '200': $ref: '#/responses/DefaultNs.CityCollectionResponse' @@ -94,17 +96,17 @@ paths: description: Select properties to be returned type: array items: + type: string enum: - Name - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - type: string responses: '200': description: Retrieved entity @@ -120,6 +122,8 @@ paths: operationId: City.City.UpdateCity consumes: - application/json + produces: + - application/json parameters: - in: path name: Name @@ -144,6 +148,8 @@ paths: - City.City summary: Delete entity from City operationId: City.City.DeleteCity + produces: + - application/json parameters: - in: path name: Name @@ -168,6 +174,9 @@ paths: - City.City summary: Get the number of the resource operationId: City.GetCount-8728 + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -183,6 +192,8 @@ paths: - CountryOrRegion.CountryOrRegion summary: Get entities from CountryOrRegion operationId: CountryOrRegion.CountryOrRegion.ListCountryOrRegion + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -194,26 +205,26 @@ paths: description: Order items by property values type: array items: + type: string enum: - Name - Name desc - type: string - in: query name: $select description: Select properties to be returned type: array items: + type: string enum: - Name - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - type: string responses: '200': $ref: '#/responses/DefaultNs.CountryOrRegionCollectionResponse' @@ -264,17 +275,17 @@ paths: description: Select properties to be returned type: array items: + type: string enum: - Name - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - type: string responses: '200': description: Retrieved entity @@ -290,6 +301,8 @@ paths: operationId: CountryOrRegion.CountryOrRegion.UpdateCountryOrRegion consumes: - application/json + produces: + - application/json parameters: - in: path name: Name @@ -314,6 +327,8 @@ paths: - CountryOrRegion.CountryOrRegion summary: Delete entity from CountryOrRegion operationId: CountryOrRegion.CountryOrRegion.DeleteCountryOrRegion + produces: + - application/json parameters: - in: path name: Name @@ -338,6 +353,9 @@ paths: - CountryOrRegion.CountryOrRegion summary: Get the number of the resource operationId: CountryOrRegion.GetCount-daf5 + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -361,20 +379,20 @@ paths: description: Select properties to be returned type: array items: + type: string enum: - UserName - HomeAddress - WorkAddress - Addresses - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - type: string responses: '200': description: Retrieved entity @@ -390,6 +408,8 @@ paths: operationId: Me.Person.UpdatePerson consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -411,6 +431,8 @@ paths: summary: Get entities from People description: People's description. operationId: People.Person.ListPerson + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -422,6 +444,7 @@ paths: description: Order items by property values type: array items: + type: string enum: - UserName - UserName desc @@ -431,26 +454,25 @@ paths: - WorkAddress desc - Addresses - Addresses desc - type: string - in: query name: $select description: Select properties to be returned type: array items: + type: string enum: - UserName - HomeAddress - WorkAddress - Addresses - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - type: string responses: '200': $ref: '#/responses/DefaultNs.PersonCollectionResponse' @@ -501,20 +523,20 @@ paths: description: Select properties to be returned type: array items: + type: string enum: - UserName - HomeAddress - WorkAddress - Addresses - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - type: string responses: '200': description: Retrieved entity @@ -530,6 +552,8 @@ paths: operationId: People.Person.UpdatePerson consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -554,6 +578,8 @@ paths: - People.Person summary: Delete entity from People operationId: People.Person.DeletePerson + produces: + - application/json parameters: - in: path name: UserName @@ -578,6 +604,9 @@ paths: - People.Person summary: Get the number of the resource operationId: People.GetCount-dd8d + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -588,16 +617,84 @@ paths: $ref: '#/responses/error' x-description: Provides operations to count the resources in the collection. definitions: + DefaultNs.ODataErrors.ODataError: + type: object + required: + - error + properties: + error: + $ref: '#/definitions/DefaultNs.ODataErrors.MainError' + DefaultNs.ODataErrors.MainError: + type: object + required: + - code + - message + properties: + code: + type: string + message: + type: string + x-ms-primary-error-message: true + target: + type: string + x-nullable: true + details: + type: array + items: + $ref: '#/definitions/DefaultNs.ODataErrors.ErrorDetails' + innerError: + $ref: '#/definitions/DefaultNs.ODataErrors.InnerError' + DefaultNs.ODataErrors.ErrorDetails: + type: object + required: + - code + - message + properties: + code: + type: string + message: + type: string + target: + type: string + x-nullable: true + DefaultNs.ODataErrors.InnerError: + type: object + description: The structure of this object is service-specific + ODataCountResponse: + type: number + format: int64 + ReferenceUpdate: + type: object + properties: + '@odata.id': + type: string + '@odata.type': + type: string + x-nullable: true + ReferenceCreate: + type: object + properties: + '@odata.id': + type: string + additionalProperties: + type: object + ReferenceNumeric: + type: string + x-nullable: true + enum: + - '-INF' + - INF + - NaN DefaultNs.Color: - title: Color + type: string description: Enum type 'Color' description. + title: Color enum: - Blue - White - type: string DefaultNs.Person: - title: Person type: object + title: Person properties: UserName: type: string @@ -618,158 +715,96 @@ definitions: Addresses: - '@odata.type': DefaultNs.Address DefaultNs.City: - title: City type: object + title: City properties: Name: type: string example: Name: string (identifier) DefaultNs.CountryOrRegion: - title: CountryOrRegion type: object + title: CountryOrRegion properties: Name: type: string example: Name: string (identifier) DefaultNs.Address: - title: Address type: object + title: Address properties: Id: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number City: $ref: '#/definitions/DefaultNs.City' example: - Id: number + Id: 0 City: '@odata.type': DefaultNs.City DefaultNs.WorkAddress: allOf: - $ref: '#/definitions/DefaultNs.Address' - - title: WorkAddress - type: object + - type: object + title: WorkAddress properties: CountryOrRegion: $ref: '#/definitions/DefaultNs.CountryOrRegion' example: - Id: number + Id: 0 City: '@odata.type': DefaultNs.City CountryOrRegion: '@odata.type': DefaultNs.CountryOrRegion - DefaultNs.ODataErrors.ODataError: - required: - - error - type: object - properties: - error: - $ref: '#/definitions/DefaultNs.ODataErrors.MainError' - DefaultNs.ODataErrors.MainError: - required: - - code - - message - type: object - properties: - code: - type: string - message: - type: string - x-ms-primary-error-message: true - target: - type: string - details: - type: array - items: - $ref: '#/definitions/DefaultNs.ODataErrors.ErrorDetails' - innerError: - $ref: '#/definitions/DefaultNs.ODataErrors.InnerError' - DefaultNs.ODataErrors.ErrorDetails: - required: - - code - - message - type: object - properties: - code: - type: string - message: - type: string - target: - type: string - DefaultNs.ODataErrors.InnerError: - description: The structure of this object is service-specific - type: object - ODataCountResponse: - format: int32 - type: integer DefaultNs.PersonCollectionResponse: - title: Collection of Person type: object + title: Collection of Person properties: value: type: array items: $ref: '#/definitions/DefaultNs.Person' DefaultNs.CityCollectionResponse: - title: Collection of City type: object + title: Collection of City properties: value: type: array items: $ref: '#/definitions/DefaultNs.City' DefaultNs.CountryOrRegionCollectionResponse: - title: Collection of CountryOrRegion type: object + title: Collection of CountryOrRegion properties: value: type: array items: $ref: '#/definitions/DefaultNs.CountryOrRegion' DefaultNs.AddressCollectionResponse: - title: Collection of DefaultNs.Address type: object + title: Collection of DefaultNs.Address properties: value: type: array items: $ref: '#/definitions/DefaultNs.Address' - ReferenceUpdate: - type: object - properties: - '@odata.id': - type: string - '@odata.type': - type: string - ReferenceCreate: - type: object - properties: - '@odata.id': - type: string - additionalProperties: - type: object - ReferenceNumeric: - enum: - - '-INF' - - INF - - NaN - type: string parameters: top: in: query name: $top description: Show only the first n items - type: integer + type: number + format: int64 minimum: 0 skip: in: query name: $skip description: Skip the first n items - type: integer + type: number + format: int64 minimum: 0 count: in: query diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V3.1.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V3.1.json new file mode 100644 index 000000000..fdb7e7be6 --- /dev/null +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V3.1.json @@ -0,0 +1,1461 @@ +{ + "openapi": "3.1.1", + "info": { + "title": "OData Service for namespace DefaultNs", + "description": "This OData service is located at http://localhost", + "version": "1.0.0" + }, + "servers": [ + { + "url": "http://localhost" + } + ], + "paths": { + "/City": { + "description": "Provides operations to manage the collection of City entities.", + "get": { + "tags": [ + "City.City" + ], + "summary": "Get entities from City", + "operationId": "City.City.ListCity", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Name", + "Name desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Name" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/DefaultNs.CityCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "City.City" + ], + "summary": "Add new entity to City", + "operationId": "City.City.CreateCity", + "requestBody": { + "description": "New entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.City" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.City" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/City({Name})": { + "description": "Provides operations to manage the collection of City entities.", + "get": { + "tags": [ + "City.City" + ], + "summary": "Get entity from City by key", + "operationId": "City.City.GetCity", + "parameters": [ + { + "name": "Name", + "in": "path", + "description": "The unique identifier of City", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "City" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Name" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.City" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "City.City" + ], + "summary": "Update entity in City", + "operationId": "City.City.UpdateCity", + "parameters": [ + { + "name": "Name", + "in": "path", + "description": "The unique identifier of City", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "City" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.City" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "City.City" + ], + "summary": "Delete entity from City", + "operationId": "City.City.DeleteCity", + "parameters": [ + { + "name": "Name", + "in": "path", + "description": "The unique identifier of City", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "City" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/City/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "City.City" + ], + "summary": "Get the number of the resource", + "operationId": "City.GetCount-8728", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/CountryOrRegion": { + "description": "Provides operations to manage the collection of CountryOrRegion entities.", + "get": { + "tags": [ + "CountryOrRegion.CountryOrRegion" + ], + "summary": "Get entities from CountryOrRegion", + "operationId": "CountryOrRegion.CountryOrRegion.ListCountryOrRegion", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Name", + "Name desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Name" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/DefaultNs.CountryOrRegionCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "CountryOrRegion.CountryOrRegion" + ], + "summary": "Add new entity to CountryOrRegion", + "operationId": "CountryOrRegion.CountryOrRegion.CreateCountryOrRegion", + "requestBody": { + "description": "New entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.CountryOrRegion" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.CountryOrRegion" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/CountryOrRegion({Name})": { + "description": "Provides operations to manage the collection of CountryOrRegion entities.", + "get": { + "tags": [ + "CountryOrRegion.CountryOrRegion" + ], + "summary": "Get entity from CountryOrRegion by key", + "operationId": "CountryOrRegion.CountryOrRegion.GetCountryOrRegion", + "parameters": [ + { + "name": "Name", + "in": "path", + "description": "The unique identifier of CountryOrRegion", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "CountryOrRegion" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Name" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.CountryOrRegion" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "CountryOrRegion.CountryOrRegion" + ], + "summary": "Update entity in CountryOrRegion", + "operationId": "CountryOrRegion.CountryOrRegion.UpdateCountryOrRegion", + "parameters": [ + { + "name": "Name", + "in": "path", + "description": "The unique identifier of CountryOrRegion", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "CountryOrRegion" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.CountryOrRegion" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "CountryOrRegion.CountryOrRegion" + ], + "summary": "Delete entity from CountryOrRegion", + "operationId": "CountryOrRegion.CountryOrRegion.DeleteCountryOrRegion", + "parameters": [ + { + "name": "Name", + "in": "path", + "description": "The unique identifier of CountryOrRegion", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "CountryOrRegion" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/CountryOrRegion/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "CountryOrRegion.CountryOrRegion" + ], + "summary": "Get the number of the resource", + "operationId": "CountryOrRegion.GetCount-daf5", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Me": { + "description": "Provides operations to manage the Person singleton.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get Me", + "operationId": "Me.Person.GetPerson", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "HomeAddress", + "WorkAddress", + "Addresses" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.Person" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "Me.Person" + ], + "summary": "Update Me", + "operationId": "Me.Person.UpdatePerson", + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.Person" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get entities from People", + "description": "People's description.", + "operationId": "People.Person.ListPerson", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "UserName desc", + "HomeAddress", + "HomeAddress desc", + "WorkAddress", + "WorkAddress desc", + "Addresses", + "Addresses desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "HomeAddress", + "WorkAddress", + "Addresses" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/DefaultNs.PersonCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "People.Person" + ], + "summary": "Add new entity to People", + "operationId": "People.Person.CreatePerson", + "requestBody": { + "description": "New entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.Person" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.Person" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People({UserName})": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get entity from People by key", + "operationId": "People.Person.GetPerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "HomeAddress", + "WorkAddress", + "Addresses" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.Person" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "People.Person" + ], + "summary": "Update entity in People", + "operationId": "People.Person.UpdatePerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.Person" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete entity from People", + "operationId": "People.Person.DeletePerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the number of the resource", + "operationId": "People.GetCount-dd8d", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + } + }, + "components": { + "schemas": { + "DefaultNs.ODataErrors.ODataError": { + "required": [ + "error" + ], + "type": "object", + "properties": { + "error": { + "$ref": "#/components/schemas/DefaultNs.ODataErrors.MainError" + } + } + }, + "DefaultNs.ODataErrors.MainError": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string", + "x-ms-primary-error-message": true + }, + "target": { + "type": [ + "null", + "string" + ] + }, + "details": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DefaultNs.ODataErrors.ErrorDetails" + } + }, + "innerError": { + "$ref": "#/components/schemas/DefaultNs.ODataErrors.InnerError" + } + } + }, + "DefaultNs.ODataErrors.ErrorDetails": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "target": { + "type": [ + "null", + "string" + ] + } + } + }, + "DefaultNs.ODataErrors.InnerError": { + "type": "object", + "description": "The structure of this object is service-specific" + }, + "ODataCountResponse": { + "type": "number", + "format": "int64" + }, + "ReferenceUpdate": { + "type": "object", + "properties": { + "@odata.id": { + "type": "string" + }, + "@odata.type": { + "type": [ + "null", + "string" + ] + } + } + }, + "ReferenceCreate": { + "type": "object", + "properties": { + "@odata.id": { + "type": "string" + } + }, + "additionalProperties": { + "type": "object" + } + }, + "ReferenceNumeric": { + "enum": [ + "-INF", + "INF", + "NaN" + ], + "type": [ + "null", + "string" + ] + }, + "DefaultNs.Color": { + "title": "Color", + "enum": [ + "Blue", + "White" + ], + "type": "string", + "description": "Enum type 'Color' description." + }, + "DefaultNs.Person": { + "title": "Person", + "type": "object", + "properties": { + "UserName": { + "type": "string" + }, + "HomeAddress": { + "$ref": "#/components/schemas/DefaultNs.Address" + }, + "WorkAddress": { + "$ref": "#/components/schemas/DefaultNs.Address" + }, + "Addresses": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DefaultNs.Address" + } + } + }, + "example": { + "UserName": "string (identifier)", + "HomeAddress": { + "@odata.type": "DefaultNs.Address" + }, + "WorkAddress": { + "@odata.type": "DefaultNs.Address" + }, + "Addresses": [ + { + "@odata.type": "DefaultNs.Address" + } + ] + } + }, + "DefaultNs.City": { + "title": "City", + "type": "object", + "properties": { + "Name": { + "type": "string" + } + }, + "example": { + "Name": "string (identifier)" + } + }, + "DefaultNs.CountryOrRegion": { + "title": "CountryOrRegion", + "type": "object", + "properties": { + "Name": { + "type": "string" + } + }, + "example": { + "Name": "string (identifier)" + } + }, + "DefaultNs.Address": { + "title": "Address", + "type": "object", + "properties": { + "Id": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "City": { + "$ref": "#/components/schemas/DefaultNs.City" + } + }, + "example": { + "Id": 0, + "City": { + "@odata.type": "DefaultNs.City" + } + } + }, + "DefaultNs.WorkAddress": { + "allOf": [ + { + "$ref": "#/components/schemas/DefaultNs.Address" + }, + { + "title": "WorkAddress", + "type": "object", + "properties": { + "CountryOrRegion": { + "$ref": "#/components/schemas/DefaultNs.CountryOrRegion" + } + } + } + ], + "example": { + "Id": 0, + "City": { + "@odata.type": "DefaultNs.City" + }, + "CountryOrRegion": { + "@odata.type": "DefaultNs.CountryOrRegion" + } + } + }, + "DefaultNs.PersonCollectionResponse": { + "title": "Collection of Person", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DefaultNs.Person" + } + } + } + }, + "DefaultNs.CityCollectionResponse": { + "title": "Collection of City", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DefaultNs.City" + } + } + } + }, + "DefaultNs.CountryOrRegionCollectionResponse": { + "title": "Collection of CountryOrRegion", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DefaultNs.CountryOrRegion" + } + } + } + }, + "DefaultNs.AddressCollectionResponse": { + "title": "Collection of DefaultNs.Address", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DefaultNs.Address" + } + } + } + } + }, + "responses": { + "error": { + "description": "error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.ODataErrors.ODataError" + } + } + } + }, + "ODataCountResponse": { + "description": "The count of the resource", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/ODataCountResponse" + } + } + } + }, + "DefaultNs.PersonCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.PersonCollectionResponse" + } + } + } + }, + "DefaultNs.CityCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.CityCollectionResponse" + } + } + } + }, + "DefaultNs.CountryOrRegionCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.CountryOrRegionCollectionResponse" + } + } + } + }, + "DefaultNs.AddressCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DefaultNs.AddressCollectionResponse" + } + } + } + } + }, + "parameters": { + "top": { + "name": "$top", + "in": "query", + "description": "Show only the first n items", + "explode": false, + "schema": { + "minimum": 0, + "type": "number", + "format": "int64" + }, + "example": 50 + }, + "skip": { + "name": "$skip", + "in": "query", + "description": "Skip the first n items", + "explode": false, + "schema": { + "minimum": 0, + "type": "number", + "format": "int64" + } + }, + "count": { + "name": "$count", + "in": "query", + "description": "Include count of items", + "explode": false, + "schema": { + "type": "boolean" + } + }, + "filter": { + "name": "$filter", + "in": "query", + "description": "Filter items by property values", + "explode": false, + "schema": { + "type": "string" + } + }, + "search": { + "name": "$search", + "in": "query", + "description": "Search items by search phrases", + "explode": false, + "schema": { + "type": "string" + } + } + }, + "examples": { + "DefaultNs.Person": { + "value": { + "UserName": "string (identifier)", + "HomeAddress": { + "@odata.type": "DefaultNs.Address" + }, + "WorkAddress": { + "@odata.type": "DefaultNs.Address" + }, + "Addresses": [ + { + "@odata.type": "DefaultNs.Address" + } + ] + } + }, + "DefaultNs.City": { + "value": { + "Name": "string (identifier)" + } + }, + "DefaultNs.CountryOrRegion": { + "value": { + "Name": "string (identifier)" + } + }, + "DefaultNs.Address": { + "value": { + "Id": 0, + "City": { + "@odata.type": "DefaultNs.City" + } + } + }, + "DefaultNs.WorkAddress": { + "value": { + "Id": 0, + "City": { + "@odata.type": "DefaultNs.City" + }, + "CountryOrRegion": { + "@odata.type": "DefaultNs.CountryOrRegion" + } + } + } + }, + "requestBodies": { + "refPostBody": { + "description": "New navigation property ref value", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReferenceCreate" + } + } + }, + "required": true + }, + "refPutBody": { + "description": "New navigation property ref values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReferenceUpdate" + } + } + }, + "required": true + } + } + }, + "tags": [ + { + "name": "City.City", + "x-ms-docs-toc-type": "page" + }, + { + "name": "CountryOrRegion.CountryOrRegion", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Me.Person", + "x-ms-docs-toc-type": "page" + }, + { + "name": "People.Person", + "x-ms-docs-toc-type": "page" + } + ] +} diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V3.1.yaml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V3.1.yaml new file mode 100644 index 000000000..c0c611654 --- /dev/null +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V3.1.yaml @@ -0,0 +1,950 @@ +openapi: '3.1.1' +info: + title: OData Service for namespace DefaultNs + description: This OData service is located at http://localhost + version: 1.0.0 +servers: + - url: http://localhost +paths: + /City: + description: Provides operations to manage the collection of City entities. + get: + tags: + - City.City + summary: Get entities from City + operationId: City.City.ListCity + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Name + - Name desc + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Name + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + type: string + responses: + '200': + $ref: '#/components/responses/DefaultNs.CityCollectionResponse' + default: + $ref: '#/components/responses/error' + post: + tags: + - City.City + summary: Add new entity to City + operationId: City.City.CreateCity + requestBody: + description: New entity + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.City' + required: true + responses: + '201': + description: Created entity + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.City' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/City({Name})': + description: Provides operations to manage the collection of City entities. + get: + tags: + - City.City + summary: Get entity from City by key + operationId: City.City.GetCity + parameters: + - name: Name + in: path + description: The unique identifier of City + required: true + schema: + type: string + x-ms-docs-key-type: City + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Name + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + type: string + responses: + '200': + description: Retrieved entity + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.City' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + patch: + tags: + - City.City + summary: Update entity in City + operationId: City.City.UpdateCity + parameters: + - name: Name + in: path + description: The unique identifier of City + required: true + schema: + type: string + x-ms-docs-key-type: City + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.City' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - City.City + summary: Delete entity from City + operationId: City.City.DeleteCity + parameters: + - name: Name + in: path + description: The unique identifier of City + required: true + schema: + type: string + x-ms-docs-key-type: City + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + /City/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - City.City + summary: Get the number of the resource + operationId: City.GetCount-8728 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + /CountryOrRegion: + description: Provides operations to manage the collection of CountryOrRegion entities. + get: + tags: + - CountryOrRegion.CountryOrRegion + summary: Get entities from CountryOrRegion + operationId: CountryOrRegion.CountryOrRegion.ListCountryOrRegion + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Name + - Name desc + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Name + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + type: string + responses: + '200': + $ref: '#/components/responses/DefaultNs.CountryOrRegionCollectionResponse' + default: + $ref: '#/components/responses/error' + post: + tags: + - CountryOrRegion.CountryOrRegion + summary: Add new entity to CountryOrRegion + operationId: CountryOrRegion.CountryOrRegion.CreateCountryOrRegion + requestBody: + description: New entity + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.CountryOrRegion' + required: true + responses: + '201': + description: Created entity + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.CountryOrRegion' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/CountryOrRegion({Name})': + description: Provides operations to manage the collection of CountryOrRegion entities. + get: + tags: + - CountryOrRegion.CountryOrRegion + summary: Get entity from CountryOrRegion by key + operationId: CountryOrRegion.CountryOrRegion.GetCountryOrRegion + parameters: + - name: Name + in: path + description: The unique identifier of CountryOrRegion + required: true + schema: + type: string + x-ms-docs-key-type: CountryOrRegion + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Name + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + type: string + responses: + '200': + description: Retrieved entity + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.CountryOrRegion' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + patch: + tags: + - CountryOrRegion.CountryOrRegion + summary: Update entity in CountryOrRegion + operationId: CountryOrRegion.CountryOrRegion.UpdateCountryOrRegion + parameters: + - name: Name + in: path + description: The unique identifier of CountryOrRegion + required: true + schema: + type: string + x-ms-docs-key-type: CountryOrRegion + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.CountryOrRegion' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - CountryOrRegion.CountryOrRegion + summary: Delete entity from CountryOrRegion + operationId: CountryOrRegion.CountryOrRegion.DeleteCountryOrRegion + parameters: + - name: Name + in: path + description: The unique identifier of CountryOrRegion + required: true + schema: + type: string + x-ms-docs-key-type: CountryOrRegion + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + /CountryOrRegion/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - CountryOrRegion.CountryOrRegion + summary: Get the number of the resource + operationId: CountryOrRegion.GetCount-daf5 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + /Me: + description: Provides operations to manage the Person singleton. + get: + tags: + - Me.Person + summary: Get Me + operationId: Me.Person.GetPerson + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - UserName + - HomeAddress + - WorkAddress + - Addresses + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + type: string + responses: + '200': + description: Retrieved entity + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.Person' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + patch: + tags: + - Me.Person + summary: Update Me + operationId: Me.Person.UpdatePerson + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.Person' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + /People: + description: Provides operations to manage the collection of Person entities. + get: + tags: + - People.Person + summary: Get entities from People + description: People's description. + operationId: People.Person.ListPerson + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - UserName + - UserName desc + - HomeAddress + - HomeAddress desc + - WorkAddress + - WorkAddress desc + - Addresses + - Addresses desc + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - UserName + - HomeAddress + - WorkAddress + - Addresses + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + type: string + responses: + '200': + $ref: '#/components/responses/DefaultNs.PersonCollectionResponse' + default: + $ref: '#/components/responses/error' + post: + tags: + - People.Person + summary: Add new entity to People + operationId: People.Person.CreatePerson + requestBody: + description: New entity + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.Person' + required: true + responses: + '201': + description: Created entity + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.Person' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/People({UserName})': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - People.Person + summary: Get entity from People by key + operationId: People.Person.GetPerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - UserName + - HomeAddress + - WorkAddress + - Addresses + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + type: string + responses: + '200': + description: Retrieved entity + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.Person' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + patch: + tags: + - People.Person + summary: Update entity in People + operationId: People.Person.UpdatePerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.Person' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete entity from People + operationId: People.Person.DeletePerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + /People/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person + summary: Get the number of the resource + operationId: People.GetCount-dd8d + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' +components: + schemas: + DefaultNs.ODataErrors.ODataError: + required: + - error + type: object + properties: + error: + $ref: '#/components/schemas/DefaultNs.ODataErrors.MainError' + DefaultNs.ODataErrors.MainError: + required: + - code + - message + type: object + properties: + code: + type: string + message: + type: string + x-ms-primary-error-message: true + target: + type: + - 'null' + - string + details: + type: array + items: + $ref: '#/components/schemas/DefaultNs.ODataErrors.ErrorDetails' + innerError: + $ref: '#/components/schemas/DefaultNs.ODataErrors.InnerError' + DefaultNs.ODataErrors.ErrorDetails: + required: + - code + - message + type: object + properties: + code: + type: string + message: + type: string + target: + type: + - 'null' + - string + DefaultNs.ODataErrors.InnerError: + type: object + description: The structure of this object is service-specific + ODataCountResponse: + type: number + format: int64 + ReferenceUpdate: + type: object + properties: + '@odata.id': + type: string + '@odata.type': + type: + - 'null' + - string + ReferenceCreate: + type: object + properties: + '@odata.id': + type: string + additionalProperties: + type: object + ReferenceNumeric: + enum: + - '-INF' + - INF + - NaN + type: + - 'null' + - string + DefaultNs.Color: + title: Color + enum: + - Blue + - White + type: string + description: Enum type 'Color' description. + DefaultNs.Person: + title: Person + type: object + properties: + UserName: + type: string + HomeAddress: + $ref: '#/components/schemas/DefaultNs.Address' + WorkAddress: + $ref: '#/components/schemas/DefaultNs.Address' + Addresses: + type: array + items: + $ref: '#/components/schemas/DefaultNs.Address' + example: + UserName: string (identifier) + HomeAddress: + '@odata.type': DefaultNs.Address + WorkAddress: + '@odata.type': DefaultNs.Address + Addresses: + - '@odata.type': DefaultNs.Address + DefaultNs.City: + title: City + type: object + properties: + Name: + type: string + example: + Name: string (identifier) + DefaultNs.CountryOrRegion: + title: CountryOrRegion + type: object + properties: + Name: + type: string + example: + Name: string (identifier) + DefaultNs.Address: + title: Address + type: object + properties: + Id: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + City: + $ref: '#/components/schemas/DefaultNs.City' + example: + Id: 0 + City: + '@odata.type': DefaultNs.City + DefaultNs.WorkAddress: + allOf: + - $ref: '#/components/schemas/DefaultNs.Address' + - title: WorkAddress + type: object + properties: + CountryOrRegion: + $ref: '#/components/schemas/DefaultNs.CountryOrRegion' + example: + Id: 0 + City: + '@odata.type': DefaultNs.City + CountryOrRegion: + '@odata.type': DefaultNs.CountryOrRegion + DefaultNs.PersonCollectionResponse: + title: Collection of Person + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/DefaultNs.Person' + DefaultNs.CityCollectionResponse: + title: Collection of City + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/DefaultNs.City' + DefaultNs.CountryOrRegionCollectionResponse: + title: Collection of CountryOrRegion + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/DefaultNs.CountryOrRegion' + DefaultNs.AddressCollectionResponse: + title: Collection of DefaultNs.Address + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/DefaultNs.Address' + responses: + error: + description: error + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.ODataErrors.ODataError' + ODataCountResponse: + description: The count of the resource + content: + text/plain: + schema: + $ref: '#/components/schemas/ODataCountResponse' + DefaultNs.PersonCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.PersonCollectionResponse' + DefaultNs.CityCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.CityCollectionResponse' + DefaultNs.CountryOrRegionCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.CountryOrRegionCollectionResponse' + DefaultNs.AddressCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultNs.AddressCollectionResponse' + parameters: + top: + name: $top + in: query + description: Show only the first n items + explode: false + schema: + minimum: 0 + type: number + format: int64 + example: 50 + skip: + name: $skip + in: query + description: Skip the first n items + explode: false + schema: + minimum: 0 + type: number + format: int64 + count: + name: $count + in: query + description: Include count of items + explode: false + schema: + type: boolean + filter: + name: $filter + in: query + description: Filter items by property values + explode: false + schema: + type: string + search: + name: $search + in: query + description: Search items by search phrases + explode: false + schema: + type: string + examples: + DefaultNs.Person: + value: + UserName: string (identifier) + HomeAddress: + '@odata.type': DefaultNs.Address + WorkAddress: + '@odata.type': DefaultNs.Address + Addresses: + - '@odata.type': DefaultNs.Address + DefaultNs.City: + value: + Name: string (identifier) + DefaultNs.CountryOrRegion: + value: + Name: string (identifier) + DefaultNs.Address: + value: + Id: 0 + City: + '@odata.type': DefaultNs.City + DefaultNs.WorkAddress: + value: + Id: 0 + City: + '@odata.type': DefaultNs.City + CountryOrRegion: + '@odata.type': DefaultNs.CountryOrRegion + requestBodies: + refPostBody: + description: New navigation property ref value + content: + application/json: + schema: + $ref: '#/components/schemas/ReferenceCreate' + required: true + refPutBody: + description: New navigation property ref values + content: + application/json: + schema: + $ref: '#/components/schemas/ReferenceUpdate' + required: true +tags: + - name: City.City + x-ms-docs-toc-type: page + - name: CountryOrRegion.CountryOrRegion + x-ms-docs-toc-type: page + - name: Me.Person + x-ms-docs-toc-type: page + - name: People.Person + x-ms-docs-toc-type: page diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.json index c3b1db8fb..b7a79edc0 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.json +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.json @@ -39,7 +39,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -57,7 +56,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -74,7 +72,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -155,7 +152,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -172,7 +168,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -333,7 +328,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -351,7 +345,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -368,7 +361,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -449,7 +441,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -466,7 +457,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -612,7 +602,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -632,7 +621,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -720,7 +708,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -744,7 +731,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -764,7 +750,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -845,7 +830,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -865,7 +849,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1084,7 +1067,7 @@ } }, "example": { - "Id": "number", + "Id": 0, "City": { "@odata.type": "DefaultNs.City" } @@ -1106,7 +1089,7 @@ } ], "example": { - "Id": "number", + "Id": 0, "City": { "@odata.type": "DefaultNs.City" }, @@ -1179,8 +1162,8 @@ "description": "The structure of this object is service-specific" }, "ODataCountResponse": { - "type": "integer", - "format": "int32" + "type": "number", + "format": "int64" }, "DefaultNs.PersonCollectionResponse": { "title": "Collection of Person", @@ -1330,11 +1313,11 @@ "name": "$top", "in": "query", "description": "Show only the first n items", - "style": "form", "explode": false, "schema": { "minimum": 0, - "type": "integer" + "type": "number", + "format": "int64" }, "example": 50 }, @@ -1342,18 +1325,17 @@ "name": "$skip", "in": "query", "description": "Skip the first n items", - "style": "form", "explode": false, "schema": { "minimum": 0, - "type": "integer" + "type": "number", + "format": "int64" } }, "count": { "name": "$count", "in": "query", "description": "Include count of items", - "style": "form", "explode": false, "schema": { "type": "boolean" @@ -1363,7 +1345,6 @@ "name": "$filter", "in": "query", "description": "Filter items by property values", - "style": "form", "explode": false, "schema": { "type": "string" @@ -1373,7 +1354,6 @@ "name": "$search", "in": "query", "description": "Search items by search phrases", - "style": "form", "explode": false, "schema": { "type": "string" @@ -1391,7 +1371,7 @@ "HomeAddress": { "@odata.type": "DefaultNs.Address" }, - "UserName": "String (identifier)", + "UserName": "string (identifier)", "WorkAddress": { "@odata.type": "DefaultNs.Address" } @@ -1399,12 +1379,12 @@ }, "DefaultNs.City": { "value": { - "Name": "String (identifier)" + "Name": "string (identifier)" } }, "DefaultNs.CountryOrRegion": { "value": { - "Name": "String (identifier)" + "Name": "string (identifier)" } }, "DefaultNs.Address": { @@ -1417,9 +1397,13 @@ }, "DefaultNs.WorkAddress": { "value": { + "City": { + "@odata.type": "DefaultNs.City" + }, "CountryOrRegion": { "@odata.type": "DefaultNs.CountryOrRegion" - } + }, + "Id": 0 } } }, diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.yaml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.yaml index be4edfc1e..7f9acd1c8 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.yaml +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.yaml @@ -22,7 +22,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -35,7 +34,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -47,7 +45,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -101,7 +98,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -113,7 +109,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -213,7 +208,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -226,7 +220,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -238,7 +231,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -292,7 +284,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -304,7 +295,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -399,7 +389,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -414,7 +403,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -468,7 +456,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -487,7 +474,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -502,7 +488,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -556,7 +541,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -571,7 +555,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -657,6 +640,74 @@ paths: $ref: '#/components/responses/error' components: schemas: + DefaultNs.ODataErrors.ODataError: + required: + - error + type: object + properties: + error: + $ref: '#/components/schemas/DefaultNs.ODataErrors.MainError' + DefaultNs.ODataErrors.MainError: + required: + - code + - message + type: object + properties: + code: + type: string + message: + type: string + x-ms-primary-error-message: true + target: + type: string + nullable: true + details: + type: array + items: + $ref: '#/components/schemas/DefaultNs.ODataErrors.ErrorDetails' + innerError: + $ref: '#/components/schemas/DefaultNs.ODataErrors.InnerError' + DefaultNs.ODataErrors.ErrorDetails: + required: + - code + - message + type: object + properties: + code: + type: string + message: + type: string + target: + type: string + nullable: true + DefaultNs.ODataErrors.InnerError: + type: object + description: The structure of this object is service-specific + ODataCountResponse: + type: number + format: int64 + ReferenceUpdate: + type: object + properties: + '@odata.id': + type: string + '@odata.type': + type: string + nullable: true + ReferenceCreate: + type: object + properties: + '@odata.id': + type: string + additionalProperties: + type: object + ReferenceNumeric: + enum: + - '-INF' + - INF + - NaN + type: string + nullable: true DefaultNs.Color: title: Color enum: @@ -714,7 +765,7 @@ components: City: $ref: '#/components/schemas/DefaultNs.City' example: - Id: number + Id: 0 City: '@odata.type': DefaultNs.City DefaultNs.WorkAddress: @@ -726,57 +777,11 @@ components: CountryOrRegion: $ref: '#/components/schemas/DefaultNs.CountryOrRegion' example: - Id: number + Id: 0 City: '@odata.type': DefaultNs.City CountryOrRegion: '@odata.type': DefaultNs.CountryOrRegion - DefaultNs.ODataErrors.ODataError: - required: - - error - type: object - properties: - error: - $ref: '#/components/schemas/DefaultNs.ODataErrors.MainError' - DefaultNs.ODataErrors.MainError: - required: - - code - - message - type: object - properties: - code: - type: string - message: - type: string - x-ms-primary-error-message: true - target: - type: string - nullable: true - details: - type: array - items: - $ref: '#/components/schemas/DefaultNs.ODataErrors.ErrorDetails' - innerError: - $ref: '#/components/schemas/DefaultNs.ODataErrors.InnerError' - DefaultNs.ODataErrors.ErrorDetails: - required: - - code - - message - type: object - properties: - code: - type: string - message: - type: string - target: - type: string - nullable: true - DefaultNs.ODataErrors.InnerError: - type: object - description: The structure of this object is service-specific - ODataCountResponse: - type: integer - format: int32 DefaultNs.PersonCollectionResponse: title: Collection of Person type: object @@ -809,28 +814,6 @@ components: type: array items: $ref: '#/components/schemas/DefaultNs.Address' - ReferenceUpdate: - type: object - properties: - '@odata.id': - type: string - '@odata.type': - type: string - nullable: true - ReferenceCreate: - type: object - properties: - '@odata.id': - type: string - additionalProperties: - type: object - ReferenceNumeric: - enum: - - '-INF' - - INF - - NaN - type: string - nullable: true responses: error: description: error @@ -873,26 +856,25 @@ components: name: $top in: query description: Show only the first n items - style: form explode: false schema: minimum: 0 - type: integer + type: number + format: int64 example: 50 skip: name: $skip in: query description: Skip the first n items - style: form explode: false schema: minimum: 0 - type: integer + type: number + format: int64 count: name: $count in: query description: Include count of items - style: form explode: false schema: type: boolean @@ -900,7 +882,6 @@ components: name: $filter in: query description: Filter items by property values - style: form explode: false schema: type: string @@ -908,33 +889,35 @@ components: name: $search in: query description: Search items by search phrases - style: form explode: false schema: type: string examples: DefaultNs.Person: value: - Addresses: - - '@odata.type': DefaultNs.Address + UserName: string (identifier) HomeAddress: '@odata.type': DefaultNs.Address - UserName: String (identifier) WorkAddress: '@odata.type': DefaultNs.Address + Addresses: + - '@odata.type': DefaultNs.Address DefaultNs.City: value: - Name: String (identifier) + Name: string (identifier) DefaultNs.CountryOrRegion: value: - Name: String (identifier) + Name: string (identifier) DefaultNs.Address: value: + Id: 0 City: '@odata.type': DefaultNs.City - Id: 0 DefaultNs.WorkAddress: value: + Id: 0 + City: + '@odata.type': DefaultNs.City CountryOrRegion: '@odata.type': DefaultNs.CountryOrRegion requestBodies: diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V2.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V2.json index 3b1a6c860..a7e0d8abc 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V2.json +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V2.json @@ -12,10 +12,10 @@ "paths": { }, "definitions": { "ODataErrors.ODataError": { + "type": "object", "required": [ "error" ], - "type": "object", "properties": { "error": { "$ref": "#/definitions/ODataErrors.MainError" @@ -23,11 +23,11 @@ } }, "ODataErrors.MainError": { + "type": "object", "required": [ "code", "message" ], - "type": "object", "properties": { "code": { "type": "string" @@ -37,7 +37,8 @@ "x-ms-primary-error-message": true }, "target": { - "type": "string" + "type": "string", + "x-nullable": true }, "details": { "type": "array", @@ -51,11 +52,11 @@ } }, "ODataErrors.ErrorDetails": { + "type": "object", "required": [ "code", "message" ], - "type": "object", "properties": { "code": { "type": "string" @@ -64,17 +65,18 @@ "type": "string" }, "target": { - "type": "string" + "type": "string", + "x-nullable": true } } }, "ODataErrors.InnerError": { - "description": "The structure of this object is service-specific", - "type": "object" + "type": "object", + "description": "The structure of this object is service-specific" }, "ODataCountResponse": { - "format": "int32", - "type": "integer" + "type": "number", + "format": "int64" }, "ReferenceUpdate": { "type": "object", @@ -83,7 +85,8 @@ "type": "string" }, "@odata.type": { - "type": "string" + "type": "string", + "x-nullable": true } } }, @@ -99,12 +102,13 @@ } }, "ReferenceNumeric": { + "type": "string", + "x-nullable": true, "enum": [ "-INF", "INF", "NaN" - ], - "type": "string" + ] } }, "parameters": { @@ -112,14 +116,16 @@ "in": "query", "name": "$top", "description": "Show only the first n items", - "type": "integer", + "type": "number", + "format": "int64", "minimum": 0 }, "skip": { "in": "query", "name": "$skip", "description": "Skip the first n items", - "type": "integer", + "type": "number", + "format": "int64", "minimum": 0 }, "count": { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V2.yaml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V2.yaml index a75539a52..9692922eb 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V2.yaml +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V2.yaml @@ -9,17 +9,17 @@ schemes: paths: { } definitions: ODataErrors.ODataError: + type: object required: - error - type: object properties: error: $ref: '#/definitions/ODataErrors.MainError' ODataErrors.MainError: + type: object required: - code - message - type: object properties: code: type: string @@ -28,6 +28,7 @@ definitions: x-ms-primary-error-message: true target: type: string + x-nullable: true details: type: array items: @@ -35,10 +36,10 @@ definitions: innerError: $ref: '#/definitions/ODataErrors.InnerError' ODataErrors.ErrorDetails: + type: object required: - code - message - type: object properties: code: type: string @@ -46,12 +47,13 @@ definitions: type: string target: type: string + x-nullable: true ODataErrors.InnerError: - description: The structure of this object is service-specific type: object + description: The structure of this object is service-specific ODataCountResponse: - format: int32 - type: integer + type: number + format: int64 ReferenceUpdate: type: object properties: @@ -59,6 +61,7 @@ definitions: type: string '@odata.type': type: string + x-nullable: true ReferenceCreate: type: object properties: @@ -67,23 +70,26 @@ definitions: additionalProperties: type: object ReferenceNumeric: + type: string + x-nullable: true enum: - '-INF' - INF - NaN - type: string parameters: top: in: query name: $top description: Show only the first n items - type: integer + type: number + format: int64 minimum: 0 skip: in: query name: $skip description: Skip the first n items - type: integer + type: number + format: int64 minimum: 0 count: in: query diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V3.1.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V3.1.json new file mode 100644 index 000000000..2fd7686d9 --- /dev/null +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V3.1.json @@ -0,0 +1,223 @@ +{ + "openapi": "3.1.1", + "info": { + "title": "OData Service for namespace ", + "description": "This OData service is located at http://localhost", + "version": "1.0.0" + }, + "servers": [ + { + "url": "http://localhost" + } + ], + "paths": { }, + "components": { + "schemas": { + "ODataErrors.ODataError": { + "required": [ + "error" + ], + "type": "object", + "properties": { + "error": { + "$ref": "#/components/schemas/ODataErrors.MainError" + } + } + }, + "ODataErrors.MainError": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string", + "x-ms-primary-error-message": true + }, + "target": { + "type": [ + "null", + "string" + ] + }, + "details": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ODataErrors.ErrorDetails" + } + }, + "innerError": { + "$ref": "#/components/schemas/ODataErrors.InnerError" + } + } + }, + "ODataErrors.ErrorDetails": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "target": { + "type": [ + "null", + "string" + ] + } + } + }, + "ODataErrors.InnerError": { + "type": "object", + "description": "The structure of this object is service-specific" + }, + "ODataCountResponse": { + "type": "number", + "format": "int64" + }, + "ReferenceUpdate": { + "type": "object", + "properties": { + "@odata.id": { + "type": "string" + }, + "@odata.type": { + "type": [ + "null", + "string" + ] + } + } + }, + "ReferenceCreate": { + "type": "object", + "properties": { + "@odata.id": { + "type": "string" + } + }, + "additionalProperties": { + "type": "object" + } + }, + "ReferenceNumeric": { + "enum": [ + "-INF", + "INF", + "NaN" + ], + "type": [ + "null", + "string" + ] + } + }, + "responses": { + "error": { + "description": "error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ODataErrors.ODataError" + } + } + } + }, + "ODataCountResponse": { + "description": "The count of the resource", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/ODataCountResponse" + } + } + } + } + }, + "parameters": { + "top": { + "name": "$top", + "in": "query", + "description": "Show only the first n items", + "explode": false, + "schema": { + "minimum": 0, + "type": "number", + "format": "int64" + }, + "example": 50 + }, + "skip": { + "name": "$skip", + "in": "query", + "description": "Skip the first n items", + "explode": false, + "schema": { + "minimum": 0, + "type": "number", + "format": "int64" + } + }, + "count": { + "name": "$count", + "in": "query", + "description": "Include count of items", + "explode": false, + "schema": { + "type": "boolean" + } + }, + "filter": { + "name": "$filter", + "in": "query", + "description": "Filter items by property values", + "explode": false, + "schema": { + "type": "string" + } + }, + "search": { + "name": "$search", + "in": "query", + "description": "Search items by search phrases", + "explode": false, + "schema": { + "type": "string" + } + } + }, + "requestBodies": { + "refPostBody": { + "description": "New navigation property ref value", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReferenceCreate" + } + } + }, + "required": true + }, + "refPutBody": { + "description": "New navigation property ref values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReferenceUpdate" + } + } + }, + "required": true + } + } + } +} diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V3.1.yaml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V3.1.yaml new file mode 100644 index 000000000..3c6fb003d --- /dev/null +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V3.1.yaml @@ -0,0 +1,151 @@ +openapi: '3.1.1' +info: + title: 'OData Service for namespace ' + description: This OData service is located at http://localhost + version: 1.0.0 +servers: + - url: http://localhost +paths: { } +components: + schemas: + ODataErrors.ODataError: + required: + - error + type: object + properties: + error: + $ref: '#/components/schemas/ODataErrors.MainError' + ODataErrors.MainError: + required: + - code + - message + type: object + properties: + code: + type: string + message: + type: string + x-ms-primary-error-message: true + target: + type: + - 'null' + - string + details: + type: array + items: + $ref: '#/components/schemas/ODataErrors.ErrorDetails' + innerError: + $ref: '#/components/schemas/ODataErrors.InnerError' + ODataErrors.ErrorDetails: + required: + - code + - message + type: object + properties: + code: + type: string + message: + type: string + target: + type: + - 'null' + - string + ODataErrors.InnerError: + type: object + description: The structure of this object is service-specific + ODataCountResponse: + type: number + format: int64 + ReferenceUpdate: + type: object + properties: + '@odata.id': + type: string + '@odata.type': + type: + - 'null' + - string + ReferenceCreate: + type: object + properties: + '@odata.id': + type: string + additionalProperties: + type: object + ReferenceNumeric: + enum: + - '-INF' + - INF + - NaN + type: + - 'null' + - string + responses: + error: + description: error + content: + application/json: + schema: + $ref: '#/components/schemas/ODataErrors.ODataError' + ODataCountResponse: + description: The count of the resource + content: + text/plain: + schema: + $ref: '#/components/schemas/ODataCountResponse' + parameters: + top: + name: $top + in: query + description: Show only the first n items + explode: false + schema: + minimum: 0 + type: number + format: int64 + example: 50 + skip: + name: $skip + in: query + description: Skip the first n items + explode: false + schema: + minimum: 0 + type: number + format: int64 + count: + name: $count + in: query + description: Include count of items + explode: false + schema: + type: boolean + filter: + name: $filter + in: query + description: Filter items by property values + explode: false + schema: + type: string + search: + name: $search + in: query + description: Search items by search phrases + explode: false + schema: + type: string + requestBodies: + refPostBody: + description: New navigation property ref value + content: + application/json: + schema: + $ref: '#/components/schemas/ReferenceCreate' + required: true + refPutBody: + description: New navigation property ref values + content: + application/json: + schema: + $ref: '#/components/schemas/ReferenceUpdate' + required: true diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.json index 64796606e..892884da2 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.json +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.json @@ -77,8 +77,8 @@ "description": "The structure of this object is service-specific" }, "ODataCountResponse": { - "type": "integer", - "format": "int32" + "type": "number", + "format": "int64" }, "ReferenceUpdate": { "type": "object", @@ -140,11 +140,11 @@ "name": "$top", "in": "query", "description": "Show only the first n items", - "style": "form", "explode": false, "schema": { "minimum": 0, - "type": "integer" + "type": "number", + "format": "int64" }, "example": 50 }, @@ -152,18 +152,17 @@ "name": "$skip", "in": "query", "description": "Skip the first n items", - "style": "form", "explode": false, "schema": { "minimum": 0, - "type": "integer" + "type": "number", + "format": "int64" } }, "count": { "name": "$count", "in": "query", "description": "Include count of items", - "style": "form", "explode": false, "schema": { "type": "boolean" @@ -173,7 +172,6 @@ "name": "$filter", "in": "query", "description": "Filter items by property values", - "style": "form", "explode": false, "schema": { "type": "string" @@ -183,7 +181,6 @@ "name": "$search", "in": "query", "description": "Search items by search phrases", - "style": "form", "explode": false, "schema": { "type": "string" diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.yaml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.yaml index 5bc83853a..6c097575d 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.yaml +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.yaml @@ -52,8 +52,8 @@ components: type: object description: The structure of this object is service-specific ODataCountResponse: - type: integer - format: int32 + type: number + format: int64 ReferenceUpdate: type: object properties: @@ -94,26 +94,25 @@ components: name: $top in: query description: Show only the first n items - style: form explode: false schema: minimum: 0 - type: integer + type: number + format: int64 example: 50 skip: name: $skip in: query description: Skip the first n items - style: form explode: false schema: minimum: 0 - type: integer + type: number + format: int64 count: name: $count in: query description: Include count of items - style: form explode: false schema: type: boolean @@ -121,7 +120,6 @@ components: name: $filter in: query description: Filter items by property values - style: form explode: false schema: type: string @@ -129,7 +127,6 @@ components: name: $search in: query description: Search items by search phrases - style: form explode: false schema: type: string diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.json index 49e62c4ea..995e3e06c 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.json +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.json @@ -17,6 +17,9 @@ ], "summary": "Get entities from Categories", "operationId": "Categories.CategoryDto.ListCategoryDto", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -39,6 +42,7 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Id desc", @@ -52,8 +56,7 @@ "ModificationDate desc", "DomainId", "DomainId desc" - ], - "type": "string" + ] } }, { @@ -62,6 +65,7 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Name", @@ -69,8 +73,7 @@ "CreationDate", "ModificationDate", "DomainId" - ], - "type": "string" + ] } }, { @@ -79,10 +82,10 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*" - ], - "type": "string" + ] } } ], @@ -161,6 +164,7 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Name", @@ -168,8 +172,7 @@ "CreationDate", "ModificationDate", "DomainId" - ], - "type": "string" + ] } }, { @@ -178,10 +181,10 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*" - ], - "type": "string" + ] } } ], @@ -207,6 +210,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -245,6 +251,9 @@ ], "summary": "Delete entity from Categories", "operationId": "Categories.CategoryDto.DeleteCategoryDto", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -283,6 +292,10 @@ ], "summary": "Get the number of the resource", "operationId": "Categories.GetCount-2f72", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -309,6 +322,9 @@ ], "summary": "Get entities from Documents", "operationId": "Documents.DocumentDto.ListDocumentDto", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -331,6 +347,7 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Id desc", @@ -352,8 +369,7 @@ "ModifiedBy desc", "Tags", "Tags desc" - ], - "type": "string" + ] } }, { @@ -362,6 +378,7 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Name", @@ -374,8 +391,7 @@ "ModifiedBy", "Tags", "Revisions" - ], - "type": "string" + ] } }, { @@ -384,11 +400,11 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*", "Revisions" - ], - "type": "string" + ] } } ], @@ -467,6 +483,7 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Name", @@ -479,8 +496,7 @@ "ModifiedBy", "Tags", "Revisions" - ], - "type": "string" + ] } }, { @@ -489,11 +505,11 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*", "Revisions" - ], - "type": "string" + ] } } ], @@ -519,6 +535,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -557,6 +576,9 @@ ], "summary": "Delete entity from Documents", "operationId": "Documents.DocumentDto.DeleteDocumentDto", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -595,6 +617,9 @@ ], "summary": "Invoke action Upload", "operationId": "Documents.DocumentDto.Upload", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -627,6 +652,9 @@ ], "summary": "Get Revisions from Documents", "operationId": "Documents.ListRevisions", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -660,6 +688,7 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Id desc", @@ -695,8 +724,7 @@ "RejectedDate desc", "DomainId", "DomainId desc" - ], - "type": "string" + ] } }, { @@ -705,6 +733,7 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Number", @@ -724,8 +753,7 @@ "RejectedDate", "DomainId", "Document" - ], - "type": "string" + ] } }, { @@ -734,11 +762,11 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*", "Document" - ], - "type": "string" + ] } } ], @@ -761,6 +789,9 @@ ], "summary": "Delete ref of navigation property Revisions for Documents", "operationId": "Documents.revisions.DeleteRefRevisionDto", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -810,6 +841,10 @@ ], "summary": "Get the number of the resource", "operationId": "Documents.Revisions.GetCount-f834", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -847,6 +882,9 @@ ], "summary": "Get ref of Revisions from Documents", "operationId": "Documents.ListRefRevisions", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -880,6 +918,7 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Id desc", @@ -915,8 +954,7 @@ "RejectedDate desc", "DomainId", "DomainId desc" - ], - "type": "string" + ] } } ], @@ -936,6 +974,12 @@ ], "summary": "Create new navigation property ref to Revisions for Documents", "operationId": "Documents.CreateRefRevisions", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -968,6 +1012,9 @@ ], "summary": "Delete ref of navigation property Revisions for Documents", "operationId": "Documents.DeleteRefRevisions", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -1013,6 +1060,9 @@ ], "summary": "Get Tags property value", "operationId": "Documents.ListTags", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -1046,11 +1096,11 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "Name", "Name desc" - ], - "type": "string" + ] } }, { @@ -1059,10 +1109,10 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Name" - ], - "type": "string" + ] } }, { @@ -1071,10 +1121,10 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*" - ], - "type": "string" + ] } } ], @@ -1096,6 +1146,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -1144,6 +1197,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -1192,6 +1248,10 @@ ], "summary": "Get the number of the resource", "operationId": "Documents.Tags.GetCount-ed53", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -1229,6 +1289,10 @@ ], "summary": "Get the number of the resource", "operationId": "Documents.GetCount-f555", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -1255,6 +1319,9 @@ ], "summary": "Get entities from Libraries", "operationId": "Libraries.LibraryDto.ListLibraryDto", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -1277,6 +1344,7 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Id desc", @@ -1308,8 +1376,7 @@ "ModifiedBy desc", "ModificationDate", "ModificationDate desc" - ], - "type": "string" + ] } }, { @@ -1318,6 +1385,7 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Name", @@ -1335,8 +1403,7 @@ "ModifiedBy", "ModificationDate", "Documents" - ], - "type": "string" + ] } }, { @@ -1345,11 +1412,11 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*", "Documents" - ], - "type": "string" + ] } } ], @@ -1428,6 +1495,7 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Name", @@ -1445,8 +1513,7 @@ "ModifiedBy", "ModificationDate", "Documents" - ], - "type": "string" + ] } }, { @@ -1455,11 +1522,11 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*", "Documents" - ], - "type": "string" + ] } } ], @@ -1485,6 +1552,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -1523,6 +1593,9 @@ ], "summary": "Delete entity from Libraries", "operationId": "Libraries.LibraryDto.DeleteLibraryDto", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -1561,6 +1634,9 @@ ], "summary": "Get Documents from Libraries", "operationId": "Libraries.ListDocuments", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -1594,6 +1670,7 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Id desc", @@ -1615,8 +1692,7 @@ "ModifiedBy desc", "Tags", "Tags desc" - ], - "type": "string" + ] } }, { @@ -1625,6 +1701,7 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Name", @@ -1637,8 +1714,7 @@ "ModifiedBy", "Tags", "Revisions" - ], - "type": "string" + ] } }, { @@ -1647,11 +1723,11 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*", "Revisions" - ], - "type": "string" + ] } } ], @@ -1674,6 +1750,9 @@ ], "summary": "Delete ref of navigation property Documents for Libraries", "operationId": "Libraries.documents.DeleteRefDocumentDto", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -1723,6 +1802,9 @@ ], "summary": "Get Tags property value", "operationId": "Libraries.Documents.ListTags", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -1767,11 +1849,11 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "Name", "Name desc" - ], - "type": "string" + ] } }, { @@ -1780,10 +1862,10 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Name" - ], - "type": "string" + ] } }, { @@ -1792,10 +1874,10 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*" - ], - "type": "string" + ] } } ], @@ -1817,6 +1899,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -1876,6 +1961,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -1935,6 +2023,10 @@ ], "summary": "Get the number of the resource", "operationId": "Libraries.Documents.Tags.GetCount-2853", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -1983,6 +2075,10 @@ ], "summary": "Get the number of the resource", "operationId": "Libraries.Documents.GetCount-34c7", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -2020,6 +2116,9 @@ ], "summary": "Get ref of Documents from Libraries", "operationId": "Libraries.ListRefDocuments", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -2053,6 +2152,7 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Id desc", @@ -2074,8 +2174,7 @@ "ModifiedBy desc", "Tags", "Tags desc" - ], - "type": "string" + ] } } ], @@ -2095,6 +2194,12 @@ ], "summary": "Create new navigation property ref to Documents for Libraries", "operationId": "Libraries.CreateRefDocuments", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -2127,6 +2232,9 @@ ], "summary": "Delete ref of navigation property Documents for Libraries", "operationId": "Libraries.DeleteRefDocuments", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -2172,6 +2280,10 @@ ], "summary": "Get the number of the resource", "operationId": "Libraries.GetCount-e13e", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -2198,6 +2310,9 @@ ], "summary": "Get entities from Revisions", "operationId": "Revisions.RevisionDto.ListRevisionDto", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -2220,6 +2335,7 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Id desc", @@ -2255,8 +2371,7 @@ "RejectedDate desc", "DomainId", "DomainId desc" - ], - "type": "string" + ] } }, { @@ -2265,6 +2380,7 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Number", @@ -2284,8 +2400,7 @@ "RejectedDate", "DomainId", "Document" - ], - "type": "string" + ] } }, { @@ -2294,11 +2409,11 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*", "Document" - ], - "type": "string" + ] } } ], @@ -2377,6 +2492,7 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Number", @@ -2396,8 +2512,7 @@ "RejectedDate", "DomainId", "Document" - ], - "type": "string" + ] } }, { @@ -2406,11 +2521,11 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*", "Document" - ], - "type": "string" + ] } } ], @@ -2436,6 +2551,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -2474,6 +2592,9 @@ ], "summary": "Delete entity from Revisions", "operationId": "Revisions.RevisionDto.DeleteRevisionDto", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -2533,6 +2654,7 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Name", @@ -2585,8 +2707,7 @@ "SourceDocument", "SourceDocumentChildren", "Revisions" - ], - "type": "string" + ] } }, { @@ -2595,6 +2716,7 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*", "Library", @@ -2602,8 +2724,7 @@ "SourceDocument", "SourceDocumentChildren", "Revisions" - ], - "type": "string" + ] } } ], @@ -2664,6 +2785,12 @@ ], "summary": "Update the ref of navigation property Document in Revisions", "operationId": "Revisions.UpdateRefDocument", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -2696,6 +2823,9 @@ ], "summary": "Delete ref of navigation property Document for Revisions", "operationId": "Revisions.DeleteRefDocument", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -2734,6 +2864,9 @@ ], "summary": "Get DocumentClasses property value", "operationId": "Revisions.Document.ListDocumentClasses", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -2767,6 +2900,7 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "ClassInstance", "ClassInstance desc", @@ -2784,8 +2918,7 @@ "ModificationDate desc", "IsPrimary", "IsPrimary desc" - ], - "type": "string" + ] } }, { @@ -2794,6 +2927,7 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "ClassInstance", "ClassId", @@ -2804,8 +2938,7 @@ "ModificationDate", "IsPrimary", "Document" - ], - "type": "string" + ] } }, { @@ -2814,11 +2947,11 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*", "Document" - ], - "type": "string" + ] } } ], @@ -2840,6 +2973,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -2888,6 +3024,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -2936,6 +3075,10 @@ ], "summary": "Get the number of the resource", "operationId": "Revisions.Document.DocumentClasses.GetCount-6342", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -2973,6 +3116,9 @@ ], "summary": "Get Tags property value", "operationId": "Revisions.Document.ListTags", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -3006,6 +3152,7 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "DocumentId", "DocumentId desc", @@ -3021,8 +3168,7 @@ "CreationDate desc", "ModificationDate", "ModificationDate desc" - ], - "type": "string" + ] } }, { @@ -3031,6 +3177,7 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "DocumentId", "TagId", @@ -3041,8 +3188,7 @@ "ModificationDate", "Document", "Tag" - ], - "type": "string" + ] } }, { @@ -3051,12 +3197,12 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*", "Document", "Tag" - ], - "type": "string" + ] } } ], @@ -3078,6 +3224,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -3126,6 +3275,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -3174,6 +3326,10 @@ ], "summary": "Get the number of the resource", "operationId": "Revisions.Document.Tags.GetCount-161f", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -3211,6 +3367,10 @@ ], "summary": "Get the number of the resource", "operationId": "Revisions.GetCount-c6a5", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -3237,6 +3397,9 @@ ], "summary": "Get entities from Tasks", "operationId": "Tasks.DocumentDto.ListDocumentDto", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -3259,6 +3422,7 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Id desc", @@ -3280,8 +3444,7 @@ "ModifiedBy desc", "Tags", "Tags desc" - ], - "type": "string" + ] } }, { @@ -3290,6 +3453,7 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Name", @@ -3302,8 +3466,7 @@ "ModifiedBy", "Tags", "Revisions" - ], - "type": "string" + ] } }, { @@ -3312,11 +3475,11 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*", "Revisions" - ], - "type": "string" + ] } } ], @@ -3395,6 +3558,7 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Name", @@ -3407,8 +3571,7 @@ "ModifiedBy", "Tags", "Revisions" - ], - "type": "string" + ] } }, { @@ -3417,11 +3580,11 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*", "Revisions" - ], - "type": "string" + ] } } ], @@ -3447,6 +3610,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -3485,6 +3651,9 @@ ], "summary": "Delete entity from Tasks", "operationId": "Tasks.DocumentDto.DeleteDocumentDto", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -3523,6 +3692,9 @@ ], "summary": "Invoke action Upload", "operationId": "Tasks.DocumentDto.Upload", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -3555,6 +3727,9 @@ ], "summary": "Get Revisions from Tasks", "operationId": "Tasks.ListRevisions", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -3588,6 +3763,7 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Id desc", @@ -3623,8 +3799,7 @@ "RejectedDate desc", "DomainId", "DomainId desc" - ], - "type": "string" + ] } }, { @@ -3633,6 +3808,7 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Number", @@ -3652,8 +3828,7 @@ "RejectedDate", "DomainId", "Document" - ], - "type": "string" + ] } }, { @@ -3662,11 +3837,11 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*", "Document" - ], - "type": "string" + ] } } ], @@ -3689,6 +3864,9 @@ ], "summary": "Delete ref of navigation property Revisions for Tasks", "operationId": "Tasks.revisions.DeleteRefRevisionDto", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -3738,6 +3916,10 @@ ], "summary": "Get the number of the resource", "operationId": "Tasks.Revisions.GetCount-9297", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -3775,6 +3957,9 @@ ], "summary": "Get ref of Revisions from Tasks", "operationId": "Tasks.ListRefRevisions", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -3808,6 +3993,7 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "Id", "Id desc", @@ -3843,8 +4029,7 @@ "RejectedDate desc", "DomainId", "DomainId desc" - ], - "type": "string" + ] } } ], @@ -3864,6 +4049,12 @@ ], "summary": "Create new navigation property ref to Revisions for Tasks", "operationId": "Tasks.CreateRefRevisions", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -3896,6 +4087,9 @@ ], "summary": "Delete ref of navigation property Revisions for Tasks", "operationId": "Tasks.DeleteRefRevisions", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -3941,6 +4135,9 @@ ], "summary": "Get Tags property value", "operationId": "Tasks.ListTags", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -3974,11 +4171,11 @@ "description": "Order items by property values", "type": "array", "items": { + "type": "string", "enum": [ "Name", "Name desc" - ], - "type": "string" + ] } }, { @@ -3987,10 +4184,10 @@ "description": "Select properties to be returned", "type": "array", "items": { + "type": "string", "enum": [ "Name" - ], - "type": "string" + ] } }, { @@ -3999,10 +4196,10 @@ "description": "Expand related entities", "type": "array", "items": { + "type": "string", "enum": [ "*" - ], - "type": "string" + ] } } ], @@ -4024,6 +4221,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -4072,6 +4272,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -4120,6 +4323,10 @@ ], "summary": "Get the number of the resource", "operationId": "Tasks.Tags.GetCount-3a1b", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -4157,6 +4364,10 @@ ], "summary": "Get the number of the resource", "operationId": "Tasks.GetCount-2961", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -4178,47 +4389,165 @@ } }, "definitions": { - "Siterra.Documents.App.DTO.DocumentDto": { - "title": "DocumentDto", + "Default.ODataErrors.ODataError": { "type": "object", - "properties": { + "required": [ + "error" + ], + "properties": { + "error": { + "$ref": "#/definitions/Default.ODataErrors.MainError" + } + } + }, + "Default.ODataErrors.MainError": { + "type": "object", + "required": [ + "code", + "message" + ], + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string", + "x-ms-primary-error-message": true + }, + "target": { + "type": "string", + "x-nullable": true + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/Default.ODataErrors.ErrorDetails" + } + }, + "innerError": { + "$ref": "#/definitions/Default.ODataErrors.InnerError" + } + } + }, + "Default.ODataErrors.ErrorDetails": { + "type": "object", + "required": [ + "code", + "message" + ], + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "target": { + "type": "string", + "x-nullable": true + } + } + }, + "Default.ODataErrors.InnerError": { + "type": "object", + "description": "The structure of this object is service-specific" + }, + "ODataCountResponse": { + "type": "number", + "format": "int64" + }, + "StringCollectionResponse": { + "type": "object", + "title": "Collection of string", + "properties": { + "value": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ReferenceUpdate": { + "type": "object", + "properties": { + "@odata.id": { + "type": "string" + }, + "@odata.type": { + "type": "string", + "x-nullable": true + } + } + }, + "ReferenceCreate": { + "type": "object", + "properties": { + "@odata.id": { + "type": "string" + } + }, + "additionalProperties": { + "type": "object" + } + }, + "ReferenceNumeric": { + "type": "string", + "x-nullable": true, + "enum": [ + "-INF", + "INF", + "NaN" + ] + }, + "Siterra.Documents.App.DTO.DocumentDto": { + "type": "object", + "title": "DocumentDto", + "properties": { "Id": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Name": { - "type": "string" + "type": "string", + "x-nullable": true }, "Description": { - "type": "string" + "type": "string", + "x-nullable": true }, "Filename": { - "type": "string" + "type": "string", + "x-nullable": true }, "NumberOfRevisions": { - "type": "string" + "type": "string", + "x-nullable": true }, "Suffix": { - "type": "string" + "type": "string", + "x-nullable": true }, "DomainId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ModificationDate": { + "type": "string", + "x-nullable": true, "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "ModifiedBy": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Tags": { "type": "array", @@ -4235,15 +4564,15 @@ } }, "example": { - "Id": "number (identifier)", + "Id": 0, "Name": "string", "Description": "string", "Filename": "string", "NumberOfRevisions": "string", "Suffix": "string", - "DomainId": "number", - "ModificationDate": "string (timestamp)", - "ModifiedBy": "number", + "DomainId": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, "Tags": [ { "@odata.type": "Siterra.Documents.App.DTO.DocumentTagRelDto" @@ -4257,41 +4586,45 @@ } }, "Siterra.Documents.App.DTO.LibraryDto": { - "title": "LibraryDto", "type": "object", + "title": "LibraryDto", "properties": { "Id": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Name": { - "type": "string" + "type": "string", + "x-nullable": true }, "Number": { - "type": "string" + "type": "string", + "x-nullable": true }, "Description": { - "type": "string" + "type": "string", + "x-nullable": true }, "LibraryTemplateId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ParentTypeId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ParentId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "AllowMultiple": { "type": "boolean" @@ -4300,38 +4633,40 @@ "type": "boolean" }, "TypeId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "DomainId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "CreatedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "CreationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "ModifiedBy": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ModificationDate": { + "type": "string", + "x-nullable": true, "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "Documents": { "type": "array", @@ -4342,21 +4677,21 @@ } }, "example": { - "Id": "number (identifier)", + "Id": 0, "Name": "string", "Number": "string", "Description": "string", - "LibraryTemplateId": "number", - "ParentTypeId": "number", - "ParentId": "number", + "LibraryTemplateId": 0, + "ParentTypeId": 0, + "ParentId": 0, "AllowMultiple": true, "AutoCreate": true, - "TypeId": "number", - "DomainId": "number", - "CreatedBy": "number", - "CreationDate": "string (timestamp)", - "ModifiedBy": "number", - "ModificationDate": "string (timestamp)", + "TypeId": 0, + "DomainId": 0, + "CreatedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "Documents": [ { "@odata.type": "Siterra.Documents.App.DTO.DocumentDto" @@ -4365,167 +4700,179 @@ } }, "Siterra.Documents.App.DTO.RevisionDto": { - "title": "RevisionDto", "type": "object", + "title": "RevisionDto", "properties": { "Id": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Number": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "DocumentId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "DocumentName": { - "type": "string" + "type": "string", + "x-nullable": true }, "DocumentDescription": { - "type": "string" + "type": "string", + "x-nullable": true }, "CreationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "CreatedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "IsReviewed": { "type": "boolean" }, "ReviewedBy": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ReviewedDate": { + "type": "string", + "x-nullable": true, "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "IsApproved": { "type": "boolean" }, "ApprovedBy": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ApprovedDate": { + "type": "string", + "x-nullable": true, "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "IsRejected": { "type": "boolean" }, "RejectedBy": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "RejectedDate": { + "type": "string", + "x-nullable": true, "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "DomainId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Document": { "$ref": "#/definitions/Siterra.Documents.BusinessLogic.Entities.Document.Document" } }, "example": { - "Id": "number (identifier)", - "Number": "number", - "DocumentId": "number", + "Id": 0, + "Number": 0, + "DocumentId": 0, "DocumentName": "string", "DocumentDescription": "string", - "CreationDate": "string (timestamp)", - "CreatedBy": "number", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "CreatedBy": 0, "IsReviewed": true, - "ReviewedBy": "number", - "ReviewedDate": "string (timestamp)", + "ReviewedBy": 0, + "ReviewedDate": "0001-01-01T00:00:00.0000000+00:00", "IsApproved": true, - "ApprovedBy": "number", - "ApprovedDate": "string (timestamp)", + "ApprovedBy": 0, + "ApprovedDate": "0001-01-01T00:00:00.0000000+00:00", "IsRejected": true, - "RejectedBy": "number", - "RejectedDate": "string (timestamp)", - "DomainId": "number", + "RejectedBy": 0, + "RejectedDate": "0001-01-01T00:00:00.0000000+00:00", + "DomainId": 0, "Document": { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" } } }, "Siterra.Documents.App.DTO.CategoryDto": { - "title": "CategoryDto", "type": "object", + "title": "CategoryDto", "properties": { "Id": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Name": { - "type": "string" + "type": "string", + "x-nullable": true }, "Description": { - "type": "string" + "type": "string", + "x-nullable": true }, "CreationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "ModificationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "DomainId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 } }, "example": { - "Id": "number (identifier)", + "Id": 0, "Name": "string", "Description": "string", - "CreationDate": "string (timestamp)", - "ModificationDate": "string (timestamp)", - "DomainId": "number" + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "DomainId": 0 } }, "Siterra.Documents.App.DTO.DocumentTagRelDto": { - "title": "DocumentTagRelDto", "type": "object", + "title": "DocumentTagRelDto", "properties": { "Name": { - "type": "string" + "type": "string", + "x-nullable": true } }, "example": { @@ -4533,217 +4880,248 @@ } }, "Siterra.Documents.BusinessLogic.Entities.Document.Document": { - "title": "Document", "type": "object", + "title": "Document", "properties": { "Id": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Name": { - "type": "string" + "type": "string", + "x-nullable": true }, "Description": { - "type": "string" + "type": "string", + "x-nullable": true }, "StatusId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "TypeId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Keywords": { - "type": "string" + "type": "string", + "x-nullable": true }, "CreationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "CreatedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ModificationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "ModifiedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "DomainId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "LibraryId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "OwnerUserId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "StatusDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "LastRevisionId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "CheckoutDate": { + "type": "string", + "x-nullable": true, "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "CheckoutPath": { - "type": "string" + "type": "string", + "x-nullable": true }, "CheckoutUserId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Number": { - "type": "string" + "type": "string", + "x-nullable": true }, "OriginalDate": { + "type": "string", + "x-nullable": true, "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "FileSized": { - "format": "decimal", - "type": "number" + "type": "number", + "format": "decimal" }, "FileClientPath": { - "type": "string" + "type": "string", + "x-nullable": true }, "LastRevisionFileId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "IsDeleted": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "IsNa": { - "format": "decimal", - "type": "number" + "type": "number", + "x-nullable": true, + "format": "decimal" }, "IsRejected": { - "format": "decimal", - "type": "number" + "type": "number", + "x-nullable": true, + "format": "decimal" }, "IsReviewed": { - "format": "decimal", - "type": "number" + "type": "number", + "x-nullable": true, + "format": "decimal" }, "NaDescription": { - "type": "string" + "type": "string", + "x-nullable": true }, "NaReason": { - "type": "string" + "type": "string", + "x-nullable": true }, "RejectedDescription": { - "type": "string" + "type": "string", + "x-nullable": true }, "RejectedReason": { - "type": "string" + "type": "string", + "x-nullable": true }, "ReviewDescription": { - "type": "string" + "type": "string", + "x-nullable": true }, "SourceDocumentId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ScraperMapId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "LastDownloadedDate": { + "type": "string", + "x-nullable": true, "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "SmsId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "IsApprovedOld": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Suffix": { - "type": "string" + "type": "string", + "x-nullable": true }, "ScrapeResultId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "IsApproved": { - "format": "decimal", - "type": "number" + "type": "number", + "x-nullable": true, + "format": "decimal" }, "CategoryId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "SectionId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "VersionCount": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "LastFileName": { - "type": "string" + "type": "string", + "x-nullable": true }, "DocumentClasses": { "type": "array", @@ -4782,49 +5160,49 @@ } }, "example": { - "Id": "number (identifier)", + "Id": 0, "Name": "string", "Description": "string", - "StatusId": "number", - "TypeId": "number", + "StatusId": 0, + "TypeId": 0, "Keywords": "string", - "CreationDate": "string (timestamp)", - "CreatedBy": "number", - "ModificationDate": "string (timestamp)", - "ModifiedBy": "number", - "DomainId": "number", - "LibraryId": "number", - "OwnerUserId": "number", - "StatusDate": "string (timestamp)", - "LastRevisionId": "number", - "CheckoutDate": "string (timestamp)", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "CreatedBy": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "DomainId": 0, + "LibraryId": 0, + "OwnerUserId": 0, + "StatusDate": "0001-01-01T00:00:00.0000000+00:00", + "LastRevisionId": 0, + "CheckoutDate": "0001-01-01T00:00:00.0000000+00:00", "CheckoutPath": "string", - "CheckoutUserId": "number", + "CheckoutUserId": 0, "Number": "string", - "OriginalDate": "string (timestamp)", - "FileSized": "number", + "OriginalDate": "0001-01-01T00:00:00.0000000+00:00", + "FileSized": 0, "FileClientPath": "string", - "LastRevisionFileId": "number", - "IsDeleted": "number", - "IsNa": "number", - "IsRejected": "number", - "IsReviewed": "number", + "LastRevisionFileId": 0, + "IsDeleted": 0, + "IsNa": 0, + "IsRejected": 0, + "IsReviewed": 0, "NaDescription": "string", "NaReason": "string", "RejectedDescription": "string", "RejectedReason": "string", "ReviewDescription": "string", - "SourceDocumentId": "number", - "ScraperMapId": "number", - "LastDownloadedDate": "string (timestamp)", - "SmsId": "number", - "IsApprovedOld": "number", + "SourceDocumentId": 0, + "ScraperMapId": 0, + "LastDownloadedDate": "0001-01-01T00:00:00.0000000+00:00", + "SmsId": 0, + "IsApprovedOld": 0, "Suffix": "string", - "ScrapeResultId": "number", - "IsApproved": "number", - "CategoryId": "number", - "SectionId": "number", - "VersionCount": "number", + "ScrapeResultId": 0, + "IsApproved": 0, + "CategoryId": 0, + "SectionId": 0, + "VersionCount": 0, "LastFileName": "string", "DocumentClasses": [ { @@ -4858,48 +5236,48 @@ } }, "Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass": { - "title": "DocumentClass", "type": "object", + "title": "DocumentClass", "properties": { "ClassInstance": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ClassId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "DocumentId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "CreatedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "CreationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "ModifiedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ModificationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "IsPrimary": { "type": "boolean" @@ -4909,13 +5287,13 @@ } }, "example": { - "ClassInstance": "number", - "ClassId": "number", - "DocumentId": "number", - "CreatedBy": "number", - "CreationDate": "string (timestamp)", - "ModifiedBy": "number", - "ModificationDate": "string (timestamp)", + "ClassInstance": 0, + "ClassId": 0, + "DocumentId": 0, + "CreatedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "IsPrimary": true, "Document": { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" @@ -4923,48 +5301,48 @@ } }, "Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel": { - "title": "DocumentTagRel", "type": "object", + "title": "DocumentTagRel", "properties": { "DocumentId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "TagId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "DomainId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "CreatedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ModifiedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "CreationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "ModificationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "Document": { "$ref": "#/definitions/Siterra.Documents.BusinessLogic.Entities.Document.Document" @@ -4974,13 +5352,13 @@ } }, "example": { - "DocumentId": "number", - "TagId": "number", - "DomainId": "number", - "CreatedBy": "number", - "ModifiedBy": "number", - "CreationDate": "string (timestamp)", - "ModificationDate": "string (timestamp)", + "DocumentId": 0, + "TagId": 0, + "DomainId": 0, + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "Document": { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" }, @@ -4990,106 +5368,113 @@ } }, "Siterra.Documents.BusinessLogic.Entities.Library.Library": { - "title": "Library", "type": "object", + "title": "Library", "properties": { "Id": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "DomainId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Name": { - "type": "string" + "type": "string", + "x-nullable": true }, "ParentFolderId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Number": { - "type": "string" + "type": "string", + "x-nullable": true }, "TypeId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "OwnerUserId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "TotalSize": { - "format": "decimal", - "type": "number" + "type": "number", + "format": "decimal" }, "FilesCounter": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "FoldersCounter": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "CreationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "ModificationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "ModifiedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "CreatedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ProjectId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "SearchRingId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "SiteId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "AssetId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "AllowMultiple": { "type": "boolean" @@ -5098,97 +5483,109 @@ "type": "boolean" }, "Description": { - "type": "string" + "type": "string", + "x-nullable": true }, "IsTemplate": { "type": "boolean" }, "ProgramId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "SourceFolderId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "TemplateClassId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "TemplateSubType": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "IsHidden": { "type": "boolean" }, "IsDeleted": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "StatusId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "SmsId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ContractId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "VendorId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "OrganizationUnitId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "IncidentId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "EventId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ClassInstance": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ClassId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "LibraryParent": { "$ref": "#/definitions/Siterra.Documents.BusinessLogic.Entities.Library.Library" @@ -5222,43 +5619,43 @@ } }, "example": { - "Id": "number (identifier)", - "DomainId": "number", + "Id": 0, + "DomainId": 0, "Name": "string", - "ParentFolderId": "number", + "ParentFolderId": 0, "Number": "string", - "TypeId": "number", - "OwnerUserId": "number", - "TotalSize": "number", - "FilesCounter": "number", - "FoldersCounter": "number", - "CreationDate": "string (timestamp)", - "ModificationDate": "string (timestamp)", - "ModifiedBy": "number", - "CreatedBy": "number", - "ProjectId": "number", - "SearchRingId": "number", - "SiteId": "number", - "AssetId": "number", + "TypeId": 0, + "OwnerUserId": 0, + "TotalSize": 0, + "FilesCounter": 0, + "FoldersCounter": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "CreatedBy": 0, + "ProjectId": 0, + "SearchRingId": 0, + "SiteId": 0, + "AssetId": 0, "AllowMultiple": true, "AutoCreate": true, "Description": "string", "IsTemplate": true, - "ProgramId": "number", - "SourceFolderId": "number", - "TemplateClassId": "number", - "TemplateSubType": "number", + "ProgramId": 0, + "SourceFolderId": 0, + "TemplateClassId": 0, + "TemplateSubType": 0, "IsHidden": true, - "IsDeleted": "number", - "StatusId": "number", - "SmsId": "number", - "ContractId": "number", - "VendorId": "number", - "OrganizationUnitId": "number", - "IncidentId": "number", - "EventId": "number", - "ClassInstance": "number", - "ClassId": "number", + "IsDeleted": 0, + "StatusId": 0, + "SmsId": 0, + "ContractId": 0, + "VendorId": 0, + "OrganizationUnitId": 0, + "IncidentId": 0, + "EventId": 0, + "ClassInstance": 0, + "ClassId": 0, "LibraryParent": { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.Library" }, @@ -5286,75 +5683,82 @@ } }, "Siterra.Documents.BusinessLogic.Entities.Library.LibraryType": { - "title": "LibraryType", "type": "object", + "title": "LibraryType", "properties": { "Id": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Name": { - "type": "string" + "type": "string", + "x-nullable": true }, "ModifiedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "CreatedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ModificationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "CreationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "DomainId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Description": { - "type": "string" + "type": "string", + "x-nullable": true }, "XmlName": { - "type": "string" + "type": "string", + "x-nullable": true }, "MasterId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Number": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ClassId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ParentId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "HasChanged": { "type": "boolean" @@ -5381,19 +5785,19 @@ } }, "example": { - "Id": "number (identifier)", + "Id": 0, "Name": "string", - "ModifiedBy": "number", - "CreatedBy": "number", - "ModificationDate": "string (timestamp)", - "CreationDate": "string (timestamp)", - "DomainId": "number", + "ModifiedBy": 0, + "CreatedBy": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "DomainId": 0, "Description": "string", "XmlName": "string", - "MasterId": "number", - "Number": "number", - "ClassId": "number", - "ParentId": "number", + "MasterId": 0, + "Number": 0, + "ClassId": 0, + "ParentId": 0, "HasChanged": true, "MasterLibraryType": { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" @@ -5414,90 +5818,99 @@ } }, "Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile": { - "title": "DocumentFile", "type": "object", + "title": "DocumentFile", "properties": { "Id": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Name": { - "type": "string" + "type": "string", + "x-nullable": true }, "Path": { - "type": "string" + "type": "string", + "x-nullable": true }, "ModifiedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "CreatedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "CreationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "ModificationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "Sized": { - "format": "decimal", - "type": "number" + "type": "number", + "format": "decimal" }, "ActualName": { - "type": "string" + "type": "string", + "x-nullable": true }, "DomainId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "SourceClassId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ContentTypeId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ClientPath": { - "type": "string" + "type": "string", + "x-nullable": true }, "IsSelfHosted": { + "type": "number", "format": "int16", "maximum": 32767, - "minimum": -32768, - "type": "number" + "minimum": -32768 }, "SmsId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Latitude": { - "format": "decimal", - "type": "number" + "type": "number", + "x-nullable": true, + "format": "decimal" }, "Longitude": { - "format": "decimal", - "type": "number" + "type": "number", + "x-nullable": true, + "format": "decimal" }, "Documents": { "type": "array", @@ -5508,23 +5921,23 @@ } }, "example": { - "Id": "number (identifier)", + "Id": 0, "Name": "string", "Path": "string", - "ModifiedBy": "number", - "CreatedBy": "number", - "CreationDate": "string (timestamp)", - "ModificationDate": "string (timestamp)", - "Sized": "number", + "ModifiedBy": 0, + "CreatedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "Sized": 0, "ActualName": "string", - "DomainId": "number", - "SourceClassId": "number", - "ContentTypeId": "number", + "DomainId": 0, + "SourceClassId": 0, + "ContentTypeId": 0, "ClientPath": "string", - "IsSelfHosted": "number", - "SmsId": "number", - "Latitude": "number", - "Longitude": "number", + "IsSelfHosted": 0, + "SmsId": 0, + "Latitude": 0, + "Longitude": 0, "Documents": [ { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" @@ -5533,59 +5946,61 @@ } }, "Siterra.Documents.BusinessLogic.Entities.Tags.Tag": { - "title": "Tag", "type": "object", + "title": "Tag", "properties": { "Id": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "DomainId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Name": { - "type": "string" + "type": "string", + "x-nullable": true }, "Description": { - "type": "string" + "type": "string", + "x-nullable": true }, "CreatedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ModifiedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "CreationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "ModificationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" } }, "example": { - "Id": "number (identifier)", - "DomainId": "number", + "Id": 0, + "DomainId": 0, "Name": "string", "Description": "string", - "CreatedBy": "number", - "ModifiedBy": "number", - "CreationDate": "string (timestamp)", - "ModificationDate": "string (timestamp)" + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00" } }, "Siterra.Documents.BusinessLogic.Entities.Tags.UserDefinedTag": { @@ -5594,8 +6009,8 @@ "$ref": "#/definitions/Siterra.Documents.BusinessLogic.Entities.Tags.Tag" }, { - "title": "UserDefinedTag", "type": "object", + "title": "UserDefinedTag", "properties": { "Documents": { "type": "array", @@ -5607,14 +6022,14 @@ } ], "example": { - "Id": "number (identifier)", - "DomainId": "number", + "Id": 0, + "DomainId": 0, "Name": "string", "Description": "string", - "CreatedBy": "number", - "ModifiedBy": "number", - "CreationDate": "string (timestamp)", - "ModificationDate": "string (timestamp)", + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "Documents": [ { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel" @@ -5628,8 +6043,8 @@ "$ref": "#/definitions/Siterra.Documents.BusinessLogic.Entities.Tags.Tag" }, { - "title": "Section", "type": "object", + "title": "Section", "properties": { "Documents": { "type": "array", @@ -5642,14 +6057,14 @@ } ], "example": { - "Id": "number (identifier)", - "DomainId": "number", + "Id": 0, + "DomainId": 0, "Name": "string", "Description": "string", - "CreatedBy": "number", - "ModifiedBy": "number", - "CreationDate": "string (timestamp)", - "ModificationDate": "string (timestamp)", + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "Documents": [ { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" @@ -5663,8 +6078,8 @@ "$ref": "#/definitions/Siterra.Documents.BusinessLogic.Entities.Tags.Tag" }, { - "title": "Category", "type": "object", + "title": "Category", "properties": { "Documents": { "type": "array", @@ -5677,14 +6092,14 @@ } ], "example": { - "Id": "number (identifier)", - "DomainId": "number", + "Id": 0, + "DomainId": 0, "Name": "string", "Description": "string", - "CreatedBy": "number", - "ModifiedBy": "number", - "CreationDate": "string (timestamp)", - "ModificationDate": "string (timestamp)", + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "Documents": [ { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" @@ -5693,263 +6108,216 @@ } }, "Siterra.Documents.BusinessLogic.Entities.Revision.Revision": { - "title": "Revision", "type": "object", + "title": "Revision", "properties": { "Id": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Number": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "DocumentId": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ModificationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "CreationDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "ModifiedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "CreatedBy": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "Remarks": { - "type": "string" + "type": "string", + "x-nullable": true }, "FileId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "DocumentOwnerContact": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "DocumentDescription": { - "type": "string" + "type": "string", + "x-nullable": true }, "DocumentStatusDate": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "DocumentFolder": { - "type": "string" + "type": "string", + "x-nullable": true }, "DocumentKeywords": { - "type": "string" + "type": "string", + "x-nullable": true }, "DocumentStatus": { - "type": "string" + "type": "string", + "x-nullable": true }, "DocumentType": { - "type": "string" + "type": "string", + "x-nullable": true }, "DocumentName": { - "type": "string" + "type": "string", + "x-nullable": true }, "DocumentNumber": { - "type": "string" + "type": "string", + "x-nullable": true }, "DomainId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "IsDeleted": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "IsReviewed": { "type": "boolean" }, "ReviewDescription": { - "type": "string" + "type": "string", + "x-nullable": true }, "ReviewedBy": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "IsRejected": { "type": "boolean" }, "RejectedReason": { - "type": "string" + "type": "string", + "x-nullable": true }, "RejectedDescription": { - "type": "string" + "type": "string", + "x-nullable": true }, "RejectedBy": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "IsApproved": { "type": "boolean" }, "ApprovedBy": { + "type": "number", + "x-nullable": true, "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ReviewedDate": { + "type": "string", + "x-nullable": true, "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "RejectedDate": { + "type": "string", + "x-nullable": true, "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "ApprovedDate": { + "type": "string", + "x-nullable": true, "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "Document": { "$ref": "#/definitions/Siterra.Documents.BusinessLogic.Entities.Document.Document" } }, "example": { - "Id": "number (identifier)", - "Number": "number", - "DocumentId": "number", - "ModificationDate": "string (timestamp)", - "CreationDate": "string (timestamp)", - "ModifiedBy": "number", - "CreatedBy": "number", + "Id": 0, + "Number": 0, + "DocumentId": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "CreatedBy": 0, "Remarks": "string", - "FileId": "number", - "DocumentOwnerContact": "number", + "FileId": 0, + "DocumentOwnerContact": 0, "DocumentDescription": "string", - "DocumentStatusDate": "string (timestamp)", + "DocumentStatusDate": "0001-01-01T00:00:00.0000000+00:00", "DocumentFolder": "string", "DocumentKeywords": "string", "DocumentStatus": "string", "DocumentType": "string", "DocumentName": "string", "DocumentNumber": "string", - "DomainId": "number", - "IsDeleted": "number", + "DomainId": 0, + "IsDeleted": 0, "IsReviewed": true, "ReviewDescription": "string", - "ReviewedBy": "number", + "ReviewedBy": 0, "IsRejected": true, "RejectedReason": "string", "RejectedDescription": "string", - "RejectedBy": "number", + "RejectedBy": 0, "IsApproved": true, - "ApprovedBy": "number", - "ReviewedDate": "string (timestamp)", - "RejectedDate": "string (timestamp)", - "ApprovedDate": "string (timestamp)", + "ApprovedBy": 0, + "ReviewedDate": "0001-01-01T00:00:00.0000000+00:00", + "RejectedDate": "0001-01-01T00:00:00.0000000+00:00", + "ApprovedDate": "0001-01-01T00:00:00.0000000+00:00", "Document": { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" } } }, - "Default.ODataErrors.ODataError": { - "required": [ - "error" - ], - "type": "object", - "properties": { - "error": { - "$ref": "#/definitions/Default.ODataErrors.MainError" - } - } - }, - "Default.ODataErrors.MainError": { - "required": [ - "code", - "message" - ], - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "message": { - "type": "string", - "x-ms-primary-error-message": true - }, - "target": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/Default.ODataErrors.ErrorDetails" - } - }, - "innerError": { - "$ref": "#/definitions/Default.ODataErrors.InnerError" - } - } - }, - "Default.ODataErrors.ErrorDetails": { - "required": [ - "code", - "message" - ], - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "message": { - "type": "string" - }, - "target": { - "type": "string" - } - } - }, - "Default.ODataErrors.InnerError": { - "description": "The structure of this object is service-specific", - "type": "object" - }, - "ODataCountResponse": { - "format": "int32", - "type": "integer" - }, "Siterra.Documents.App.DTO.DocumentDtoCollectionResponse": { - "title": "Collection of DocumentDto", "type": "object", + "title": "Collection of DocumentDto", "properties": { "value": { "type": "array", @@ -5960,8 +6328,8 @@ } }, "Siterra.Documents.App.DTO.LibraryDtoCollectionResponse": { - "title": "Collection of LibraryDto", "type": "object", + "title": "Collection of LibraryDto", "properties": { "value": { "type": "array", @@ -5972,8 +6340,8 @@ } }, "Siterra.Documents.App.DTO.RevisionDtoCollectionResponse": { - "title": "Collection of RevisionDto", "type": "object", + "title": "Collection of RevisionDto", "properties": { "value": { "type": "array", @@ -5984,8 +6352,8 @@ } }, "Siterra.Documents.App.DTO.CategoryDtoCollectionResponse": { - "title": "Collection of CategoryDto", "type": "object", + "title": "Collection of CategoryDto", "properties": { "value": { "type": "array", @@ -5996,8 +6364,8 @@ } }, "Siterra.Documents.BusinessLogic.Entities.Document.DocumentCollectionResponse": { - "title": "Collection of Document", "type": "object", + "title": "Collection of Document", "properties": { "value": { "type": "array", @@ -6008,8 +6376,8 @@ } }, "Siterra.Documents.BusinessLogic.Entities.Revision.RevisionCollectionResponse": { - "title": "Collection of Revision", "type": "object", + "title": "Collection of Revision", "properties": { "value": { "type": "array", @@ -6020,8 +6388,8 @@ } }, "Siterra.Documents.BusinessLogic.Entities.Library.LibraryCollectionResponse": { - "title": "Collection of Library", "type": "object", + "title": "Collection of Library", "properties": { "value": { "type": "array", @@ -6032,8 +6400,8 @@ } }, "Siterra.Documents.BusinessLogic.Entities.Library.LibraryTypeCollectionResponse": { - "title": "Collection of LibraryType", "type": "object", + "title": "Collection of LibraryType", "properties": { "value": { "type": "array", @@ -6044,8 +6412,8 @@ } }, "Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse": { - "title": "Collection of Siterra.Documents.App.DTO.DocumentTagRelDto", "type": "object", + "title": "Collection of Siterra.Documents.App.DTO.DocumentTagRelDto", "properties": { "value": { "type": "array", @@ -6056,8 +6424,8 @@ } }, "Siterra.Documents.BusinessLogic.Entities.Document.DocumentClassCollectionResponse": { - "title": "Collection of Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass", "type": "object", + "title": "Collection of Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass", "properties": { "value": { "type": "array", @@ -6068,8 +6436,8 @@ } }, "Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRelCollectionResponse": { - "title": "Collection of Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel", "type": "object", + "title": "Collection of Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel", "properties": { "value": { "type": "array", @@ -6078,48 +6446,6 @@ } } } - }, - "StringCollectionResponse": { - "title": "Collection of string", - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ReferenceUpdate": { - "type": "object", - "properties": { - "@odata.id": { - "type": "string" - }, - "@odata.type": { - "type": "string" - } - } - }, - "ReferenceCreate": { - "type": "object", - "properties": { - "@odata.id": { - "type": "string" - } - }, - "additionalProperties": { - "type": "object" - } - }, - "ReferenceNumeric": { - "enum": [ - "-INF", - "INF", - "NaN" - ], - "type": "string" } }, "parameters": { @@ -6127,14 +6453,16 @@ "in": "query", "name": "$top", "description": "Show only the first n items", - "type": "integer", + "type": "number", + "format": "int64", "minimum": 0 }, "skip": { "in": "query", "name": "$skip", "description": "Skip the first n items", - "type": "integer", + "type": "number", + "format": "int64", "minimum": 0 }, "count": { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.yaml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.yaml index 37ae6c97d..e3782d6f4 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.yaml +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.yaml @@ -13,6 +13,8 @@ paths: - Categories.CategoryDto summary: Get entities from Categories operationId: Categories.CategoryDto.ListCategoryDto + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -24,6 +26,7 @@ paths: description: Order items by property values type: array items: + type: string enum: - Id - Id desc @@ -37,12 +40,12 @@ paths: - ModificationDate desc - DomainId - DomainId desc - type: string - in: query name: $select description: Select properties to be returned type: array items: + type: string enum: - Id - Name @@ -50,15 +53,14 @@ paths: - CreationDate - ModificationDate - DomainId - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - type: string responses: '200': $ref: '#/responses/Siterra.Documents.App.DTO.CategoryDtoCollectionResponse' @@ -112,6 +114,7 @@ paths: description: Select properties to be returned type: array items: + type: string enum: - Id - Name @@ -119,15 +122,14 @@ paths: - CreationDate - ModificationDate - DomainId - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - type: string responses: '200': description: Retrieved entity @@ -143,6 +145,8 @@ paths: operationId: Categories.CategoryDto.UpdateCategoryDto consumes: - application/json + produces: + - application/json parameters: - in: path name: Id @@ -170,6 +174,8 @@ paths: - Categories.CategoryDto summary: Delete entity from Categories operationId: Categories.CategoryDto.DeleteCategoryDto + produces: + - application/json parameters: - in: path name: Id @@ -197,6 +203,9 @@ paths: - Categories.CategoryDto summary: Get the number of the resource operationId: Categories.GetCount-2f72 + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -212,6 +221,8 @@ paths: - Documents.DocumentDto summary: Get entities from Documents operationId: Documents.DocumentDto.ListDocumentDto + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -223,6 +234,7 @@ paths: description: Order items by property values type: array items: + type: string enum: - Id - Id desc @@ -244,12 +256,12 @@ paths: - ModifiedBy desc - Tags - Tags desc - type: string - in: query name: $select description: Select properties to be returned type: array items: + type: string enum: - Id - Name @@ -262,16 +274,15 @@ paths: - ModifiedBy - Tags - Revisions - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - Revisions - type: string responses: '200': $ref: '#/responses/Siterra.Documents.App.DTO.DocumentDtoCollectionResponse' @@ -325,6 +336,7 @@ paths: description: Select properties to be returned type: array items: + type: string enum: - Id - Name @@ -337,16 +349,15 @@ paths: - ModifiedBy - Tags - Revisions - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - Revisions - type: string responses: '200': description: Retrieved entity @@ -362,6 +373,8 @@ paths: operationId: Documents.DocumentDto.UpdateDocumentDto consumes: - application/json + produces: + - application/json parameters: - in: path name: Id @@ -389,6 +402,8 @@ paths: - Documents.DocumentDto summary: Delete entity from Documents operationId: Documents.DocumentDto.DeleteDocumentDto + produces: + - application/json parameters: - in: path name: Id @@ -416,6 +431,8 @@ paths: - Documents.DocumentDto.Actions summary: Invoke action Upload operationId: Documents.DocumentDto.Upload + produces: + - application/json parameters: - in: path name: Id @@ -439,6 +456,8 @@ paths: - Documents.RevisionDto summary: Get Revisions from Documents operationId: Documents.ListRevisions + produces: + - application/json parameters: - in: path name: Id @@ -459,6 +478,7 @@ paths: description: Order items by property values type: array items: + type: string enum: - Id - Id desc @@ -494,12 +514,12 @@ paths: - RejectedDate desc - DomainId - DomainId desc - type: string - in: query name: $select description: Select properties to be returned type: array items: + type: string enum: - Id - Number @@ -519,16 +539,15 @@ paths: - RejectedDate - DomainId - Document - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - Document - type: string responses: '200': $ref: '#/responses/Siterra.Documents.App.DTO.RevisionDtoCollectionResponse' @@ -542,6 +561,8 @@ paths: - Documents.RevisionDto summary: Delete ref of navigation property Revisions for Documents operationId: Documents.revisions.DeleteRefRevisionDto + produces: + - application/json parameters: - in: path name: Id @@ -578,6 +599,9 @@ paths: - Documents.RevisionDto summary: Get the number of the resource operationId: Documents.Revisions.GetCount-f834 + produces: + - text/plain + - application/json parameters: - in: path name: Id @@ -602,6 +626,8 @@ paths: - Documents.RevisionDto summary: Get ref of Revisions from Documents operationId: Documents.ListRefRevisions + produces: + - application/json parameters: - in: path name: Id @@ -622,6 +648,7 @@ paths: description: Order items by property values type: array items: + type: string enum: - Id - Id desc @@ -657,7 +684,6 @@ paths: - RejectedDate desc - DomainId - DomainId desc - type: string responses: '200': $ref: '#/responses/StringCollectionResponse' @@ -669,6 +695,10 @@ paths: - Documents.RevisionDto summary: Create new navigation property ref to Revisions for Documents operationId: Documents.CreateRefRevisions + consumes: + - application/json + produces: + - application/json parameters: - in: path name: Id @@ -691,6 +721,8 @@ paths: - Documents.RevisionDto summary: Delete ref of navigation property Revisions for Documents operationId: Documents.DeleteRefRevisions + produces: + - application/json parameters: - in: path name: Id @@ -723,6 +755,8 @@ paths: - Documents.DocumentTagRelDto summary: Get Tags property value operationId: Documents.ListTags + produces: + - application/json parameters: - in: path name: Id @@ -743,26 +777,26 @@ paths: description: Order items by property values type: array items: + type: string enum: - Name - Name desc - type: string - in: query name: $select description: Select properties to be returned type: array items: + type: string enum: - Name - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - type: string responses: '200': $ref: '#/responses/Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse' @@ -775,6 +809,8 @@ paths: operationId: Documents.UpdateTags consumes: - application/json + produces: + - application/json parameters: - in: path name: Id @@ -808,6 +844,8 @@ paths: operationId: Documents.SetTags consumes: - application/json + produces: + - application/json parameters: - in: path name: Id @@ -841,6 +879,9 @@ paths: - Documents.DocumentTagRelDto summary: Get the number of the resource operationId: Documents.Tags.GetCount-ed53 + produces: + - text/plain + - application/json parameters: - in: path name: Id @@ -865,6 +906,9 @@ paths: - Documents.DocumentDto summary: Get the number of the resource operationId: Documents.GetCount-f555 + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -880,6 +924,8 @@ paths: - Libraries.LibraryDto summary: Get entities from Libraries operationId: Libraries.LibraryDto.ListLibraryDto + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -891,6 +937,7 @@ paths: description: Order items by property values type: array items: + type: string enum: - Id - Id desc @@ -922,12 +969,12 @@ paths: - ModifiedBy desc - ModificationDate - ModificationDate desc - type: string - in: query name: $select description: Select properties to be returned type: array items: + type: string enum: - Id - Name @@ -945,16 +992,15 @@ paths: - ModifiedBy - ModificationDate - Documents - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - Documents - type: string responses: '200': $ref: '#/responses/Siterra.Documents.App.DTO.LibraryDtoCollectionResponse' @@ -1008,6 +1054,7 @@ paths: description: Select properties to be returned type: array items: + type: string enum: - Id - Name @@ -1025,16 +1072,15 @@ paths: - ModifiedBy - ModificationDate - Documents - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - Documents - type: string responses: '200': description: Retrieved entity @@ -1050,6 +1096,8 @@ paths: operationId: Libraries.LibraryDto.UpdateLibraryDto consumes: - application/json + produces: + - application/json parameters: - in: path name: Id @@ -1077,6 +1125,8 @@ paths: - Libraries.LibraryDto summary: Delete entity from Libraries operationId: Libraries.LibraryDto.DeleteLibraryDto + produces: + - application/json parameters: - in: path name: Id @@ -1104,6 +1154,8 @@ paths: - Libraries.DocumentDto summary: Get Documents from Libraries operationId: Libraries.ListDocuments + produces: + - application/json parameters: - in: path name: Id @@ -1124,6 +1176,7 @@ paths: description: Order items by property values type: array items: + type: string enum: - Id - Id desc @@ -1145,12 +1198,12 @@ paths: - ModifiedBy desc - Tags - Tags desc - type: string - in: query name: $select description: Select properties to be returned type: array items: + type: string enum: - Id - Name @@ -1163,16 +1216,15 @@ paths: - ModifiedBy - Tags - Revisions - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - Revisions - type: string responses: '200': $ref: '#/responses/Siterra.Documents.App.DTO.DocumentDtoCollectionResponse' @@ -1186,6 +1238,8 @@ paths: - Libraries.DocumentDto summary: Delete ref of navigation property Documents for Libraries operationId: Libraries.documents.DeleteRefDocumentDto + produces: + - application/json parameters: - in: path name: Id @@ -1222,6 +1276,8 @@ paths: - Libraries.DocumentDto.DocumentTagRelDto summary: Get Tags property value operationId: Libraries.Documents.ListTags + produces: + - application/json parameters: - in: path name: Id @@ -1251,26 +1307,26 @@ paths: description: Order items by property values type: array items: + type: string enum: - Name - Name desc - type: string - in: query name: $select description: Select properties to be returned type: array items: + type: string enum: - Name - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - type: string responses: '200': $ref: '#/responses/Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse' @@ -1283,6 +1339,8 @@ paths: operationId: Libraries.Documents.UpdateTags consumes: - application/json + produces: + - application/json parameters: - in: path name: Id @@ -1325,6 +1383,8 @@ paths: operationId: Libraries.Documents.SetTags consumes: - application/json + produces: + - application/json parameters: - in: path name: Id @@ -1367,6 +1427,9 @@ paths: - Libraries.DocumentDto.DocumentTagRelDto summary: Get the number of the resource operationId: Libraries.Documents.Tags.GetCount-2853 + produces: + - text/plain + - application/json parameters: - in: path name: Id @@ -1400,6 +1463,9 @@ paths: - Libraries.DocumentDto summary: Get the number of the resource operationId: Libraries.Documents.GetCount-34c7 + produces: + - text/plain + - application/json parameters: - in: path name: Id @@ -1424,6 +1490,8 @@ paths: - Libraries.DocumentDto summary: Get ref of Documents from Libraries operationId: Libraries.ListRefDocuments + produces: + - application/json parameters: - in: path name: Id @@ -1444,6 +1512,7 @@ paths: description: Order items by property values type: array items: + type: string enum: - Id - Id desc @@ -1465,7 +1534,6 @@ paths: - ModifiedBy desc - Tags - Tags desc - type: string responses: '200': $ref: '#/responses/StringCollectionResponse' @@ -1477,6 +1545,10 @@ paths: - Libraries.DocumentDto summary: Create new navigation property ref to Documents for Libraries operationId: Libraries.CreateRefDocuments + consumes: + - application/json + produces: + - application/json parameters: - in: path name: Id @@ -1499,6 +1571,8 @@ paths: - Libraries.DocumentDto summary: Delete ref of navigation property Documents for Libraries operationId: Libraries.DeleteRefDocuments + produces: + - application/json parameters: - in: path name: Id @@ -1531,6 +1605,9 @@ paths: - Libraries.LibraryDto summary: Get the number of the resource operationId: Libraries.GetCount-e13e + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -1546,6 +1623,8 @@ paths: - Revisions.RevisionDto summary: Get entities from Revisions operationId: Revisions.RevisionDto.ListRevisionDto + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -1557,6 +1636,7 @@ paths: description: Order items by property values type: array items: + type: string enum: - Id - Id desc @@ -1592,12 +1672,12 @@ paths: - RejectedDate desc - DomainId - DomainId desc - type: string - in: query name: $select description: Select properties to be returned type: array items: + type: string enum: - Id - Number @@ -1617,16 +1697,15 @@ paths: - RejectedDate - DomainId - Document - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - Document - type: string responses: '200': $ref: '#/responses/Siterra.Documents.App.DTO.RevisionDtoCollectionResponse' @@ -1680,6 +1759,7 @@ paths: description: Select properties to be returned type: array items: + type: string enum: - Id - Number @@ -1699,16 +1779,15 @@ paths: - RejectedDate - DomainId - Document - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - Document - type: string responses: '200': description: Retrieved entity @@ -1724,6 +1803,8 @@ paths: operationId: Revisions.RevisionDto.UpdateRevisionDto consumes: - application/json + produces: + - application/json parameters: - in: path name: Id @@ -1751,6 +1832,8 @@ paths: - Revisions.RevisionDto summary: Delete entity from Revisions operationId: Revisions.RevisionDto.DeleteRevisionDto + produces: + - application/json parameters: - in: path name: Id @@ -1795,6 +1878,7 @@ paths: description: Select properties to be returned type: array items: + type: string enum: - Id - Name @@ -1847,12 +1931,12 @@ paths: - SourceDocument - SourceDocumentChildren - Revisions - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - Library @@ -1860,7 +1944,6 @@ paths: - SourceDocument - SourceDocumentChildren - Revisions - type: string responses: '200': description: Retrieved navigation property @@ -1901,6 +1984,10 @@ paths: - Revisions.Document summary: Update the ref of navigation property Document in Revisions operationId: Revisions.UpdateRefDocument + consumes: + - application/json + produces: + - application/json parameters: - in: path name: Id @@ -1923,6 +2010,8 @@ paths: - Revisions.Document summary: Delete ref of navigation property Document for Revisions operationId: Revisions.DeleteRefDocument + produces: + - application/json parameters: - in: path name: Id @@ -1950,6 +2039,8 @@ paths: - Revisions.Document.DocumentClass summary: Get DocumentClasses property value operationId: Revisions.Document.ListDocumentClasses + produces: + - application/json parameters: - in: path name: Id @@ -1970,6 +2061,7 @@ paths: description: Order items by property values type: array items: + type: string enum: - ClassInstance - ClassInstance desc @@ -1987,12 +2079,12 @@ paths: - ModificationDate desc - IsPrimary - IsPrimary desc - type: string - in: query name: $select description: Select properties to be returned type: array items: + type: string enum: - ClassInstance - ClassId @@ -2003,16 +2095,15 @@ paths: - ModificationDate - IsPrimary - Document - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - Document - type: string responses: '200': $ref: '#/responses/Siterra.Documents.BusinessLogic.Entities.Document.DocumentClassCollectionResponse' @@ -2025,6 +2116,8 @@ paths: operationId: Revisions.Document.UpdateDocumentClasses consumes: - application/json + produces: + - application/json parameters: - in: path name: Id @@ -2058,6 +2151,8 @@ paths: operationId: Revisions.Document.SetDocumentClasses consumes: - application/json + produces: + - application/json parameters: - in: path name: Id @@ -2091,6 +2186,9 @@ paths: - Revisions.Document.DocumentClass summary: Get the number of the resource operationId: Revisions.Document.DocumentClasses.GetCount-6342 + produces: + - text/plain + - application/json parameters: - in: path name: Id @@ -2115,6 +2213,8 @@ paths: - Revisions.Document.DocumentTagRel summary: Get Tags property value operationId: Revisions.Document.ListTags + produces: + - application/json parameters: - in: path name: Id @@ -2135,6 +2235,7 @@ paths: description: Order items by property values type: array items: + type: string enum: - DocumentId - DocumentId desc @@ -2150,12 +2251,12 @@ paths: - CreationDate desc - ModificationDate - ModificationDate desc - type: string - in: query name: $select description: Select properties to be returned type: array items: + type: string enum: - DocumentId - TagId @@ -2166,17 +2267,16 @@ paths: - ModificationDate - Document - Tag - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - Document - Tag - type: string responses: '200': $ref: '#/responses/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRelCollectionResponse' @@ -2189,6 +2289,8 @@ paths: operationId: Revisions.Document.UpdateTags consumes: - application/json + produces: + - application/json parameters: - in: path name: Id @@ -2222,6 +2324,8 @@ paths: operationId: Revisions.Document.SetTags consumes: - application/json + produces: + - application/json parameters: - in: path name: Id @@ -2255,6 +2359,9 @@ paths: - Revisions.Document.DocumentTagRel summary: Get the number of the resource operationId: Revisions.Document.Tags.GetCount-161f + produces: + - text/plain + - application/json parameters: - in: path name: Id @@ -2279,6 +2386,9 @@ paths: - Revisions.RevisionDto summary: Get the number of the resource operationId: Revisions.GetCount-c6a5 + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -2294,6 +2404,8 @@ paths: - Tasks.DocumentDto summary: Get entities from Tasks operationId: Tasks.DocumentDto.ListDocumentDto + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -2305,6 +2417,7 @@ paths: description: Order items by property values type: array items: + type: string enum: - Id - Id desc @@ -2326,12 +2439,12 @@ paths: - ModifiedBy desc - Tags - Tags desc - type: string - in: query name: $select description: Select properties to be returned type: array items: + type: string enum: - Id - Name @@ -2344,16 +2457,15 @@ paths: - ModifiedBy - Tags - Revisions - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - Revisions - type: string responses: '200': $ref: '#/responses/Siterra.Documents.App.DTO.DocumentDtoCollectionResponse' @@ -2407,6 +2519,7 @@ paths: description: Select properties to be returned type: array items: + type: string enum: - Id - Name @@ -2419,16 +2532,15 @@ paths: - ModifiedBy - Tags - Revisions - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - Revisions - type: string responses: '200': description: Retrieved entity @@ -2444,6 +2556,8 @@ paths: operationId: Tasks.DocumentDto.UpdateDocumentDto consumes: - application/json + produces: + - application/json parameters: - in: path name: Id @@ -2471,6 +2585,8 @@ paths: - Tasks.DocumentDto summary: Delete entity from Tasks operationId: Tasks.DocumentDto.DeleteDocumentDto + produces: + - application/json parameters: - in: path name: Id @@ -2498,6 +2614,8 @@ paths: - Tasks.DocumentDto.Actions summary: Invoke action Upload operationId: Tasks.DocumentDto.Upload + produces: + - application/json parameters: - in: path name: Id @@ -2521,6 +2639,8 @@ paths: - Tasks.RevisionDto summary: Get Revisions from Tasks operationId: Tasks.ListRevisions + produces: + - application/json parameters: - in: path name: Id @@ -2541,6 +2661,7 @@ paths: description: Order items by property values type: array items: + type: string enum: - Id - Id desc @@ -2576,12 +2697,12 @@ paths: - RejectedDate desc - DomainId - DomainId desc - type: string - in: query name: $select description: Select properties to be returned type: array items: + type: string enum: - Id - Number @@ -2601,16 +2722,15 @@ paths: - RejectedDate - DomainId - Document - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - Document - type: string responses: '200': $ref: '#/responses/Siterra.Documents.App.DTO.RevisionDtoCollectionResponse' @@ -2624,6 +2744,8 @@ paths: - Tasks.RevisionDto summary: Delete ref of navigation property Revisions for Tasks operationId: Tasks.revisions.DeleteRefRevisionDto + produces: + - application/json parameters: - in: path name: Id @@ -2660,6 +2782,9 @@ paths: - Tasks.RevisionDto summary: Get the number of the resource operationId: Tasks.Revisions.GetCount-9297 + produces: + - text/plain + - application/json parameters: - in: path name: Id @@ -2684,6 +2809,8 @@ paths: - Tasks.RevisionDto summary: Get ref of Revisions from Tasks operationId: Tasks.ListRefRevisions + produces: + - application/json parameters: - in: path name: Id @@ -2704,6 +2831,7 @@ paths: description: Order items by property values type: array items: + type: string enum: - Id - Id desc @@ -2739,7 +2867,6 @@ paths: - RejectedDate desc - DomainId - DomainId desc - type: string responses: '200': $ref: '#/responses/StringCollectionResponse' @@ -2751,6 +2878,10 @@ paths: - Tasks.RevisionDto summary: Create new navigation property ref to Revisions for Tasks operationId: Tasks.CreateRefRevisions + consumes: + - application/json + produces: + - application/json parameters: - in: path name: Id @@ -2773,6 +2904,8 @@ paths: - Tasks.RevisionDto summary: Delete ref of navigation property Revisions for Tasks operationId: Tasks.DeleteRefRevisions + produces: + - application/json parameters: - in: path name: Id @@ -2805,6 +2938,8 @@ paths: - Tasks.DocumentTagRelDto summary: Get Tags property value operationId: Tasks.ListTags + produces: + - application/json parameters: - in: path name: Id @@ -2825,26 +2960,26 @@ paths: description: Order items by property values type: array items: + type: string enum: - Name - Name desc - type: string - in: query name: $select description: Select properties to be returned type: array items: + type: string enum: - Name - type: string - in: query name: $expand description: Expand related entities type: array items: + type: string enum: - '*' - type: string responses: '200': $ref: '#/responses/Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse' @@ -2857,6 +2992,8 @@ paths: operationId: Tasks.UpdateTags consumes: - application/json + produces: + - application/json parameters: - in: path name: Id @@ -2890,6 +3027,8 @@ paths: operationId: Tasks.SetTags consumes: - application/json + produces: + - application/json parameters: - in: path name: Id @@ -2923,6 +3062,9 @@ paths: - Tasks.DocumentTagRelDto summary: Get the number of the resource operationId: Tasks.Tags.GetCount-3a1b + produces: + - text/plain + - application/json parameters: - in: path name: Id @@ -2947,6 +3089,9 @@ paths: - Tasks.DocumentDto summary: Get the number of the resource operationId: Tasks.GetCount-2961 + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -2957,39 +3102,122 @@ paths: $ref: '#/responses/error' x-description: Provides operations to count the resources in the collection. definitions: - Siterra.Documents.App.DTO.DocumentDto: - title: DocumentDto + Default.ODataErrors.ODataError: type: object + required: + - error properties: - Id: - format: int32 - maximum: 2147483647 - minimum: -2147483648 - type: number - Name: - type: string - Description: - type: string - Filename: - type: string + error: + $ref: '#/definitions/Default.ODataErrors.MainError' + Default.ODataErrors.MainError: + type: object + required: + - code + - message + properties: + code: + type: string + message: + type: string + x-ms-primary-error-message: true + target: + type: string + x-nullable: true + details: + type: array + items: + $ref: '#/definitions/Default.ODataErrors.ErrorDetails' + innerError: + $ref: '#/definitions/Default.ODataErrors.InnerError' + Default.ODataErrors.ErrorDetails: + type: object + required: + - code + - message + properties: + code: + type: string + message: + type: string + target: + type: string + x-nullable: true + Default.ODataErrors.InnerError: + type: object + description: The structure of this object is service-specific + ODataCountResponse: + type: number + format: int64 + StringCollectionResponse: + type: object + title: Collection of string + properties: + value: + type: array + items: + type: string + ReferenceUpdate: + type: object + properties: + '@odata.id': + type: string + '@odata.type': + type: string + x-nullable: true + ReferenceCreate: + type: object + properties: + '@odata.id': + type: string + additionalProperties: + type: object + ReferenceNumeric: + type: string + x-nullable: true + enum: + - '-INF' + - INF + - NaN + Siterra.Documents.App.DTO.DocumentDto: + type: object + title: DocumentDto + properties: + Id: + type: number + format: int32 + maximum: 2147483647 + minimum: -2147483648 + Name: + type: string + x-nullable: true + Description: + type: string + x-nullable: true + Filename: + type: string + x-nullable: true NumberOfRevisions: type: string + x-nullable: true Suffix: type: string + x-nullable: true DomainId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ModificationDate: + type: string + x-nullable: true format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string ModifiedBy: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Tags: type: array items: @@ -3000,406 +3228,455 @@ definitions: $ref: '#/definitions/Siterra.Documents.App.DTO.RevisionDto' x-ms-navigationProperty: true example: - Id: number (identifier) + Id: 0 Name: string Description: string Filename: string NumberOfRevisions: string Suffix: string - DomainId: number - ModificationDate: string (timestamp) - ModifiedBy: number + DomainId: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 Tags: - '@odata.type': Siterra.Documents.App.DTO.DocumentTagRelDto Revisions: - '@odata.type': Siterra.Documents.App.DTO.RevisionDto Siterra.Documents.App.DTO.LibraryDto: - title: LibraryDto type: object + title: LibraryDto properties: Id: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Name: type: string + x-nullable: true Number: type: string + x-nullable: true Description: type: string + x-nullable: true LibraryTemplateId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ParentTypeId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ParentId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number AllowMultiple: type: boolean AutoCreate: type: boolean TypeId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number DomainId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number CreatedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number CreationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string ModifiedBy: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ModificationDate: + type: string + x-nullable: true format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string Documents: type: array items: $ref: '#/definitions/Siterra.Documents.App.DTO.DocumentDto' x-ms-navigationProperty: true example: - Id: number (identifier) + Id: 0 Name: string Number: string Description: string - LibraryTemplateId: number - ParentTypeId: number - ParentId: number + LibraryTemplateId: 0 + ParentTypeId: 0 + ParentId: 0 AllowMultiple: true AutoCreate: true - TypeId: number - DomainId: number - CreatedBy: number - CreationDate: string (timestamp) - ModifiedBy: number - ModificationDate: string (timestamp) + TypeId: 0 + DomainId: 0 + CreatedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Documents: - '@odata.type': Siterra.Documents.App.DTO.DocumentDto Siterra.Documents.App.DTO.RevisionDto: - title: RevisionDto type: object + title: RevisionDto properties: Id: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Number: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number DocumentId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number DocumentName: type: string + x-nullable: true DocumentDescription: type: string + x-nullable: true CreationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string CreatedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number IsReviewed: type: boolean ReviewedBy: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ReviewedDate: + type: string + x-nullable: true format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string IsApproved: type: boolean ApprovedBy: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ApprovedDate: + type: string + x-nullable: true format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string IsRejected: type: boolean RejectedBy: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number RejectedDate: + type: string + x-nullable: true format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string DomainId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Document: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Document.Document' example: - Id: number (identifier) - Number: number - DocumentId: number + Id: 0 + Number: 0 + DocumentId: 0 DocumentName: string DocumentDescription: string - CreationDate: string (timestamp) - CreatedBy: number + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + CreatedBy: 0 IsReviewed: true - ReviewedBy: number - ReviewedDate: string (timestamp) + ReviewedBy: 0 + ReviewedDate: '0001-01-01T00:00:00.0000000+00:00' IsApproved: true - ApprovedBy: number - ApprovedDate: string (timestamp) + ApprovedBy: 0 + ApprovedDate: '0001-01-01T00:00:00.0000000+00:00' IsRejected: true - RejectedBy: number - RejectedDate: string (timestamp) - DomainId: number + RejectedBy: 0 + RejectedDate: '0001-01-01T00:00:00.0000000+00:00' + DomainId: 0 Document: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document Siterra.Documents.App.DTO.CategoryDto: - title: CategoryDto type: object + title: CategoryDto properties: Id: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Name: type: string + x-nullable: true Description: type: string + x-nullable: true CreationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string ModificationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string DomainId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number example: - Id: number (identifier) + Id: 0 Name: string Description: string - CreationDate: string (timestamp) - ModificationDate: string (timestamp) - DomainId: number + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + DomainId: 0 Siterra.Documents.App.DTO.DocumentTagRelDto: - title: DocumentTagRelDto type: object + title: DocumentTagRelDto properties: Name: type: string + x-nullable: true example: Name: string Siterra.Documents.BusinessLogic.Entities.Document.Document: - title: Document type: object + title: Document properties: Id: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Name: type: string + x-nullable: true Description: type: string + x-nullable: true StatusId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number TypeId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Keywords: type: string + x-nullable: true CreationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string CreatedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ModificationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string ModifiedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number DomainId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number LibraryId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number OwnerUserId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number StatusDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string LastRevisionId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number CheckoutDate: + type: string + x-nullable: true format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string CheckoutPath: type: string + x-nullable: true CheckoutUserId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Number: type: string + x-nullable: true OriginalDate: + type: string + x-nullable: true format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string FileSized: - format: decimal type: number + format: decimal FileClientPath: type: string + x-nullable: true LastRevisionFileId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number IsDeleted: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number IsNa: - format: decimal type: number - IsRejected: + x-nullable: true format: decimal + IsRejected: type: number - IsReviewed: + x-nullable: true format: decimal + IsReviewed: type: number + x-nullable: true + format: decimal NaDescription: type: string + x-nullable: true NaReason: type: string + x-nullable: true RejectedDescription: type: string + x-nullable: true RejectedReason: type: string + x-nullable: true ReviewDescription: type: string + x-nullable: true SourceDocumentId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ScraperMapId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number LastDownloadedDate: + type: string + x-nullable: true format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string SmsId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number IsApprovedOld: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Suffix: type: string + x-nullable: true ScrapeResultId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number IsApproved: - format: decimal type: number + x-nullable: true + format: decimal CategoryId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number SectionId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number VersionCount: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number LastFileName: type: string + x-nullable: true DocumentClasses: type: array items: @@ -3425,49 +3702,49 @@ definitions: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Revision.Revision' x-ms-navigationProperty: true example: - Id: number (identifier) + Id: 0 Name: string Description: string - StatusId: number - TypeId: number + StatusId: 0 + TypeId: 0 Keywords: string - CreationDate: string (timestamp) - CreatedBy: number - ModificationDate: string (timestamp) - ModifiedBy: number - DomainId: number - LibraryId: number - OwnerUserId: number - StatusDate: string (timestamp) - LastRevisionId: number - CheckoutDate: string (timestamp) + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + CreatedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + DomainId: 0 + LibraryId: 0 + OwnerUserId: 0 + StatusDate: '0001-01-01T00:00:00.0000000+00:00' + LastRevisionId: 0 + CheckoutDate: '0001-01-01T00:00:00.0000000+00:00' CheckoutPath: string - CheckoutUserId: number + CheckoutUserId: 0 Number: string - OriginalDate: string (timestamp) - FileSized: number + OriginalDate: '0001-01-01T00:00:00.0000000+00:00' + FileSized: 0 FileClientPath: string - LastRevisionFileId: number - IsDeleted: number - IsNa: number - IsRejected: number - IsReviewed: number + LastRevisionFileId: 0 + IsDeleted: 0 + IsNa: 0 + IsRejected: 0 + IsReviewed: 0 NaDescription: string NaReason: string RejectedDescription: string RejectedReason: string ReviewDescription: string - SourceDocumentId: number - ScraperMapId: number - LastDownloadedDate: string (timestamp) - SmsId: number - IsApprovedOld: number + SourceDocumentId: 0 + ScraperMapId: 0 + LastDownloadedDate: '0001-01-01T00:00:00.0000000+00:00' + SmsId: 0 + IsApprovedOld: 0 Suffix: string - ScrapeResultId: number - IsApproved: number - CategoryId: number - SectionId: number - VersionCount: number + ScrapeResultId: 0 + IsApproved: 0 + CategoryId: 0 + SectionId: 0 + VersionCount: 0 LastFileName: string DocumentClasses: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass @@ -3484,274 +3761,293 @@ definitions: Revisions: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Revision.Revision Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass: - title: DocumentClass type: object + title: DocumentClass properties: ClassInstance: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ClassId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number DocumentId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number CreatedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number CreationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string ModifiedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ModificationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string IsPrimary: type: boolean Document: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Document.Document' example: - ClassInstance: number - ClassId: number - DocumentId: number - CreatedBy: number - CreationDate: string (timestamp) - ModifiedBy: number - ModificationDate: string (timestamp) + ClassInstance: 0 + ClassId: 0 + DocumentId: 0 + CreatedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' IsPrimary: true Document: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel: - title: DocumentTagRel type: object + title: DocumentTagRel properties: DocumentId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number TagId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number DomainId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number CreatedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ModifiedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number CreationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string ModificationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string Document: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Document.Document' Tag: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Tags.Tag' example: - DocumentId: number - TagId: number - DomainId: number - CreatedBy: number - ModifiedBy: number - CreationDate: string (timestamp) - ModificationDate: string (timestamp) + DocumentId: 0 + TagId: 0 + DomainId: 0 + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Document: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document Tag: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Tags.Tag Siterra.Documents.BusinessLogic.Entities.Library.Library: - title: Library type: object + title: Library properties: Id: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number DomainId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Name: type: string + x-nullable: true ParentFolderId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Number: type: string + x-nullable: true TypeId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number OwnerUserId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number TotalSize: - format: decimal type: number + format: decimal FilesCounter: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number FoldersCounter: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number CreationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string ModificationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string ModifiedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number CreatedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ProjectId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number SearchRingId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number SiteId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number AssetId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number AllowMultiple: type: boolean AutoCreate: type: boolean Description: type: string + x-nullable: true IsTemplate: type: boolean ProgramId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number SourceFolderId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number TemplateClassId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number TemplateSubType: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number IsHidden: type: boolean IsDeleted: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number StatusId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number SmsId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ContractId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number VendorId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number OrganizationUnitId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number IncidentId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number EventId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ClassInstance: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ClassId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number LibraryParent: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Library.Library' Type: @@ -3774,43 +4070,43 @@ definitions: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Library.Library' x-ms-navigationProperty: true example: - Id: number (identifier) - DomainId: number + Id: 0 + DomainId: 0 Name: string - ParentFolderId: number + ParentFolderId: 0 Number: string - TypeId: number - OwnerUserId: number - TotalSize: number - FilesCounter: number - FoldersCounter: number - CreationDate: string (timestamp) - ModificationDate: string (timestamp) - ModifiedBy: number - CreatedBy: number - ProjectId: number - SearchRingId: number - SiteId: number - AssetId: number + TypeId: 0 + OwnerUserId: 0 + TotalSize: 0 + FilesCounter: 0 + FoldersCounter: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + CreatedBy: 0 + ProjectId: 0 + SearchRingId: 0 + SiteId: 0 + AssetId: 0 AllowMultiple: true AutoCreate: true Description: string IsTemplate: true - ProgramId: number - SourceFolderId: number - TemplateClassId: number - TemplateSubType: number + ProgramId: 0 + SourceFolderId: 0 + TemplateClassId: 0 + TemplateSubType: 0 IsHidden: true - IsDeleted: number - StatusId: number - SmsId: number - ContractId: number - VendorId: number - OrganizationUnitId: number - IncidentId: number - EventId: number - ClassInstance: number - ClassId: number + IsDeleted: 0 + StatusId: 0 + SmsId: 0 + ContractId: 0 + VendorId: 0 + OrganizationUnitId: 0 + IncidentId: 0 + EventId: 0 + ClassInstance: 0 + ClassId: 0 LibraryParent: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library Type: @@ -3824,63 +4120,70 @@ definitions: SourceLibraryChildren: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library Siterra.Documents.BusinessLogic.Entities.Library.LibraryType: - title: LibraryType type: object + title: LibraryType properties: Id: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Name: type: string + x-nullable: true ModifiedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number CreatedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ModificationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string CreationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string DomainId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Description: type: string + x-nullable: true XmlName: type: string + x-nullable: true MasterId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Number: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ClassId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ParentId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number HasChanged: type: boolean MasterLibraryType: @@ -3898,19 +4201,19 @@ definitions: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType' x-ms-navigationProperty: true example: - Id: number (identifier) + Id: 0 Name: string - ModifiedBy: number - CreatedBy: number - ModificationDate: string (timestamp) - CreationDate: string (timestamp) - DomainId: number + ModifiedBy: 0 + CreatedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + DomainId: 0 Description: string XmlName: string - MasterId: number - Number: number - ClassId: number - ParentId: number + MasterId: 0 + Number: 0 + ClassId: 0 + ParentId: 0 HasChanged: true MasterLibraryType: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType @@ -3921,170 +4224,181 @@ definitions: ChildrenLibraryTypes: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile: - title: DocumentFile type: object + title: DocumentFile properties: Id: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Name: type: string + x-nullable: true Path: type: string + x-nullable: true ModifiedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number CreatedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number CreationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string ModificationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string Sized: - format: decimal type: number + format: decimal ActualName: type: string + x-nullable: true DomainId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number SourceClassId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ContentTypeId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ClientPath: type: string + x-nullable: true IsSelfHosted: + type: number format: int16 maximum: 32767 minimum: -32768 - type: number SmsId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Latitude: - format: decimal type: number - Longitude: + x-nullable: true format: decimal + Longitude: type: number + x-nullable: true + format: decimal Documents: type: array items: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Document.Document' x-ms-navigationProperty: true example: - Id: number (identifier) + Id: 0 Name: string Path: string - ModifiedBy: number - CreatedBy: number - CreationDate: string (timestamp) - ModificationDate: string (timestamp) - Sized: number + ModifiedBy: 0 + CreatedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Sized: 0 ActualName: string - DomainId: number - SourceClassId: number - ContentTypeId: number + DomainId: 0 + SourceClassId: 0 + ContentTypeId: 0 ClientPath: string - IsSelfHosted: number - SmsId: number - Latitude: number - Longitude: number + IsSelfHosted: 0 + SmsId: 0 + Latitude: 0 + Longitude: 0 Documents: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document Siterra.Documents.BusinessLogic.Entities.Tags.Tag: - title: Tag type: object + title: Tag properties: Id: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number DomainId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Name: type: string + x-nullable: true Description: type: string + x-nullable: true CreatedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ModifiedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number CreationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string ModificationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string example: - Id: number (identifier) - DomainId: number + Id: 0 + DomainId: 0 Name: string Description: string - CreatedBy: number - ModifiedBy: number - CreationDate: string (timestamp) - ModificationDate: string (timestamp) + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Siterra.Documents.BusinessLogic.Entities.Tags.UserDefinedTag: allOf: - $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Tags.Tag' - - title: UserDefinedTag - type: object + - type: object + title: UserDefinedTag properties: Documents: type: array items: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel' example: - Id: number (identifier) - DomainId: number + Id: 0 + DomainId: 0 Name: string Description: string - CreatedBy: number - ModifiedBy: number - CreationDate: string (timestamp) - ModificationDate: string (timestamp) + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Documents: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel Siterra.Documents.BusinessLogic.Entities.Tags.Section: allOf: - $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Tags.Tag' - - title: Section - type: object + - type: object + title: Section properties: Documents: type: array @@ -4092,21 +4406,21 @@ definitions: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Document.Document' x-ms-navigationProperty: true example: - Id: number (identifier) - DomainId: number + Id: 0 + DomainId: 0 Name: string Description: string - CreatedBy: number - ModifiedBy: number - CreationDate: string (timestamp) - ModificationDate: string (timestamp) + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Documents: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document Siterra.Documents.BusinessLogic.Entities.Tags.Category: allOf: - $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Tags.Tag' - - title: Category - type: object + - type: object + title: Category properties: Documents: type: array @@ -4114,341 +4428,289 @@ definitions: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Document.Document' x-ms-navigationProperty: true example: - Id: number (identifier) - DomainId: number + Id: 0 + DomainId: 0 Name: string Description: string - CreatedBy: number - ModifiedBy: number - CreationDate: string (timestamp) - ModificationDate: string (timestamp) + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Documents: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document Siterra.Documents.BusinessLogic.Entities.Revision.Revision: - title: Revision type: object + title: Revision properties: Id: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Number: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number DocumentId: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ModificationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string CreationDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string ModifiedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number CreatedBy: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number Remarks: type: string + x-nullable: true FileId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number DocumentOwnerContact: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number DocumentDescription: type: string + x-nullable: true DocumentStatusDate: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string DocumentFolder: type: string + x-nullable: true DocumentKeywords: type: string + x-nullable: true DocumentStatus: type: string + x-nullable: true DocumentType: type: string + x-nullable: true DocumentName: type: string + x-nullable: true DocumentNumber: type: string + x-nullable: true DomainId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number IsDeleted: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number IsReviewed: type: boolean ReviewDescription: type: string + x-nullable: true ReviewedBy: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number IsRejected: type: boolean RejectedReason: type: string + x-nullable: true RejectedDescription: type: string + x-nullable: true RejectedBy: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number IsApproved: type: boolean ApprovedBy: + type: number + x-nullable: true format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ReviewedDate: + type: string + x-nullable: true format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string RejectedDate: + type: string + x-nullable: true format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string ApprovedDate: + type: string + x-nullable: true format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string Document: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Document.Document' example: - Id: number (identifier) - Number: number - DocumentId: number - ModificationDate: string (timestamp) - CreationDate: string (timestamp) - ModifiedBy: number - CreatedBy: number + Id: 0 + Number: 0 + DocumentId: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + CreatedBy: 0 Remarks: string - FileId: number - DocumentOwnerContact: number + FileId: 0 + DocumentOwnerContact: 0 DocumentDescription: string - DocumentStatusDate: string (timestamp) + DocumentStatusDate: '0001-01-01T00:00:00.0000000+00:00' DocumentFolder: string DocumentKeywords: string DocumentStatus: string DocumentType: string DocumentName: string DocumentNumber: string - DomainId: number - IsDeleted: number + DomainId: 0 + IsDeleted: 0 IsReviewed: true ReviewDescription: string - ReviewedBy: number + ReviewedBy: 0 IsRejected: true RejectedReason: string RejectedDescription: string - RejectedBy: number + RejectedBy: 0 IsApproved: true - ApprovedBy: number - ReviewedDate: string (timestamp) - RejectedDate: string (timestamp) - ApprovedDate: string (timestamp) + ApprovedBy: 0 + ReviewedDate: '0001-01-01T00:00:00.0000000+00:00' + RejectedDate: '0001-01-01T00:00:00.0000000+00:00' + ApprovedDate: '0001-01-01T00:00:00.0000000+00:00' Document: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document - Default.ODataErrors.ODataError: - required: - - error - type: object - properties: - error: - $ref: '#/definitions/Default.ODataErrors.MainError' - Default.ODataErrors.MainError: - required: - - code - - message - type: object - properties: - code: - type: string - message: - type: string - x-ms-primary-error-message: true - target: - type: string - details: - type: array - items: - $ref: '#/definitions/Default.ODataErrors.ErrorDetails' - innerError: - $ref: '#/definitions/Default.ODataErrors.InnerError' - Default.ODataErrors.ErrorDetails: - required: - - code - - message - type: object - properties: - code: - type: string - message: - type: string - target: - type: string - Default.ODataErrors.InnerError: - description: The structure of this object is service-specific - type: object - ODataCountResponse: - format: int32 - type: integer Siterra.Documents.App.DTO.DocumentDtoCollectionResponse: - title: Collection of DocumentDto type: object + title: Collection of DocumentDto properties: value: type: array items: $ref: '#/definitions/Siterra.Documents.App.DTO.DocumentDto' Siterra.Documents.App.DTO.LibraryDtoCollectionResponse: - title: Collection of LibraryDto type: object + title: Collection of LibraryDto properties: value: type: array items: $ref: '#/definitions/Siterra.Documents.App.DTO.LibraryDto' Siterra.Documents.App.DTO.RevisionDtoCollectionResponse: - title: Collection of RevisionDto type: object + title: Collection of RevisionDto properties: value: type: array items: $ref: '#/definitions/Siterra.Documents.App.DTO.RevisionDto' Siterra.Documents.App.DTO.CategoryDtoCollectionResponse: - title: Collection of CategoryDto type: object + title: Collection of CategoryDto properties: value: type: array items: $ref: '#/definitions/Siterra.Documents.App.DTO.CategoryDto' Siterra.Documents.BusinessLogic.Entities.Document.DocumentCollectionResponse: - title: Collection of Document type: object + title: Collection of Document properties: value: type: array items: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Document.Document' Siterra.Documents.BusinessLogic.Entities.Revision.RevisionCollectionResponse: - title: Collection of Revision type: object + title: Collection of Revision properties: value: type: array items: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Revision.Revision' Siterra.Documents.BusinessLogic.Entities.Library.LibraryCollectionResponse: - title: Collection of Library type: object + title: Collection of Library properties: value: type: array items: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Library.Library' Siterra.Documents.BusinessLogic.Entities.Library.LibraryTypeCollectionResponse: - title: Collection of LibraryType type: object + title: Collection of LibraryType properties: value: type: array items: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType' Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse: - title: Collection of Siterra.Documents.App.DTO.DocumentTagRelDto type: object + title: Collection of Siterra.Documents.App.DTO.DocumentTagRelDto properties: value: type: array items: $ref: '#/definitions/Siterra.Documents.App.DTO.DocumentTagRelDto' Siterra.Documents.BusinessLogic.Entities.Document.DocumentClassCollectionResponse: - title: Collection of Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass type: object + title: Collection of Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass properties: value: type: array items: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass' Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRelCollectionResponse: - title: Collection of Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel type: object + title: Collection of Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel properties: value: type: array items: $ref: '#/definitions/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel' - StringCollectionResponse: - title: Collection of string - type: object - properties: - value: - type: array - items: - type: string - ReferenceUpdate: - type: object - properties: - '@odata.id': - type: string - '@odata.type': - type: string - ReferenceCreate: - type: object - properties: - '@odata.id': - type: string - additionalProperties: - type: object - ReferenceNumeric: - enum: - - '-INF' - - INF - - NaN - type: string parameters: top: in: query name: $top description: Show only the first n items - type: integer + type: number + format: int64 minimum: 0 skip: in: query name: $skip description: Skip the first n items - type: integer + type: number + format: int64 minimum: 0 count: in: query diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V3.1.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V3.1.json new file mode 100644 index 000000000..fe23ad38e --- /dev/null +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V3.1.json @@ -0,0 +1,7725 @@ +{ + "openapi": "3.1.1", + "info": { + "title": "OData Service for namespace Default", + "description": "This OData service is located at http://localhost", + "version": "1.0.0" + }, + "servers": [ + { + "url": "http://localhost" + } + ], + "paths": { + "/Categories": { + "description": "Provides operations to manage the collection of CategoryDto entities.", + "get": { + "tags": [ + "Categories.CategoryDto" + ], + "summary": "Get entities from Categories", + "operationId": "Categories.CategoryDto.ListCategoryDto", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Id desc", + "Name", + "Name desc", + "Description", + "Description desc", + "CreationDate", + "CreationDate desc", + "ModificationDate", + "ModificationDate desc", + "DomainId", + "DomainId desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Name", + "Description", + "CreationDate", + "ModificationDate", + "DomainId" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Siterra.Documents.App.DTO.CategoryDtoCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "Categories.CategoryDto" + ], + "summary": "Add new entity to Categories", + "operationId": "Categories.CategoryDto.CreateCategoryDto", + "requestBody": { + "description": "New entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.CategoryDto" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.CategoryDto" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Categories({Id})": { + "description": "Provides operations to manage the collection of CategoryDto entities.", + "get": { + "tags": [ + "Categories.CategoryDto" + ], + "summary": "Get entity from Categories by key", + "operationId": "Categories.CategoryDto.GetCategoryDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of CategoryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "CategoryDto" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Name", + "Description", + "CreationDate", + "ModificationDate", + "DomainId" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.CategoryDto" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "Categories.CategoryDto" + ], + "summary": "Update entity in Categories", + "operationId": "Categories.CategoryDto.UpdateCategoryDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of CategoryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "CategoryDto" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.CategoryDto" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Categories.CategoryDto" + ], + "summary": "Delete entity from Categories", + "operationId": "Categories.CategoryDto.DeleteCategoryDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of CategoryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "CategoryDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Categories/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Categories.CategoryDto" + ], + "summary": "Get the number of the resource", + "operationId": "Categories.GetCount-2f72", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Documents": { + "description": "Provides operations to manage the collection of DocumentDto entities.", + "get": { + "tags": [ + "Documents.DocumentDto" + ], + "summary": "Get entities from Documents", + "operationId": "Documents.DocumentDto.ListDocumentDto", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Id desc", + "Name", + "Name desc", + "Description", + "Description desc", + "Filename", + "Filename desc", + "NumberOfRevisions", + "NumberOfRevisions desc", + "Suffix", + "Suffix desc", + "DomainId", + "DomainId desc", + "ModificationDate", + "ModificationDate desc", + "ModifiedBy", + "ModifiedBy desc", + "Tags", + "Tags desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Name", + "Description", + "Filename", + "NumberOfRevisions", + "Suffix", + "DomainId", + "ModificationDate", + "ModifiedBy", + "Tags", + "Revisions" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Revisions" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Siterra.Documents.App.DTO.DocumentDtoCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "Documents.DocumentDto" + ], + "summary": "Add new entity to Documents", + "operationId": "Documents.DocumentDto.CreateDocumentDto", + "requestBody": { + "description": "New entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentDto" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentDto" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Documents({Id})": { + "description": "Provides operations to manage the collection of DocumentDto entities.", + "get": { + "tags": [ + "Documents.DocumentDto" + ], + "summary": "Get entity from Documents by key", + "operationId": "Documents.DocumentDto.GetDocumentDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Name", + "Description", + "Filename", + "NumberOfRevisions", + "Suffix", + "DomainId", + "ModificationDate", + "ModifiedBy", + "Tags", + "Revisions" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Revisions" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentDto" + } + } + }, + "links": { + "Revisions": { + "operationId": "Documents.ListRevisions" + }, + "Upload": { + "operationId": "Documents.DocumentDto.Upload" + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "Documents.DocumentDto" + ], + "summary": "Update entity in Documents", + "operationId": "Documents.DocumentDto.UpdateDocumentDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentDto" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Documents.DocumentDto" + ], + "summary": "Delete entity from Documents", + "operationId": "Documents.DocumentDto.DeleteDocumentDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Documents({Id})/Default.Upload": { + "description": "Provides operations to call the Upload method.", + "post": { + "tags": [ + "Documents.DocumentDto.Actions" + ], + "summary": "Invoke action Upload", + "operationId": "Documents.DocumentDto.Upload", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/UploadResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "action" + } + }, + "/Documents({Id})/Revisions": { + "description": "Provides operations to manage the Revisions property of the Siterra.Documents.App.DTO.DocumentDto entity.", + "get": { + "tags": [ + "Documents.RevisionDto" + ], + "summary": "Get Revisions from Documents", + "operationId": "Documents.ListRevisions", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Id desc", + "Number", + "Number desc", + "DocumentId", + "DocumentId desc", + "DocumentName", + "DocumentName desc", + "DocumentDescription", + "DocumentDescription desc", + "CreationDate", + "CreationDate desc", + "CreatedBy", + "CreatedBy desc", + "IsReviewed", + "IsReviewed desc", + "ReviewedBy", + "ReviewedBy desc", + "ReviewedDate", + "ReviewedDate desc", + "IsApproved", + "IsApproved desc", + "ApprovedBy", + "ApprovedBy desc", + "ApprovedDate", + "ApprovedDate desc", + "IsRejected", + "IsRejected desc", + "RejectedBy", + "RejectedBy desc", + "RejectedDate", + "RejectedDate desc", + "DomainId", + "DomainId desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Number", + "DocumentId", + "DocumentName", + "DocumentDescription", + "CreationDate", + "CreatedBy", + "IsReviewed", + "ReviewedBy", + "ReviewedDate", + "IsApproved", + "ApprovedBy", + "ApprovedDate", + "IsRejected", + "RejectedBy", + "RejectedDate", + "DomainId", + "Document" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Document" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Siterra.Documents.App.DTO.RevisionDtoCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Documents({Id})/Revisions({Id1})/$ref": { + "description": "Provides operations to manage the collection of DocumentDto entities.", + "delete": { + "tags": [ + "Documents.RevisionDto" + ], + "summary": "Delete ref of navigation property Revisions for Documents", + "operationId": "Documents.revisions.DeleteRefRevisionDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "name": "Id1", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Documents({Id})/Revisions/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Documents.RevisionDto" + ], + "summary": "Get the number of the resource", + "operationId": "Documents.Revisions.GetCount-f834", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Documents({Id})/Revisions/$ref": { + "description": "Provides operations to manage the collection of DocumentDto entities.", + "get": { + "tags": [ + "Documents.RevisionDto" + ], + "summary": "Get ref of Revisions from Documents", + "operationId": "Documents.ListRefRevisions", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Id desc", + "Number", + "Number desc", + "DocumentId", + "DocumentId desc", + "DocumentName", + "DocumentName desc", + "DocumentDescription", + "DocumentDescription desc", + "CreationDate", + "CreationDate desc", + "CreatedBy", + "CreatedBy desc", + "IsReviewed", + "IsReviewed desc", + "ReviewedBy", + "ReviewedBy desc", + "ReviewedDate", + "ReviewedDate desc", + "IsApproved", + "IsApproved desc", + "ApprovedBy", + "ApprovedBy desc", + "ApprovedDate", + "ApprovedDate desc", + "IsRejected", + "IsRejected desc", + "RejectedBy", + "RejectedBy desc", + "RejectedDate", + "RejectedDate desc", + "DomainId", + "DomainId desc" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "Documents.RevisionDto" + ], + "summary": "Create new navigation property ref to Revisions for Documents", + "operationId": "Documents.CreateRefRevisions", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Documents.RevisionDto" + ], + "summary": "Delete ref of navigation property Revisions for Documents", + "operationId": "Documents.DeleteRefRevisions", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Documents({Id})/Tags": { + "get": { + "tags": [ + "Documents.DocumentTagRelDto" + ], + "summary": "Get Tags property value", + "operationId": "Documents.ListTags", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Name", + "Name desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Name" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "patch": { + "tags": [ + "Documents.DocumentTagRelDto" + ], + "summary": "Update property Tags value.", + "operationId": "Documents.UpdateTags", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDto" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "Documents.DocumentTagRelDto" + ], + "summary": "Sets a new value for the collection of DocumentTagRelDto.", + "operationId": "Documents.SetTags", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDto" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Documents({Id})/Tags/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Documents.DocumentTagRelDto" + ], + "summary": "Get the number of the resource", + "operationId": "Documents.Tags.GetCount-ed53", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Documents/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Documents.DocumentDto" + ], + "summary": "Get the number of the resource", + "operationId": "Documents.GetCount-f555", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Libraries": { + "description": "Provides operations to manage the collection of LibraryDto entities.", + "get": { + "tags": [ + "Libraries.LibraryDto" + ], + "summary": "Get entities from Libraries", + "operationId": "Libraries.LibraryDto.ListLibraryDto", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Id desc", + "Name", + "Name desc", + "Number", + "Number desc", + "Description", + "Description desc", + "LibraryTemplateId", + "LibraryTemplateId desc", + "ParentTypeId", + "ParentTypeId desc", + "ParentId", + "ParentId desc", + "AllowMultiple", + "AllowMultiple desc", + "AutoCreate", + "AutoCreate desc", + "TypeId", + "TypeId desc", + "DomainId", + "DomainId desc", + "CreatedBy", + "CreatedBy desc", + "CreationDate", + "CreationDate desc", + "ModifiedBy", + "ModifiedBy desc", + "ModificationDate", + "ModificationDate desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Name", + "Number", + "Description", + "LibraryTemplateId", + "ParentTypeId", + "ParentId", + "AllowMultiple", + "AutoCreate", + "TypeId", + "DomainId", + "CreatedBy", + "CreationDate", + "ModifiedBy", + "ModificationDate", + "Documents" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Documents" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Siterra.Documents.App.DTO.LibraryDtoCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "Libraries.LibraryDto" + ], + "summary": "Add new entity to Libraries", + "operationId": "Libraries.LibraryDto.CreateLibraryDto", + "requestBody": { + "description": "New entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.LibraryDto" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.LibraryDto" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Libraries({Id})": { + "description": "Provides operations to manage the collection of LibraryDto entities.", + "get": { + "tags": [ + "Libraries.LibraryDto" + ], + "summary": "Get entity from Libraries by key", + "operationId": "Libraries.LibraryDto.GetLibraryDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of LibraryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "LibraryDto" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Name", + "Number", + "Description", + "LibraryTemplateId", + "ParentTypeId", + "ParentId", + "AllowMultiple", + "AutoCreate", + "TypeId", + "DomainId", + "CreatedBy", + "CreationDate", + "ModifiedBy", + "ModificationDate", + "Documents" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Documents" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.LibraryDto" + } + } + }, + "links": { + "Documents": { + "operationId": "Libraries.ListDocuments" + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "Libraries.LibraryDto" + ], + "summary": "Update entity in Libraries", + "operationId": "Libraries.LibraryDto.UpdateLibraryDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of LibraryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "LibraryDto" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.LibraryDto" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Libraries.LibraryDto" + ], + "summary": "Delete entity from Libraries", + "operationId": "Libraries.LibraryDto.DeleteLibraryDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of LibraryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "LibraryDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Libraries({Id})/Documents": { + "description": "Provides operations to manage the Documents property of the Siterra.Documents.App.DTO.LibraryDto entity.", + "get": { + "tags": [ + "Libraries.DocumentDto" + ], + "summary": "Get Documents from Libraries", + "operationId": "Libraries.ListDocuments", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of LibraryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "LibraryDto" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Id desc", + "Name", + "Name desc", + "Description", + "Description desc", + "Filename", + "Filename desc", + "NumberOfRevisions", + "NumberOfRevisions desc", + "Suffix", + "Suffix desc", + "DomainId", + "DomainId desc", + "ModificationDate", + "ModificationDate desc", + "ModifiedBy", + "ModifiedBy desc", + "Tags", + "Tags desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Name", + "Description", + "Filename", + "NumberOfRevisions", + "Suffix", + "DomainId", + "ModificationDate", + "ModifiedBy", + "Tags", + "Revisions" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Revisions" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Siterra.Documents.App.DTO.DocumentDtoCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Libraries({Id})/Documents({Id1})/$ref": { + "description": "Provides operations to manage the collection of LibraryDto entities.", + "delete": { + "tags": [ + "Libraries.DocumentDto" + ], + "summary": "Delete ref of navigation property Documents for Libraries", + "operationId": "Libraries.documents.DeleteRefDocumentDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of LibraryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "LibraryDto" + }, + { + "name": "Id1", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Libraries({Id})/Documents({Id1})/Tags": { + "get": { + "tags": [ + "Libraries.DocumentDto.DocumentTagRelDto" + ], + "summary": "Get Tags property value", + "operationId": "Libraries.Documents.ListTags", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of LibraryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "LibraryDto" + }, + { + "name": "Id1", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Name", + "Name desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Name" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "patch": { + "tags": [ + "Libraries.DocumentDto.DocumentTagRelDto" + ], + "summary": "Update property Tags value.", + "operationId": "Libraries.Documents.UpdateTags", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of LibraryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "LibraryDto" + }, + { + "name": "Id1", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDto" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "Libraries.DocumentDto.DocumentTagRelDto" + ], + "summary": "Sets a new value for the collection of DocumentTagRelDto.", + "operationId": "Libraries.Documents.SetTags", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of LibraryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "LibraryDto" + }, + { + "name": "Id1", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDto" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Libraries({Id})/Documents({Id1})/Tags/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Libraries.DocumentDto.DocumentTagRelDto" + ], + "summary": "Get the number of the resource", + "operationId": "Libraries.Documents.Tags.GetCount-2853", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of LibraryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "LibraryDto" + }, + { + "name": "Id1", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Libraries({Id})/Documents/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Libraries.DocumentDto" + ], + "summary": "Get the number of the resource", + "operationId": "Libraries.Documents.GetCount-34c7", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of LibraryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "LibraryDto" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Libraries({Id})/Documents/$ref": { + "description": "Provides operations to manage the collection of LibraryDto entities.", + "get": { + "tags": [ + "Libraries.DocumentDto" + ], + "summary": "Get ref of Documents from Libraries", + "operationId": "Libraries.ListRefDocuments", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of LibraryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "LibraryDto" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Id desc", + "Name", + "Name desc", + "Description", + "Description desc", + "Filename", + "Filename desc", + "NumberOfRevisions", + "NumberOfRevisions desc", + "Suffix", + "Suffix desc", + "DomainId", + "DomainId desc", + "ModificationDate", + "ModificationDate desc", + "ModifiedBy", + "ModifiedBy desc", + "Tags", + "Tags desc" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "Libraries.DocumentDto" + ], + "summary": "Create new navigation property ref to Documents for Libraries", + "operationId": "Libraries.CreateRefDocuments", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of LibraryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "LibraryDto" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Libraries.DocumentDto" + ], + "summary": "Delete ref of navigation property Documents for Libraries", + "operationId": "Libraries.DeleteRefDocuments", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of LibraryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "LibraryDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Libraries/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Libraries.LibraryDto" + ], + "summary": "Get the number of the resource", + "operationId": "Libraries.GetCount-e13e", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Revisions": { + "description": "Provides operations to manage the collection of RevisionDto entities.", + "get": { + "tags": [ + "Revisions.RevisionDto" + ], + "summary": "Get entities from Revisions", + "operationId": "Revisions.RevisionDto.ListRevisionDto", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Id desc", + "Number", + "Number desc", + "DocumentId", + "DocumentId desc", + "DocumentName", + "DocumentName desc", + "DocumentDescription", + "DocumentDescription desc", + "CreationDate", + "CreationDate desc", + "CreatedBy", + "CreatedBy desc", + "IsReviewed", + "IsReviewed desc", + "ReviewedBy", + "ReviewedBy desc", + "ReviewedDate", + "ReviewedDate desc", + "IsApproved", + "IsApproved desc", + "ApprovedBy", + "ApprovedBy desc", + "ApprovedDate", + "ApprovedDate desc", + "IsRejected", + "IsRejected desc", + "RejectedBy", + "RejectedBy desc", + "RejectedDate", + "RejectedDate desc", + "DomainId", + "DomainId desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Number", + "DocumentId", + "DocumentName", + "DocumentDescription", + "CreationDate", + "CreatedBy", + "IsReviewed", + "ReviewedBy", + "ReviewedDate", + "IsApproved", + "ApprovedBy", + "ApprovedDate", + "IsRejected", + "RejectedBy", + "RejectedDate", + "DomainId", + "Document" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Document" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Siterra.Documents.App.DTO.RevisionDtoCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "Revisions.RevisionDto" + ], + "summary": "Add new entity to Revisions", + "operationId": "Revisions.RevisionDto.CreateRevisionDto", + "requestBody": { + "description": "New entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.RevisionDto" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.RevisionDto" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Revisions({Id})": { + "description": "Provides operations to manage the collection of RevisionDto entities.", + "get": { + "tags": [ + "Revisions.RevisionDto" + ], + "summary": "Get entity from Revisions by key", + "operationId": "Revisions.RevisionDto.GetRevisionDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Number", + "DocumentId", + "DocumentName", + "DocumentDescription", + "CreationDate", + "CreatedBy", + "IsReviewed", + "ReviewedBy", + "ReviewedDate", + "IsApproved", + "ApprovedBy", + "ApprovedDate", + "IsRejected", + "RejectedBy", + "RejectedDate", + "DomainId", + "Document" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Document" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.RevisionDto" + } + } + }, + "links": { + "Document": { + "operationId": "Revisions.GetDocument" + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "Revisions.RevisionDto" + ], + "summary": "Update entity in Revisions", + "operationId": "Revisions.RevisionDto.UpdateRevisionDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.RevisionDto" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Revisions.RevisionDto" + ], + "summary": "Delete entity from Revisions", + "operationId": "Revisions.RevisionDto.DeleteRevisionDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Revisions({Id})/Document": { + "description": "Provides operations to manage the Document property of the Siterra.Documents.App.DTO.RevisionDto entity.", + "get": { + "tags": [ + "Revisions.Document" + ], + "summary": "Get Document from Revisions", + "operationId": "Revisions.GetDocument", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Name", + "Description", + "StatusId", + "TypeId", + "Keywords", + "CreationDate", + "CreatedBy", + "ModificationDate", + "ModifiedBy", + "DomainId", + "LibraryId", + "OwnerUserId", + "StatusDate", + "LastRevisionId", + "CheckoutDate", + "CheckoutPath", + "CheckoutUserId", + "Number", + "OriginalDate", + "FileSized", + "FileClientPath", + "LastRevisionFileId", + "IsDeleted", + "IsNa", + "IsRejected", + "IsReviewed", + "NaDescription", + "NaReason", + "RejectedDescription", + "RejectedReason", + "ReviewDescription", + "SourceDocumentId", + "ScraperMapId", + "LastDownloadedDate", + "SmsId", + "IsApprovedOld", + "Suffix", + "ScrapeResultId", + "IsApproved", + "CategoryId", + "SectionId", + "VersionCount", + "LastFileName", + "DocumentClasses", + "Tags", + "Library", + "LastRevisionFile", + "SourceDocument", + "SourceDocumentChildren", + "Revisions" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Library", + "LastRevisionFile", + "SourceDocument", + "SourceDocumentChildren", + "Revisions" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + } + }, + "links": { + "Library": { + "operationId": "Revisions.Document.GetLibrary" + }, + "LastRevisionFile": { + "operationId": "Revisions.Document.GetLastRevisionFile" + }, + "SourceDocument": { + "operationId": "Revisions.Document.GetSourceDocument" + }, + "SourceDocumentChildren": { + "operationId": "Revisions.Document.ListSourceDocumentChildren" + }, + "Revisions": { + "operationId": "Revisions.Document.ListRevisions" + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Revisions({Id})/Document/$ref": { + "description": "Provides operations to manage the collection of RevisionDto entities.", + "get": { + "tags": [ + "Revisions.Document" + ], + "summary": "Get ref of Document from Revisions", + "operationId": "Revisions.GetRefDocument", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property link", + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + }, + "links": { + "Library": { + "operationId": "Revisions.Document.GetLibrary" + }, + "LastRevisionFile": { + "operationId": "Revisions.Document.GetLastRevisionFile" + }, + "SourceDocument": { + "operationId": "Revisions.Document.GetSourceDocument" + }, + "SourceDocumentChildren": { + "operationId": "Revisions.Document.ListSourceDocumentChildren" + }, + "Revisions": { + "operationId": "Revisions.Document.ListRevisions" + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "put": { + "tags": [ + "Revisions.Document" + ], + "summary": "Update the ref of navigation property Document in Revisions", + "operationId": "Revisions.UpdateRefDocument", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPutBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Revisions.Document" + ], + "summary": "Delete ref of navigation property Document for Revisions", + "operationId": "Revisions.DeleteRefDocument", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Revisions({Id})/Document/DocumentClasses": { + "get": { + "tags": [ + "Revisions.Document.DocumentClass" + ], + "summary": "Get DocumentClasses property value", + "operationId": "Revisions.Document.ListDocumentClasses", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "ClassInstance", + "ClassInstance desc", + "ClassId", + "ClassId desc", + "DocumentId", + "DocumentId desc", + "CreatedBy", + "CreatedBy desc", + "CreationDate", + "CreationDate desc", + "ModifiedBy", + "ModifiedBy desc", + "ModificationDate", + "ModificationDate desc", + "IsPrimary", + "IsPrimary desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "ClassInstance", + "ClassId", + "DocumentId", + "CreatedBy", + "CreationDate", + "ModifiedBy", + "ModificationDate", + "IsPrimary", + "Document" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Document" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Siterra.Documents.BusinessLogic.Entities.Document.DocumentClassCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "patch": { + "tags": [ + "Revisions.Document.DocumentClass" + ], + "summary": "Update property DocumentClasses value.", + "operationId": "Revisions.Document.UpdateDocumentClasses", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "Revisions.Document.DocumentClass" + ], + "summary": "Sets a new value for the collection of DocumentClass.", + "operationId": "Revisions.Document.SetDocumentClasses", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Revisions({Id})/Document/DocumentClasses/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Revisions.Document.DocumentClass" + ], + "summary": "Get the number of the resource", + "operationId": "Revisions.Document.DocumentClasses.GetCount-6342", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Revisions({Id})/Document/Tags": { + "get": { + "tags": [ + "Revisions.Document.DocumentTagRel" + ], + "summary": "Get Tags property value", + "operationId": "Revisions.Document.ListTags", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "DocumentId", + "DocumentId desc", + "TagId", + "TagId desc", + "DomainId", + "DomainId desc", + "CreatedBy", + "CreatedBy desc", + "ModifiedBy", + "ModifiedBy desc", + "CreationDate", + "CreationDate desc", + "ModificationDate", + "ModificationDate desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "DocumentId", + "TagId", + "DomainId", + "CreatedBy", + "ModifiedBy", + "CreationDate", + "ModificationDate", + "Document", + "Tag" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Document", + "Tag" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRelCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "patch": { + "tags": [ + "Revisions.Document.DocumentTagRel" + ], + "summary": "Update property Tags value.", + "operationId": "Revisions.Document.UpdateTags", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "Revisions.Document.DocumentTagRel" + ], + "summary": "Sets a new value for the collection of DocumentTagRel.", + "operationId": "Revisions.Document.SetTags", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Revisions({Id})/Document/Tags/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Revisions.Document.DocumentTagRel" + ], + "summary": "Get the number of the resource", + "operationId": "Revisions.Document.Tags.GetCount-161f", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Revisions/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Revisions.RevisionDto" + ], + "summary": "Get the number of the resource", + "operationId": "Revisions.GetCount-c6a5", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Tasks": { + "description": "Provides operations to manage the collection of DocumentDto entities.", + "get": { + "tags": [ + "Tasks.DocumentDto" + ], + "summary": "Get entities from Tasks", + "operationId": "Tasks.DocumentDto.ListDocumentDto", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Id desc", + "Name", + "Name desc", + "Description", + "Description desc", + "Filename", + "Filename desc", + "NumberOfRevisions", + "NumberOfRevisions desc", + "Suffix", + "Suffix desc", + "DomainId", + "DomainId desc", + "ModificationDate", + "ModificationDate desc", + "ModifiedBy", + "ModifiedBy desc", + "Tags", + "Tags desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Name", + "Description", + "Filename", + "NumberOfRevisions", + "Suffix", + "DomainId", + "ModificationDate", + "ModifiedBy", + "Tags", + "Revisions" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Revisions" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Siterra.Documents.App.DTO.DocumentDtoCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "Tasks.DocumentDto" + ], + "summary": "Add new entity to Tasks", + "operationId": "Tasks.DocumentDto.CreateDocumentDto", + "requestBody": { + "description": "New entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentDto" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentDto" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Tasks({Id})": { + "description": "Provides operations to manage the collection of DocumentDto entities.", + "get": { + "tags": [ + "Tasks.DocumentDto" + ], + "summary": "Get entity from Tasks by key", + "operationId": "Tasks.DocumentDto.GetDocumentDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Name", + "Description", + "Filename", + "NumberOfRevisions", + "Suffix", + "DomainId", + "ModificationDate", + "ModifiedBy", + "Tags", + "Revisions" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Revisions" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentDto" + } + } + }, + "links": { + "Revisions": { + "operationId": "Tasks.ListRevisions" + }, + "Upload": { + "operationId": "Tasks.DocumentDto.Upload" + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "Tasks.DocumentDto" + ], + "summary": "Update entity in Tasks", + "operationId": "Tasks.DocumentDto.UpdateDocumentDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentDto" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Tasks.DocumentDto" + ], + "summary": "Delete entity from Tasks", + "operationId": "Tasks.DocumentDto.DeleteDocumentDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Tasks({Id})/Default.Upload": { + "description": "Provides operations to call the Upload method.", + "post": { + "tags": [ + "Tasks.DocumentDto.Actions" + ], + "summary": "Invoke action Upload", + "operationId": "Tasks.DocumentDto.Upload", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/UploadResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "action" + } + }, + "/Tasks({Id})/Revisions": { + "description": "Provides operations to manage the Revisions property of the Siterra.Documents.App.DTO.DocumentDto entity.", + "get": { + "tags": [ + "Tasks.RevisionDto" + ], + "summary": "Get Revisions from Tasks", + "operationId": "Tasks.ListRevisions", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Id desc", + "Number", + "Number desc", + "DocumentId", + "DocumentId desc", + "DocumentName", + "DocumentName desc", + "DocumentDescription", + "DocumentDescription desc", + "CreationDate", + "CreationDate desc", + "CreatedBy", + "CreatedBy desc", + "IsReviewed", + "IsReviewed desc", + "ReviewedBy", + "ReviewedBy desc", + "ReviewedDate", + "ReviewedDate desc", + "IsApproved", + "IsApproved desc", + "ApprovedBy", + "ApprovedBy desc", + "ApprovedDate", + "ApprovedDate desc", + "IsRejected", + "IsRejected desc", + "RejectedBy", + "RejectedBy desc", + "RejectedDate", + "RejectedDate desc", + "DomainId", + "DomainId desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Number", + "DocumentId", + "DocumentName", + "DocumentDescription", + "CreationDate", + "CreatedBy", + "IsReviewed", + "ReviewedBy", + "ReviewedDate", + "IsApproved", + "ApprovedBy", + "ApprovedDate", + "IsRejected", + "RejectedBy", + "RejectedDate", + "DomainId", + "Document" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Document" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Siterra.Documents.App.DTO.RevisionDtoCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Tasks({Id})/Revisions({Id1})/$ref": { + "description": "Provides operations to manage the collection of DocumentDto entities.", + "delete": { + "tags": [ + "Tasks.RevisionDto" + ], + "summary": "Delete ref of navigation property Revisions for Tasks", + "operationId": "Tasks.revisions.DeleteRefRevisionDto", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "name": "Id1", + "in": "path", + "description": "The unique identifier of RevisionDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "RevisionDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Tasks({Id})/Revisions/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Tasks.RevisionDto" + ], + "summary": "Get the number of the resource", + "operationId": "Tasks.Revisions.GetCount-9297", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Tasks({Id})/Revisions/$ref": { + "description": "Provides operations to manage the collection of DocumentDto entities.", + "get": { + "tags": [ + "Tasks.RevisionDto" + ], + "summary": "Get ref of Revisions from Tasks", + "operationId": "Tasks.ListRefRevisions", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Id", + "Id desc", + "Number", + "Number desc", + "DocumentId", + "DocumentId desc", + "DocumentName", + "DocumentName desc", + "DocumentDescription", + "DocumentDescription desc", + "CreationDate", + "CreationDate desc", + "CreatedBy", + "CreatedBy desc", + "IsReviewed", + "IsReviewed desc", + "ReviewedBy", + "ReviewedBy desc", + "ReviewedDate", + "ReviewedDate desc", + "IsApproved", + "IsApproved desc", + "ApprovedBy", + "ApprovedBy desc", + "ApprovedDate", + "ApprovedDate desc", + "IsRejected", + "IsRejected desc", + "RejectedBy", + "RejectedBy desc", + "RejectedDate", + "RejectedDate desc", + "DomainId", + "DomainId desc" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "Tasks.RevisionDto" + ], + "summary": "Create new navigation property ref to Revisions for Tasks", + "operationId": "Tasks.CreateRefRevisions", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Tasks.RevisionDto" + ], + "summary": "Delete ref of navigation property Revisions for Tasks", + "operationId": "Tasks.DeleteRefRevisions", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Tasks({Id})/Tags": { + "get": { + "tags": [ + "Tasks.DocumentTagRelDto" + ], + "summary": "Get Tags property value", + "operationId": "Tasks.ListTags", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Name", + "Name desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Name" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "patch": { + "tags": [ + "Tasks.DocumentTagRelDto" + ], + "summary": "Update property Tags value.", + "operationId": "Tasks.UpdateTags", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDto" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "Tasks.DocumentTagRelDto" + ], + "summary": "Sets a new value for the collection of DocumentTagRelDto.", + "operationId": "Tasks.SetTags", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDto" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Tasks({Id})/Tags/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Tasks.DocumentTagRelDto" + ], + "summary": "Get the number of the resource", + "operationId": "Tasks.Tags.GetCount-3a1b", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Tasks/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Tasks.DocumentDto" + ], + "summary": "Get the number of the resource", + "operationId": "Tasks.GetCount-2961", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + } + }, + "components": { + "schemas": { + "Default.ODataErrors.ODataError": { + "required": [ + "error" + ], + "type": "object", + "properties": { + "error": { + "$ref": "#/components/schemas/Default.ODataErrors.MainError" + } + } + }, + "Default.ODataErrors.MainError": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string", + "x-ms-primary-error-message": true + }, + "target": { + "type": [ + "null", + "string" + ] + }, + "details": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Default.ODataErrors.ErrorDetails" + } + }, + "innerError": { + "$ref": "#/components/schemas/Default.ODataErrors.InnerError" + } + } + }, + "Default.ODataErrors.ErrorDetails": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "target": { + "type": [ + "null", + "string" + ] + } + } + }, + "Default.ODataErrors.InnerError": { + "type": "object", + "description": "The structure of this object is service-specific" + }, + "ODataCountResponse": { + "type": "number", + "format": "int64" + }, + "StringCollectionResponse": { + "title": "Collection of string", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ReferenceUpdate": { + "type": "object", + "properties": { + "@odata.id": { + "type": "string" + }, + "@odata.type": { + "type": [ + "null", + "string" + ] + } + } + }, + "ReferenceCreate": { + "type": "object", + "properties": { + "@odata.id": { + "type": "string" + } + }, + "additionalProperties": { + "type": "object" + } + }, + "ReferenceNumeric": { + "enum": [ + "-INF", + "INF", + "NaN" + ], + "type": [ + "null", + "string" + ] + }, + "Siterra.Documents.App.DTO.DocumentDto": { + "title": "DocumentDto", + "type": "object", + "properties": { + "Id": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "Name": { + "type": [ + "null", + "string" + ] + }, + "Description": { + "type": [ + "null", + "string" + ] + }, + "Filename": { + "type": [ + "null", + "string" + ] + }, + "NumberOfRevisions": { + "type": [ + "null", + "string" + ] + }, + "Suffix": { + "type": [ + "null", + "string" + ] + }, + "DomainId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "ModificationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "ModifiedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "Tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDto" + } + }, + "Revisions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.RevisionDto" + }, + "x-ms-navigationProperty": true + } + }, + "example": { + "Id": 0, + "Name": "string", + "Description": "string", + "Filename": "string", + "NumberOfRevisions": "string", + "Suffix": "string", + "DomainId": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "Tags": [ + { + "@odata.type": "Siterra.Documents.App.DTO.DocumentTagRelDto" + } + ], + "Revisions": [ + { + "@odata.type": "Siterra.Documents.App.DTO.RevisionDto" + } + ] + } + }, + "Siterra.Documents.App.DTO.LibraryDto": { + "title": "LibraryDto", + "type": "object", + "properties": { + "Id": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "Name": { + "type": [ + "null", + "string" + ] + }, + "Number": { + "type": [ + "null", + "string" + ] + }, + "Description": { + "type": [ + "null", + "string" + ] + }, + "LibraryTemplateId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "ParentTypeId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "ParentId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "AllowMultiple": { + "type": "boolean" + }, + "AutoCreate": { + "type": "boolean" + }, + "TypeId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "DomainId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "CreatedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "CreationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "ModifiedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "ModificationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "Documents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentDto" + }, + "x-ms-navigationProperty": true + } + }, + "example": { + "Id": 0, + "Name": "string", + "Number": "string", + "Description": "string", + "LibraryTemplateId": 0, + "ParentTypeId": 0, + "ParentId": 0, + "AllowMultiple": true, + "AutoCreate": true, + "TypeId": 0, + "DomainId": 0, + "CreatedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "Documents": [ + { + "@odata.type": "Siterra.Documents.App.DTO.DocumentDto" + } + ] + } + }, + "Siterra.Documents.App.DTO.RevisionDto": { + "title": "RevisionDto", + "type": "object", + "properties": { + "Id": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "Number": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "DocumentId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "DocumentName": { + "type": [ + "null", + "string" + ] + }, + "DocumentDescription": { + "type": [ + "null", + "string" + ] + }, + "CreationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "CreatedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "IsReviewed": { + "type": "boolean" + }, + "ReviewedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "ReviewedDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "IsApproved": { + "type": "boolean" + }, + "ApprovedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "ApprovedDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "IsRejected": { + "type": "boolean" + }, + "RejectedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "RejectedDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "DomainId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "Document": { + "anyOf": [ + { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document" + }, + { + "type": "null" + } + ], + "x-ms-navigationProperty": true + } + }, + "example": { + "Id": 0, + "Number": 0, + "DocumentId": 0, + "DocumentName": "string", + "DocumentDescription": "string", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "CreatedBy": 0, + "IsReviewed": true, + "ReviewedBy": 0, + "ReviewedDate": "0001-01-01T00:00:00.0000000+00:00", + "IsApproved": true, + "ApprovedBy": 0, + "ApprovedDate": "0001-01-01T00:00:00.0000000+00:00", + "IsRejected": true, + "RejectedBy": 0, + "RejectedDate": "0001-01-01T00:00:00.0000000+00:00", + "DomainId": 0, + "Document": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + } + }, + "Siterra.Documents.App.DTO.CategoryDto": { + "title": "CategoryDto", + "type": "object", + "properties": { + "Id": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "Name": { + "type": [ + "null", + "string" + ] + }, + "Description": { + "type": [ + "null", + "string" + ] + }, + "CreationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "ModificationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "DomainId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + } + }, + "example": { + "Id": 0, + "Name": "string", + "Description": "string", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "DomainId": 0 + } + }, + "Siterra.Documents.App.DTO.DocumentTagRelDto": { + "title": "DocumentTagRelDto", + "type": "object", + "properties": { + "Name": { + "type": [ + "null", + "string" + ] + } + }, + "example": { + "Name": "string" + } + }, + "Siterra.Documents.BusinessLogic.Entities.Document.Document": { + "title": "Document", + "type": "object", + "properties": { + "Id": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "Name": { + "type": [ + "null", + "string" + ] + }, + "Description": { + "type": [ + "null", + "string" + ] + }, + "StatusId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "TypeId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "Keywords": { + "type": [ + "null", + "string" + ] + }, + "CreationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "CreatedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "ModificationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "ModifiedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "DomainId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "LibraryId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "OwnerUserId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "StatusDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "LastRevisionId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "CheckoutDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "CheckoutPath": { + "type": [ + "null", + "string" + ] + }, + "CheckoutUserId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "Number": { + "type": [ + "null", + "string" + ] + }, + "OriginalDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "FileSized": { + "type": "number", + "format": "decimal" + }, + "FileClientPath": { + "type": [ + "null", + "string" + ] + }, + "LastRevisionFileId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "IsDeleted": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "IsNa": { + "type": [ + "null", + "number" + ], + "format": "decimal" + }, + "IsRejected": { + "type": [ + "null", + "number" + ], + "format": "decimal" + }, + "IsReviewed": { + "type": [ + "null", + "number" + ], + "format": "decimal" + }, + "NaDescription": { + "type": [ + "null", + "string" + ] + }, + "NaReason": { + "type": [ + "null", + "string" + ] + }, + "RejectedDescription": { + "type": [ + "null", + "string" + ] + }, + "RejectedReason": { + "type": [ + "null", + "string" + ] + }, + "ReviewDescription": { + "type": [ + "null", + "string" + ] + }, + "SourceDocumentId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "ScraperMapId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "LastDownloadedDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "SmsId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "IsApprovedOld": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "Suffix": { + "type": [ + "null", + "string" + ] + }, + "ScrapeResultId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "IsApproved": { + "type": [ + "null", + "number" + ], + "format": "decimal" + }, + "CategoryId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "SectionId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "VersionCount": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "LastFileName": { + "type": [ + "null", + "string" + ] + }, + "DocumentClasses": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass" + } + }, + "Tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel" + } + }, + "Library": { + "anyOf": [ + { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library" + }, + { + "type": "null" + } + ], + "x-ms-navigationProperty": true + }, + "LastRevisionFile": { + "anyOf": [ + { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile" + }, + { + "type": "null" + } + ], + "x-ms-navigationProperty": true + }, + "SourceDocument": { + "anyOf": [ + { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document" + }, + { + "type": "null" + } + ], + "x-ms-navigationProperty": true + }, + "SourceDocumentChildren": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document" + }, + "x-ms-navigationProperty": true + }, + "Revisions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Revision.Revision" + }, + "x-ms-navigationProperty": true + } + }, + "example": { + "Id": 0, + "Name": "string", + "Description": "string", + "StatusId": 0, + "TypeId": 0, + "Keywords": "string", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "CreatedBy": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "DomainId": 0, + "LibraryId": 0, + "OwnerUserId": 0, + "StatusDate": "0001-01-01T00:00:00.0000000+00:00", + "LastRevisionId": 0, + "CheckoutDate": "0001-01-01T00:00:00.0000000+00:00", + "CheckoutPath": "string", + "CheckoutUserId": 0, + "Number": "string", + "OriginalDate": "0001-01-01T00:00:00.0000000+00:00", + "FileSized": 0, + "FileClientPath": "string", + "LastRevisionFileId": 0, + "IsDeleted": 0, + "IsNa": 0, + "IsRejected": 0, + "IsReviewed": 0, + "NaDescription": "string", + "NaReason": "string", + "RejectedDescription": "string", + "RejectedReason": "string", + "ReviewDescription": "string", + "SourceDocumentId": 0, + "ScraperMapId": 0, + "LastDownloadedDate": "0001-01-01T00:00:00.0000000+00:00", + "SmsId": 0, + "IsApprovedOld": 0, + "Suffix": "string", + "ScrapeResultId": 0, + "IsApproved": 0, + "CategoryId": 0, + "SectionId": 0, + "VersionCount": 0, + "LastFileName": "string", + "DocumentClasses": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass" + } + ], + "Tags": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel" + } + ], + "Library": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.Library" + }, + "LastRevisionFile": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile" + }, + "SourceDocument": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + }, + "SourceDocumentChildren": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + ], + "Revisions": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Revision.Revision" + } + ] + } + }, + "Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass": { + "title": "DocumentClass", + "type": "object", + "properties": { + "ClassInstance": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "ClassId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "DocumentId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "CreatedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "CreationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "ModifiedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "ModificationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "IsPrimary": { + "type": "boolean" + }, + "Document": { + "anyOf": [ + { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document" + }, + { + "type": "null" + } + ], + "x-ms-navigationProperty": true + } + }, + "example": { + "ClassInstance": 0, + "ClassId": 0, + "DocumentId": 0, + "CreatedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "IsPrimary": true, + "Document": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + } + }, + "Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel": { + "title": "DocumentTagRel", + "type": "object", + "properties": { + "DocumentId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "TagId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "DomainId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "CreatedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "ModifiedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "CreationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "ModificationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "Document": { + "anyOf": [ + { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document" + }, + { + "type": "null" + } + ], + "x-ms-navigationProperty": true + }, + "Tag": { + "anyOf": [ + { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Tags.Tag" + }, + { + "type": "null" + } + ], + "x-ms-navigationProperty": true + } + }, + "example": { + "DocumentId": 0, + "TagId": 0, + "DomainId": 0, + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "Document": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + }, + "Tag": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Tags.Tag" + } + } + }, + "Siterra.Documents.BusinessLogic.Entities.Library.Library": { + "title": "Library", + "type": "object", + "properties": { + "Id": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "DomainId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "Name": { + "type": [ + "null", + "string" + ] + }, + "ParentFolderId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "Number": { + "type": [ + "null", + "string" + ] + }, + "TypeId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "OwnerUserId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "TotalSize": { + "type": "number", + "format": "decimal" + }, + "FilesCounter": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "FoldersCounter": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "CreationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "ModificationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "ModifiedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "CreatedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "ProjectId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "SearchRingId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "SiteId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "AssetId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "AllowMultiple": { + "type": "boolean" + }, + "AutoCreate": { + "type": "boolean" + }, + "Description": { + "type": [ + "null", + "string" + ] + }, + "IsTemplate": { + "type": "boolean" + }, + "ProgramId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "SourceFolderId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "TemplateClassId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "TemplateSubType": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "IsHidden": { + "type": "boolean" + }, + "IsDeleted": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "StatusId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "SmsId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "ContractId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "VendorId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "OrganizationUnitId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "IncidentId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "EventId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "ClassInstance": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "ClassId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "LibraryParent": { + "anyOf": [ + { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library" + }, + { + "type": "null" + } + ], + "x-ms-navigationProperty": true + }, + "Type": { + "anyOf": [ + { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" + }, + { + "type": "null" + } + ], + "x-ms-navigationProperty": true + }, + "SourceFolder": { + "anyOf": [ + { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library" + }, + { + "type": "null" + } + ], + "x-ms-navigationProperty": true + }, + "Documents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document" + }, + "x-ms-navigationProperty": true + }, + "LibraryChildren": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library" + }, + "x-ms-navigationProperty": true + }, + "SourceLibraryChildren": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library" + }, + "x-ms-navigationProperty": true + } + }, + "example": { + "Id": 0, + "DomainId": 0, + "Name": "string", + "ParentFolderId": 0, + "Number": "string", + "TypeId": 0, + "OwnerUserId": 0, + "TotalSize": 0, + "FilesCounter": 0, + "FoldersCounter": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "CreatedBy": 0, + "ProjectId": 0, + "SearchRingId": 0, + "SiteId": 0, + "AssetId": 0, + "AllowMultiple": true, + "AutoCreate": true, + "Description": "string", + "IsTemplate": true, + "ProgramId": 0, + "SourceFolderId": 0, + "TemplateClassId": 0, + "TemplateSubType": 0, + "IsHidden": true, + "IsDeleted": 0, + "StatusId": 0, + "SmsId": 0, + "ContractId": 0, + "VendorId": 0, + "OrganizationUnitId": 0, + "IncidentId": 0, + "EventId": 0, + "ClassInstance": 0, + "ClassId": 0, + "LibraryParent": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.Library" + }, + "Type": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" + }, + "SourceFolder": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.Library" + }, + "Documents": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + ], + "LibraryChildren": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.Library" + } + ], + "SourceLibraryChildren": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.Library" + } + ] + } + }, + "Siterra.Documents.BusinessLogic.Entities.Library.LibraryType": { + "title": "LibraryType", + "type": "object", + "properties": { + "Id": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "Name": { + "type": [ + "null", + "string" + ] + }, + "ModifiedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "CreatedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "ModificationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "CreationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "DomainId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "Description": { + "type": [ + "null", + "string" + ] + }, + "XmlName": { + "type": [ + "null", + "string" + ] + }, + "MasterId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "Number": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "ClassId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "ParentId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "HasChanged": { + "type": "boolean" + }, + "MasterLibraryType": { + "anyOf": [ + { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" + }, + { + "type": "null" + } + ], + "x-ms-navigationProperty": true + }, + "ParentLibraryTypes": { + "anyOf": [ + { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" + }, + { + "type": "null" + } + ], + "x-ms-navigationProperty": true + }, + "MasterLibraryTypeChildren": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" + }, + "x-ms-navigationProperty": true + }, + "ChildrenLibraryTypes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" + }, + "x-ms-navigationProperty": true + } + }, + "example": { + "Id": 0, + "Name": "string", + "ModifiedBy": 0, + "CreatedBy": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "DomainId": 0, + "Description": "string", + "XmlName": "string", + "MasterId": 0, + "Number": 0, + "ClassId": 0, + "ParentId": 0, + "HasChanged": true, + "MasterLibraryType": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" + }, + "ParentLibraryTypes": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" + }, + "MasterLibraryTypeChildren": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" + } + ], + "ChildrenLibraryTypes": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" + } + ] + } + }, + "Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile": { + "title": "DocumentFile", + "type": "object", + "properties": { + "Id": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "Name": { + "type": [ + "null", + "string" + ] + }, + "Path": { + "type": [ + "null", + "string" + ] + }, + "ModifiedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "CreatedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "CreationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "ModificationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "Sized": { + "type": "number", + "format": "decimal" + }, + "ActualName": { + "type": [ + "null", + "string" + ] + }, + "DomainId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "SourceClassId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "ContentTypeId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "ClientPath": { + "type": [ + "null", + "string" + ] + }, + "IsSelfHosted": { + "maximum": 32767, + "minimum": -32768, + "type": "number", + "format": "int16" + }, + "SmsId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "Latitude": { + "type": [ + "null", + "number" + ], + "format": "decimal" + }, + "Longitude": { + "type": [ + "null", + "number" + ], + "format": "decimal" + }, + "Documents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document" + }, + "x-ms-navigationProperty": true + } + }, + "example": { + "Id": 0, + "Name": "string", + "Path": "string", + "ModifiedBy": 0, + "CreatedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "Sized": 0, + "ActualName": "string", + "DomainId": 0, + "SourceClassId": 0, + "ContentTypeId": 0, + "ClientPath": "string", + "IsSelfHosted": 0, + "SmsId": 0, + "Latitude": 0, + "Longitude": 0, + "Documents": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + ] + } + }, + "Siterra.Documents.BusinessLogic.Entities.Tags.Tag": { + "title": "Tag", + "type": "object", + "properties": { + "Id": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "DomainId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "Name": { + "type": [ + "null", + "string" + ] + }, + "Description": { + "type": [ + "null", + "string" + ] + }, + "CreatedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "ModifiedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "CreationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "ModificationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + } + }, + "example": { + "Id": 0, + "DomainId": 0, + "Name": "string", + "Description": "string", + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00" + } + }, + "Siterra.Documents.BusinessLogic.Entities.Tags.UserDefinedTag": { + "allOf": [ + { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Tags.Tag" + }, + { + "title": "UserDefinedTag", + "type": "object", + "properties": { + "Documents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel" + } + } + } + } + ], + "example": { + "Id": 0, + "DomainId": 0, + "Name": "string", + "Description": "string", + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "Documents": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel" + } + ] + } + }, + "Siterra.Documents.BusinessLogic.Entities.Tags.Section": { + "allOf": [ + { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Tags.Tag" + }, + { + "title": "Section", + "type": "object", + "properties": { + "Documents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document" + }, + "x-ms-navigationProperty": true + } + } + } + ], + "example": { + "Id": 0, + "DomainId": 0, + "Name": "string", + "Description": "string", + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "Documents": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + ] + } + }, + "Siterra.Documents.BusinessLogic.Entities.Tags.Category": { + "allOf": [ + { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Tags.Tag" + }, + { + "title": "Category", + "type": "object", + "properties": { + "Documents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document" + }, + "x-ms-navigationProperty": true + } + } + } + ], + "example": { + "Id": 0, + "DomainId": 0, + "Name": "string", + "Description": "string", + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "Documents": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + ] + } + }, + "Siterra.Documents.BusinessLogic.Entities.Revision.Revision": { + "title": "Revision", + "type": "object", + "properties": { + "Id": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "Number": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "DocumentId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "ModificationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "CreationDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "ModifiedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "CreatedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "Remarks": { + "type": [ + "null", + "string" + ] + }, + "FileId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "DocumentOwnerContact": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "DocumentDescription": { + "type": [ + "null", + "string" + ] + }, + "DocumentStatusDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "DocumentFolder": { + "type": [ + "null", + "string" + ] + }, + "DocumentKeywords": { + "type": [ + "null", + "string" + ] + }, + "DocumentStatus": { + "type": [ + "null", + "string" + ] + }, + "DocumentType": { + "type": [ + "null", + "string" + ] + }, + "DocumentName": { + "type": [ + "null", + "string" + ] + }, + "DocumentNumber": { + "type": [ + "null", + "string" + ] + }, + "DomainId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "IsDeleted": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "IsReviewed": { + "type": "boolean" + }, + "ReviewDescription": { + "type": [ + "null", + "string" + ] + }, + "ReviewedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "IsRejected": { + "type": "boolean" + }, + "RejectedReason": { + "type": [ + "null", + "string" + ] + }, + "RejectedDescription": { + "type": [ + "null", + "string" + ] + }, + "RejectedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "IsApproved": { + "type": "boolean" + }, + "ApprovedBy": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": [ + "null", + "number" + ], + "format": "int32" + }, + "ReviewedDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "RejectedDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "ApprovedDate": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "Document": { + "anyOf": [ + { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document" + }, + { + "type": "null" + } + ], + "x-ms-navigationProperty": true + } + }, + "example": { + "Id": 0, + "Number": 0, + "DocumentId": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "CreatedBy": 0, + "Remarks": "string", + "FileId": 0, + "DocumentOwnerContact": 0, + "DocumentDescription": "string", + "DocumentStatusDate": "0001-01-01T00:00:00.0000000+00:00", + "DocumentFolder": "string", + "DocumentKeywords": "string", + "DocumentStatus": "string", + "DocumentType": "string", + "DocumentName": "string", + "DocumentNumber": "string", + "DomainId": 0, + "IsDeleted": 0, + "IsReviewed": true, + "ReviewDescription": "string", + "ReviewedBy": 0, + "IsRejected": true, + "RejectedReason": "string", + "RejectedDescription": "string", + "RejectedBy": 0, + "IsApproved": true, + "ApprovedBy": 0, + "ReviewedDate": "0001-01-01T00:00:00.0000000+00:00", + "RejectedDate": "0001-01-01T00:00:00.0000000+00:00", + "ApprovedDate": "0001-01-01T00:00:00.0000000+00:00", + "Document": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + } + }, + "Siterra.Documents.App.DTO.DocumentDtoCollectionResponse": { + "title": "Collection of DocumentDto", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentDto" + } + } + } + }, + "Siterra.Documents.App.DTO.LibraryDtoCollectionResponse": { + "title": "Collection of LibraryDto", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.LibraryDto" + } + } + } + }, + "Siterra.Documents.App.DTO.RevisionDtoCollectionResponse": { + "title": "Collection of RevisionDto", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.RevisionDto" + } + } + } + }, + "Siterra.Documents.App.DTO.CategoryDtoCollectionResponse": { + "title": "Collection of CategoryDto", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.CategoryDto" + } + } + } + }, + "Siterra.Documents.BusinessLogic.Entities.Document.DocumentCollectionResponse": { + "title": "Collection of Document", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + } + } + }, + "Siterra.Documents.BusinessLogic.Entities.Revision.RevisionCollectionResponse": { + "title": "Collection of Revision", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Revision.Revision" + } + } + } + }, + "Siterra.Documents.BusinessLogic.Entities.Library.LibraryCollectionResponse": { + "title": "Collection of Library", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library" + } + } + } + }, + "Siterra.Documents.BusinessLogic.Entities.Library.LibraryTypeCollectionResponse": { + "title": "Collection of LibraryType", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" + } + } + } + }, + "Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse": { + "title": "Collection of Siterra.Documents.App.DTO.DocumentTagRelDto", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDto" + } + } + } + }, + "Siterra.Documents.BusinessLogic.Entities.Document.DocumentClassCollectionResponse": { + "title": "Collection of Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass" + } + } + } + }, + "Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRelCollectionResponse": { + "title": "Collection of Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel" + } + } + } + } + }, + "responses": { + "error": { + "description": "error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Default.ODataErrors.ODataError" + } + } + } + }, + "ODataCountResponse": { + "description": "The count of the resource", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/ODataCountResponse" + } + } + } + }, + "Siterra.Documents.App.DTO.DocumentDtoCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentDtoCollectionResponse" + } + } + } + }, + "Siterra.Documents.App.DTO.LibraryDtoCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.LibraryDtoCollectionResponse" + } + } + } + }, + "Siterra.Documents.App.DTO.RevisionDtoCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.RevisionDtoCollectionResponse" + } + } + } + }, + "Siterra.Documents.App.DTO.CategoryDtoCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.CategoryDtoCollectionResponse" + } + } + } + }, + "Siterra.Documents.BusinessLogic.Entities.Document.DocumentCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentCollectionResponse" + } + } + } + }, + "Siterra.Documents.BusinessLogic.Entities.Revision.RevisionCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Revision.RevisionCollectionResponse" + } + } + } + }, + "Siterra.Documents.BusinessLogic.Entities.Library.LibraryCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryCollectionResponse" + } + } + } + }, + "Siterra.Documents.BusinessLogic.Entities.Library.LibraryTypeCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryTypeCollectionResponse" + } + } + } + }, + "Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse" + } + } + } + }, + "Siterra.Documents.BusinessLogic.Entities.Document.DocumentClassCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentClassCollectionResponse" + } + } + } + }, + "Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRelCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRelCollectionResponse" + } + } + } + }, + "StringCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StringCollectionResponse" + } + } + } + }, + "UploadResponse": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentDto" + } + } + } + } + }, + "parameters": { + "top": { + "name": "$top", + "in": "query", + "description": "Show only the first n items", + "explode": false, + "schema": { + "minimum": 0, + "type": "number", + "format": "int64" + }, + "example": 50 + }, + "skip": { + "name": "$skip", + "in": "query", + "description": "Skip the first n items", + "explode": false, + "schema": { + "minimum": 0, + "type": "number", + "format": "int64" + } + }, + "count": { + "name": "$count", + "in": "query", + "description": "Include count of items", + "explode": false, + "schema": { + "type": "boolean" + } + }, + "filter": { + "name": "$filter", + "in": "query", + "description": "Filter items by property values", + "explode": false, + "schema": { + "type": "string" + } + }, + "search": { + "name": "$search", + "in": "query", + "description": "Search items by search phrases", + "explode": false, + "schema": { + "type": "string" + } + } + }, + "examples": { + "Siterra.Documents.App.DTO.DocumentDto": { + "value": { + "Id": 0, + "Name": "string", + "Description": "string", + "Filename": "string", + "NumberOfRevisions": "string", + "Suffix": "string", + "DomainId": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "Tags": [ + { + "@odata.type": "Siterra.Documents.App.DTO.DocumentTagRelDto" + } + ], + "Revisions": [ + { + "@odata.type": "Siterra.Documents.App.DTO.RevisionDto" + } + ] + } + }, + "Siterra.Documents.App.DTO.LibraryDto": { + "value": { + "Id": 0, + "Name": "string", + "Number": "string", + "Description": "string", + "LibraryTemplateId": 0, + "ParentTypeId": 0, + "ParentId": 0, + "AllowMultiple": true, + "AutoCreate": true, + "TypeId": 0, + "DomainId": 0, + "CreatedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "Documents": [ + { + "@odata.type": "Siterra.Documents.App.DTO.DocumentDto" + } + ] + } + }, + "Siterra.Documents.App.DTO.RevisionDto": { + "value": { + "Id": 0, + "Number": 0, + "DocumentId": 0, + "DocumentName": "string", + "DocumentDescription": "string", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "CreatedBy": 0, + "IsReviewed": true, + "ReviewedBy": 0, + "ReviewedDate": "0001-01-01T00:00:00.0000000+00:00", + "IsApproved": true, + "ApprovedBy": 0, + "ApprovedDate": "0001-01-01T00:00:00.0000000+00:00", + "IsRejected": true, + "RejectedBy": 0, + "RejectedDate": "0001-01-01T00:00:00.0000000+00:00", + "DomainId": 0, + "Document": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + } + }, + "Siterra.Documents.App.DTO.CategoryDto": { + "value": { + "Id": 0, + "Name": "string", + "Description": "string", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "DomainId": 0 + } + }, + "Siterra.Documents.App.DTO.DocumentTagRelDto": { + "value": { + "Name": "string" + } + }, + "Siterra.Documents.BusinessLogic.Entities.Document.Document": { + "value": { + "Id": 0, + "Name": "string", + "Description": "string", + "StatusId": 0, + "TypeId": 0, + "Keywords": "string", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "CreatedBy": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "DomainId": 0, + "LibraryId": 0, + "OwnerUserId": 0, + "StatusDate": "0001-01-01T00:00:00.0000000+00:00", + "LastRevisionId": 0, + "CheckoutDate": "0001-01-01T00:00:00.0000000+00:00", + "CheckoutPath": "string", + "CheckoutUserId": 0, + "Number": "string", + "OriginalDate": "0001-01-01T00:00:00.0000000+00:00", + "FileSized": 0, + "FileClientPath": "string", + "LastRevisionFileId": 0, + "IsDeleted": 0, + "IsNa": 0, + "IsRejected": 0, + "IsReviewed": 0, + "NaDescription": "string", + "NaReason": "string", + "RejectedDescription": "string", + "RejectedReason": "string", + "ReviewDescription": "string", + "SourceDocumentId": 0, + "ScraperMapId": 0, + "LastDownloadedDate": "0001-01-01T00:00:00.0000000+00:00", + "SmsId": 0, + "IsApprovedOld": 0, + "Suffix": "string", + "ScrapeResultId": 0, + "IsApproved": 0, + "CategoryId": 0, + "SectionId": 0, + "VersionCount": 0, + "LastFileName": "string", + "DocumentClasses": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass" + } + ], + "Tags": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel" + } + ], + "Library": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.Library" + }, + "LastRevisionFile": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile" + }, + "SourceDocument": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + }, + "SourceDocumentChildren": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + ], + "Revisions": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Revision.Revision" + } + ] + } + }, + "Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass": { + "value": { + "ClassInstance": 0, + "ClassId": 0, + "DocumentId": 0, + "CreatedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "IsPrimary": true, + "Document": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + } + }, + "Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel": { + "value": { + "DocumentId": 0, + "TagId": 0, + "DomainId": 0, + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "Document": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + }, + "Tag": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Tags.Tag" + } + } + }, + "Siterra.Documents.BusinessLogic.Entities.Library.Library": { + "value": { + "Id": 0, + "DomainId": 0, + "Name": "string", + "ParentFolderId": 0, + "Number": "string", + "TypeId": 0, + "OwnerUserId": 0, + "TotalSize": 0, + "FilesCounter": 0, + "FoldersCounter": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "CreatedBy": 0, + "ProjectId": 0, + "SearchRingId": 0, + "SiteId": 0, + "AssetId": 0, + "AllowMultiple": true, + "AutoCreate": true, + "Description": "string", + "IsTemplate": true, + "ProgramId": 0, + "SourceFolderId": 0, + "TemplateClassId": 0, + "TemplateSubType": 0, + "IsHidden": true, + "IsDeleted": 0, + "StatusId": 0, + "SmsId": 0, + "ContractId": 0, + "VendorId": 0, + "OrganizationUnitId": 0, + "IncidentId": 0, + "EventId": 0, + "ClassInstance": 0, + "ClassId": 0, + "LibraryParent": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.Library" + }, + "Type": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" + }, + "SourceFolder": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.Library" + }, + "Documents": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + ], + "LibraryChildren": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.Library" + } + ], + "SourceLibraryChildren": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.Library" + } + ] + } + }, + "Siterra.Documents.BusinessLogic.Entities.Library.LibraryType": { + "value": { + "Id": 0, + "Name": "string", + "ModifiedBy": 0, + "CreatedBy": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "DomainId": 0, + "Description": "string", + "XmlName": "string", + "MasterId": 0, + "Number": 0, + "ClassId": 0, + "ParentId": 0, + "HasChanged": true, + "MasterLibraryType": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" + }, + "ParentLibraryTypes": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" + }, + "MasterLibraryTypeChildren": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" + } + ], + "ChildrenLibraryTypes": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" + } + ] + } + }, + "Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile": { + "value": { + "Id": 0, + "Name": "string", + "Path": "string", + "ModifiedBy": 0, + "CreatedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "Sized": 0, + "ActualName": "string", + "DomainId": 0, + "SourceClassId": 0, + "ContentTypeId": 0, + "ClientPath": "string", + "IsSelfHosted": 0, + "SmsId": 0, + "Latitude": 0, + "Longitude": 0, + "Documents": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + ] + } + }, + "Siterra.Documents.BusinessLogic.Entities.Tags.Tag": { + "value": { + "Id": 0, + "DomainId": 0, + "Name": "string", + "Description": "string", + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00" + } + }, + "Siterra.Documents.BusinessLogic.Entities.Tags.UserDefinedTag": { + "value": { + "Id": 0, + "DomainId": 0, + "Name": "string", + "Description": "string", + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "Documents": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel" + } + ] + } + }, + "Siterra.Documents.BusinessLogic.Entities.Tags.Section": { + "value": { + "Id": 0, + "DomainId": 0, + "Name": "string", + "Description": "string", + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "Documents": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + ] + } + }, + "Siterra.Documents.BusinessLogic.Entities.Tags.Category": { + "value": { + "Id": 0, + "DomainId": 0, + "Name": "string", + "Description": "string", + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "Documents": [ + { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + ] + } + }, + "Siterra.Documents.BusinessLogic.Entities.Revision.Revision": { + "value": { + "Id": 0, + "Number": 0, + "DocumentId": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "CreatedBy": 0, + "Remarks": "string", + "FileId": 0, + "DocumentOwnerContact": 0, + "DocumentDescription": "string", + "DocumentStatusDate": "0001-01-01T00:00:00.0000000+00:00", + "DocumentFolder": "string", + "DocumentKeywords": "string", + "DocumentStatus": "string", + "DocumentType": "string", + "DocumentName": "string", + "DocumentNumber": "string", + "DomainId": 0, + "IsDeleted": 0, + "IsReviewed": true, + "ReviewDescription": "string", + "ReviewedBy": 0, + "IsRejected": true, + "RejectedReason": "string", + "RejectedDescription": "string", + "RejectedBy": 0, + "IsApproved": true, + "ApprovedBy": 0, + "ReviewedDate": "0001-01-01T00:00:00.0000000+00:00", + "RejectedDate": "0001-01-01T00:00:00.0000000+00:00", + "ApprovedDate": "0001-01-01T00:00:00.0000000+00:00", + "Document": { + "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" + } + } + } + }, + "requestBodies": { + "refPostBody": { + "description": "New navigation property ref value", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReferenceCreate" + } + } + }, + "required": true + }, + "refPutBody": { + "description": "New navigation property ref values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReferenceUpdate" + } + } + }, + "required": true + } + } + }, + "tags": [ + { + "name": "Categories.CategoryDto", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Documents.DocumentDto", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Documents.DocumentDto.Actions", + "x-ms-docs-toc-type": "container" + }, + { + "name": "Documents.RevisionDto", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Documents.DocumentTagRelDto", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Libraries.LibraryDto", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Libraries.DocumentDto", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Libraries.DocumentDto.DocumentTagRelDto", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Revisions.RevisionDto", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Revisions.Document", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Revisions.Document.DocumentClass", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Revisions.Document.DocumentTagRel", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Tasks.DocumentDto", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Tasks.DocumentDto.Actions", + "x-ms-docs-toc-type": "container" + }, + { + "name": "Tasks.RevisionDto", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Tasks.DocumentTagRelDto", + "x-ms-docs-toc-type": "page" + } + ] +} \ No newline at end of file diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V3.1.yaml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V3.1.yaml new file mode 100644 index 000000000..ea0aec895 --- /dev/null +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V3.1.yaml @@ -0,0 +1,5483 @@ +openapi: '3.1.1' +info: + title: OData Service for namespace Default + description: This OData service is located at http://localhost + version: 1.0.0 +servers: + - url: http://localhost +paths: + /Categories: + description: Provides operations to manage the collection of CategoryDto entities. + get: + tags: + - Categories.CategoryDto + summary: Get entities from Categories + operationId: Categories.CategoryDto.ListCategoryDto + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Id desc + - Name + - Name desc + - Description + - Description desc + - CreationDate + - CreationDate desc + - ModificationDate + - ModificationDate desc + - DomainId + - DomainId desc + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Name + - Description + - CreationDate + - ModificationDate + - DomainId + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + type: string + responses: + '200': + $ref: '#/components/responses/Siterra.Documents.App.DTO.CategoryDtoCollectionResponse' + default: + $ref: '#/components/responses/error' + post: + tags: + - Categories.CategoryDto + summary: Add new entity to Categories + operationId: Categories.CategoryDto.CreateCategoryDto + requestBody: + description: New entity + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.CategoryDto' + required: true + responses: + '201': + description: Created entity + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.CategoryDto' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Categories({Id})': + description: Provides operations to manage the collection of CategoryDto entities. + get: + tags: + - Categories.CategoryDto + summary: Get entity from Categories by key + operationId: Categories.CategoryDto.GetCategoryDto + parameters: + - name: Id + in: path + description: The unique identifier of CategoryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: CategoryDto + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Name + - Description + - CreationDate + - ModificationDate + - DomainId + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + type: string + responses: + '200': + description: Retrieved entity + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.CategoryDto' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + patch: + tags: + - Categories.CategoryDto + summary: Update entity in Categories + operationId: Categories.CategoryDto.UpdateCategoryDto + parameters: + - name: Id + in: path + description: The unique identifier of CategoryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: CategoryDto + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.CategoryDto' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - Categories.CategoryDto + summary: Delete entity from Categories + operationId: Categories.CategoryDto.DeleteCategoryDto + parameters: + - name: Id + in: path + description: The unique identifier of CategoryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: CategoryDto + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + /Categories/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Categories.CategoryDto + summary: Get the number of the resource + operationId: Categories.GetCount-2f72 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + /Documents: + description: Provides operations to manage the collection of DocumentDto entities. + get: + tags: + - Documents.DocumentDto + summary: Get entities from Documents + operationId: Documents.DocumentDto.ListDocumentDto + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Id desc + - Name + - Name desc + - Description + - Description desc + - Filename + - Filename desc + - NumberOfRevisions + - NumberOfRevisions desc + - Suffix + - Suffix desc + - DomainId + - DomainId desc + - ModificationDate + - ModificationDate desc + - ModifiedBy + - ModifiedBy desc + - Tags + - Tags desc + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Name + - Description + - Filename + - NumberOfRevisions + - Suffix + - DomainId + - ModificationDate + - ModifiedBy + - Tags + - Revisions + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Revisions + type: string + responses: + '200': + $ref: '#/components/responses/Siterra.Documents.App.DTO.DocumentDtoCollectionResponse' + default: + $ref: '#/components/responses/error' + post: + tags: + - Documents.DocumentDto + summary: Add new entity to Documents + operationId: Documents.DocumentDto.CreateDocumentDto + requestBody: + description: New entity + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentDto' + required: true + responses: + '201': + description: Created entity + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentDto' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Documents({Id})': + description: Provides operations to manage the collection of DocumentDto entities. + get: + tags: + - Documents.DocumentDto + summary: Get entity from Documents by key + operationId: Documents.DocumentDto.GetDocumentDto + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Name + - Description + - Filename + - NumberOfRevisions + - Suffix + - DomainId + - ModificationDate + - ModifiedBy + - Tags + - Revisions + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Revisions + type: string + responses: + '200': + description: Retrieved entity + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentDto' + links: + Revisions: + operationId: Documents.ListRevisions + Upload: + operationId: Documents.DocumentDto.Upload + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + patch: + tags: + - Documents.DocumentDto + summary: Update entity in Documents + operationId: Documents.DocumentDto.UpdateDocumentDto + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentDto' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - Documents.DocumentDto + summary: Delete entity from Documents + operationId: Documents.DocumentDto.DeleteDocumentDto + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Documents({Id})/Default.Upload': + description: Provides operations to call the Upload method. + post: + tags: + - Documents.DocumentDto.Actions + summary: Invoke action Upload + operationId: Documents.DocumentDto.Upload + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + responses: + '200': + $ref: '#/components/responses/UploadResponse' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: action + '/Documents({Id})/Revisions': + description: Provides operations to manage the Revisions property of the Siterra.Documents.App.DTO.DocumentDto entity. + get: + tags: + - Documents.RevisionDto + summary: Get Revisions from Documents + operationId: Documents.ListRevisions + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Id desc + - Number + - Number desc + - DocumentId + - DocumentId desc + - DocumentName + - DocumentName desc + - DocumentDescription + - DocumentDescription desc + - CreationDate + - CreationDate desc + - CreatedBy + - CreatedBy desc + - IsReviewed + - IsReviewed desc + - ReviewedBy + - ReviewedBy desc + - ReviewedDate + - ReviewedDate desc + - IsApproved + - IsApproved desc + - ApprovedBy + - ApprovedBy desc + - ApprovedDate + - ApprovedDate desc + - IsRejected + - IsRejected desc + - RejectedBy + - RejectedBy desc + - RejectedDate + - RejectedDate desc + - DomainId + - DomainId desc + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Number + - DocumentId + - DocumentName + - DocumentDescription + - CreationDate + - CreatedBy + - IsReviewed + - ReviewedBy + - ReviewedDate + - IsApproved + - ApprovedBy + - ApprovedDate + - IsRejected + - RejectedBy + - RejectedDate + - DomainId + - Document + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Document + type: string + responses: + '200': + $ref: '#/components/responses/Siterra.Documents.App.DTO.RevisionDtoCollectionResponse' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Documents({Id})/Revisions({Id1})/$ref': + description: Provides operations to manage the collection of DocumentDto entities. + delete: + tags: + - Documents.RevisionDto + summary: Delete ref of navigation property Revisions for Documents + operationId: Documents.revisions.DeleteRefRevisionDto + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - name: Id1 + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Documents({Id})/Revisions/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Documents.RevisionDto + summary: Get the number of the resource + operationId: Documents.Revisions.GetCount-f834 + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + '/Documents({Id})/Revisions/$ref': + description: Provides operations to manage the collection of DocumentDto entities. + get: + tags: + - Documents.RevisionDto + summary: Get ref of Revisions from Documents + operationId: Documents.ListRefRevisions + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Id desc + - Number + - Number desc + - DocumentId + - DocumentId desc + - DocumentName + - DocumentName desc + - DocumentDescription + - DocumentDescription desc + - CreationDate + - CreationDate desc + - CreatedBy + - CreatedBy desc + - IsReviewed + - IsReviewed desc + - ReviewedBy + - ReviewedBy desc + - ReviewedDate + - ReviewedDate desc + - IsApproved + - IsApproved desc + - ApprovedBy + - ApprovedBy desc + - ApprovedDate + - ApprovedDate desc + - IsRejected + - IsRejected desc + - RejectedBy + - RejectedBy desc + - RejectedDate + - RejectedDate desc + - DomainId + - DomainId desc + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + post: + tags: + - Documents.RevisionDto + summary: Create new navigation property ref to Revisions for Documents + operationId: Documents.CreateRefRevisions + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - Documents.RevisionDto + summary: Delete ref of navigation property Revisions for Documents + operationId: Documents.DeleteRefRevisions + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Documents({Id})/Tags': + get: + tags: + - Documents.DocumentTagRelDto + summary: Get Tags property value + operationId: Documents.ListTags + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Name + - Name desc + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Name + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + type: string + responses: + '200': + $ref: '#/components/responses/Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse' + default: + $ref: '#/components/responses/error' + patch: + tags: + - Documents.DocumentTagRelDto + summary: Update property Tags value. + operationId: Documents.UpdateTags + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDto' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + post: + tags: + - Documents.DocumentTagRelDto + summary: Sets a new value for the collection of DocumentTagRelDto. + operationId: Documents.SetTags + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDto' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + '/Documents({Id})/Tags/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Documents.DocumentTagRelDto + summary: Get the number of the resource + operationId: Documents.Tags.GetCount-ed53 + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + /Documents/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Documents.DocumentDto + summary: Get the number of the resource + operationId: Documents.GetCount-f555 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + /Libraries: + description: Provides operations to manage the collection of LibraryDto entities. + get: + tags: + - Libraries.LibraryDto + summary: Get entities from Libraries + operationId: Libraries.LibraryDto.ListLibraryDto + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Id desc + - Name + - Name desc + - Number + - Number desc + - Description + - Description desc + - LibraryTemplateId + - LibraryTemplateId desc + - ParentTypeId + - ParentTypeId desc + - ParentId + - ParentId desc + - AllowMultiple + - AllowMultiple desc + - AutoCreate + - AutoCreate desc + - TypeId + - TypeId desc + - DomainId + - DomainId desc + - CreatedBy + - CreatedBy desc + - CreationDate + - CreationDate desc + - ModifiedBy + - ModifiedBy desc + - ModificationDate + - ModificationDate desc + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Name + - Number + - Description + - LibraryTemplateId + - ParentTypeId + - ParentId + - AllowMultiple + - AutoCreate + - TypeId + - DomainId + - CreatedBy + - CreationDate + - ModifiedBy + - ModificationDate + - Documents + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Documents + type: string + responses: + '200': + $ref: '#/components/responses/Siterra.Documents.App.DTO.LibraryDtoCollectionResponse' + default: + $ref: '#/components/responses/error' + post: + tags: + - Libraries.LibraryDto + summary: Add new entity to Libraries + operationId: Libraries.LibraryDto.CreateLibraryDto + requestBody: + description: New entity + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.LibraryDto' + required: true + responses: + '201': + description: Created entity + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.LibraryDto' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Libraries({Id})': + description: Provides operations to manage the collection of LibraryDto entities. + get: + tags: + - Libraries.LibraryDto + summary: Get entity from Libraries by key + operationId: Libraries.LibraryDto.GetLibraryDto + parameters: + - name: Id + in: path + description: The unique identifier of LibraryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: LibraryDto + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Name + - Number + - Description + - LibraryTemplateId + - ParentTypeId + - ParentId + - AllowMultiple + - AutoCreate + - TypeId + - DomainId + - CreatedBy + - CreationDate + - ModifiedBy + - ModificationDate + - Documents + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Documents + type: string + responses: + '200': + description: Retrieved entity + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.LibraryDto' + links: + Documents: + operationId: Libraries.ListDocuments + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + patch: + tags: + - Libraries.LibraryDto + summary: Update entity in Libraries + operationId: Libraries.LibraryDto.UpdateLibraryDto + parameters: + - name: Id + in: path + description: The unique identifier of LibraryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: LibraryDto + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.LibraryDto' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - Libraries.LibraryDto + summary: Delete entity from Libraries + operationId: Libraries.LibraryDto.DeleteLibraryDto + parameters: + - name: Id + in: path + description: The unique identifier of LibraryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: LibraryDto + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Libraries({Id})/Documents': + description: Provides operations to manage the Documents property of the Siterra.Documents.App.DTO.LibraryDto entity. + get: + tags: + - Libraries.DocumentDto + summary: Get Documents from Libraries + operationId: Libraries.ListDocuments + parameters: + - name: Id + in: path + description: The unique identifier of LibraryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: LibraryDto + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Id desc + - Name + - Name desc + - Description + - Description desc + - Filename + - Filename desc + - NumberOfRevisions + - NumberOfRevisions desc + - Suffix + - Suffix desc + - DomainId + - DomainId desc + - ModificationDate + - ModificationDate desc + - ModifiedBy + - ModifiedBy desc + - Tags + - Tags desc + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Name + - Description + - Filename + - NumberOfRevisions + - Suffix + - DomainId + - ModificationDate + - ModifiedBy + - Tags + - Revisions + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Revisions + type: string + responses: + '200': + $ref: '#/components/responses/Siterra.Documents.App.DTO.DocumentDtoCollectionResponse' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Libraries({Id})/Documents({Id1})/$ref': + description: Provides operations to manage the collection of LibraryDto entities. + delete: + tags: + - Libraries.DocumentDto + summary: Delete ref of navigation property Documents for Libraries + operationId: Libraries.documents.DeleteRefDocumentDto + parameters: + - name: Id + in: path + description: The unique identifier of LibraryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: LibraryDto + - name: Id1 + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Libraries({Id})/Documents({Id1})/Tags': + get: + tags: + - Libraries.DocumentDto.DocumentTagRelDto + summary: Get Tags property value + operationId: Libraries.Documents.ListTags + parameters: + - name: Id + in: path + description: The unique identifier of LibraryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: LibraryDto + - name: Id1 + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Name + - Name desc + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Name + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + type: string + responses: + '200': + $ref: '#/components/responses/Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse' + default: + $ref: '#/components/responses/error' + patch: + tags: + - Libraries.DocumentDto.DocumentTagRelDto + summary: Update property Tags value. + operationId: Libraries.Documents.UpdateTags + parameters: + - name: Id + in: path + description: The unique identifier of LibraryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: LibraryDto + - name: Id1 + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDto' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + post: + tags: + - Libraries.DocumentDto.DocumentTagRelDto + summary: Sets a new value for the collection of DocumentTagRelDto. + operationId: Libraries.Documents.SetTags + parameters: + - name: Id + in: path + description: The unique identifier of LibraryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: LibraryDto + - name: Id1 + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDto' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + '/Libraries({Id})/Documents({Id1})/Tags/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Libraries.DocumentDto.DocumentTagRelDto + summary: Get the number of the resource + operationId: Libraries.Documents.Tags.GetCount-2853 + parameters: + - name: Id + in: path + description: The unique identifier of LibraryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: LibraryDto + - name: Id1 + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + '/Libraries({Id})/Documents/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Libraries.DocumentDto + summary: Get the number of the resource + operationId: Libraries.Documents.GetCount-34c7 + parameters: + - name: Id + in: path + description: The unique identifier of LibraryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: LibraryDto + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + '/Libraries({Id})/Documents/$ref': + description: Provides operations to manage the collection of LibraryDto entities. + get: + tags: + - Libraries.DocumentDto + summary: Get ref of Documents from Libraries + operationId: Libraries.ListRefDocuments + parameters: + - name: Id + in: path + description: The unique identifier of LibraryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: LibraryDto + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Id desc + - Name + - Name desc + - Description + - Description desc + - Filename + - Filename desc + - NumberOfRevisions + - NumberOfRevisions desc + - Suffix + - Suffix desc + - DomainId + - DomainId desc + - ModificationDate + - ModificationDate desc + - ModifiedBy + - ModifiedBy desc + - Tags + - Tags desc + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + post: + tags: + - Libraries.DocumentDto + summary: Create new navigation property ref to Documents for Libraries + operationId: Libraries.CreateRefDocuments + parameters: + - name: Id + in: path + description: The unique identifier of LibraryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: LibraryDto + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - Libraries.DocumentDto + summary: Delete ref of navigation property Documents for Libraries + operationId: Libraries.DeleteRefDocuments + parameters: + - name: Id + in: path + description: The unique identifier of LibraryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: LibraryDto + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + /Libraries/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Libraries.LibraryDto + summary: Get the number of the resource + operationId: Libraries.GetCount-e13e + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + /Revisions: + description: Provides operations to manage the collection of RevisionDto entities. + get: + tags: + - Revisions.RevisionDto + summary: Get entities from Revisions + operationId: Revisions.RevisionDto.ListRevisionDto + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Id desc + - Number + - Number desc + - DocumentId + - DocumentId desc + - DocumentName + - DocumentName desc + - DocumentDescription + - DocumentDescription desc + - CreationDate + - CreationDate desc + - CreatedBy + - CreatedBy desc + - IsReviewed + - IsReviewed desc + - ReviewedBy + - ReviewedBy desc + - ReviewedDate + - ReviewedDate desc + - IsApproved + - IsApproved desc + - ApprovedBy + - ApprovedBy desc + - ApprovedDate + - ApprovedDate desc + - IsRejected + - IsRejected desc + - RejectedBy + - RejectedBy desc + - RejectedDate + - RejectedDate desc + - DomainId + - DomainId desc + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Number + - DocumentId + - DocumentName + - DocumentDescription + - CreationDate + - CreatedBy + - IsReviewed + - ReviewedBy + - ReviewedDate + - IsApproved + - ApprovedBy + - ApprovedDate + - IsRejected + - RejectedBy + - RejectedDate + - DomainId + - Document + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Document + type: string + responses: + '200': + $ref: '#/components/responses/Siterra.Documents.App.DTO.RevisionDtoCollectionResponse' + default: + $ref: '#/components/responses/error' + post: + tags: + - Revisions.RevisionDto + summary: Add new entity to Revisions + operationId: Revisions.RevisionDto.CreateRevisionDto + requestBody: + description: New entity + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.RevisionDto' + required: true + responses: + '201': + description: Created entity + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.RevisionDto' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Revisions({Id})': + description: Provides operations to manage the collection of RevisionDto entities. + get: + tags: + - Revisions.RevisionDto + summary: Get entity from Revisions by key + operationId: Revisions.RevisionDto.GetRevisionDto + parameters: + - name: Id + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Number + - DocumentId + - DocumentName + - DocumentDescription + - CreationDate + - CreatedBy + - IsReviewed + - ReviewedBy + - ReviewedDate + - IsApproved + - ApprovedBy + - ApprovedDate + - IsRejected + - RejectedBy + - RejectedDate + - DomainId + - Document + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Document + type: string + responses: + '200': + description: Retrieved entity + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.RevisionDto' + links: + Document: + operationId: Revisions.GetDocument + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + patch: + tags: + - Revisions.RevisionDto + summary: Update entity in Revisions + operationId: Revisions.RevisionDto.UpdateRevisionDto + parameters: + - name: Id + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.RevisionDto' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - Revisions.RevisionDto + summary: Delete entity from Revisions + operationId: Revisions.RevisionDto.DeleteRevisionDto + parameters: + - name: Id + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Revisions({Id})/Document': + description: Provides operations to manage the Document property of the Siterra.Documents.App.DTO.RevisionDto entity. + get: + tags: + - Revisions.Document + summary: Get Document from Revisions + operationId: Revisions.GetDocument + parameters: + - name: Id + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Name + - Description + - StatusId + - TypeId + - Keywords + - CreationDate + - CreatedBy + - ModificationDate + - ModifiedBy + - DomainId + - LibraryId + - OwnerUserId + - StatusDate + - LastRevisionId + - CheckoutDate + - CheckoutPath + - CheckoutUserId + - Number + - OriginalDate + - FileSized + - FileClientPath + - LastRevisionFileId + - IsDeleted + - IsNa + - IsRejected + - IsReviewed + - NaDescription + - NaReason + - RejectedDescription + - RejectedReason + - ReviewDescription + - SourceDocumentId + - ScraperMapId + - LastDownloadedDate + - SmsId + - IsApprovedOld + - Suffix + - ScrapeResultId + - IsApproved + - CategoryId + - SectionId + - VersionCount + - LastFileName + - DocumentClasses + - Tags + - Library + - LastRevisionFile + - SourceDocument + - SourceDocumentChildren + - Revisions + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Library + - LastRevisionFile + - SourceDocument + - SourceDocumentChildren + - Revisions + type: string + responses: + '200': + description: Retrieved navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' + links: + Library: + operationId: Revisions.Document.GetLibrary + LastRevisionFile: + operationId: Revisions.Document.GetLastRevisionFile + SourceDocument: + operationId: Revisions.Document.GetSourceDocument + SourceDocumentChildren: + operationId: Revisions.Document.ListSourceDocumentChildren + Revisions: + operationId: Revisions.Document.ListRevisions + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Revisions({Id})/Document/$ref': + description: Provides operations to manage the collection of RevisionDto entities. + get: + tags: + - Revisions.Document + summary: Get ref of Document from Revisions + operationId: Revisions.GetRefDocument + parameters: + - name: Id + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + responses: + '200': + description: Retrieved navigation property link + content: + application/json: + schema: + type: string + links: + Library: + operationId: Revisions.Document.GetLibrary + LastRevisionFile: + operationId: Revisions.Document.GetLastRevisionFile + SourceDocument: + operationId: Revisions.Document.GetSourceDocument + SourceDocumentChildren: + operationId: Revisions.Document.ListSourceDocumentChildren + Revisions: + operationId: Revisions.Document.ListRevisions + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + put: + tags: + - Revisions.Document + summary: Update the ref of navigation property Document in Revisions + operationId: Revisions.UpdateRefDocument + parameters: + - name: Id + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + requestBody: + $ref: '#/components/requestBodies/refPutBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - Revisions.Document + summary: Delete ref of navigation property Document for Revisions + operationId: Revisions.DeleteRefDocument + parameters: + - name: Id + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Revisions({Id})/Document/DocumentClasses': + get: + tags: + - Revisions.Document.DocumentClass + summary: Get DocumentClasses property value + operationId: Revisions.Document.ListDocumentClasses + parameters: + - name: Id + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - ClassInstance + - ClassInstance desc + - ClassId + - ClassId desc + - DocumentId + - DocumentId desc + - CreatedBy + - CreatedBy desc + - CreationDate + - CreationDate desc + - ModifiedBy + - ModifiedBy desc + - ModificationDate + - ModificationDate desc + - IsPrimary + - IsPrimary desc + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - ClassInstance + - ClassId + - DocumentId + - CreatedBy + - CreationDate + - ModifiedBy + - ModificationDate + - IsPrimary + - Document + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Document + type: string + responses: + '200': + $ref: '#/components/responses/Siterra.Documents.BusinessLogic.Entities.Document.DocumentClassCollectionResponse' + default: + $ref: '#/components/responses/error' + patch: + tags: + - Revisions.Document.DocumentClass + summary: Update property DocumentClasses value. + operationId: Revisions.Document.UpdateDocumentClasses + parameters: + - name: Id + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + post: + tags: + - Revisions.Document.DocumentClass + summary: Sets a new value for the collection of DocumentClass. + operationId: Revisions.Document.SetDocumentClasses + parameters: + - name: Id + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + '/Revisions({Id})/Document/DocumentClasses/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Revisions.Document.DocumentClass + summary: Get the number of the resource + operationId: Revisions.Document.DocumentClasses.GetCount-6342 + parameters: + - name: Id + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + '/Revisions({Id})/Document/Tags': + get: + tags: + - Revisions.Document.DocumentTagRel + summary: Get Tags property value + operationId: Revisions.Document.ListTags + parameters: + - name: Id + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - DocumentId + - DocumentId desc + - TagId + - TagId desc + - DomainId + - DomainId desc + - CreatedBy + - CreatedBy desc + - ModifiedBy + - ModifiedBy desc + - CreationDate + - CreationDate desc + - ModificationDate + - ModificationDate desc + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - DocumentId + - TagId + - DomainId + - CreatedBy + - ModifiedBy + - CreationDate + - ModificationDate + - Document + - Tag + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Document + - Tag + type: string + responses: + '200': + $ref: '#/components/responses/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRelCollectionResponse' + default: + $ref: '#/components/responses/error' + patch: + tags: + - Revisions.Document.DocumentTagRel + summary: Update property Tags value. + operationId: Revisions.Document.UpdateTags + parameters: + - name: Id + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + post: + tags: + - Revisions.Document.DocumentTagRel + summary: Sets a new value for the collection of DocumentTagRel. + operationId: Revisions.Document.SetTags + parameters: + - name: Id + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + '/Revisions({Id})/Document/Tags/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Revisions.Document.DocumentTagRel + summary: Get the number of the resource + operationId: Revisions.Document.Tags.GetCount-161f + parameters: + - name: Id + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + /Revisions/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Revisions.RevisionDto + summary: Get the number of the resource + operationId: Revisions.GetCount-c6a5 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + /Tasks: + description: Provides operations to manage the collection of DocumentDto entities. + get: + tags: + - Tasks.DocumentDto + summary: Get entities from Tasks + operationId: Tasks.DocumentDto.ListDocumentDto + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Id desc + - Name + - Name desc + - Description + - Description desc + - Filename + - Filename desc + - NumberOfRevisions + - NumberOfRevisions desc + - Suffix + - Suffix desc + - DomainId + - DomainId desc + - ModificationDate + - ModificationDate desc + - ModifiedBy + - ModifiedBy desc + - Tags + - Tags desc + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Name + - Description + - Filename + - NumberOfRevisions + - Suffix + - DomainId + - ModificationDate + - ModifiedBy + - Tags + - Revisions + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Revisions + type: string + responses: + '200': + $ref: '#/components/responses/Siterra.Documents.App.DTO.DocumentDtoCollectionResponse' + default: + $ref: '#/components/responses/error' + post: + tags: + - Tasks.DocumentDto + summary: Add new entity to Tasks + operationId: Tasks.DocumentDto.CreateDocumentDto + requestBody: + description: New entity + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentDto' + required: true + responses: + '201': + description: Created entity + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentDto' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Tasks({Id})': + description: Provides operations to manage the collection of DocumentDto entities. + get: + tags: + - Tasks.DocumentDto + summary: Get entity from Tasks by key + operationId: Tasks.DocumentDto.GetDocumentDto + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Name + - Description + - Filename + - NumberOfRevisions + - Suffix + - DomainId + - ModificationDate + - ModifiedBy + - Tags + - Revisions + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Revisions + type: string + responses: + '200': + description: Retrieved entity + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentDto' + links: + Revisions: + operationId: Tasks.ListRevisions + Upload: + operationId: Tasks.DocumentDto.Upload + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + patch: + tags: + - Tasks.DocumentDto + summary: Update entity in Tasks + operationId: Tasks.DocumentDto.UpdateDocumentDto + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentDto' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - Tasks.DocumentDto + summary: Delete entity from Tasks + operationId: Tasks.DocumentDto.DeleteDocumentDto + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Tasks({Id})/Default.Upload': + description: Provides operations to call the Upload method. + post: + tags: + - Tasks.DocumentDto.Actions + summary: Invoke action Upload + operationId: Tasks.DocumentDto.Upload + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + responses: + '200': + $ref: '#/components/responses/UploadResponse' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: action + '/Tasks({Id})/Revisions': + description: Provides operations to manage the Revisions property of the Siterra.Documents.App.DTO.DocumentDto entity. + get: + tags: + - Tasks.RevisionDto + summary: Get Revisions from Tasks + operationId: Tasks.ListRevisions + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Id desc + - Number + - Number desc + - DocumentId + - DocumentId desc + - DocumentName + - DocumentName desc + - DocumentDescription + - DocumentDescription desc + - CreationDate + - CreationDate desc + - CreatedBy + - CreatedBy desc + - IsReviewed + - IsReviewed desc + - ReviewedBy + - ReviewedBy desc + - ReviewedDate + - ReviewedDate desc + - IsApproved + - IsApproved desc + - ApprovedBy + - ApprovedBy desc + - ApprovedDate + - ApprovedDate desc + - IsRejected + - IsRejected desc + - RejectedBy + - RejectedBy desc + - RejectedDate + - RejectedDate desc + - DomainId + - DomainId desc + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Number + - DocumentId + - DocumentName + - DocumentDescription + - CreationDate + - CreatedBy + - IsReviewed + - ReviewedBy + - ReviewedDate + - IsApproved + - ApprovedBy + - ApprovedDate + - IsRejected + - RejectedBy + - RejectedDate + - DomainId + - Document + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Document + type: string + responses: + '200': + $ref: '#/components/responses/Siterra.Documents.App.DTO.RevisionDtoCollectionResponse' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Tasks({Id})/Revisions({Id1})/$ref': + description: Provides operations to manage the collection of DocumentDto entities. + delete: + tags: + - Tasks.RevisionDto + summary: Delete ref of navigation property Revisions for Tasks + operationId: Tasks.revisions.DeleteRefRevisionDto + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - name: Id1 + in: path + description: The unique identifier of RevisionDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: RevisionDto + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Tasks({Id})/Revisions/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Tasks.RevisionDto + summary: Get the number of the resource + operationId: Tasks.Revisions.GetCount-9297 + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + '/Tasks({Id})/Revisions/$ref': + description: Provides operations to manage the collection of DocumentDto entities. + get: + tags: + - Tasks.RevisionDto + summary: Get ref of Revisions from Tasks + operationId: Tasks.ListRefRevisions + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Id + - Id desc + - Number + - Number desc + - DocumentId + - DocumentId desc + - DocumentName + - DocumentName desc + - DocumentDescription + - DocumentDescription desc + - CreationDate + - CreationDate desc + - CreatedBy + - CreatedBy desc + - IsReviewed + - IsReviewed desc + - ReviewedBy + - ReviewedBy desc + - ReviewedDate + - ReviewedDate desc + - IsApproved + - IsApproved desc + - ApprovedBy + - ApprovedBy desc + - ApprovedDate + - ApprovedDate desc + - IsRejected + - IsRejected desc + - RejectedBy + - RejectedBy desc + - RejectedDate + - RejectedDate desc + - DomainId + - DomainId desc + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + post: + tags: + - Tasks.RevisionDto + summary: Create new navigation property ref to Revisions for Tasks + operationId: Tasks.CreateRefRevisions + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - Tasks.RevisionDto + summary: Delete ref of navigation property Revisions for Tasks + operationId: Tasks.DeleteRefRevisions + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Tasks({Id})/Tags': + get: + tags: + - Tasks.DocumentTagRelDto + summary: Get Tags property value + operationId: Tasks.ListTags + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Name + - Name desc + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Name + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + type: string + responses: + '200': + $ref: '#/components/responses/Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse' + default: + $ref: '#/components/responses/error' + patch: + tags: + - Tasks.DocumentTagRelDto + summary: Update property Tags value. + operationId: Tasks.UpdateTags + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDto' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + post: + tags: + - Tasks.DocumentTagRelDto + summary: Sets a new value for the collection of DocumentTagRelDto. + operationId: Tasks.SetTags + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDto' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + '/Tasks({Id})/Tags/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Tasks.DocumentTagRelDto + summary: Get the number of the resource + operationId: Tasks.Tags.GetCount-3a1b + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: DocumentDto + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + /Tasks/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Tasks.DocumentDto + summary: Get the number of the resource + operationId: Tasks.GetCount-2961 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' +components: + schemas: + Default.ODataErrors.ODataError: + required: + - error + type: object + properties: + error: + $ref: '#/components/schemas/Default.ODataErrors.MainError' + Default.ODataErrors.MainError: + required: + - code + - message + type: object + properties: + code: + type: string + message: + type: string + x-ms-primary-error-message: true + target: + type: + - 'null' + - string + details: + type: array + items: + $ref: '#/components/schemas/Default.ODataErrors.ErrorDetails' + innerError: + $ref: '#/components/schemas/Default.ODataErrors.InnerError' + Default.ODataErrors.ErrorDetails: + required: + - code + - message + type: object + properties: + code: + type: string + message: + type: string + target: + type: + - 'null' + - string + Default.ODataErrors.InnerError: + type: object + description: The structure of this object is service-specific + ODataCountResponse: + type: number + format: int64 + StringCollectionResponse: + title: Collection of string + type: object + properties: + value: + type: array + items: + type: string + ReferenceUpdate: + type: object + properties: + '@odata.id': + type: string + '@odata.type': + type: + - 'null' + - string + ReferenceCreate: + type: object + properties: + '@odata.id': + type: string + additionalProperties: + type: object + ReferenceNumeric: + enum: + - '-INF' + - INF + - NaN + type: + - 'null' + - string + Siterra.Documents.App.DTO.DocumentDto: + title: DocumentDto + type: object + properties: + Id: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + Name: + type: + - 'null' + - string + Description: + type: + - 'null' + - string + Filename: + type: + - 'null' + - string + NumberOfRevisions: + type: + - 'null' + - string + Suffix: + type: + - 'null' + - string + DomainId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + ModificationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: + - 'null' + - string + format: date-time + ModifiedBy: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + Tags: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDto' + Revisions: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.RevisionDto' + x-ms-navigationProperty: true + example: + Id: 0 + Name: string + Description: string + Filename: string + NumberOfRevisions: string + Suffix: string + DomainId: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + Tags: + - '@odata.type': Siterra.Documents.App.DTO.DocumentTagRelDto + Revisions: + - '@odata.type': Siterra.Documents.App.DTO.RevisionDto + Siterra.Documents.App.DTO.LibraryDto: + title: LibraryDto + type: object + properties: + Id: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + Name: + type: + - 'null' + - string + Number: + type: + - 'null' + - string + Description: + type: + - 'null' + - string + LibraryTemplateId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + ParentTypeId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + ParentId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + AllowMultiple: + type: boolean + AutoCreate: + type: boolean + TypeId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + DomainId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + CreatedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + CreationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + ModifiedBy: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + ModificationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: + - 'null' + - string + format: date-time + Documents: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentDto' + x-ms-navigationProperty: true + example: + Id: 0 + Name: string + Number: string + Description: string + LibraryTemplateId: 0 + ParentTypeId: 0 + ParentId: 0 + AllowMultiple: true + AutoCreate: true + TypeId: 0 + DomainId: 0 + CreatedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Documents: + - '@odata.type': Siterra.Documents.App.DTO.DocumentDto + Siterra.Documents.App.DTO.RevisionDto: + title: RevisionDto + type: object + properties: + Id: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + Number: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + DocumentId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + DocumentName: + type: + - 'null' + - string + DocumentDescription: + type: + - 'null' + - string + CreationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + CreatedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + IsReviewed: + type: boolean + ReviewedBy: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + ReviewedDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: + - 'null' + - string + format: date-time + IsApproved: + type: boolean + ApprovedBy: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + ApprovedDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: + - 'null' + - string + format: date-time + IsRejected: + type: boolean + RejectedBy: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + RejectedDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: + - 'null' + - string + format: date-time + DomainId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + Document: + anyOf: + - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' + - type: 'null' + x-ms-navigationProperty: true + example: + Id: 0 + Number: 0 + DocumentId: 0 + DocumentName: string + DocumentDescription: string + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + CreatedBy: 0 + IsReviewed: true + ReviewedBy: 0 + ReviewedDate: '0001-01-01T00:00:00.0000000+00:00' + IsApproved: true + ApprovedBy: 0 + ApprovedDate: '0001-01-01T00:00:00.0000000+00:00' + IsRejected: true + RejectedBy: 0 + RejectedDate: '0001-01-01T00:00:00.0000000+00:00' + DomainId: 0 + Document: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + Siterra.Documents.App.DTO.CategoryDto: + title: CategoryDto + type: object + properties: + Id: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + Name: + type: + - 'null' + - string + Description: + type: + - 'null' + - string + CreationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + ModificationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + DomainId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + example: + Id: 0 + Name: string + Description: string + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + DomainId: 0 + Siterra.Documents.App.DTO.DocumentTagRelDto: + title: DocumentTagRelDto + type: object + properties: + Name: + type: + - 'null' + - string + example: + Name: string + Siterra.Documents.BusinessLogic.Entities.Document.Document: + title: Document + type: object + properties: + Id: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + Name: + type: + - 'null' + - string + Description: + type: + - 'null' + - string + StatusId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + TypeId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + Keywords: + type: + - 'null' + - string + CreationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + CreatedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + ModificationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + ModifiedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + DomainId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + LibraryId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + OwnerUserId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + StatusDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + LastRevisionId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + CheckoutDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: + - 'null' + - string + format: date-time + CheckoutPath: + type: + - 'null' + - string + CheckoutUserId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + Number: + type: + - 'null' + - string + OriginalDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: + - 'null' + - string + format: date-time + FileSized: + type: number + format: decimal + FileClientPath: + type: + - 'null' + - string + LastRevisionFileId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + IsDeleted: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + IsNa: + type: + - 'null' + - number + format: decimal + IsRejected: + type: + - 'null' + - number + format: decimal + IsReviewed: + type: + - 'null' + - number + format: decimal + NaDescription: + type: + - 'null' + - string + NaReason: + type: + - 'null' + - string + RejectedDescription: + type: + - 'null' + - string + RejectedReason: + type: + - 'null' + - string + ReviewDescription: + type: + - 'null' + - string + SourceDocumentId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + ScraperMapId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + LastDownloadedDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: + - 'null' + - string + format: date-time + SmsId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + IsApprovedOld: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + Suffix: + type: + - 'null' + - string + ScrapeResultId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + IsApproved: + type: + - 'null' + - number + format: decimal + CategoryId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + SectionId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + VersionCount: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + LastFileName: + type: + - 'null' + - string + DocumentClasses: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass' + Tags: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel' + Library: + anyOf: + - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library' + - type: 'null' + x-ms-navigationProperty: true + LastRevisionFile: + anyOf: + - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile' + - type: 'null' + x-ms-navigationProperty: true + SourceDocument: + anyOf: + - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' + - type: 'null' + x-ms-navigationProperty: true + SourceDocumentChildren: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' + x-ms-navigationProperty: true + Revisions: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Revision.Revision' + x-ms-navigationProperty: true + example: + Id: 0 + Name: string + Description: string + StatusId: 0 + TypeId: 0 + Keywords: string + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + CreatedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + DomainId: 0 + LibraryId: 0 + OwnerUserId: 0 + StatusDate: '0001-01-01T00:00:00.0000000+00:00' + LastRevisionId: 0 + CheckoutDate: '0001-01-01T00:00:00.0000000+00:00' + CheckoutPath: string + CheckoutUserId: 0 + Number: string + OriginalDate: '0001-01-01T00:00:00.0000000+00:00' + FileSized: 0 + FileClientPath: string + LastRevisionFileId: 0 + IsDeleted: 0 + IsNa: 0 + IsRejected: 0 + IsReviewed: 0 + NaDescription: string + NaReason: string + RejectedDescription: string + RejectedReason: string + ReviewDescription: string + SourceDocumentId: 0 + ScraperMapId: 0 + LastDownloadedDate: '0001-01-01T00:00:00.0000000+00:00' + SmsId: 0 + IsApprovedOld: 0 + Suffix: string + ScrapeResultId: 0 + IsApproved: 0 + CategoryId: 0 + SectionId: 0 + VersionCount: 0 + LastFileName: string + DocumentClasses: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass + Tags: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel + Library: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library + LastRevisionFile: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile + SourceDocument: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + SourceDocumentChildren: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + Revisions: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Revision.Revision + Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass: + title: DocumentClass + type: object + properties: + ClassInstance: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + ClassId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + DocumentId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + CreatedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + CreationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + ModifiedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + ModificationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + IsPrimary: + type: boolean + Document: + anyOf: + - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' + - type: 'null' + x-ms-navigationProperty: true + example: + ClassInstance: 0 + ClassId: 0 + DocumentId: 0 + CreatedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + IsPrimary: true + Document: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel: + title: DocumentTagRel + type: object + properties: + DocumentId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + TagId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + DomainId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + CreatedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + ModifiedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + CreationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + ModificationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + Document: + anyOf: + - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' + - type: 'null' + x-ms-navigationProperty: true + Tag: + anyOf: + - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Tags.Tag' + - type: 'null' + x-ms-navigationProperty: true + example: + DocumentId: 0 + TagId: 0 + DomainId: 0 + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Document: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + Tag: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Tags.Tag + Siterra.Documents.BusinessLogic.Entities.Library.Library: + title: Library + type: object + properties: + Id: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + DomainId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + Name: + type: + - 'null' + - string + ParentFolderId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + Number: + type: + - 'null' + - string + TypeId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + OwnerUserId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + TotalSize: + type: number + format: decimal + FilesCounter: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + FoldersCounter: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + CreationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + ModificationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + ModifiedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + CreatedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + ProjectId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + SearchRingId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + SiteId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + AssetId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + AllowMultiple: + type: boolean + AutoCreate: + type: boolean + Description: + type: + - 'null' + - string + IsTemplate: + type: boolean + ProgramId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + SourceFolderId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + TemplateClassId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + TemplateSubType: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + IsHidden: + type: boolean + IsDeleted: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + StatusId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + SmsId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + ContractId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + VendorId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + OrganizationUnitId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + IncidentId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + EventId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + ClassInstance: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + ClassId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + LibraryParent: + anyOf: + - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library' + - type: 'null' + x-ms-navigationProperty: true + Type: + anyOf: + - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType' + - type: 'null' + x-ms-navigationProperty: true + SourceFolder: + anyOf: + - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library' + - type: 'null' + x-ms-navigationProperty: true + Documents: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' + x-ms-navigationProperty: true + LibraryChildren: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library' + x-ms-navigationProperty: true + SourceLibraryChildren: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library' + x-ms-navigationProperty: true + example: + Id: 0 + DomainId: 0 + Name: string + ParentFolderId: 0 + Number: string + TypeId: 0 + OwnerUserId: 0 + TotalSize: 0 + FilesCounter: 0 + FoldersCounter: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + CreatedBy: 0 + ProjectId: 0 + SearchRingId: 0 + SiteId: 0 + AssetId: 0 + AllowMultiple: true + AutoCreate: true + Description: string + IsTemplate: true + ProgramId: 0 + SourceFolderId: 0 + TemplateClassId: 0 + TemplateSubType: 0 + IsHidden: true + IsDeleted: 0 + StatusId: 0 + SmsId: 0 + ContractId: 0 + VendorId: 0 + OrganizationUnitId: 0 + IncidentId: 0 + EventId: 0 + ClassInstance: 0 + ClassId: 0 + LibraryParent: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library + Type: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType + SourceFolder: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library + Documents: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + LibraryChildren: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library + SourceLibraryChildren: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library + Siterra.Documents.BusinessLogic.Entities.Library.LibraryType: + title: LibraryType + type: object + properties: + Id: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + Name: + type: + - 'null' + - string + ModifiedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + CreatedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + ModificationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + CreationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + DomainId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + Description: + type: + - 'null' + - string + XmlName: + type: + - 'null' + - string + MasterId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + Number: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + ClassId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + ParentId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + HasChanged: + type: boolean + MasterLibraryType: + anyOf: + - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType' + - type: 'null' + x-ms-navigationProperty: true + ParentLibraryTypes: + anyOf: + - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType' + - type: 'null' + x-ms-navigationProperty: true + MasterLibraryTypeChildren: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType' + x-ms-navigationProperty: true + ChildrenLibraryTypes: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType' + x-ms-navigationProperty: true + example: + Id: 0 + Name: string + ModifiedBy: 0 + CreatedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + DomainId: 0 + Description: string + XmlName: string + MasterId: 0 + Number: 0 + ClassId: 0 + ParentId: 0 + HasChanged: true + MasterLibraryType: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType + ParentLibraryTypes: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType + MasterLibraryTypeChildren: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType + ChildrenLibraryTypes: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType + Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile: + title: DocumentFile + type: object + properties: + Id: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + Name: + type: + - 'null' + - string + Path: + type: + - 'null' + - string + ModifiedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + CreatedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + CreationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + ModificationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + Sized: + type: number + format: decimal + ActualName: + type: + - 'null' + - string + DomainId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + SourceClassId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + ContentTypeId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + ClientPath: + type: + - 'null' + - string + IsSelfHosted: + maximum: 32767 + minimum: -32768 + type: number + format: int16 + SmsId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + Latitude: + type: + - 'null' + - number + format: decimal + Longitude: + type: + - 'null' + - number + format: decimal + Documents: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' + x-ms-navigationProperty: true + example: + Id: 0 + Name: string + Path: string + ModifiedBy: 0 + CreatedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Sized: 0 + ActualName: string + DomainId: 0 + SourceClassId: 0 + ContentTypeId: 0 + ClientPath: string + IsSelfHosted: 0 + SmsId: 0 + Latitude: 0 + Longitude: 0 + Documents: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + Siterra.Documents.BusinessLogic.Entities.Tags.Tag: + title: Tag + type: object + properties: + Id: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + DomainId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + Name: + type: + - 'null' + - string + Description: + type: + - 'null' + - string + CreatedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + ModifiedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + CreationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + ModificationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + example: + Id: 0 + DomainId: 0 + Name: string + Description: string + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Siterra.Documents.BusinessLogic.Entities.Tags.UserDefinedTag: + allOf: + - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Tags.Tag' + - title: UserDefinedTag + type: object + properties: + Documents: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel' + example: + Id: 0 + DomainId: 0 + Name: string + Description: string + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Documents: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel + Siterra.Documents.BusinessLogic.Entities.Tags.Section: + allOf: + - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Tags.Tag' + - title: Section + type: object + properties: + Documents: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' + x-ms-navigationProperty: true + example: + Id: 0 + DomainId: 0 + Name: string + Description: string + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Documents: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + Siterra.Documents.BusinessLogic.Entities.Tags.Category: + allOf: + - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Tags.Tag' + - title: Category + type: object + properties: + Documents: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' + x-ms-navigationProperty: true + example: + Id: 0 + DomainId: 0 + Name: string + Description: string + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Documents: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + Siterra.Documents.BusinessLogic.Entities.Revision.Revision: + title: Revision + type: object + properties: + Id: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + Number: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + DocumentId: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + ModificationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + CreationDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + ModifiedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + CreatedBy: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + Remarks: + type: + - 'null' + - string + FileId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + DocumentOwnerContact: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + DocumentDescription: + type: + - 'null' + - string + DocumentStatusDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + DocumentFolder: + type: + - 'null' + - string + DocumentKeywords: + type: + - 'null' + - string + DocumentStatus: + type: + - 'null' + - string + DocumentType: + type: + - 'null' + - string + DocumentName: + type: + - 'null' + - string + DocumentNumber: + type: + - 'null' + - string + DomainId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + IsDeleted: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + IsReviewed: + type: boolean + ReviewDescription: + type: + - 'null' + - string + ReviewedBy: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + IsRejected: + type: boolean + RejectedReason: + type: + - 'null' + - string + RejectedDescription: + type: + - 'null' + - string + RejectedBy: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + IsApproved: + type: boolean + ApprovedBy: + maximum: 2147483647 + minimum: -2147483648 + type: + - 'null' + - number + format: int32 + ReviewedDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: + - 'null' + - string + format: date-time + RejectedDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: + - 'null' + - string + format: date-time + ApprovedDate: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: + - 'null' + - string + format: date-time + Document: + anyOf: + - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' + - type: 'null' + x-ms-navigationProperty: true + example: + Id: 0 + Number: 0 + DocumentId: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + CreatedBy: 0 + Remarks: string + FileId: 0 + DocumentOwnerContact: 0 + DocumentDescription: string + DocumentStatusDate: '0001-01-01T00:00:00.0000000+00:00' + DocumentFolder: string + DocumentKeywords: string + DocumentStatus: string + DocumentType: string + DocumentName: string + DocumentNumber: string + DomainId: 0 + IsDeleted: 0 + IsReviewed: true + ReviewDescription: string + ReviewedBy: 0 + IsRejected: true + RejectedReason: string + RejectedDescription: string + RejectedBy: 0 + IsApproved: true + ApprovedBy: 0 + ReviewedDate: '0001-01-01T00:00:00.0000000+00:00' + RejectedDate: '0001-01-01T00:00:00.0000000+00:00' + ApprovedDate: '0001-01-01T00:00:00.0000000+00:00' + Document: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + Siterra.Documents.App.DTO.DocumentDtoCollectionResponse: + title: Collection of DocumentDto + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentDto' + Siterra.Documents.App.DTO.LibraryDtoCollectionResponse: + title: Collection of LibraryDto + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.LibraryDto' + Siterra.Documents.App.DTO.RevisionDtoCollectionResponse: + title: Collection of RevisionDto + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.RevisionDto' + Siterra.Documents.App.DTO.CategoryDtoCollectionResponse: + title: Collection of CategoryDto + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.CategoryDto' + Siterra.Documents.BusinessLogic.Entities.Document.DocumentCollectionResponse: + title: Collection of Document + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' + Siterra.Documents.BusinessLogic.Entities.Revision.RevisionCollectionResponse: + title: Collection of Revision + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Revision.Revision' + Siterra.Documents.BusinessLogic.Entities.Library.LibraryCollectionResponse: + title: Collection of Library + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library' + Siterra.Documents.BusinessLogic.Entities.Library.LibraryTypeCollectionResponse: + title: Collection of LibraryType + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType' + Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse: + title: Collection of Siterra.Documents.App.DTO.DocumentTagRelDto + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDto' + Siterra.Documents.BusinessLogic.Entities.Document.DocumentClassCollectionResponse: + title: Collection of Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass' + Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRelCollectionResponse: + title: Collection of Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel' + responses: + error: + description: error + content: + application/json: + schema: + $ref: '#/components/schemas/Default.ODataErrors.ODataError' + ODataCountResponse: + description: The count of the resource + content: + text/plain: + schema: + $ref: '#/components/schemas/ODataCountResponse' + Siterra.Documents.App.DTO.DocumentDtoCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentDtoCollectionResponse' + Siterra.Documents.App.DTO.LibraryDtoCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.LibraryDtoCollectionResponse' + Siterra.Documents.App.DTO.RevisionDtoCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.RevisionDtoCollectionResponse' + Siterra.Documents.App.DTO.CategoryDtoCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.CategoryDtoCollectionResponse' + Siterra.Documents.BusinessLogic.Entities.Document.DocumentCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentCollectionResponse' + Siterra.Documents.BusinessLogic.Entities.Revision.RevisionCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Revision.RevisionCollectionResponse' + Siterra.Documents.BusinessLogic.Entities.Library.LibraryCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryCollectionResponse' + Siterra.Documents.BusinessLogic.Entities.Library.LibraryTypeCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryTypeCollectionResponse' + Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentTagRelDtoCollectionResponse' + Siterra.Documents.BusinessLogic.Entities.Document.DocumentClassCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentClassCollectionResponse' + Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRelCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRelCollectionResponse' + StringCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/StringCollectionResponse' + UploadResponse: + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentDto' + parameters: + top: + name: $top + in: query + description: Show only the first n items + explode: false + schema: + minimum: 0 + type: number + format: int64 + example: 50 + skip: + name: $skip + in: query + description: Skip the first n items + explode: false + schema: + minimum: 0 + type: number + format: int64 + count: + name: $count + in: query + description: Include count of items + explode: false + schema: + type: boolean + filter: + name: $filter + in: query + description: Filter items by property values + explode: false + schema: + type: string + search: + name: $search + in: query + description: Search items by search phrases + explode: false + schema: + type: string + examples: + Siterra.Documents.App.DTO.DocumentDto: + value: + Id: 0 + Name: string + Description: string + Filename: string + NumberOfRevisions: string + Suffix: string + DomainId: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + Tags: + - '@odata.type': Siterra.Documents.App.DTO.DocumentTagRelDto + Revisions: + - '@odata.type': Siterra.Documents.App.DTO.RevisionDto + Siterra.Documents.App.DTO.LibraryDto: + value: + Id: 0 + Name: string + Number: string + Description: string + LibraryTemplateId: 0 + ParentTypeId: 0 + ParentId: 0 + AllowMultiple: true + AutoCreate: true + TypeId: 0 + DomainId: 0 + CreatedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Documents: + - '@odata.type': Siterra.Documents.App.DTO.DocumentDto + Siterra.Documents.App.DTO.RevisionDto: + value: + Id: 0 + Number: 0 + DocumentId: 0 + DocumentName: string + DocumentDescription: string + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + CreatedBy: 0 + IsReviewed: true + ReviewedBy: 0 + ReviewedDate: '0001-01-01T00:00:00.0000000+00:00' + IsApproved: true + ApprovedBy: 0 + ApprovedDate: '0001-01-01T00:00:00.0000000+00:00' + IsRejected: true + RejectedBy: 0 + RejectedDate: '0001-01-01T00:00:00.0000000+00:00' + DomainId: 0 + Document: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + Siterra.Documents.App.DTO.CategoryDto: + value: + Id: 0 + Name: string + Description: string + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + DomainId: 0 + Siterra.Documents.App.DTO.DocumentTagRelDto: + value: + Name: string + Siterra.Documents.BusinessLogic.Entities.Document.Document: + value: + Id: 0 + Name: string + Description: string + StatusId: 0 + TypeId: 0 + Keywords: string + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + CreatedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + DomainId: 0 + LibraryId: 0 + OwnerUserId: 0 + StatusDate: '0001-01-01T00:00:00.0000000+00:00' + LastRevisionId: 0 + CheckoutDate: '0001-01-01T00:00:00.0000000+00:00' + CheckoutPath: string + CheckoutUserId: 0 + Number: string + OriginalDate: '0001-01-01T00:00:00.0000000+00:00' + FileSized: 0 + FileClientPath: string + LastRevisionFileId: 0 + IsDeleted: 0 + IsNa: 0 + IsRejected: 0 + IsReviewed: 0 + NaDescription: string + NaReason: string + RejectedDescription: string + RejectedReason: string + ReviewDescription: string + SourceDocumentId: 0 + ScraperMapId: 0 + LastDownloadedDate: '0001-01-01T00:00:00.0000000+00:00' + SmsId: 0 + IsApprovedOld: 0 + Suffix: string + ScrapeResultId: 0 + IsApproved: 0 + CategoryId: 0 + SectionId: 0 + VersionCount: 0 + LastFileName: string + DocumentClasses: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass + Tags: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel + Library: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library + LastRevisionFile: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile + SourceDocument: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + SourceDocumentChildren: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + Revisions: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Revision.Revision + Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass: + value: + ClassInstance: 0 + ClassId: 0 + DocumentId: 0 + CreatedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + IsPrimary: true + Document: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel: + value: + DocumentId: 0 + TagId: 0 + DomainId: 0 + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Document: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + Tag: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Tags.Tag + Siterra.Documents.BusinessLogic.Entities.Library.Library: + value: + Id: 0 + DomainId: 0 + Name: string + ParentFolderId: 0 + Number: string + TypeId: 0 + OwnerUserId: 0 + TotalSize: 0 + FilesCounter: 0 + FoldersCounter: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + CreatedBy: 0 + ProjectId: 0 + SearchRingId: 0 + SiteId: 0 + AssetId: 0 + AllowMultiple: true + AutoCreate: true + Description: string + IsTemplate: true + ProgramId: 0 + SourceFolderId: 0 + TemplateClassId: 0 + TemplateSubType: 0 + IsHidden: true + IsDeleted: 0 + StatusId: 0 + SmsId: 0 + ContractId: 0 + VendorId: 0 + OrganizationUnitId: 0 + IncidentId: 0 + EventId: 0 + ClassInstance: 0 + ClassId: 0 + LibraryParent: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library + Type: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType + SourceFolder: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library + Documents: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + LibraryChildren: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library + SourceLibraryChildren: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library + Siterra.Documents.BusinessLogic.Entities.Library.LibraryType: + value: + Id: 0 + Name: string + ModifiedBy: 0 + CreatedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + DomainId: 0 + Description: string + XmlName: string + MasterId: 0 + Number: 0 + ClassId: 0 + ParentId: 0 + HasChanged: true + MasterLibraryType: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType + ParentLibraryTypes: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType + MasterLibraryTypeChildren: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType + ChildrenLibraryTypes: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType + Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile: + value: + Id: 0 + Name: string + Path: string + ModifiedBy: 0 + CreatedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Sized: 0 + ActualName: string + DomainId: 0 + SourceClassId: 0 + ContentTypeId: 0 + ClientPath: string + IsSelfHosted: 0 + SmsId: 0 + Latitude: 0 + Longitude: 0 + Documents: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + Siterra.Documents.BusinessLogic.Entities.Tags.Tag: + value: + Id: 0 + DomainId: 0 + Name: string + Description: string + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Siterra.Documents.BusinessLogic.Entities.Tags.UserDefinedTag: + value: + Id: 0 + DomainId: 0 + Name: string + Description: string + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Documents: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel + Siterra.Documents.BusinessLogic.Entities.Tags.Section: + value: + Id: 0 + DomainId: 0 + Name: string + Description: string + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Documents: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + Siterra.Documents.BusinessLogic.Entities.Tags.Category: + value: + Id: 0 + DomainId: 0 + Name: string + Description: string + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Documents: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + Siterra.Documents.BusinessLogic.Entities.Revision.Revision: + value: + Id: 0 + Number: 0 + DocumentId: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + CreatedBy: 0 + Remarks: string + FileId: 0 + DocumentOwnerContact: 0 + DocumentDescription: string + DocumentStatusDate: '0001-01-01T00:00:00.0000000+00:00' + DocumentFolder: string + DocumentKeywords: string + DocumentStatus: string + DocumentType: string + DocumentName: string + DocumentNumber: string + DomainId: 0 + IsDeleted: 0 + IsReviewed: true + ReviewDescription: string + ReviewedBy: 0 + IsRejected: true + RejectedReason: string + RejectedDescription: string + RejectedBy: 0 + IsApproved: true + ApprovedBy: 0 + ReviewedDate: '0001-01-01T00:00:00.0000000+00:00' + RejectedDate: '0001-01-01T00:00:00.0000000+00:00' + ApprovedDate: '0001-01-01T00:00:00.0000000+00:00' + Document: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + requestBodies: + refPostBody: + description: New navigation property ref value + content: + application/json: + schema: + $ref: '#/components/schemas/ReferenceCreate' + required: true + refPutBody: + description: New navigation property ref values + content: + application/json: + schema: + $ref: '#/components/schemas/ReferenceUpdate' + required: true +tags: + - name: Categories.CategoryDto + x-ms-docs-toc-type: page + - name: Documents.DocumentDto + x-ms-docs-toc-type: page + - name: Documents.DocumentDto.Actions + x-ms-docs-toc-type: container + - name: Documents.RevisionDto + x-ms-docs-toc-type: page + - name: Documents.DocumentTagRelDto + x-ms-docs-toc-type: page + - name: Libraries.LibraryDto + x-ms-docs-toc-type: page + - name: Libraries.DocumentDto + x-ms-docs-toc-type: page + - name: Libraries.DocumentDto.DocumentTagRelDto + x-ms-docs-toc-type: page + - name: Revisions.RevisionDto + x-ms-docs-toc-type: page + - name: Revisions.Document + x-ms-docs-toc-type: page + - name: Revisions.Document.DocumentClass + x-ms-docs-toc-type: page + - name: Revisions.Document.DocumentTagRel + x-ms-docs-toc-type: page + - name: Tasks.DocumentDto + x-ms-docs-toc-type: page + - name: Tasks.DocumentDto.Actions + x-ms-docs-toc-type: container + - name: Tasks.RevisionDto + x-ms-docs-toc-type: page + - name: Tasks.DocumentTagRelDto + x-ms-docs-toc-type: page \ No newline at end of file diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.json index 02c621bad..7b0a4a467 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.json +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.json @@ -39,7 +39,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -67,7 +66,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -89,7 +87,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -173,7 +170,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -195,7 +191,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -362,7 +357,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -398,7 +392,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -425,7 +418,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -510,7 +502,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -537,7 +528,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -734,7 +724,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -784,7 +773,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -818,7 +806,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -979,7 +966,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1159,7 +1145,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1177,7 +1162,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1194,7 +1178,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1412,7 +1395,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1458,7 +1440,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1490,7 +1471,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1575,7 +1555,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1607,7 +1586,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1767,7 +1745,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1803,7 +1780,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1830,7 +1806,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1964,7 +1939,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1982,7 +1956,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1999,7 +1972,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2282,7 +2254,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2462,7 +2433,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2512,7 +2482,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2546,7 +2515,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2631,7 +2599,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2665,7 +2632,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2810,7 +2776,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2877,7 +2842,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3102,7 +3066,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3134,7 +3097,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3159,7 +3121,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3364,7 +3325,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3394,7 +3354,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3419,7 +3378,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3639,7 +3597,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3675,7 +3632,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3702,7 +3658,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3787,7 +3742,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3814,7 +3768,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4011,7 +3964,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4061,7 +4013,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4095,7 +4046,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4256,7 +4206,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4436,7 +4385,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4454,7 +4402,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4471,7 +4418,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4728,15 +4674,15 @@ } }, "example": { - "Id": "number (identifier)", + "Id": 0, "Name": "string", "Description": "string", "Filename": "string", "NumberOfRevisions": "string", "Suffix": "string", - "DomainId": "number", - "ModificationDate": "string (timestamp)", - "ModifiedBy": "number", + "DomainId": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, "Tags": [ { "@odata.type": "Siterra.Documents.App.DTO.DocumentTagRelDto" @@ -4841,21 +4787,21 @@ } }, "example": { - "Id": "number (identifier)", + "Id": 0, "Name": "string", "Number": "string", "Description": "string", - "LibraryTemplateId": "number", - "ParentTypeId": "number", - "ParentId": "number", + "LibraryTemplateId": 0, + "ParentTypeId": 0, + "ParentId": 0, "AllowMultiple": true, "AutoCreate": true, - "TypeId": "number", - "DomainId": "number", - "CreatedBy": "number", - "CreationDate": "string (timestamp)", - "ModifiedBy": "number", - "ModificationDate": "string (timestamp)", + "TypeId": 0, + "DomainId": 0, + "CreatedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "Documents": [ { "@odata.type": "Siterra.Documents.App.DTO.DocumentDto" @@ -4973,23 +4919,23 @@ } }, "example": { - "Id": "number (identifier)", - "Number": "number", - "DocumentId": "number", + "Id": 0, + "Number": 0, + "DocumentId": 0, "DocumentName": "string", "DocumentDescription": "string", - "CreationDate": "string (timestamp)", - "CreatedBy": "number", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "CreatedBy": 0, "IsReviewed": true, - "ReviewedBy": "number", - "ReviewedDate": "string (timestamp)", + "ReviewedBy": 0, + "ReviewedDate": "0001-01-01T00:00:00.0000000+00:00", "IsApproved": true, - "ApprovedBy": "number", - "ApprovedDate": "string (timestamp)", + "ApprovedBy": 0, + "ApprovedDate": "0001-01-01T00:00:00.0000000+00:00", "IsRejected": true, - "RejectedBy": "number", - "RejectedDate": "string (timestamp)", - "DomainId": "number", + "RejectedBy": 0, + "RejectedDate": "0001-01-01T00:00:00.0000000+00:00", + "DomainId": 0, "Document": { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" } @@ -5031,12 +4977,12 @@ } }, "example": { - "Id": "number (identifier)", + "Id": 0, "Name": "string", "Description": "string", - "CreationDate": "string (timestamp)", - "ModificationDate": "string (timestamp)", - "DomainId": "number" + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "DomainId": 0 } }, "Siterra.Documents.App.DTO.DocumentTagRelDto": { @@ -5360,49 +5306,49 @@ } }, "example": { - "Id": "number (identifier)", + "Id": 0, "Name": "string", "Description": "string", - "StatusId": "number", - "TypeId": "number", + "StatusId": 0, + "TypeId": 0, "Keywords": "string", - "CreationDate": "string (timestamp)", - "CreatedBy": "number", - "ModificationDate": "string (timestamp)", - "ModifiedBy": "number", - "DomainId": "number", - "LibraryId": "number", - "OwnerUserId": "number", - "StatusDate": "string (timestamp)", - "LastRevisionId": "number", - "CheckoutDate": "string (timestamp)", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "CreatedBy": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "DomainId": 0, + "LibraryId": 0, + "OwnerUserId": 0, + "StatusDate": "0001-01-01T00:00:00.0000000+00:00", + "LastRevisionId": 0, + "CheckoutDate": "0001-01-01T00:00:00.0000000+00:00", "CheckoutPath": "string", - "CheckoutUserId": "number", + "CheckoutUserId": 0, "Number": "string", - "OriginalDate": "string (timestamp)", - "FileSized": "number", + "OriginalDate": "0001-01-01T00:00:00.0000000+00:00", + "FileSized": 0, "FileClientPath": "string", - "LastRevisionFileId": "number", - "IsDeleted": "number", - "IsNa": "number", - "IsRejected": "number", - "IsReviewed": "number", + "LastRevisionFileId": 0, + "IsDeleted": 0, + "IsNa": 0, + "IsRejected": 0, + "IsReviewed": 0, "NaDescription": "string", "NaReason": "string", "RejectedDescription": "string", "RejectedReason": "string", "ReviewDescription": "string", - "SourceDocumentId": "number", - "ScraperMapId": "number", - "LastDownloadedDate": "string (timestamp)", - "SmsId": "number", - "IsApprovedOld": "number", + "SourceDocumentId": 0, + "ScraperMapId": 0, + "LastDownloadedDate": "0001-01-01T00:00:00.0000000+00:00", + "SmsId": 0, + "IsApprovedOld": 0, "Suffix": "string", - "ScrapeResultId": "number", - "IsApproved": "number", - "CategoryId": "number", - "SectionId": "number", - "VersionCount": "number", + "ScrapeResultId": 0, + "IsApproved": 0, + "CategoryId": 0, + "SectionId": 0, + "VersionCount": 0, "LastFileName": "string", "DocumentClasses": [ { @@ -5496,13 +5442,13 @@ } }, "example": { - "ClassInstance": "number", - "ClassId": "number", - "DocumentId": "number", - "CreatedBy": "number", - "CreationDate": "string (timestamp)", - "ModifiedBy": "number", - "ModificationDate": "string (timestamp)", + "ClassInstance": 0, + "ClassId": 0, + "DocumentId": 0, + "CreatedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "IsPrimary": true, "Document": { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" @@ -5579,13 +5525,13 @@ } }, "example": { - "DocumentId": "number", - "TagId": "number", - "DomainId": "number", - "CreatedBy": "number", - "ModifiedBy": "number", - "CreationDate": "string (timestamp)", - "ModificationDate": "string (timestamp)", + "DocumentId": 0, + "TagId": 0, + "DomainId": 0, + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "Document": { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" }, @@ -5873,43 +5819,43 @@ } }, "example": { - "Id": "number (identifier)", - "DomainId": "number", + "Id": 0, + "DomainId": 0, "Name": "string", - "ParentFolderId": "number", + "ParentFolderId": 0, "Number": "string", - "TypeId": "number", - "OwnerUserId": "number", - "TotalSize": "number", - "FilesCounter": "number", - "FoldersCounter": "number", - "CreationDate": "string (timestamp)", - "ModificationDate": "string (timestamp)", - "ModifiedBy": "number", - "CreatedBy": "number", - "ProjectId": "number", - "SearchRingId": "number", - "SiteId": "number", - "AssetId": "number", + "TypeId": 0, + "OwnerUserId": 0, + "TotalSize": 0, + "FilesCounter": 0, + "FoldersCounter": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "CreatedBy": 0, + "ProjectId": 0, + "SearchRingId": 0, + "SiteId": 0, + "AssetId": 0, "AllowMultiple": true, "AutoCreate": true, "Description": "string", "IsTemplate": true, - "ProgramId": "number", - "SourceFolderId": "number", - "TemplateClassId": "number", - "TemplateSubType": "number", + "ProgramId": 0, + "SourceFolderId": 0, + "TemplateClassId": 0, + "TemplateSubType": 0, "IsHidden": true, - "IsDeleted": "number", - "StatusId": "number", - "SmsId": "number", - "ContractId": "number", - "VendorId": "number", - "OrganizationUnitId": "number", - "IncidentId": "number", - "EventId": "number", - "ClassInstance": "number", - "ClassId": "number", + "IsDeleted": 0, + "StatusId": 0, + "SmsId": 0, + "ContractId": 0, + "VendorId": 0, + "OrganizationUnitId": 0, + "IncidentId": 0, + "EventId": 0, + "ClassInstance": 0, + "ClassId": 0, "LibraryParent": { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.Library" }, @@ -6057,19 +6003,19 @@ } }, "example": { - "Id": "number (identifier)", + "Id": 0, "Name": "string", - "ModifiedBy": "number", - "CreatedBy": "number", - "ModificationDate": "string (timestamp)", - "CreationDate": "string (timestamp)", - "DomainId": "number", + "ModifiedBy": 0, + "CreatedBy": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "DomainId": 0, "Description": "string", "XmlName": "string", - "MasterId": "number", - "Number": "number", - "ClassId": "number", - "ParentId": "number", + "MasterId": 0, + "Number": 0, + "ClassId": 0, + "ParentId": 0, "HasChanged": true, "MasterLibraryType": { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" @@ -6193,23 +6139,23 @@ } }, "example": { - "Id": "number (identifier)", + "Id": 0, "Name": "string", "Path": "string", - "ModifiedBy": "number", - "CreatedBy": "number", - "CreationDate": "string (timestamp)", - "ModificationDate": "string (timestamp)", - "Sized": "number", + "ModifiedBy": 0, + "CreatedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "Sized": 0, "ActualName": "string", - "DomainId": "number", - "SourceClassId": "number", - "ContentTypeId": "number", + "DomainId": 0, + "SourceClassId": 0, + "ContentTypeId": 0, "ClientPath": "string", - "IsSelfHosted": "number", - "SmsId": "number", - "Latitude": "number", - "Longitude": "number", + "IsSelfHosted": 0, + "SmsId": 0, + "Latitude": 0, + "Longitude": 0, "Documents": [ { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" @@ -6265,14 +6211,14 @@ } }, "example": { - "Id": "number (identifier)", - "DomainId": "number", + "Id": 0, + "DomainId": 0, "Name": "string", "Description": "string", - "CreatedBy": "number", - "ModifiedBy": "number", - "CreationDate": "string (timestamp)", - "ModificationDate": "string (timestamp)" + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00" } }, "Siterra.Documents.BusinessLogic.Entities.Tags.UserDefinedTag": { @@ -6294,14 +6240,14 @@ } ], "example": { - "Id": "number (identifier)", - "DomainId": "number", + "Id": 0, + "DomainId": 0, "Name": "string", "Description": "string", - "CreatedBy": "number", - "ModifiedBy": "number", - "CreationDate": "string (timestamp)", - "ModificationDate": "string (timestamp)", + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "Documents": [ { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel" @@ -6329,14 +6275,14 @@ } ], "example": { - "Id": "number (identifier)", - "DomainId": "number", + "Id": 0, + "DomainId": 0, "Name": "string", "Description": "string", - "CreatedBy": "number", - "ModifiedBy": "number", - "CreationDate": "string (timestamp)", - "ModificationDate": "string (timestamp)", + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "Documents": [ { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" @@ -6364,14 +6310,14 @@ } ], "example": { - "Id": "number (identifier)", - "DomainId": "number", + "Id": 0, + "DomainId": 0, "Name": "string", "Description": "string", - "CreatedBy": "number", - "ModifiedBy": "number", - "CreationDate": "string (timestamp)", - "ModificationDate": "string (timestamp)", + "CreatedBy": 0, + "ModifiedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "Documents": [ { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" @@ -6559,38 +6505,38 @@ } }, "example": { - "Id": "number (identifier)", - "Number": "number", - "DocumentId": "number", - "ModificationDate": "string (timestamp)", - "CreationDate": "string (timestamp)", - "ModifiedBy": "number", - "CreatedBy": "number", + "Id": 0, + "Number": 0, + "DocumentId": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "CreatedBy": 0, "Remarks": "string", - "FileId": "number", - "DocumentOwnerContact": "number", + "FileId": 0, + "DocumentOwnerContact": 0, "DocumentDescription": "string", - "DocumentStatusDate": "string (timestamp)", + "DocumentStatusDate": "0001-01-01T00:00:00.0000000+00:00", "DocumentFolder": "string", "DocumentKeywords": "string", "DocumentStatus": "string", "DocumentType": "string", "DocumentName": "string", "DocumentNumber": "string", - "DomainId": "number", - "IsDeleted": "number", + "DomainId": 0, + "IsDeleted": 0, "IsReviewed": true, "ReviewDescription": "string", - "ReviewedBy": "number", + "ReviewedBy": 0, "IsRejected": true, "RejectedReason": "string", "RejectedDescription": "string", - "RejectedBy": "number", + "RejectedBy": 0, "IsApproved": true, - "ApprovedBy": "number", - "ReviewedDate": "string (timestamp)", - "RejectedDate": "string (timestamp)", - "ApprovedDate": "string (timestamp)", + "ApprovedBy": 0, + "ReviewedDate": "0001-01-01T00:00:00.0000000+00:00", + "RejectedDate": "0001-01-01T00:00:00.0000000+00:00", + "ApprovedDate": "0001-01-01T00:00:00.0000000+00:00", "Document": { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" } @@ -6660,8 +6606,8 @@ "description": "The structure of this object is service-specific" }, "ODataCountResponse": { - "type": "integer", - "format": "int32" + "type": "number", + "format": "int64" }, "Siterra.Documents.App.DTO.DocumentDtoCollectionResponse": { "title": "Collection of DocumentDto", @@ -6997,11 +6943,11 @@ "name": "$top", "in": "query", "description": "Show only the first n items", - "style": "form", "explode": false, "schema": { "minimum": 0, - "type": "integer" + "type": "number", + "format": "int64" }, "example": 50 }, @@ -7009,18 +6955,17 @@ "name": "$skip", "in": "query", "description": "Skip the first n items", - "style": "form", "explode": false, "schema": { "minimum": 0, - "type": "integer" + "type": "number", + "format": "int64" } }, "count": { "name": "$count", "in": "query", "description": "Include count of items", - "style": "form", "explode": false, "schema": { "type": "boolean" @@ -7030,7 +6975,6 @@ "name": "$filter", "in": "query", "description": "Filter items by property values", - "style": "form", "explode": false, "schema": { "type": "string" @@ -7040,7 +6984,6 @@ "name": "$search", "in": "query", "description": "Search items by search phrases", - "style": "form", "explode": false, "schema": { "type": "string" @@ -7050,20 +6993,20 @@ "examples": { "Siterra.Documents.App.DTO.DocumentDto": { "value": { - "Description": "String", + "Description": "string", "DomainId": 0, - "Filename": "String", + "Filename": "string", "Id": 0, "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "ModifiedBy": 0, - "Name": "String", - "NumberOfRevisions": "String", + "Name": "string", + "NumberOfRevisions": "string", "Revisions": [ { "@odata.type": "Siterra.Documents.App.DTO.RevisionDto" } ], - "Suffix": "String", + "Suffix": "string", "Tags": [ { "@odata.type": "Siterra.Documents.App.DTO.DocumentTagRelDto" @@ -7077,7 +7020,7 @@ "AutoCreate": true, "CreatedBy": 0, "CreationDate": "0001-01-01T00:00:00.0000000+00:00", - "Description": "String", + "Description": "string", "Documents": [ { "@odata.type": "Siterra.Documents.App.DTO.DocumentDto" @@ -7088,8 +7031,8 @@ "LibraryTemplateId": 0, "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "ModifiedBy": 0, - "Name": "String", - "Number": "String", + "Name": "string", + "Number": "string", "ParentId": 0, "ParentTypeId": 0, "TypeId": 0 @@ -7104,9 +7047,9 @@ "Document": { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" }, - "DocumentDescription": "String", + "DocumentDescription": "string", "DocumentId": 0, - "DocumentName": "String", + "DocumentName": "string", "DomainId": 0, "Id": 0, "IsApproved": true, @@ -7122,34 +7065,34 @@ "Siterra.Documents.App.DTO.CategoryDto": { "value": { "CreationDate": "0001-01-01T00:00:00.0000000+00:00", - "Description": "String", + "Description": "string", "DomainId": 0, "Id": 0, "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", - "Name": "String" + "Name": "string" } }, "Siterra.Documents.App.DTO.DocumentTagRelDto": { "value": { - "Name": "String" + "Name": "string" } }, "Siterra.Documents.BusinessLogic.Entities.Document.Document": { "value": { "CategoryId": 0, "CheckoutDate": "0001-01-01T00:00:00.0000000+00:00", - "CheckoutPath": "String", + "CheckoutPath": "string", "CheckoutUserId": 0, "CreatedBy": 0, "CreationDate": "0001-01-01T00:00:00.0000000+00:00", - "Description": "String", + "Description": "string", "DocumentClasses": [ { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass" } ], "DomainId": 0, - "FileClientPath": "String", + "FileClientPath": "string", "FileSized": 0, "Id": 0, "IsApproved": 0, @@ -7158,9 +7101,9 @@ "IsNa": 0, "IsRejected": 0, "IsReviewed": 0, - "Keywords": "String", + "Keywords": "string", "LastDownloadedDate": "0001-01-01T00:00:00.0000000+00:00", - "LastFileName": "String", + "LastFileName": "string", "LastRevisionFile": { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile" }, @@ -7172,15 +7115,15 @@ "LibraryId": 0, "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "ModifiedBy": 0, - "NaDescription": "String", - "Name": "String", - "NaReason": "String", - "Number": "String", + "NaDescription": "string", + "Name": "string", + "NaReason": "string", + "Number": "string", "OriginalDate": "0001-01-01T00:00:00.0000000+00:00", "OwnerUserId": 0, - "RejectedDescription": "String", - "RejectedReason": "String", - "ReviewDescription": "String", + "RejectedDescription": "string", + "RejectedReason": "string", + "ReviewDescription": "string", "Revisions": [ { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Revision.Revision" @@ -7201,7 +7144,7 @@ "SourceDocumentId": 0, "StatusDate": "0001-01-01T00:00:00.0000000+00:00", "StatusId": 0, - "Suffix": "String", + "Suffix": "string", "Tags": [ { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel" @@ -7253,7 +7196,7 @@ "ContractId": 0, "CreatedBy": 0, "CreationDate": "0001-01-01T00:00:00.0000000+00:00", - "Description": "String", + "Description": "string", "Documents": [ { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" @@ -7278,8 +7221,8 @@ }, "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "ModifiedBy": 0, - "Name": "String", - "Number": "String", + "Name": "string", + "Number": "string", "OrganizationUnitId": 0, "OwnerUserId": 0, "ParentFolderId": 0, @@ -7318,7 +7261,7 @@ "ClassId": 0, "CreatedBy": 0, "CreationDate": "0001-01-01T00:00:00.0000000+00:00", - "Description": "String", + "Description": "string", "DomainId": 0, "HasChanged": true, "Id": 0, @@ -7333,19 +7276,19 @@ ], "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "ModifiedBy": 0, - "Name": "String", + "Name": "string", "Number": 0, "ParentId": 0, "ParentLibraryTypes": { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Library.LibraryType" }, - "XmlName": "String" + "XmlName": "string" } }, "Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile": { "value": { - "ActualName": "String", - "ClientPath": "String", + "ActualName": "string", + "ClientPath": "string", "ContentTypeId": 0, "CreatedBy": 0, "CreationDate": "0001-01-01T00:00:00.0000000+00:00", @@ -7361,8 +7304,8 @@ "Longitude": 0, "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "ModifiedBy": 0, - "Name": "String", - "Path": "String", + "Name": "string", + "Path": "string", "Sized": 0, "SmsId": 0, "SourceClassId": 0 @@ -7372,39 +7315,63 @@ "value": { "CreatedBy": 0, "CreationDate": "0001-01-01T00:00:00.0000000+00:00", - "Description": "String", + "Description": "string", "DomainId": 0, "Id": 0, "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", "ModifiedBy": 0, - "Name": "String" + "Name": "string" } }, "Siterra.Documents.BusinessLogic.Entities.Tags.UserDefinedTag": { "value": { + "CreatedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "Description": "string", "Documents": [ { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel" } - ] + ], + "DomainId": 0, + "Id": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "Name": "string" } }, "Siterra.Documents.BusinessLogic.Entities.Tags.Section": { "value": { + "CreatedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "Description": "string", "Documents": [ { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" } - ] + ], + "DomainId": 0, + "Id": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "Name": "string" } }, "Siterra.Documents.BusinessLogic.Entities.Tags.Category": { "value": { + "CreatedBy": 0, + "CreationDate": "0001-01-01T00:00:00.0000000+00:00", + "Description": "string", "Documents": [ { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" } - ] + ], + "DomainId": 0, + "Id": 0, + "ModificationDate": "0001-01-01T00:00:00.0000000+00:00", + "ModifiedBy": 0, + "Name": "string" } }, "Siterra.Documents.BusinessLogic.Entities.Revision.Revision": { @@ -7416,16 +7383,16 @@ "Document": { "@odata.type": "Siterra.Documents.BusinessLogic.Entities.Document.Document" }, - "DocumentDescription": "String", - "DocumentFolder": "String", + "DocumentDescription": "string", + "DocumentFolder": "string", "DocumentId": 0, - "DocumentKeywords": "String", - "DocumentName": "String", - "DocumentNumber": "String", + "DocumentKeywords": "string", + "DocumentName": "string", + "DocumentNumber": "string", "DocumentOwnerContact": 0, - "DocumentStatus": "String", + "DocumentStatus": "string", "DocumentStatusDate": "0001-01-01T00:00:00.0000000+00:00", - "DocumentType": "String", + "DocumentType": "string", "DomainId": 0, "FileId": 0, "Id": 0, @@ -7438,10 +7405,10 @@ "Number": 0, "RejectedBy": 0, "RejectedDate": "0001-01-01T00:00:00.0000000+00:00", - "RejectedDescription": "String", - "RejectedReason": "String", - "Remarks": "String", - "ReviewDescription": "String", + "RejectedDescription": "string", + "RejectedReason": "string", + "Remarks": "string", + "ReviewDescription": "string", "ReviewedBy": 0, "ReviewedDate": "0001-01-01T00:00:00.0000000+00:00" } diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.yaml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.yaml index fae5ab931..122dee965 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.yaml +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.yaml @@ -22,7 +22,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -45,7 +44,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -62,7 +60,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -119,7 +116,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -136,7 +132,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -242,7 +237,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -273,7 +267,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -295,7 +288,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -353,7 +345,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -375,7 +366,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -506,7 +496,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -551,7 +540,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -580,7 +568,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -686,7 +673,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -816,7 +802,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -829,7 +814,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -841,7 +825,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -979,7 +962,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -1020,7 +1002,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -1047,7 +1028,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -1105,7 +1085,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -1132,7 +1111,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -1237,7 +1215,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -1268,7 +1245,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -1290,7 +1266,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -1380,7 +1355,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -1393,7 +1367,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -1405,7 +1378,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -1593,7 +1565,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -1715,7 +1686,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -1760,7 +1730,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -1789,7 +1758,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -1847,7 +1815,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -1876,7 +1843,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -1976,7 +1942,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -2038,7 +2003,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -2188,7 +2152,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -2215,7 +2178,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -2235,7 +2197,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -2368,7 +2329,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -2393,7 +2353,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -2413,7 +2372,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -2553,7 +2511,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -2584,7 +2541,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -2606,7 +2562,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -2664,7 +2619,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -2686,7 +2640,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -2817,7 +2770,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -2862,7 +2814,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -2891,7 +2842,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -2997,7 +2947,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -3127,7 +3076,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -3140,7 +3088,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -3152,7 +3099,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -3276,6 +3222,82 @@ paths: $ref: '#/components/responses/error' components: schemas: + Default.ODataErrors.ODataError: + required: + - error + type: object + properties: + error: + $ref: '#/components/schemas/Default.ODataErrors.MainError' + Default.ODataErrors.MainError: + required: + - code + - message + type: object + properties: + code: + type: string + message: + type: string + x-ms-primary-error-message: true + target: + type: string + nullable: true + details: + type: array + items: + $ref: '#/components/schemas/Default.ODataErrors.ErrorDetails' + innerError: + $ref: '#/components/schemas/Default.ODataErrors.InnerError' + Default.ODataErrors.ErrorDetails: + required: + - code + - message + type: object + properties: + code: + type: string + message: + type: string + target: + type: string + nullable: true + Default.ODataErrors.InnerError: + type: object + description: The structure of this object is service-specific + ODataCountResponse: + type: number + format: int64 + StringCollectionResponse: + title: Collection of string + type: object + properties: + value: + type: array + items: + type: string + ReferenceUpdate: + type: object + properties: + '@odata.id': + type: string + '@odata.type': + type: string + nullable: true + ReferenceCreate: + type: object + properties: + '@odata.id': + type: string + additionalProperties: + type: object + ReferenceNumeric: + enum: + - '-INF' + - INF + - NaN + type: string + nullable: true Siterra.Documents.App.DTO.DocumentDto: title: DocumentDto type: object @@ -3308,14 +3330,14 @@ components: ModificationDate: pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' type: string - format: date-time nullable: true + format: date-time ModifiedBy: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 Tags: type: array items: @@ -3326,15 +3348,15 @@ components: $ref: '#/components/schemas/Siterra.Documents.App.DTO.RevisionDto' x-ms-navigationProperty: true example: - Id: number (identifier) + Id: 0 Name: string Description: string Filename: string NumberOfRevisions: string Suffix: string - DomainId: number - ModificationDate: string (timestamp) - ModifiedBy: number + DomainId: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 Tags: - '@odata.type': Siterra.Documents.App.DTO.DocumentTagRelDto Revisions: @@ -3361,8 +3383,8 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 ParentTypeId: maximum: 2147483647 minimum: -2147483648 @@ -3400,34 +3422,34 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 ModificationDate: pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' type: string - format: date-time nullable: true + format: date-time Documents: type: array items: $ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentDto' x-ms-navigationProperty: true example: - Id: number (identifier) + Id: 0 Name: string Number: string Description: string - LibraryTemplateId: number - ParentTypeId: number - ParentId: number + LibraryTemplateId: 0 + ParentTypeId: 0 + ParentId: 0 AllowMultiple: true AutoCreate: true - TypeId: number - DomainId: number - CreatedBy: number - CreationDate: string (timestamp) - ModifiedBy: number - ModificationDate: string (timestamp) + TypeId: 0 + DomainId: 0 + CreatedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Documents: - '@odata.type': Siterra.Documents.App.DTO.DocumentDto Siterra.Documents.App.DTO.RevisionDto: @@ -3448,8 +3470,8 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 DocumentName: type: string nullable: true @@ -3471,39 +3493,39 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 ReviewedDate: pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' type: string - format: date-time nullable: true + format: date-time IsApproved: type: boolean ApprovedBy: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 ApprovedDate: pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' type: string - format: date-time nullable: true + format: date-time IsRejected: type: boolean RejectedBy: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 RejectedDate: pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' type: string - format: date-time nullable: true + format: date-time DomainId: maximum: 2147483647 minimum: -2147483648 @@ -3512,27 +3534,27 @@ components: Document: anyOf: - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' - - type: object - nullable: true + - nullable: true + type: object x-ms-navigationProperty: true example: - Id: number (identifier) - Number: number - DocumentId: number + Id: 0 + Number: 0 + DocumentId: 0 DocumentName: string DocumentDescription: string - CreationDate: string (timestamp) - CreatedBy: number + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + CreatedBy: 0 IsReviewed: true - ReviewedBy: number - ReviewedDate: string (timestamp) + ReviewedBy: 0 + ReviewedDate: '0001-01-01T00:00:00.0000000+00:00' IsApproved: true - ApprovedBy: number - ApprovedDate: string (timestamp) + ApprovedBy: 0 + ApprovedDate: '0001-01-01T00:00:00.0000000+00:00' IsRejected: true - RejectedBy: number - RejectedDate: string (timestamp) - DomainId: number + RejectedBy: 0 + RejectedDate: '0001-01-01T00:00:00.0000000+00:00' + DomainId: 0 Document: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document Siterra.Documents.App.DTO.CategoryDto: @@ -3564,12 +3586,12 @@ components: type: number format: int32 example: - Id: number (identifier) + Id: 0 Name: string Description: string - CreationDate: string (timestamp) - ModificationDate: string (timestamp) - DomainId: number + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + DomainId: 0 Siterra.Documents.App.DTO.DocumentTagRelDto: title: DocumentTagRelDto type: object @@ -3634,8 +3656,8 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 OwnerUserId: maximum: 2147483647 minimum: -2147483648 @@ -3649,13 +3671,13 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 CheckoutDate: pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' type: string - format: date-time nullable: true + format: date-time CheckoutPath: type: string nullable: true @@ -3663,16 +3685,16 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 Number: type: string nullable: true OriginalDate: pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' type: string - format: date-time nullable: true + format: date-time FileSized: type: number format: decimal @@ -3683,8 +3705,8 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 IsDeleted: maximum: 2147483647 minimum: -2147483648 @@ -3692,16 +3714,16 @@ components: format: int32 IsNa: type: number - format: decimal nullable: true + format: decimal IsRejected: type: number - format: decimal nullable: true + format: decimal IsReviewed: type: number - format: decimal nullable: true + format: decimal NaDescription: type: string nullable: true @@ -3721,31 +3743,31 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 ScraperMapId: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 LastDownloadedDate: pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' type: string - format: date-time nullable: true + format: date-time SmsId: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 IsApprovedOld: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 Suffix: type: string nullable: true @@ -3753,24 +3775,24 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 IsApproved: type: number - format: decimal nullable: true + format: decimal CategoryId: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 SectionId: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 VersionCount: maximum: 2147483647 minimum: -2147483648 @@ -3790,20 +3812,20 @@ components: Library: anyOf: - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library' - - type: object - nullable: true + - nullable: true + type: object x-ms-navigationProperty: true LastRevisionFile: anyOf: - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile' - - type: object - nullable: true + - nullable: true + type: object x-ms-navigationProperty: true SourceDocument: anyOf: - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' - - type: object - nullable: true + - nullable: true + type: object x-ms-navigationProperty: true SourceDocumentChildren: type: array @@ -3816,49 +3838,49 @@ components: $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Revision.Revision' x-ms-navigationProperty: true example: - Id: number (identifier) + Id: 0 Name: string Description: string - StatusId: number - TypeId: number + StatusId: 0 + TypeId: 0 Keywords: string - CreationDate: string (timestamp) - CreatedBy: number - ModificationDate: string (timestamp) - ModifiedBy: number - DomainId: number - LibraryId: number - OwnerUserId: number - StatusDate: string (timestamp) - LastRevisionId: number - CheckoutDate: string (timestamp) + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + CreatedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + DomainId: 0 + LibraryId: 0 + OwnerUserId: 0 + StatusDate: '0001-01-01T00:00:00.0000000+00:00' + LastRevisionId: 0 + CheckoutDate: '0001-01-01T00:00:00.0000000+00:00' CheckoutPath: string - CheckoutUserId: number + CheckoutUserId: 0 Number: string - OriginalDate: string (timestamp) - FileSized: number + OriginalDate: '0001-01-01T00:00:00.0000000+00:00' + FileSized: 0 FileClientPath: string - LastRevisionFileId: number - IsDeleted: number - IsNa: number - IsRejected: number - IsReviewed: number + LastRevisionFileId: 0 + IsDeleted: 0 + IsNa: 0 + IsRejected: 0 + IsReviewed: 0 NaDescription: string NaReason: string RejectedDescription: string RejectedReason: string ReviewDescription: string - SourceDocumentId: number - ScraperMapId: number - LastDownloadedDate: string (timestamp) - SmsId: number - IsApprovedOld: number + SourceDocumentId: 0 + ScraperMapId: 0 + LastDownloadedDate: '0001-01-01T00:00:00.0000000+00:00' + SmsId: 0 + IsApprovedOld: 0 Suffix: string - ScrapeResultId: number - IsApproved: number - CategoryId: number - SectionId: number - VersionCount: number + ScrapeResultId: 0 + IsApproved: 0 + CategoryId: 0 + SectionId: 0 + VersionCount: 0 LastFileName: string DocumentClasses: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass @@ -3916,17 +3938,17 @@ components: Document: anyOf: - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' - - type: object - nullable: true + - nullable: true + type: object x-ms-navigationProperty: true example: - ClassInstance: number - ClassId: number - DocumentId: number - CreatedBy: number - CreationDate: string (timestamp) - ModifiedBy: number - ModificationDate: string (timestamp) + ClassInstance: 0 + ClassId: 0 + DocumentId: 0 + CreatedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' IsPrimary: true Document: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document @@ -3970,23 +3992,23 @@ components: Document: anyOf: - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' - - type: object - nullable: true + - nullable: true + type: object x-ms-navigationProperty: true Tag: anyOf: - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Tags.Tag' - - type: object - nullable: true + - nullable: true + type: object x-ms-navigationProperty: true example: - DocumentId: number - TagId: number - DomainId: number - CreatedBy: number - ModifiedBy: number - CreationDate: string (timestamp) - ModificationDate: string (timestamp) + DocumentId: 0 + TagId: 0 + DomainId: 0 + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Document: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document Tag: @@ -4012,8 +4034,8 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 Number: type: string nullable: true @@ -4062,26 +4084,26 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 SearchRingId: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 SiteId: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 AssetId: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 AllowMultiple: type: boolean AutoCreate: @@ -4095,26 +4117,26 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 SourceFolderId: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 TemplateClassId: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 TemplateSubType: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 IsHidden: type: boolean IsDeleted: @@ -4126,44 +4148,44 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 SmsId: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 ContractId: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 VendorId: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 OrganizationUnitId: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 IncidentId: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 EventId: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 ClassInstance: maximum: 2147483647 minimum: -2147483648 @@ -4177,20 +4199,20 @@ components: LibraryParent: anyOf: - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library' - - type: object - nullable: true + - nullable: true + type: object x-ms-navigationProperty: true Type: anyOf: - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType' - - type: object - nullable: true + - nullable: true + type: object x-ms-navigationProperty: true SourceFolder: anyOf: - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library' - - type: object - nullable: true + - nullable: true + type: object x-ms-navigationProperty: true Documents: type: array @@ -4208,43 +4230,43 @@ components: $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library' x-ms-navigationProperty: true example: - Id: number (identifier) - DomainId: number + Id: 0 + DomainId: 0 Name: string - ParentFolderId: number + ParentFolderId: 0 Number: string - TypeId: number - OwnerUserId: number - TotalSize: number - FilesCounter: number - FoldersCounter: number - CreationDate: string (timestamp) - ModificationDate: string (timestamp) - ModifiedBy: number - CreatedBy: number - ProjectId: number - SearchRingId: number - SiteId: number - AssetId: number - AllowMultiple: true - AutoCreate: true + TypeId: 0 + OwnerUserId: 0 + TotalSize: 0 + FilesCounter: 0 + FoldersCounter: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + CreatedBy: 0 + ProjectId: 0 + SearchRingId: 0 + SiteId: 0 + AssetId: 0 + AllowMultiple: true + AutoCreate: true Description: string IsTemplate: true - ProgramId: number - SourceFolderId: number - TemplateClassId: number - TemplateSubType: number + ProgramId: 0 + SourceFolderId: 0 + TemplateClassId: 0 + TemplateSubType: 0 IsHidden: true - IsDeleted: number - StatusId: number - SmsId: number - ContractId: number - VendorId: number - OrganizationUnitId: number - IncidentId: number - EventId: number - ClassInstance: number - ClassId: number + IsDeleted: 0 + StatusId: 0 + SmsId: 0 + ContractId: 0 + VendorId: 0 + OrganizationUnitId: 0 + IncidentId: 0 + EventId: 0 + ClassInstance: 0 + ClassId: 0 LibraryParent: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library Type: @@ -4291,8 +4313,8 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 Description: type: string nullable: true @@ -4303,14 +4325,14 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 Number: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 ClassId: maximum: 2147483647 minimum: -2147483648 @@ -4320,21 +4342,21 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 HasChanged: type: boolean MasterLibraryType: anyOf: - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType' - - type: object - nullable: true + - nullable: true + type: object x-ms-navigationProperty: true ParentLibraryTypes: anyOf: - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType' - - type: object - nullable: true + - nullable: true + type: object x-ms-navigationProperty: true MasterLibraryTypeChildren: type: array @@ -4347,19 +4369,19 @@ components: $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType' x-ms-navigationProperty: true example: - Id: number (identifier) + Id: 0 Name: string - ModifiedBy: number - CreatedBy: number - ModificationDate: string (timestamp) - CreationDate: string (timestamp) - DomainId: number + ModifiedBy: 0 + CreatedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + DomainId: 0 Description: string XmlName: string - MasterId: number - Number: number - ClassId: number - ParentId: number + MasterId: 0 + Number: 0 + ClassId: 0 + ParentId: 0 HasChanged: true MasterLibraryType: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType @@ -4417,14 +4439,14 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 ContentTypeId: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 ClientPath: type: string nullable: true @@ -4437,39 +4459,39 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 Latitude: type: number - format: decimal nullable: true + format: decimal Longitude: type: number - format: decimal nullable: true + format: decimal Documents: type: array items: $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' x-ms-navigationProperty: true example: - Id: number (identifier) + Id: 0 Name: string Path: string - ModifiedBy: number - CreatedBy: number - CreationDate: string (timestamp) - ModificationDate: string (timestamp) - Sized: number + ModifiedBy: 0 + CreatedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Sized: 0 ActualName: string - DomainId: number - SourceClassId: number - ContentTypeId: number + DomainId: 0 + SourceClassId: 0 + ContentTypeId: 0 ClientPath: string - IsSelfHosted: number - SmsId: number - Latitude: number - Longitude: number + IsSelfHosted: 0 + SmsId: 0 + Latitude: 0 + Longitude: 0 Documents: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document Siterra.Documents.BusinessLogic.Entities.Tags.Tag: @@ -4511,14 +4533,14 @@ components: type: string format: date-time example: - Id: number (identifier) - DomainId: number + Id: 0 + DomainId: 0 Name: string Description: string - CreatedBy: number - ModifiedBy: number - CreationDate: string (timestamp) - ModificationDate: string (timestamp) + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Siterra.Documents.BusinessLogic.Entities.Tags.UserDefinedTag: allOf: - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Tags.Tag' @@ -4530,14 +4552,14 @@ components: items: $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel' example: - Id: number (identifier) - DomainId: number + Id: 0 + DomainId: 0 Name: string Description: string - CreatedBy: number - ModifiedBy: number - CreationDate: string (timestamp) - ModificationDate: string (timestamp) + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Documents: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel Siterra.Documents.BusinessLogic.Entities.Tags.Section: @@ -4552,14 +4574,14 @@ components: $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' x-ms-navigationProperty: true example: - Id: number (identifier) - DomainId: number + Id: 0 + DomainId: 0 Name: string Description: string - CreatedBy: number - ModifiedBy: number - CreationDate: string (timestamp) - ModificationDate: string (timestamp) + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Documents: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document Siterra.Documents.BusinessLogic.Entities.Tags.Category: @@ -4574,14 +4596,14 @@ components: $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' x-ms-navigationProperty: true example: - Id: number (identifier) - DomainId: number + Id: 0 + DomainId: 0 Name: string Description: string - CreatedBy: number - ModifiedBy: number - CreationDate: string (timestamp) - ModificationDate: string (timestamp) + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Documents: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document Siterra.Documents.BusinessLogic.Entities.Revision.Revision: @@ -4602,8 +4624,8 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 ModificationDate: pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' type: string @@ -4679,8 +4701,8 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 IsRejected: type: boolean RejectedReason: @@ -4693,118 +4715,72 @@ components: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 IsApproved: type: boolean ApprovedBy: maximum: 2147483647 minimum: -2147483648 type: number - format: int32 nullable: true + format: int32 ReviewedDate: pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' type: string - format: date-time nullable: true + format: date-time RejectedDate: pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' type: string - format: date-time nullable: true + format: date-time ApprovedDate: pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' type: string - format: date-time nullable: true + format: date-time Document: anyOf: - $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document' - - type: object - nullable: true + - nullable: true + type: object x-ms-navigationProperty: true example: - Id: number (identifier) - Number: number - DocumentId: number - ModificationDate: string (timestamp) - CreationDate: string (timestamp) - ModifiedBy: number - CreatedBy: number + Id: 0 + Number: 0 + DocumentId: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + CreatedBy: 0 Remarks: string - FileId: number - DocumentOwnerContact: number + FileId: 0 + DocumentOwnerContact: 0 DocumentDescription: string - DocumentStatusDate: string (timestamp) + DocumentStatusDate: '0001-01-01T00:00:00.0000000+00:00' DocumentFolder: string DocumentKeywords: string DocumentStatus: string DocumentType: string DocumentName: string DocumentNumber: string - DomainId: number - IsDeleted: number + DomainId: 0 + IsDeleted: 0 IsReviewed: true ReviewDescription: string - ReviewedBy: number + ReviewedBy: 0 IsRejected: true RejectedReason: string RejectedDescription: string - RejectedBy: number + RejectedBy: 0 IsApproved: true - ApprovedBy: number - ReviewedDate: string (timestamp) - RejectedDate: string (timestamp) - ApprovedDate: string (timestamp) + ApprovedBy: 0 + ReviewedDate: '0001-01-01T00:00:00.0000000+00:00' + RejectedDate: '0001-01-01T00:00:00.0000000+00:00' + ApprovedDate: '0001-01-01T00:00:00.0000000+00:00' Document: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document - Default.ODataErrors.ODataError: - required: - - error - type: object - properties: - error: - $ref: '#/components/schemas/Default.ODataErrors.MainError' - Default.ODataErrors.MainError: - required: - - code - - message - type: object - properties: - code: - type: string - message: - type: string - x-ms-primary-error-message: true - target: - type: string - nullable: true - details: - type: array - items: - $ref: '#/components/schemas/Default.ODataErrors.ErrorDetails' - innerError: - $ref: '#/components/schemas/Default.ODataErrors.InnerError' - Default.ODataErrors.ErrorDetails: - required: - - code - - message - type: object - properties: - code: - type: string - message: - type: string - target: - type: string - nullable: true - Default.ODataErrors.InnerError: - type: object - description: The structure of this object is service-specific - ODataCountResponse: - type: integer - format: int32 Siterra.Documents.App.DTO.DocumentDtoCollectionResponse: title: Collection of DocumentDto type: object @@ -4893,36 +4869,6 @@ components: type: array items: $ref: '#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel' - StringCollectionResponse: - title: Collection of string - type: object - properties: - value: - type: array - items: - type: string - ReferenceUpdate: - type: object - properties: - '@odata.id': - type: string - '@odata.type': - type: string - nullable: true - ReferenceCreate: - type: object - properties: - '@odata.id': - type: string - additionalProperties: - type: object - ReferenceNumeric: - enum: - - '-INF' - - INF - - NaN - type: string - nullable: true responses: error: description: error @@ -5019,26 +4965,25 @@ components: name: $top in: query description: Show only the first n items - style: form explode: false schema: minimum: 0 - type: integer + type: number + format: int64 example: 50 skip: name: $skip in: query description: Skip the first n items - style: form explode: false schema: minimum: 0 - type: integer + type: number + format: int64 count: name: $count in: query description: Include count of items - style: form explode: false schema: type: boolean @@ -5046,7 +4991,6 @@ components: name: $filter in: query description: Filter items by property values - style: form explode: false schema: type: string @@ -5054,316 +4998,339 @@ components: name: $search in: query description: Search items by search phrases - style: form explode: false schema: type: string examples: Siterra.Documents.App.DTO.DocumentDto: value: - Description: String - DomainId: 0 - Filename: String Id: 0 + Name: string + Description: string + Filename: string + NumberOfRevisions: string + Suffix: string + DomainId: 0 ModificationDate: '0001-01-01T00:00:00.0000000+00:00' ModifiedBy: 0 - Name: String - NumberOfRevisions: String - Revisions: - - '@odata.type': Siterra.Documents.App.DTO.RevisionDto - Suffix: String Tags: - '@odata.type': Siterra.Documents.App.DTO.DocumentTagRelDto + Revisions: + - '@odata.type': Siterra.Documents.App.DTO.RevisionDto Siterra.Documents.App.DTO.LibraryDto: value: + Id: 0 + Name: string + Number: string + Description: string + LibraryTemplateId: 0 + ParentTypeId: 0 + ParentId: 0 AllowMultiple: true AutoCreate: true + TypeId: 0 + DomainId: 0 CreatedBy: 0 CreationDate: '0001-01-01T00:00:00.0000000+00:00' - Description: String + ModifiedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Documents: - '@odata.type': Siterra.Documents.App.DTO.DocumentDto - DomainId: 0 - Id: 0 - LibraryTemplateId: 0 - ModificationDate: '0001-01-01T00:00:00.0000000+00:00' - ModifiedBy: 0 - Name: String - Number: String - ParentId: 0 - ParentTypeId: 0 - TypeId: 0 Siterra.Documents.App.DTO.RevisionDto: value: - ApprovedBy: 0 - ApprovedDate: '0001-01-01T00:00:00.0000000+00:00' - CreatedBy: 0 - CreationDate: '0001-01-01T00:00:00.0000000+00:00' - Document: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document - DocumentDescription: String - DocumentId: 0 - DocumentName: String - DomainId: 0 Id: 0 + Number: 0 + DocumentId: 0 + DocumentName: string + DocumentDescription: string + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + CreatedBy: 0 + IsReviewed: true + ReviewedBy: 0 + ReviewedDate: '0001-01-01T00:00:00.0000000+00:00' IsApproved: true + ApprovedBy: 0 + ApprovedDate: '0001-01-01T00:00:00.0000000+00:00' IsRejected: true - IsReviewed: true - Number: 0 RejectedBy: 0 RejectedDate: '0001-01-01T00:00:00.0000000+00:00' - ReviewedBy: 0 - ReviewedDate: '0001-01-01T00:00:00.0000000+00:00' + DomainId: 0 + Document: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document Siterra.Documents.App.DTO.CategoryDto: value: - CreationDate: '0001-01-01T00:00:00.0000000+00:00' - Description: String - DomainId: 0 Id: 0 + Name: string + Description: string + CreationDate: '0001-01-01T00:00:00.0000000+00:00' ModificationDate: '0001-01-01T00:00:00.0000000+00:00' - Name: String + DomainId: 0 Siterra.Documents.App.DTO.DocumentTagRelDto: value: - Name: String + Name: string Siterra.Documents.BusinessLogic.Entities.Document.Document: value: - CategoryId: 0 - CheckoutDate: '0001-01-01T00:00:00.0000000+00:00' - CheckoutPath: String - CheckoutUserId: 0 - CreatedBy: 0 + Id: 0 + Name: string + Description: string + StatusId: 0 + TypeId: 0 + Keywords: string CreationDate: '0001-01-01T00:00:00.0000000+00:00' - Description: String - DocumentClasses: - - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass + CreatedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 DomainId: 0 - FileClientPath: String + LibraryId: 0 + OwnerUserId: 0 + StatusDate: '0001-01-01T00:00:00.0000000+00:00' + LastRevisionId: 0 + CheckoutDate: '0001-01-01T00:00:00.0000000+00:00' + CheckoutPath: string + CheckoutUserId: 0 + Number: string + OriginalDate: '0001-01-01T00:00:00.0000000+00:00' FileSized: 0 - Id: 0 - IsApproved: 0 - IsApprovedOld: 0 + FileClientPath: string + LastRevisionFileId: 0 IsDeleted: 0 IsNa: 0 IsRejected: 0 IsReviewed: 0 - Keywords: String + NaDescription: string + NaReason: string + RejectedDescription: string + RejectedReason: string + ReviewDescription: string + SourceDocumentId: 0 + ScraperMapId: 0 LastDownloadedDate: '0001-01-01T00:00:00.0000000+00:00' - LastFileName: String - LastRevisionFile: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile - LastRevisionFileId: 0 - LastRevisionId: 0 - Library: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library - LibraryId: 0 - ModificationDate: '0001-01-01T00:00:00.0000000+00:00' - ModifiedBy: 0 - NaDescription: String - Name: String - NaReason: String - Number: String - OriginalDate: '0001-01-01T00:00:00.0000000+00:00' - OwnerUserId: 0 - RejectedDescription: String - RejectedReason: String - ReviewDescription: String - Revisions: - - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Revision.Revision + SmsId: 0 + IsApprovedOld: 0 + Suffix: string ScrapeResultId: 0 - ScraperMapId: 0 + IsApproved: 0 + CategoryId: 0 SectionId: 0 - SmsId: 0 + VersionCount: 0 + LastFileName: string + DocumentClasses: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass + Tags: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel + Library: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library + LastRevisionFile: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile SourceDocument: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document SourceDocumentChildren: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document - SourceDocumentId: 0 - StatusDate: '0001-01-01T00:00:00.0000000+00:00' - StatusId: 0 - Suffix: String - Tags: - - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel - TypeId: 0 - VersionCount: 0 + Revisions: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Revision.Revision Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass: value: - ClassId: 0 ClassInstance: 0 + ClassId: 0 + DocumentId: 0 CreatedBy: 0 CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + IsPrimary: true Document: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document - DocumentId: 0 - IsPrimary: true - ModificationDate: '0001-01-01T00:00:00.0000000+00:00' - ModifiedBy: 0 Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel: value: + DocumentId: 0 + TagId: 0 + DomainId: 0 CreatedBy: 0 + ModifiedBy: 0 CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Document: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document - DocumentId: 0 - DomainId: 0 - ModificationDate: '0001-01-01T00:00:00.0000000+00:00' - ModifiedBy: 0 Tag: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Tags.Tag - TagId: 0 Siterra.Documents.BusinessLogic.Entities.Library.Library: value: - AllowMultiple: true - AssetId: 0 - AutoCreate: true - ClassId: 0 - ClassInstance: 0 - ContractId: 0 - CreatedBy: 0 - CreationDate: '0001-01-01T00:00:00.0000000+00:00' - Description: String - Documents: - - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + Id: 0 DomainId: 0 - EventId: 0 + Name: string + ParentFolderId: 0 + Number: string + TypeId: 0 + OwnerUserId: 0 + TotalSize: 0 FilesCounter: 0 FoldersCounter: 0 - Id: 0 - IncidentId: 0 - IsDeleted: 0 - IsHidden: true - IsTemplate: true - LibraryChildren: - - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library - LibraryParent: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library + CreationDate: '0001-01-01T00:00:00.0000000+00:00' ModificationDate: '0001-01-01T00:00:00.0000000+00:00' ModifiedBy: 0 - Name: String - Number: String - OrganizationUnitId: 0 - OwnerUserId: 0 - ParentFolderId: 0 - ProgramId: 0 + CreatedBy: 0 ProjectId: 0 SearchRingId: 0 SiteId: 0 - SmsId: 0 - SourceFolder: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library + AssetId: 0 + AllowMultiple: true + AutoCreate: true + Description: string + IsTemplate: true + ProgramId: 0 SourceFolderId: 0 - SourceLibraryChildren: - - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library - StatusId: 0 TemplateClassId: 0 TemplateSubType: 0 - TotalSize: 0 + IsHidden: true + IsDeleted: 0 + StatusId: 0 + SmsId: 0 + ContractId: 0 + VendorId: 0 + OrganizationUnitId: 0 + IncidentId: 0 + EventId: 0 + ClassInstance: 0 + ClassId: 0 + LibraryParent: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library Type: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType - TypeId: 0 - VendorId: 0 + SourceFolder: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library + Documents: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + LibraryChildren: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library + SourceLibraryChildren: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.Library Siterra.Documents.BusinessLogic.Entities.Library.LibraryType: value: - ChildrenLibraryTypes: - - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType - ClassId: 0 + Id: 0 + Name: string + ModifiedBy: 0 CreatedBy: 0 + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' CreationDate: '0001-01-01T00:00:00.0000000+00:00' - Description: String DomainId: 0 - HasChanged: true - Id: 0 + Description: string + XmlName: string MasterId: 0 - MasterLibraryType: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType - MasterLibraryTypeChildren: - - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType - ModificationDate: '0001-01-01T00:00:00.0000000+00:00' - ModifiedBy: 0 - Name: String Number: 0 + ClassId: 0 ParentId: 0 + HasChanged: true + MasterLibraryType: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType ParentLibraryTypes: '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType - XmlName: String + MasterLibraryTypeChildren: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType + ChildrenLibraryTypes: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Library.LibraryType Siterra.Documents.BusinessLogic.Entities.DocumentFile.DocumentFile: value: - ActualName: String - ClientPath: String - ContentTypeId: 0 + Id: 0 + Name: string + Path: string + ModifiedBy: 0 CreatedBy: 0 CreationDate: '0001-01-01T00:00:00.0000000+00:00' - Documents: - - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + Sized: 0 + ActualName: string DomainId: 0 - Id: 0 + SourceClassId: 0 + ContentTypeId: 0 + ClientPath: string IsSelfHosted: 0 + SmsId: 0 Latitude: 0 Longitude: 0 - ModificationDate: '0001-01-01T00:00:00.0000000+00:00' - ModifiedBy: 0 - Name: String - Path: String - Sized: 0 - SmsId: 0 - SourceClassId: 0 + Documents: + - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document Siterra.Documents.BusinessLogic.Entities.Tags.Tag: value: + Id: 0 + DomainId: 0 + Name: string + Description: string CreatedBy: 0 + ModifiedBy: 0 CreationDate: '0001-01-01T00:00:00.0000000+00:00' - Description: String - DomainId: 0 - Id: 0 ModificationDate: '0001-01-01T00:00:00.0000000+00:00' - ModifiedBy: 0 - Name: String Siterra.Documents.BusinessLogic.Entities.Tags.UserDefinedTag: value: + Id: 0 + DomainId: 0 + Name: string + Description: string + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Documents: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel Siterra.Documents.BusinessLogic.Entities.Tags.Section: value: + Id: 0 + DomainId: 0 + Name: string + Description: string + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Documents: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document Siterra.Documents.BusinessLogic.Entities.Tags.Category: value: + Id: 0 + DomainId: 0 + Name: string + Description: string + CreatedBy: 0 + ModifiedBy: 0 + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' Documents: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document Siterra.Documents.BusinessLogic.Entities.Revision.Revision: value: - ApprovedBy: 0 - ApprovedDate: '0001-01-01T00:00:00.0000000+00:00' - CreatedBy: 0 - CreationDate: '0001-01-01T00:00:00.0000000+00:00' - Document: - '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document - DocumentDescription: String - DocumentFolder: String + Id: 0 + Number: 0 DocumentId: 0 - DocumentKeywords: String - DocumentName: String - DocumentNumber: String + ModificationDate: '0001-01-01T00:00:00.0000000+00:00' + CreationDate: '0001-01-01T00:00:00.0000000+00:00' + ModifiedBy: 0 + CreatedBy: 0 + Remarks: string + FileId: 0 DocumentOwnerContact: 0 - DocumentStatus: String + DocumentDescription: string DocumentStatusDate: '0001-01-01T00:00:00.0000000+00:00' - DocumentType: String + DocumentFolder: string + DocumentKeywords: string + DocumentStatus: string + DocumentType: string + DocumentName: string + DocumentNumber: string DomainId: 0 - FileId: 0 - Id: 0 - IsApproved: true IsDeleted: 0 - IsRejected: true IsReviewed: true - ModificationDate: '0001-01-01T00:00:00.0000000+00:00' - ModifiedBy: 0 - Number: 0 - RejectedBy: 0 - RejectedDate: '0001-01-01T00:00:00.0000000+00:00' - RejectedDescription: String - RejectedReason: String - Remarks: String - ReviewDescription: String + ReviewDescription: string ReviewedBy: 0 + IsRejected: true + RejectedReason: string + RejectedDescription: string + RejectedBy: 0 + IsApproved: true + ApprovedBy: 0 ReviewedDate: '0001-01-01T00:00:00.0000000+00:00' + RejectedDate: '0001-01-01T00:00:00.0000000+00:00' + ApprovedDate: '0001-01-01T00:00:00.0000000+00:00' + Document: + '@odata.type': Siterra.Documents.BusinessLogic.Entities.Document.Document requestBodies: refPostBody: description: New navigation property ref value diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.json index 609eb6e09..3545b6b3a 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.json +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.json @@ -18,6 +18,9 @@ ], "summary": "Get entities from Airlines", "operationId": "Airlines.Airline.ListAirline", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -169,6 +172,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -204,6 +210,9 @@ ], "summary": "Delete entity from Airlines", "operationId": "Airlines.Airline.DeleteAirline", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -239,6 +248,10 @@ ], "summary": "Get the number of the resource", "operationId": "Airlines.GetCount-27a7", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -265,6 +278,9 @@ ], "summary": "Get entities from Airports", "operationId": "Airports.Airport.ListAirport", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -416,6 +432,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -451,6 +470,9 @@ ], "summary": "Delete entity from Airports", "operationId": "Airports.Airport.DeleteAirport", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -538,6 +560,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -661,6 +686,12 @@ ], "summary": "Update the ref of navigation property EmergencyAuthority in Airports", "operationId": "Airports.UpdateRefEmergencyAuthority", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -690,6 +721,9 @@ ], "summary": "Delete ref of navigation property EmergencyAuthority for Airports", "operationId": "Airports.DeleteRefEmergencyAuthority", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -725,6 +759,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "Airports.EmergencyAuthority.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -795,6 +832,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -840,6 +880,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -885,6 +928,10 @@ ], "summary": "Get the number of the resource", "operationId": "Airports.EmergencyAuthority.AddressInfo.GetCount-2ffe", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -918,7 +965,7 @@ "Airports.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Airports.EmergencyAuthority.ListAddressInfo.AsEventLocation", + "operationId": "Airports.EmergencyAuthority.ListAddressInfo.AsEventLocation-fbf9", "produces": [ "application/json" ], @@ -950,6 +997,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "Airports.EmergencyAuthority.AddressInfo.GetCount.AsEventLocation-e708", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -1036,6 +1087,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -1071,7 +1125,7 @@ "Airports.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Airports.EmergencyAuthority.GetHomeAddress.AsEventLocation", + "operationId": "Airports.EmergencyAuthority.GetHomeAddress.AsEventLocation-0bb9", "produces": [ "application/json" ], @@ -1105,9 +1159,10 @@ "Airports.Person" ], "summary": "Get Photo for the navigation property EmergencyAuthority from Airports", - "operationId": "Airports.GetEmergencyAuthorityPhoto", + "operationId": "Airports.GetEmergencyAuthorityPhoto-13fb", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -1123,8 +1178,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -1137,10 +1192,13 @@ "Airports.Person" ], "summary": "Update Photo for the navigation property EmergencyAuthority in Airports", - "operationId": "Airports.UpdateEmergencyAuthorityPhoto", + "operationId": "Airports.UpdateEmergencyAuthorityPhoto-13fb", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -1156,8 +1214,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -1175,7 +1233,10 @@ "Airports.Person" ], "summary": "Delete Photo for the navigation property EmergencyAuthority in Airports", - "operationId": "Airports.DeleteEmergencyAuthorityPhoto", + "operationId": "Airports.DeleteEmergencyAuthorityPhoto-13fb", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -1210,6 +1271,10 @@ ], "summary": "Get the number of the resource", "operationId": "Airports.GetCount-60cc", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -1354,6 +1419,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -1391,6 +1459,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "Me.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -1460,6 +1531,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -1504,6 +1578,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -1548,6 +1625,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AddressInfo.GetCount-38f2", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -1580,7 +1661,7 @@ "Me.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.ListAddressInfo.AsEventLocation", + "operationId": "Me.ListAddressInfo.AsEventLocation-b1a4", "produces": [ "application/json" ], @@ -1609,6 +1690,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "Me.AddressInfo.GetCount.AsEventLocation-5575", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -1696,6 +1781,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -1768,6 +1856,12 @@ "summary": "Update the best friend.", "description": "Update an instance of a best friend.", "operationId": "Me.UpdateRefBestFriend", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/refPutBody" @@ -1796,6 +1890,9 @@ ], "summary": "Delete ref of navigation property BestFriend for Me", "operationId": "Me.DeleteRefBestFriend", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -1830,6 +1927,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "Me.BestFriend.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -1899,6 +1999,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -1943,6 +2046,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -1987,6 +2093,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.BestFriend.AddressInfo.GetCount-b695", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -2019,7 +2129,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation", + "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation-2154", "produces": [ "application/json" ], @@ -2048,6 +2158,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "Me.BestFriend.AddressInfo.GetCount.AsEventLocation-0105", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -2132,6 +2246,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -2166,7 +2283,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation", + "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation-a28d", "produces": [ "application/json" ], @@ -2197,7 +2314,7 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "Me.GetBestFriend.AsEmployee", + "operationId": "Me.GetBestFriend.AsEmployee-dcf6", "produces": [ "application/json" ], @@ -2248,7 +2365,7 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "Me.GetBestFriend.AsManager", + "operationId": "Me.GetBestFriend.AsManager-09a9", "produces": [ "application/json" ], @@ -2299,16 +2416,17 @@ "Me.Person" ], "summary": "Get Photo for the navigation property BestFriend from Me", - "operationId": "Me.GetBestFriendPhoto", + "operationId": "Me.GetBestFriendPhoto-8333", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "responses": { "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -2328,10 +2446,13 @@ "Me.Person" ], "summary": "Update Photo for the navigation property BestFriend in Me", - "operationId": "Me.UpdateBestFriendPhoto", + "operationId": "Me.UpdateBestFriendPhoto-8333", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -2339,8 +2460,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -2365,7 +2486,10 @@ "Me.Person" ], "summary": "Delete Photo for the navigation property BestFriend in Me", - "operationId": "Me.DeleteBestFriendPhoto", + "operationId": "Me.DeleteBestFriendPhoto-8333", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -2400,6 +2524,9 @@ "summary": "Get Friends from Me", "description": "Friends of person", "operationId": "Me.ListFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -2486,6 +2613,9 @@ ], "summary": "Delete ref of navigation property Friends for Me", "operationId": "Me.friends.DeleteRefPerson", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -2528,6 +2658,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "Me.Friends.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -2605,6 +2738,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -2657,6 +2793,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -2709,6 +2848,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.Friends.AddressInfo.GetCount-246e", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -2749,7 +2892,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.Friends.ListAddressInfo.AsEventLocation", + "operationId": "Me.Friends.ListAddressInfo.AsEventLocation-f440", "produces": [ "application/json" ], @@ -2788,6 +2931,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "Me.Friends.AddressInfo.GetCount.AsEventLocation-42c7", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -2888,6 +3035,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -2930,7 +3080,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.Friends.GetHomeAddress.AsEventLocation", + "operationId": "Me.Friends.GetHomeAddress.AsEventLocation-15cc", "produces": [ "application/json" ], @@ -2971,7 +3121,7 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "Me.GetFriends.AsEmployee", + "operationId": "Me.GetFriends.AsEmployee-3dc7", "produces": [ "application/json" ], @@ -3042,7 +3192,7 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "Me.GetFriends.AsManager", + "operationId": "Me.GetFriends.AsManager-ddec", "produces": [ "application/json" ], @@ -3113,9 +3263,10 @@ "Me.Person" ], "summary": "Get Photo for the navigation property Friends from Me", - "operationId": "Me.GetFriendsPhoto", + "operationId": "Me.GetFriendsPhoto-287d", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -3131,8 +3282,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -3152,10 +3303,13 @@ "Me.Person" ], "summary": "Update Photo for the navigation property Friends in Me", - "operationId": "Me.UpdateFriendsPhoto", + "operationId": "Me.UpdateFriendsPhoto-287d", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -3171,8 +3325,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -3197,7 +3351,10 @@ "Me.Person" ], "summary": "Delete Photo for the navigation property Friends in Me", - "operationId": "Me.DeleteFriendsPhoto", + "operationId": "Me.DeleteFriendsPhoto-287d", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -3239,6 +3396,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.Friends.GetCount-182b", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "header", @@ -3285,6 +3446,9 @@ "summary": "Get ref of Friends from Me", "description": "Friends of person", "operationId": "Me.ListRefFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -3346,6 +3510,12 @@ ], "summary": "Create new navigation property ref to Friends for Me", "operationId": "Me.CreateRefFriends", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/refPostBody" @@ -3374,6 +3544,9 @@ ], "summary": "Delete ref of navigation property Friends for Me", "operationId": "Me.DeleteRefFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -3414,7 +3587,10 @@ "Me.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "Me.ListFriends.AsEmployee", + "operationId": "Me.ListFriends.AsEmployee-f4a5", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -3496,6 +3672,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.Friends.GetCount.AsEmployee-884b", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "header", @@ -3540,7 +3720,10 @@ "Me.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "Me.ListFriends.AsManager", + "operationId": "Me.ListFriends.AsManager-98ae", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -3622,6 +3805,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.Friends.GetCount.AsManager-9376", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "header", @@ -3718,6 +3905,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -3752,7 +3942,7 @@ "Me.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.GetHomeAddress.AsEventLocation", + "operationId": "Me.GetHomeAddress.AsEventLocation-ba49", "produces": [ "application/json" ], @@ -3783,7 +3973,7 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "Me.Person.GetPerson.AsEmployee", + "operationId": "Me.Person.GetPerson.AsEmployee-bd18", "produces": [ "application/json" ], @@ -3835,6 +4025,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "Me.AsEmployee.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -3904,6 +4097,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -3948,6 +4144,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -3992,19 +4191,11 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AsEmployee.AddressInfo.GetCount-8488", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -4036,7 +4227,7 @@ "Me.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.ListAddressInfo.AsEventLocation", + "operationId": "Me.ListAddressInfo.AsEventLocation-989f", "produces": [ "application/json" ], @@ -4065,19 +4256,11 @@ "get": { "summary": "Get the number of the resource", "operationId": "Me.AddressInfo.GetCount.AsEventLocation-9375", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -4164,6 +4347,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -4236,6 +4422,12 @@ "summary": "Update the best friend.", "description": "Update an instance of a best friend.", "operationId": "Me.AsEmployee.UpdateRefBestFriend", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/refPutBody" @@ -4264,6 +4456,9 @@ ], "summary": "Delete ref of navigation property BestFriend for Me", "operationId": "Me.AsEmployee.DeleteRefBestFriend", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -4298,6 +4493,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "Me.AsEmployee.BestFriend.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -4367,6 +4565,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -4411,6 +4612,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -4455,19 +4659,11 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AsEmployee.BestFriend.AddressInfo.GetCount-81de", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -4499,7 +4695,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation", + "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation-1d72", "produces": [ "application/json" ], @@ -4528,19 +4724,11 @@ "get": { "summary": "Get the number of the resource", "operationId": "Me.BestFriend.AddressInfo.GetCount.AsEventLocation-842c", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -4624,6 +4812,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -4658,7 +4849,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation", + "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation-19b8", "produces": [ "application/json" ], @@ -4689,7 +4880,7 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "Me.GetBestFriend.AsManager", + "operationId": "Me.GetBestFriend.AsManager-c104", "produces": [ "application/json" ], @@ -4740,16 +4931,17 @@ "Me.Person" ], "summary": "Get Photo for the navigation property BestFriend from Me", - "operationId": "Me.GetBestFriendPhoto", + "operationId": "Me.GetBestFriendPhoto-4dc7", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "responses": { "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -4769,10 +4961,13 @@ "Me.Person" ], "summary": "Update Photo for the navigation property BestFriend in Me", - "operationId": "Me.UpdateBestFriendPhoto", + "operationId": "Me.UpdateBestFriendPhoto-4dc7", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -4780,8 +4975,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -4806,7 +5001,10 @@ "Me.Person" ], "summary": "Delete Photo for the navigation property BestFriend in Me", - "operationId": "Me.DeleteBestFriendPhoto", + "operationId": "Me.DeleteBestFriendPhoto-4dc7", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -4841,6 +5039,9 @@ "summary": "Get Friends from Me", "description": "Friends of person", "operationId": "Me.AsEmployee.ListFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -4927,6 +5128,9 @@ ], "summary": "Delete ref of navigation property Friends for Me", "operationId": "Me.AsEmployee.friends.DeleteRefPerson", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -4969,6 +5173,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "Me.AsEmployee.Friends.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -5046,6 +5253,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -5098,6 +5308,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -5150,6 +5363,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AsEmployee.Friends.AddressInfo.GetCount-660e", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -5159,18 +5376,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -5202,7 +5407,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.Friends.ListAddressInfo.AsEventLocation", + "operationId": "Me.Friends.ListAddressInfo.AsEventLocation-7b1e", "produces": [ "application/json" ], @@ -5241,6 +5446,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "Me.Friends.AddressInfo.GetCount.AsEventLocation-feb8", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -5250,18 +5459,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -5353,6 +5550,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -5395,7 +5595,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.Friends.GetHomeAddress.AsEventLocation", + "operationId": "Me.Friends.GetHomeAddress.AsEventLocation-600f", "produces": [ "application/json" ], @@ -5436,7 +5636,7 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "Me.GetFriends.AsManager", + "operationId": "Me.GetFriends.AsManager-aa0c", "produces": [ "application/json" ], @@ -5507,9 +5707,10 @@ "Me.Person" ], "summary": "Get Photo for the navigation property Friends from Me", - "operationId": "Me.GetFriendsPhoto", + "operationId": "Me.GetFriendsPhoto-6e41", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -5525,8 +5726,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -5546,10 +5747,13 @@ "Me.Person" ], "summary": "Update Photo for the navigation property Friends in Me", - "operationId": "Me.UpdateFriendsPhoto", + "operationId": "Me.UpdateFriendsPhoto-6e41", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -5565,8 +5769,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -5591,7 +5795,10 @@ "Me.Person" ], "summary": "Delete Photo for the navigation property Friends in Me", - "operationId": "Me.DeleteFriendsPhoto", + "operationId": "Me.DeleteFriendsPhoto-6e41", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -5633,6 +5840,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AsEmployee.Friends.GetCount-0cb7", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "header", @@ -5679,6 +5890,9 @@ "summary": "Get ref of Friends from Me", "description": "Friends of person", "operationId": "Me.AsEmployee.ListRefFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -5740,6 +5954,12 @@ ], "summary": "Create new navigation property ref to Friends for Me", "operationId": "Me.AsEmployee.CreateRefFriends", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/refPostBody" @@ -5768,6 +5988,9 @@ ], "summary": "Delete ref of navigation property Friends for Me", "operationId": "Me.AsEmployee.DeleteRefFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -5808,7 +6031,10 @@ "Me.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "Me.ListFriends.AsManager", + "operationId": "Me.ListFriends.AsManager-f993", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -5890,6 +6116,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.Friends.GetCount.AsManager-85ff", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "header", @@ -5986,6 +6216,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -6020,7 +6253,7 @@ "Me.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.GetHomeAddress.AsEventLocation", + "operationId": "Me.GetHomeAddress.AsEventLocation-6fc5", "produces": [ "application/json" ], @@ -6052,6 +6285,9 @@ ], "summary": "Get Peers from Me", "operationId": "Me.AsEmployee.ListPeers", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -6122,6 +6358,9 @@ ], "summary": "Delete ref of navigation property Peers for Me", "operationId": "Me.AsEmployee.peers.DeleteRefPerson", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -6164,6 +6403,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "Me.AsEmployee.Peers.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -6241,6 +6483,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -6293,6 +6538,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -6345,6 +6593,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AsEmployee.Peers.AddressInfo.GetCount-3e91", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -6354,18 +6606,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -6397,7 +6637,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.Peers.ListAddressInfo.AsEventLocation", + "operationId": "Me.Peers.ListAddressInfo.AsEventLocation-1e59", "produces": [ "application/json" ], @@ -6436,6 +6676,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "Me.Peers.AddressInfo.GetCount.AsEventLocation-be1d", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -6445,18 +6689,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -6548,6 +6780,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -6590,7 +6825,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.Peers.GetHomeAddress.AsEventLocation", + "operationId": "Me.Peers.GetHomeAddress.AsEventLocation-dc11", "produces": [ "application/json" ], @@ -6631,9 +6866,10 @@ "Me.Person" ], "summary": "Get Photo for the navigation property Peers from Me", - "operationId": "Me.GetPeersPhoto", + "operationId": "Me.GetPeersPhoto-4c48", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -6649,8 +6885,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -6670,10 +6906,13 @@ "Me.Person" ], "summary": "Update Photo for the navigation property Peers in Me", - "operationId": "Me.UpdatePeersPhoto", + "operationId": "Me.UpdatePeersPhoto-4c48", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -6689,8 +6928,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -6715,7 +6954,10 @@ "Me.Person" ], "summary": "Delete Photo for the navigation property Peers in Me", - "operationId": "Me.DeletePeersPhoto", + "operationId": "Me.DeletePeersPhoto-4c48", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -6757,6 +6999,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AsEmployee.Peers.GetCount-9fc2", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -6790,6 +7036,9 @@ ], "summary": "Get ref of Peers from Me", "operationId": "Me.AsEmployee.ListRefPeers", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -6839,6 +7088,12 @@ ], "summary": "Create new navigation property ref to Peers for Me", "operationId": "Me.AsEmployee.CreateRefPeers", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/refPostBody" @@ -6867,6 +7122,9 @@ ], "summary": "Delete ref of navigation property Peers for Me", "operationId": "Me.AsEmployee.DeleteRefPeers", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -6913,6 +7171,9 @@ "url": "https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0" }, "operationId": "Me.AsEmployee.ListTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -7120,6 +7381,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -7170,6 +7434,9 @@ "url": "https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0" }, "operationId": "Me.AsEmployee.DeleteTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -7281,8 +7548,8 @@ "200": { "description": "Success", "schema": { - "title": "Collection of Person", "type": "object", + "title": "Collection of Person", "properties": { "value": { "type": "array", @@ -7319,6 +7586,9 @@ ], "summary": "Get PlanItems from Me", "operationId": "Me.AsEmployee.Trips.ListPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -7404,6 +7674,9 @@ ], "summary": "Delete ref of navigation property PlanItems for Me", "operationId": "Me.AsEmployee.Trips.planItems.DeleteRefPlanItem", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -7460,6 +7733,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AsEmployee.Trips.PlanItems.GetCount-a822", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -7504,6 +7781,9 @@ ], "summary": "Get ref of PlanItems from Me", "operationId": "Me.AsEmployee.Trips.ListRefPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -7564,6 +7844,12 @@ ], "summary": "Create new navigation property ref to PlanItems for Me", "operationId": "Me.AsEmployee.Trips.CreateRefPlanItems", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -7603,6 +7889,9 @@ ], "summary": "Delete ref of navigation property PlanItems for Me", "operationId": "Me.AsEmployee.Trips.DeleteRefPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -7655,6 +7944,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AsEmployee.Trips.GetCount-5aa2", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "header", @@ -7700,6 +7993,9 @@ ], "summary": "Invoke function GetFavoriteAirline", "operationId": "Me.GetFavoriteAirline", + "produces": [ + "application/json" + ], "responses": { "200": { "$ref": "#/responses/GetFavoriteAirlineResponse" @@ -7726,6 +8022,9 @@ ], "summary": "Invoke function GetFriendsTrips", "operationId": "Me.GetFriendsTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -7803,6 +8102,12 @@ ], "summary": "Invoke action GetPeersForTrip", "operationId": "Me.GetPeersForTrip", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/GetPeersForTripRequestBody" @@ -7833,7 +8138,7 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "Me.Person.GetPerson.AsManager", + "operationId": "Me.Person.GetPerson.AsManager-16dc", "produces": [ "application/json" ], @@ -7885,6 +8190,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "Me.AsManager.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -7954,6 +8262,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -7998,6 +8309,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -8042,19 +8356,11 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AsManager.AddressInfo.GetCount-75da", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -8086,7 +8392,7 @@ "Me.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.ListAddressInfo.AsEventLocation", + "operationId": "Me.ListAddressInfo.AsEventLocation-55be", "produces": [ "application/json" ], @@ -8115,19 +8421,11 @@ "get": { "summary": "Get the number of the resource", "operationId": "Me.AddressInfo.GetCount.AsEventLocation-f67e", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -8214,6 +8512,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -8286,6 +8587,12 @@ "summary": "Update the best friend.", "description": "Update an instance of a best friend.", "operationId": "Me.AsManager.UpdateRefBestFriend", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/refPutBody" @@ -8314,6 +8621,9 @@ ], "summary": "Delete ref of navigation property BestFriend for Me", "operationId": "Me.AsManager.DeleteRefBestFriend", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -8348,6 +8658,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "Me.AsManager.BestFriend.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -8417,6 +8730,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -8461,6 +8777,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -8505,19 +8824,11 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AsManager.BestFriend.AddressInfo.GetCount-6ea6", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -8549,7 +8860,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation", + "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation-987a", "produces": [ "application/json" ], @@ -8578,19 +8889,11 @@ "get": { "summary": "Get the number of the resource", "operationId": "Me.BestFriend.AddressInfo.GetCount.AsEventLocation-692e", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -8674,6 +8977,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -8708,7 +9014,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation", + "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation-15c5", "produces": [ "application/json" ], @@ -8739,7 +9045,7 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "Me.GetBestFriend.AsEmployee", + "operationId": "Me.GetBestFriend.AsEmployee-7bbe", "produces": [ "application/json" ], @@ -8790,16 +9096,17 @@ "Me.Person" ], "summary": "Get Photo for the navigation property BestFriend from Me", - "operationId": "Me.GetBestFriendPhoto", + "operationId": "Me.GetBestFriendPhoto-bac8", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "responses": { "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -8819,10 +9126,13 @@ "Me.Person" ], "summary": "Update Photo for the navigation property BestFriend in Me", - "operationId": "Me.UpdateBestFriendPhoto", + "operationId": "Me.UpdateBestFriendPhoto-bac8", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -8830,8 +9140,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -8856,7 +9166,10 @@ "Me.Person" ], "summary": "Delete Photo for the navigation property BestFriend in Me", - "operationId": "Me.DeleteBestFriendPhoto", + "operationId": "Me.DeleteBestFriendPhoto-bac8", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -8890,6 +9203,9 @@ ], "summary": "Get DirectReports from Me", "operationId": "Me.AsManager.ListDirectReports", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -8960,6 +9276,9 @@ ], "summary": "Delete ref of navigation property DirectReports for Me", "operationId": "Me.AsManager.directReports.DeleteRefPerson", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -9002,6 +9321,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "Me.AsManager.DirectReports.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -9079,6 +9401,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -9131,6 +9456,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -9183,6 +9511,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AsManager.DirectReports.AddressInfo.GetCount-f650", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -9192,18 +9524,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -9235,7 +9555,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.DirectReports.ListAddressInfo.AsEventLocation", + "operationId": "Me.DirectReports.ListAddressInfo.AsEventLocation-660b", "produces": [ "application/json" ], @@ -9274,6 +9594,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "Me.DirectReports.AddressInfo.GetCount.AsEventLocation-a070", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -9283,18 +9607,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -9386,6 +9698,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -9428,7 +9743,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.DirectReports.GetHomeAddress.AsEventLocation", + "operationId": "Me.DirectReports.GetHomeAddress.AsEventLocation-5e6e", "produces": [ "application/json" ], @@ -9469,9 +9784,10 @@ "Me.Person" ], "summary": "Get Photo for the navigation property DirectReports from Me", - "operationId": "Me.GetDirectReportsPhoto", + "operationId": "Me.GetDirectReportsPhoto-e60c", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -9487,8 +9803,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -9508,10 +9824,13 @@ "Me.Person" ], "summary": "Update Photo for the navigation property DirectReports in Me", - "operationId": "Me.UpdateDirectReportsPhoto", + "operationId": "Me.UpdateDirectReportsPhoto-e60c", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -9527,8 +9846,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -9553,7 +9872,10 @@ "Me.Person" ], "summary": "Delete Photo for the navigation property DirectReports in Me", - "operationId": "Me.DeleteDirectReportsPhoto", + "operationId": "Me.DeleteDirectReportsPhoto-e60c", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -9595,6 +9917,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AsManager.DirectReports.GetCount-8b92", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -9628,6 +9954,9 @@ ], "summary": "Get ref of DirectReports from Me", "operationId": "Me.AsManager.ListRefDirectReports", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -9677,6 +10006,12 @@ ], "summary": "Create new navigation property ref to DirectReports for Me", "operationId": "Me.AsManager.CreateRefDirectReports", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/refPostBody" @@ -9705,6 +10040,9 @@ ], "summary": "Delete ref of navigation property DirectReports for Me", "operationId": "Me.AsManager.DeleteRefDirectReports", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -9747,6 +10085,9 @@ "summary": "Get Friends from Me", "description": "Friends of person", "operationId": "Me.AsManager.ListFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -9833,6 +10174,9 @@ ], "summary": "Delete ref of navigation property Friends for Me", "operationId": "Me.AsManager.friends.DeleteRefPerson", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -9875,6 +10219,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "Me.AsManager.Friends.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -9952,6 +10299,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -10004,6 +10354,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -10056,6 +10409,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AsManager.Friends.AddressInfo.GetCount-b7db", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -10096,7 +10453,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.Friends.ListAddressInfo.AsEventLocation", + "operationId": "Me.Friends.ListAddressInfo.AsEventLocation-1ad9", "produces": [ "application/json" ], @@ -10135,6 +10492,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "Me.Friends.AddressInfo.GetCount.AsEventLocation-4d69", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -10235,6 +10596,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -10277,7 +10641,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.Friends.GetHomeAddress.AsEventLocation", + "operationId": "Me.Friends.GetHomeAddress.AsEventLocation-1e07", "produces": [ "application/json" ], @@ -10318,7 +10682,7 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "Me.GetFriends.AsEmployee", + "operationId": "Me.GetFriends.AsEmployee-5b5f", "produces": [ "application/json" ], @@ -10389,9 +10753,10 @@ "Me.Person" ], "summary": "Get Photo for the navigation property Friends from Me", - "operationId": "Me.GetFriendsPhoto", + "operationId": "Me.GetFriendsPhoto-64bd", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -10407,8 +10772,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -10428,10 +10793,13 @@ "Me.Person" ], "summary": "Update Photo for the navigation property Friends in Me", - "operationId": "Me.UpdateFriendsPhoto", + "operationId": "Me.UpdateFriendsPhoto-64bd", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -10447,8 +10815,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -10473,7 +10841,10 @@ "Me.Person" ], "summary": "Delete Photo for the navigation property Friends in Me", - "operationId": "Me.DeleteFriendsPhoto", + "operationId": "Me.DeleteFriendsPhoto-64bd", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -10515,6 +10886,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AsManager.Friends.GetCount-60a7", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "header", @@ -10561,6 +10936,9 @@ "summary": "Get ref of Friends from Me", "description": "Friends of person", "operationId": "Me.AsManager.ListRefFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -10622,6 +11000,12 @@ ], "summary": "Create new navigation property ref to Friends for Me", "operationId": "Me.AsManager.CreateRefFriends", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/refPostBody" @@ -10650,6 +11034,9 @@ ], "summary": "Delete ref of navigation property Friends for Me", "operationId": "Me.AsManager.DeleteRefFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -10690,7 +11077,10 @@ "Me.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "Me.ListFriends.AsEmployee", + "operationId": "Me.ListFriends.AsEmployee-fe32", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -10772,6 +11162,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.Friends.GetCount.AsEmployee-6a35", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "header", @@ -10868,6 +11262,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -10902,7 +11299,7 @@ "Me.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.GetHomeAddress.AsEventLocation", + "operationId": "Me.GetHomeAddress.AsEventLocation-5d95", "produces": [ "application/json" ], @@ -10938,6 +11335,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -10985,6 +11385,9 @@ "url": "https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0" }, "operationId": "Me.AsManager.ListTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -11192,6 +11595,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -11242,6 +11648,9 @@ "url": "https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0" }, "operationId": "Me.AsManager.DeleteTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -11353,8 +11762,8 @@ "200": { "description": "Success", "schema": { - "title": "Collection of Person", "type": "object", + "title": "Collection of Person", "properties": { "value": { "type": "array", @@ -11391,6 +11800,9 @@ ], "summary": "Get PlanItems from Me", "operationId": "Me.AsManager.Trips.ListPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -11476,6 +11888,9 @@ ], "summary": "Delete ref of navigation property PlanItems for Me", "operationId": "Me.AsManager.Trips.planItems.DeleteRefPlanItem", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -11532,6 +11947,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AsManager.Trips.PlanItems.GetCount-5ad2", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -11576,6 +11995,9 @@ ], "summary": "Get ref of PlanItems from Me", "operationId": "Me.AsManager.Trips.ListRefPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -11636,6 +12058,12 @@ ], "summary": "Create new navigation property ref to PlanItems for Me", "operationId": "Me.AsManager.Trips.CreateRefPlanItems", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -11675,6 +12103,9 @@ ], "summary": "Delete ref of navigation property PlanItems for Me", "operationId": "Me.AsManager.Trips.DeleteRefPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -11727,6 +12158,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.AsManager.Trips.GetCount-f3f4", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "header", @@ -11773,11 +12208,17 @@ "summary": "Invoke action ShareTrip", "description": "Details of the shared trip.", "operationId": "Me.ShareTrip", - "parameters": [ - { - "$ref": "#/parameters/ShareTripRequestBody" - } - ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ShareTripRequestBody" + } + ], "responses": { "204": { "description": "Success" @@ -11804,6 +12245,9 @@ ], "summary": "Invoke function UpdatePersonLastName", "operationId": "Me.UpdatePersonLastName", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -11838,16 +12282,17 @@ "Me.Person" ], "summary": "Get Photo for Person from Me", - "operationId": "Me.Person.GetPhoto", + "operationId": "Me.Person.GetPhoto-ab7e", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "responses": { "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -11867,10 +12312,13 @@ "Me.Person" ], "summary": "Update Photo for Person in Me", - "operationId": "Me.Person.UpdatePhoto", + "operationId": "Me.Person.UpdatePhoto-ab7e", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "body", @@ -11878,8 +12326,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -11904,7 +12352,10 @@ "Me.Person" ], "summary": "Delete Photo for Person in Me", - "operationId": "Me.Person.DeletePhoto", + "operationId": "Me.Person.DeletePhoto-ab7e", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -11943,6 +12394,9 @@ "url": "https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0" }, "operationId": "Me.ListTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -12150,6 +12604,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -12200,6 +12657,9 @@ "url": "https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0" }, "operationId": "Me.DeleteTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -12311,8 +12771,8 @@ "200": { "description": "Success", "schema": { - "title": "Collection of Person", "type": "object", + "title": "Collection of Person", "properties": { "value": { "type": "array", @@ -12349,6 +12809,9 @@ ], "summary": "Get PlanItems from Me", "operationId": "Me.Trips.ListPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -12434,6 +12897,9 @@ ], "summary": "Delete ref of navigation property PlanItems for Me", "operationId": "Me.Trips.planItems.DeleteRefPlanItem", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -12490,6 +12956,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.Trips.PlanItems.GetCount-c250", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -12534,6 +13004,9 @@ ], "summary": "Get ref of PlanItems from Me", "operationId": "Me.Trips.ListRefPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -12594,6 +13067,12 @@ ], "summary": "Create new navigation property ref to PlanItems for Me", "operationId": "Me.Trips.CreateRefPlanItems", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -12633,6 +13112,9 @@ ], "summary": "Delete ref of navigation property PlanItems for Me", "operationId": "Me.Trips.DeleteRefPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -12685,6 +13167,10 @@ ], "summary": "Get the number of the resource", "operationId": "Me.Trips.GetCount-7b69", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "header", @@ -12730,6 +13216,9 @@ ], "summary": "Get entities from NewComePeople", "operationId": "NewComePeople.Person.ListPerson", + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/top" @@ -12881,6 +13370,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -12916,6 +13408,9 @@ ], "summary": "Delete entity from NewComePeople", "operationId": "NewComePeople.Person.DeletePerson", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -12951,6 +13446,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "NewComePeople.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -13021,6 +13519,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -13066,6 +13567,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -13111,6 +13615,10 @@ ], "summary": "Get the number of the resource", "operationId": "NewComePeople.AddressInfo.GetCount-29d6", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -13120,18 +13628,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -13156,7 +13652,7 @@ "NewComePeople.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "NewComePeople.ListAddressInfo.AsEventLocation", + "operationId": "NewComePeople.ListAddressInfo.AsEventLocation-d026", "produces": [ "application/json" ], @@ -13188,6 +13684,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "NewComePeople.AddressInfo.GetCount.AsEventLocation-29d3", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -13197,18 +13697,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -13296,6 +13784,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -13382,6 +13873,12 @@ "summary": "Update the best friend.", "description": "Update an instance of a best friend.", "operationId": "NewComePeople.UpdateRefBestFriend", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -13418,6 +13915,9 @@ ], "summary": "Delete ref of navigation property BestFriend for NewComePeople", "operationId": "NewComePeople.DeleteRefBestFriend", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -13460,6 +13960,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "NewComePeople.BestFriend.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -13537,6 +14040,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -13589,6 +14095,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -13641,6 +14150,10 @@ ], "summary": "Get the number of the resource", "operationId": "NewComePeople.BestFriend.AddressInfo.GetCount-513c", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -13650,18 +14163,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -13693,7 +14194,7 @@ "NewComePeople.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "NewComePeople.BestFriend.ListAddressInfo.AsEventLocation", + "operationId": "NewComePeople.BestFriend.ListAddressInfo.AsEventLocation-73fa", "produces": [ "application/json" ], @@ -13732,6 +14233,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "NewComePeople.BestFriend.AddressInfo.GetCount.AsEventLocation-ba36", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -13741,18 +14246,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -13844,6 +14337,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -13886,7 +14382,7 @@ "NewComePeople.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "NewComePeople.BestFriend.GetHomeAddress.AsEventLocation", + "operationId": "NewComePeople.BestFriend.GetHomeAddress.AsEventLocation-8ebe", "produces": [ "application/json" ], @@ -13927,7 +14423,7 @@ "NewComePeople.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "NewComePeople.GetBestFriend.AsEmployee", + "operationId": "NewComePeople.GetBestFriend.AsEmployee-7b75", "produces": [ "application/json" ], @@ -13986,7 +14482,7 @@ "NewComePeople.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "NewComePeople.GetBestFriend.AsManager", + "operationId": "NewComePeople.GetBestFriend.AsManager-61ce", "produces": [ "application/json" ], @@ -14045,9 +14541,10 @@ "NewComePeople.Person" ], "summary": "Get Photo for the navigation property BestFriend from NewComePeople", - "operationId": "NewComePeople.GetBestFriendPhoto", + "operationId": "NewComePeople.GetBestFriendPhoto-4f67", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -14063,8 +14560,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -14084,10 +14581,13 @@ "NewComePeople.Person" ], "summary": "Update Photo for the navigation property BestFriend in NewComePeople", - "operationId": "NewComePeople.UpdateBestFriendPhoto", + "operationId": "NewComePeople.UpdateBestFriendPhoto-4f67", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -14103,8 +14603,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -14129,7 +14629,10 @@ "NewComePeople.Person" ], "summary": "Delete Photo for the navigation property BestFriend in NewComePeople", - "operationId": "NewComePeople.DeleteBestFriendPhoto", + "operationId": "NewComePeople.DeleteBestFriendPhoto-4f67", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -14172,6 +14675,9 @@ "summary": "Get Friends from NewComePeople", "description": "Friends of person", "operationId": "NewComePeople.ListFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -14255,6 +14761,9 @@ ], "summary": "Delete ref of navigation property Friends for NewComePeople", "operationId": "NewComePeople.friends.DeleteRefPerson", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -14298,6 +14807,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "NewComePeople.Friends.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -14376,6 +14888,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -14429,6 +14944,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -14482,6 +15000,10 @@ ], "summary": "Get the number of the resource", "operationId": "NewComePeople.Friends.AddressInfo.GetCount-9334", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -14499,18 +15021,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -14535,7 +15045,7 @@ "NewComePeople.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "NewComePeople.Friends.ListAddressInfo.AsEventLocation", + "operationId": "NewComePeople.Friends.ListAddressInfo.AsEventLocation-eeb4", "produces": [ "application/json" ], @@ -14575,6 +15085,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "NewComePeople.Friends.AddressInfo.GetCount.AsEventLocation-be92", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -14592,18 +15106,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -14689,6 +15191,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -14732,7 +15237,7 @@ "NewComePeople.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "NewComePeople.Friends.GetHomeAddress.AsEventLocation", + "operationId": "NewComePeople.Friends.GetHomeAddress.AsEventLocation-f4d9", "produces": [ "application/json" ], @@ -14774,7 +15279,7 @@ "NewComePeople.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "NewComePeople.GetFriends.AsEmployee", + "operationId": "NewComePeople.GetFriends.AsEmployee-2969", "produces": [ "application/json" ], @@ -14846,7 +15351,7 @@ "NewComePeople.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "NewComePeople.GetFriends.AsManager", + "operationId": "NewComePeople.GetFriends.AsManager-708f", "produces": [ "application/json" ], @@ -14918,9 +15423,10 @@ "NewComePeople.Person" ], "summary": "Get Photo for the navigation property Friends from NewComePeople", - "operationId": "NewComePeople.GetFriendsPhoto", + "operationId": "NewComePeople.GetFriendsPhoto-e9fc", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -14944,8 +15450,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -14958,10 +15464,13 @@ "NewComePeople.Person" ], "summary": "Update Photo for the navigation property Friends in NewComePeople", - "operationId": "NewComePeople.UpdateFriendsPhoto", + "operationId": "NewComePeople.UpdateFriendsPhoto-e9fc", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -14985,8 +15494,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -15004,7 +15513,10 @@ "NewComePeople.Person" ], "summary": "Delete Photo for the navigation property Friends in NewComePeople", - "operationId": "NewComePeople.DeleteFriendsPhoto", + "operationId": "NewComePeople.DeleteFriendsPhoto-e9fc", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -15047,6 +15559,10 @@ ], "summary": "Get the number of the resource", "operationId": "NewComePeople.Friends.GetCount-2ec1", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -15094,6 +15610,9 @@ "summary": "Get ref of Friends from NewComePeople", "description": "Friends of person", "operationId": "NewComePeople.ListRefFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -15156,6 +15675,12 @@ ], "summary": "Create new navigation property ref to Friends for NewComePeople", "operationId": "NewComePeople.CreateRefFriends", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -15185,6 +15710,9 @@ ], "summary": "Delete ref of navigation property Friends for NewComePeople", "operationId": "NewComePeople.DeleteRefFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -15226,7 +15754,10 @@ "NewComePeople.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "NewComePeople.ListFriends.AsEmployee", + "operationId": "NewComePeople.ListFriends.AsEmployee-2969", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -15309,6 +15840,10 @@ ], "summary": "Get the number of the resource", "operationId": "NewComePeople.Friends.GetCount.AsEmployee-4069", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -15354,7 +15889,10 @@ "NewComePeople.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "NewComePeople.ListFriends.AsManager", + "operationId": "NewComePeople.ListFriends.AsManager-708f", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -15437,6 +15975,10 @@ ], "summary": "Get the number of the resource", "operationId": "NewComePeople.Friends.GetCount.AsManager-d1d3", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -15535,6 +16077,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -15570,7 +16115,7 @@ "NewComePeople.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "NewComePeople.GetHomeAddress.AsEventLocation", + "operationId": "NewComePeople.GetHomeAddress.AsEventLocation-3fd9", "produces": [ "application/json" ], @@ -15605,6 +16150,9 @@ ], "summary": "Invoke function GetFavoriteAirline", "operationId": "NewComePeople.Person.GetFavoriteAirline", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -15634,6 +16182,9 @@ ], "summary": "Invoke function GetFriendsTrips", "operationId": "NewComePeople.Person.GetFriendsTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -15719,6 +16270,12 @@ ], "summary": "Invoke action GetPeersForTrip", "operationId": "NewComePeople.Person.GetPeersForTrip", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -15755,6 +16312,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -15799,6 +16359,12 @@ "summary": "Invoke action ShareTrip", "description": "Details of the shared trip.", "operationId": "NewComePeople.Person.ShareTrip", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -15831,6 +16397,9 @@ ], "summary": "Invoke function UpdatePersonLastName", "operationId": "NewComePeople.Person.UpdatePersonLastName", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -15866,9 +16435,10 @@ "NewComePeople.Person" ], "summary": "Get Photo for Person from NewComePeople", - "operationId": "NewComePeople.Person.GetPhoto", + "operationId": "NewComePeople.Person.GetPhoto-74be", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -15884,8 +16454,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -15898,10 +16468,13 @@ "NewComePeople.Person" ], "summary": "Update Photo for Person in NewComePeople", - "operationId": "NewComePeople.Person.UpdatePhoto", + "operationId": "NewComePeople.Person.UpdatePhoto-74be", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -15917,8 +16490,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -15936,7 +16509,10 @@ "NewComePeople.Person" ], "summary": "Delete Photo for Person in NewComePeople", - "operationId": "NewComePeople.Person.DeletePhoto", + "operationId": "NewComePeople.Person.DeletePhoto-74be", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -15976,6 +16552,9 @@ "url": "https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0" }, "operationId": "NewComePeople.ListTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -16182,6 +16761,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -16233,6 +16815,9 @@ "url": "https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0" }, "operationId": "NewComePeople.DeleteTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -16349,8 +16934,8 @@ "200": { "description": "Success", "schema": { - "title": "Collection of Person", "type": "object", + "title": "Collection of Person", "properties": { "value": { "type": "array", @@ -16376,6 +16961,9 @@ ], "summary": "Get PlanItems from NewComePeople", "operationId": "NewComePeople.Trips.ListPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -16458,6 +17046,9 @@ ], "summary": "Delete ref of navigation property PlanItems for NewComePeople", "operationId": "NewComePeople.Trips.planItems.DeleteRefPlanItem", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -16515,6 +17106,10 @@ ], "summary": "Get the number of the resource", "operationId": "NewComePeople.Trips.PlanItems.GetCount-841f", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -16560,6 +17155,9 @@ ], "summary": "Get ref of PlanItems from NewComePeople", "operationId": "NewComePeople.Trips.ListRefPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -16621,6 +17219,12 @@ ], "summary": "Create new navigation property ref to PlanItems for NewComePeople", "operationId": "NewComePeople.Trips.CreateRefPlanItems", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -16661,6 +17265,9 @@ ], "summary": "Delete ref of navigation property PlanItems for NewComePeople", "operationId": "NewComePeople.Trips.DeleteRefPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -16714,6 +17321,10 @@ ], "summary": "Get the number of the resource", "operationId": "NewComePeople.Trips.GetCount-d155", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -16760,6 +17371,10 @@ ], "summary": "Get the number of the resource", "operationId": "NewComePeople.GetCount-55d5", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "$ref": "#/parameters/search" @@ -16786,6 +17401,9 @@ ], "summary": "Get entities from People", "operationId": "People.Person.ListPerson", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -16982,6 +17600,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -17024,6 +17645,9 @@ ], "summary": "Delete entity from People", "operationId": "People.Person.DeletePerson", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -17066,6 +17690,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "People.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -17143,6 +17770,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -17195,6 +17825,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -17247,6 +17880,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.AddressInfo.GetCount-ed5a", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -17287,7 +17924,7 @@ "People.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.ListAddressInfo.AsEventLocation", + "operationId": "People.ListAddressInfo.AsEventLocation-e5b8", "produces": [ "application/json" ], @@ -17326,6 +17963,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "People.AddressInfo.GetCount.AsEventLocation-4abd", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -17429,6 +18070,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -17519,6 +18163,12 @@ "summary": "Update the best friend.", "description": "Update an instance of a best friend.", "operationId": "People.UpdateRefBestFriend", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -17555,6 +18205,9 @@ ], "summary": "Delete ref of navigation property BestFriend for People", "operationId": "People.DeleteRefBestFriend", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -17597,6 +18250,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "People.BestFriend.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -17674,6 +18330,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -17726,6 +18385,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -17778,6 +18440,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.BestFriend.AddressInfo.GetCount-16df", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -17818,7 +18484,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation", + "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation-c332", "produces": [ "application/json" ], @@ -17857,6 +18523,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "People.BestFriend.AddressInfo.GetCount.AsEventLocation-fe88", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -17957,6 +18627,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -17999,7 +18672,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation", + "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation-53c4", "produces": [ "application/json" ], @@ -18040,7 +18713,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "People.GetBestFriend.AsEmployee", + "operationId": "People.GetBestFriend.AsEmployee-7188", "produces": [ "application/json" ], @@ -18104,7 +18777,7 @@ "description": "Find more info here", "url": "https://learn.microsoft.com/graph/api/person-get-friend-manager?view=graph-rest-1.0" }, - "operationId": "People.GetBestFriend.AsManager", + "operationId": "People.GetBestFriend.AsManager-5f08", "produces": [ "application/json" ], @@ -18163,9 +18836,10 @@ "People.Person" ], "summary": "Get Photo for the navigation property BestFriend from People", - "operationId": "People.GetBestFriendPhoto", + "operationId": "People.GetBestFriendPhoto-c3ac", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -18181,8 +18855,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -18202,10 +18876,13 @@ "People.Person" ], "summary": "Update Photo for the navigation property BestFriend in People", - "operationId": "People.UpdateBestFriendPhoto", + "operationId": "People.UpdateBestFriendPhoto-c3ac", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -18221,8 +18898,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -18247,7 +18924,10 @@ "People.Person" ], "summary": "Delete Photo for the navigation property BestFriend in People", - "operationId": "People.DeleteBestFriendPhoto", + "operationId": "People.DeleteBestFriendPhoto-c3ac", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -18294,6 +18974,9 @@ "url": "https://learn.microsoft.com/graph/api/person-list-friends?view=graph-rest-1.0" }, "operationId": "People.ListFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -18393,6 +19076,9 @@ "url": "https://learn.microsoft.com/graph/api/person-delete-friend?view=graph-rest-1.0" }, "operationId": "People.friends.DeleteRefPerson", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -18443,6 +19129,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "People.Friends.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -18528,6 +19217,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -18588,6 +19280,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -18648,6 +19343,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.Friends.AddressInfo.GetCount-bdaf", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -18696,7 +19395,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.Friends.ListAddressInfo.AsEventLocation", + "operationId": "People.Friends.ListAddressInfo.AsEventLocation-a5f6", "produces": [ "application/json" ], @@ -18743,6 +19442,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "People.Friends.AddressInfo.GetCount.AsEventLocation-2795", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -18859,6 +19562,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -18909,7 +19615,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.Friends.GetHomeAddress.AsEventLocation", + "operationId": "People.Friends.GetHomeAddress.AsEventLocation-da5e", "produces": [ "application/json" ], @@ -18958,7 +19664,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "People.GetFriends.AsEmployee", + "operationId": "People.GetFriends.AsEmployee-11bf", "produces": [ "application/json" ], @@ -19037,7 +19743,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "People.GetFriends.AsManager", + "operationId": "People.GetFriends.AsManager-1cfb", "produces": [ "application/json" ], @@ -19116,9 +19822,10 @@ "People.Person" ], "summary": "Get Photo for the navigation property Friends from People", - "operationId": "People.GetFriendsPhoto", + "operationId": "People.GetFriendsPhoto-12fc", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -19142,8 +19849,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -19163,10 +19870,13 @@ "People.Person" ], "summary": "Update Photo for the navigation property Friends in People", - "operationId": "People.UpdateFriendsPhoto", + "operationId": "People.UpdateFriendsPhoto-12fc", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -19190,8 +19900,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -19216,7 +19926,10 @@ "People.Person" ], "summary": "Delete Photo for the navigation property Friends in People", - "operationId": "People.DeleteFriendsPhoto", + "operationId": "People.DeleteFriendsPhoto-12fc", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -19266,6 +19979,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.Friends.GetCount-92b9", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -19324,6 +20041,9 @@ "url": "https://learn.microsoft.com/graph/api/person-list-friends?view=graph-rest-1.0" }, "operationId": "People.ListRefFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -19398,6 +20118,12 @@ "url": "https://learn.microsoft.com/graph/api/person-post-friend?view=graph-rest-1.0" }, "operationId": "People.CreateRefFriends", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -19439,6 +20165,9 @@ "url": "https://learn.microsoft.com/graph/api/person-delete-friend?view=graph-rest-1.0" }, "operationId": "People.DeleteRefFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -19487,7 +20216,10 @@ "People.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "People.ListFriends.AsEmployee", + "operationId": "People.ListFriends.AsEmployee-11bf", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -19577,6 +20309,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.Friends.GetCount.AsEmployee-a96c", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -19629,7 +20365,10 @@ "People.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "People.ListFriends.AsManager", + "operationId": "People.ListFriends.AsManager-1cfb", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -19719,6 +20458,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.Friends.GetCount.AsManager-26b3", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -19832,6 +20575,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -19874,7 +20620,7 @@ "People.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.GetHomeAddress.AsEventLocation", + "operationId": "People.GetHomeAddress.AsEventLocation-d0cf", "produces": [ "application/json" ], @@ -19915,7 +20661,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "People.Person.GetPerson.AsEmployee", + "operationId": "People.Person.GetPerson.AsEmployee-317b", "produces": [ "application/json" ], @@ -19987,6 +20733,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "People.AsEmployee.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -20064,6 +20813,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -20116,6 +20868,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -20168,6 +20923,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.AsEmployee.AddressInfo.GetCount-3d43", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -20177,18 +20936,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -20220,7 +20967,7 @@ "People.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.ListAddressInfo.AsEventLocation", + "operationId": "People.ListAddressInfo.AsEventLocation-1342", "produces": [ "application/json" ], @@ -20259,6 +21006,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "People.AddressInfo.GetCount.AsEventLocation-ac7d", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -20268,18 +21019,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -20374,6 +21113,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -20464,6 +21206,12 @@ "summary": "Update the best friend.", "description": "Update an instance of a best friend.", "operationId": "People.AsEmployee.UpdateRefBestFriend", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -20500,6 +21248,9 @@ ], "summary": "Delete ref of navigation property BestFriend for People", "operationId": "People.AsEmployee.DeleteRefBestFriend", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -20542,8 +21293,11 @@ ], "summary": "Get AddressInfo property value", "operationId": "People.AsEmployee.BestFriend.ListAddressInfo", - "parameters": [ - { + "produces": [ + "application/json" + ], + "parameters": [ + { "in": "path", "name": "UserName", "description": "The unique identifier of Person", @@ -20619,6 +21373,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -20671,6 +21428,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -20723,6 +21483,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.AsEmployee.BestFriend.AddressInfo.GetCount-cb8a", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -20732,18 +21496,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -20775,7 +21527,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation", + "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation-7cd9", "produces": [ "application/json" ], @@ -20814,6 +21566,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "People.BestFriend.AddressInfo.GetCount.AsEventLocation-0343", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -20823,18 +21579,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -20926,6 +21670,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -20968,7 +21715,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation", + "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation-7db9", "produces": [ "application/json" ], @@ -21009,7 +21756,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "People.GetBestFriend.AsManager", + "operationId": "People.GetBestFriend.AsManager-7b70", "produces": [ "application/json" ], @@ -21068,9 +21815,10 @@ "People.Person" ], "summary": "Get Photo for the navigation property BestFriend from People", - "operationId": "People.GetBestFriendPhoto", + "operationId": "People.GetBestFriendPhoto-a839", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -21086,8 +21834,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -21107,10 +21855,13 @@ "People.Person" ], "summary": "Update Photo for the navigation property BestFriend in People", - "operationId": "People.UpdateBestFriendPhoto", + "operationId": "People.UpdateBestFriendPhoto-a839", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -21126,8 +21877,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -21152,7 +21903,10 @@ "People.Person" ], "summary": "Delete Photo for the navigation property BestFriend in People", - "operationId": "People.DeleteBestFriendPhoto", + "operationId": "People.DeleteBestFriendPhoto-a839", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -21195,6 +21949,9 @@ "summary": "Get Friends from People", "description": "Friends of person", "operationId": "People.AsEmployee.ListFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -21289,6 +22046,9 @@ ], "summary": "Delete ref of navigation property Friends for People", "operationId": "People.AsEmployee.friends.DeleteRefPerson", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -21339,6 +22099,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "People.AsEmployee.Friends.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -21424,6 +22187,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -21484,6 +22250,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -21544,6 +22313,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.AsEmployee.Friends.AddressInfo.GetCount-1e8b", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -21561,18 +22334,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -21604,7 +22365,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.Friends.ListAddressInfo.AsEventLocation", + "operationId": "People.Friends.ListAddressInfo.AsEventLocation-d49e", "produces": [ "application/json" ], @@ -21651,6 +22412,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "People.Friends.AddressInfo.GetCount.AsEventLocation-1f2b", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -21668,18 +22433,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -21779,6 +22532,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -21829,7 +22585,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.Friends.GetHomeAddress.AsEventLocation", + "operationId": "People.Friends.GetHomeAddress.AsEventLocation-d77d", "produces": [ "application/json" ], @@ -21878,7 +22634,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "People.GetFriends.AsManager", + "operationId": "People.GetFriends.AsManager-3e3c", "produces": [ "application/json" ], @@ -21957,9 +22713,10 @@ "People.Person" ], "summary": "Get Photo for the navigation property Friends from People", - "operationId": "People.GetFriendsPhoto", + "operationId": "People.GetFriendsPhoto-1a66", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -21983,8 +22740,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -22004,10 +22761,13 @@ "People.Person" ], "summary": "Update Photo for the navigation property Friends in People", - "operationId": "People.UpdateFriendsPhoto", + "operationId": "People.UpdateFriendsPhoto-1a66", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -22031,8 +22791,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -22057,7 +22817,10 @@ "People.Person" ], "summary": "Delete Photo for the navigation property Friends in People", - "operationId": "People.DeleteFriendsPhoto", + "operationId": "People.DeleteFriendsPhoto-1a66", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -22107,6 +22870,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.AsEmployee.Friends.GetCount-4db4", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -22161,6 +22928,9 @@ "summary": "Get ref of Friends from People", "description": "Friends of person", "operationId": "People.AsEmployee.ListRefFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -22230,6 +23000,12 @@ ], "summary": "Create new navigation property ref to Friends for People", "operationId": "People.AsEmployee.CreateRefFriends", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -22266,6 +23042,9 @@ ], "summary": "Delete ref of navigation property Friends for People", "operationId": "People.AsEmployee.DeleteRefFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -22314,7 +23093,10 @@ "People.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "People.ListFriends.AsManager", + "operationId": "People.ListFriends.AsManager-3e3c", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -22404,6 +23186,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.Friends.GetCount.AsManager-b145", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -22516,6 +23302,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -22558,7 +23347,7 @@ "People.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.GetHomeAddress.AsEventLocation", + "operationId": "People.GetHomeAddress.AsEventLocation-90e5", "produces": [ "application/json" ], @@ -22600,6 +23389,9 @@ ], "summary": "Get Peers from People", "operationId": "People.AsEmployee.ListPeers", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -22678,6 +23470,9 @@ ], "summary": "Delete ref of navigation property Peers for People", "operationId": "People.AsEmployee.peers.DeleteRefPerson", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -22728,6 +23523,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "People.AsEmployee.Peers.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -22813,6 +23611,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -22873,6 +23674,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -22933,6 +23737,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.AsEmployee.Peers.AddressInfo.GetCount-755d", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -22950,18 +23758,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -22993,7 +23789,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.Peers.ListAddressInfo.AsEventLocation", + "operationId": "People.Peers.ListAddressInfo.AsEventLocation-b918", "produces": [ "application/json" ], @@ -23040,6 +23836,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "People.Peers.AddressInfo.GetCount.AsEventLocation-ef5e", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -23057,18 +23857,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -23168,6 +23956,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -23218,7 +24009,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.Peers.GetHomeAddress.AsEventLocation", + "operationId": "People.Peers.GetHomeAddress.AsEventLocation-311b", "produces": [ "application/json" ], @@ -23267,9 +24058,10 @@ "People.Person" ], "summary": "Get Photo for the navigation property Peers from People", - "operationId": "People.GetPeersPhoto", + "operationId": "People.GetPeersPhoto-ecda", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -23293,8 +24085,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -23314,10 +24106,13 @@ "People.Person" ], "summary": "Update Photo for the navigation property Peers in People", - "operationId": "People.UpdatePeersPhoto", + "operationId": "People.UpdatePeersPhoto-ecda", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -23341,8 +24136,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -23367,7 +24162,10 @@ "People.Person" ], "summary": "Delete Photo for the navigation property Peers in People", - "operationId": "People.DeletePeersPhoto", + "operationId": "People.DeletePeersPhoto-ecda", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -23417,6 +24215,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.AsEmployee.Peers.GetCount-44d2", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -23458,6 +24260,9 @@ ], "summary": "Get ref of Peers from People", "operationId": "People.AsEmployee.ListRefPeers", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -23515,6 +24320,12 @@ ], "summary": "Create new navigation property ref to Peers for People", "operationId": "People.AsEmployee.CreateRefPeers", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -23551,6 +24362,9 @@ ], "summary": "Delete ref of navigation property Peers for People", "operationId": "People.AsEmployee.DeleteRefPeers", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -23605,6 +24419,9 @@ "url": "https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0" }, "operationId": "People.AsEmployee.ListTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -23836,6 +24653,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -23894,6 +24714,9 @@ "url": "https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0" }, "operationId": "People.AsEmployee.DeleteTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -24021,8 +24844,8 @@ "200": { "description": "Success", "schema": { - "title": "Collection of Person", "type": "object", + "title": "Collection of Person", "properties": { "value": { "type": "array", @@ -24059,6 +24882,9 @@ ], "summary": "Get PlanItems from People", "operationId": "People.AsEmployee.Trips.ListPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -24152,6 +24978,9 @@ ], "summary": "Delete ref of navigation property PlanItems for People", "operationId": "People.AsEmployee.Trips.planItems.DeleteRefPlanItem", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -24216,6 +25045,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.AsEmployee.Trips.PlanItems.GetCount-7df9", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -24268,6 +25101,9 @@ ], "summary": "Get ref of PlanItems from People", "operationId": "People.AsEmployee.Trips.ListRefPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -24336,6 +25172,12 @@ ], "summary": "Create new navigation property ref to PlanItems for People", "operationId": "People.AsEmployee.Trips.CreateRefPlanItems", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -24383,6 +25225,9 @@ ], "summary": "Delete ref of navigation property PlanItems for People", "operationId": "People.AsEmployee.Trips.DeleteRefPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -24443,6 +25288,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.AsEmployee.Trips.GetCount-c760", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -24496,6 +25345,9 @@ ], "summary": "Invoke function GetFavoriteAirline", "operationId": "People.Person.GetFavoriteAirline", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -24532,6 +25384,9 @@ ], "summary": "Invoke function GetFriendsTrips", "operationId": "People.Person.GetFriendsTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -24617,6 +25472,12 @@ ], "summary": "Invoke action GetPeersForTrip", "operationId": "People.Person.GetPeersForTrip", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -24655,7 +25516,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "People.Person.GetPerson.AsManager", + "operationId": "People.Person.GetPerson.AsManager-d051", "produces": [ "application/json" ], @@ -24727,6 +25588,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "People.AsManager.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -24804,6 +25668,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -24856,6 +25723,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -24908,6 +25778,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.AsManager.AddressInfo.GetCount-f84e", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -24917,18 +25791,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -24960,7 +25822,7 @@ "People.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.ListAddressInfo.AsEventLocation", + "operationId": "People.ListAddressInfo.AsEventLocation-7526", "produces": [ "application/json" ], @@ -24999,6 +25861,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "People.AddressInfo.GetCount.AsEventLocation-3722", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -25008,18 +25874,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -25114,6 +25968,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -25204,6 +26061,12 @@ "summary": "Update the best friend.", "description": "Update an instance of a best friend.", "operationId": "People.AsManager.UpdateRefBestFriend", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -25240,6 +26103,9 @@ ], "summary": "Delete ref of navigation property BestFriend for People", "operationId": "People.AsManager.DeleteRefBestFriend", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -25282,6 +26148,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "People.AsManager.BestFriend.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -25359,6 +26228,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -25411,6 +26283,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -25463,6 +26338,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.AsManager.BestFriend.AddressInfo.GetCount-5a39", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -25472,18 +26351,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -25515,7 +26382,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation", + "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation-897f", "produces": [ "application/json" ], @@ -25554,6 +26421,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "People.BestFriend.AddressInfo.GetCount.AsEventLocation-5af3", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -25563,18 +26434,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -25666,6 +26525,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -25708,7 +26570,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation", + "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation-545d", "produces": [ "application/json" ], @@ -25749,7 +26611,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "People.GetBestFriend.AsEmployee", + "operationId": "People.GetBestFriend.AsEmployee-0445", "produces": [ "application/json" ], @@ -25808,9 +26670,10 @@ "People.Person" ], "summary": "Get Photo for the navigation property BestFriend from People", - "operationId": "People.GetBestFriendPhoto", + "operationId": "People.GetBestFriendPhoto-f05d", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -25826,8 +26689,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -25847,10 +26710,13 @@ "People.Person" ], "summary": "Update Photo for the navigation property BestFriend in People", - "operationId": "People.UpdateBestFriendPhoto", + "operationId": "People.UpdateBestFriendPhoto-f05d", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -25866,8 +26732,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -25892,7 +26758,10 @@ "People.Person" ], "summary": "Delete Photo for the navigation property BestFriend in People", - "operationId": "People.DeleteBestFriendPhoto", + "operationId": "People.DeleteBestFriendPhoto-f05d", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -25934,6 +26803,9 @@ ], "summary": "Get DirectReports from People", "operationId": "People.AsManager.ListDirectReports", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -26012,6 +26884,9 @@ ], "summary": "Delete ref of navigation property DirectReports for People", "operationId": "People.AsManager.directReports.DeleteRefPerson", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -26062,6 +26937,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "People.AsManager.DirectReports.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -26147,6 +27025,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -26207,6 +27088,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -26267,6 +27151,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.AsManager.DirectReports.AddressInfo.GetCount-f46e", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -26284,18 +27172,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -26327,7 +27203,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.DirectReports.ListAddressInfo.AsEventLocation", + "operationId": "People.DirectReports.ListAddressInfo.AsEventLocation-1252", "produces": [ "application/json" ], @@ -26374,6 +27250,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "People.DirectReports.AddressInfo.GetCount.AsEventLocation-5d49", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -26391,18 +27271,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "in": "header", - "name": "ConsistencyLevel", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "type": "string", - "x-examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/parameters/search" }, @@ -26502,6 +27370,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -26552,7 +27423,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.DirectReports.GetHomeAddress.AsEventLocation", + "operationId": "People.DirectReports.GetHomeAddress.AsEventLocation-cf8d", "produces": [ "application/json" ], @@ -26601,9 +27472,10 @@ "People.Person" ], "summary": "Get Photo for the navigation property DirectReports from People", - "operationId": "People.GetDirectReportsPhoto", + "operationId": "People.GetDirectReportsPhoto-7149", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -26627,8 +27499,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -26648,10 +27520,13 @@ "People.Person" ], "summary": "Update Photo for the navigation property DirectReports in People", - "operationId": "People.UpdateDirectReportsPhoto", + "operationId": "People.UpdateDirectReportsPhoto-7149", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -26675,8 +27550,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -26701,7 +27576,10 @@ "People.Person" ], "summary": "Delete Photo for the navigation property DirectReports in People", - "operationId": "People.DeleteDirectReportsPhoto", + "operationId": "People.DeleteDirectReportsPhoto-7149", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -26751,6 +27629,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.AsManager.DirectReports.GetCount-0ec4", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -26792,6 +27674,9 @@ ], "summary": "Get ref of DirectReports from People", "operationId": "People.AsManager.ListRefDirectReports", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -26849,6 +27734,12 @@ ], "summary": "Create new navigation property ref to DirectReports for People", "operationId": "People.AsManager.CreateRefDirectReports", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -26885,6 +27776,9 @@ ], "summary": "Delete ref of navigation property DirectReports for People", "operationId": "People.AsManager.DeleteRefDirectReports", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -26935,6 +27829,9 @@ "summary": "Get Friends from People", "description": "Friends of person", "operationId": "People.AsManager.ListFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -27029,6 +27926,9 @@ ], "summary": "Delete ref of navigation property Friends for People", "operationId": "People.AsManager.friends.DeleteRefPerson", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -27079,6 +27979,9 @@ ], "summary": "Get AddressInfo property value", "operationId": "People.AsManager.Friends.ListAddressInfo", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -27164,6 +28067,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -27224,6 +28130,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -27284,6 +28193,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.AsManager.Friends.AddressInfo.GetCount-f486", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -27332,7 +28245,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.Friends.ListAddressInfo.AsEventLocation", + "operationId": "People.Friends.ListAddressInfo.AsEventLocation-f8c9", "produces": [ "application/json" ], @@ -27379,6 +28292,10 @@ "get": { "summary": "Get the number of the resource", "operationId": "People.Friends.AddressInfo.GetCount.AsEventLocation-4480", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -27495,6 +28412,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -27545,7 +28465,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.Friends.GetHomeAddress.AsEventLocation", + "operationId": "People.Friends.GetHomeAddress.AsEventLocation-eb71", "produces": [ "application/json" ], @@ -27594,7 +28514,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "People.GetFriends.AsEmployee", + "operationId": "People.GetFriends.AsEmployee-161e", "produces": [ "application/json" ], @@ -27673,9 +28593,10 @@ "People.Person" ], "summary": "Get Photo for the navigation property Friends from People", - "operationId": "People.GetFriendsPhoto", + "operationId": "People.GetFriendsPhoto-b97d", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -27699,8 +28620,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -27720,10 +28641,13 @@ "People.Person" ], "summary": "Update Photo for the navigation property Friends in People", - "operationId": "People.UpdateFriendsPhoto", + "operationId": "People.UpdateFriendsPhoto-b97d", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -27747,8 +28671,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -27773,7 +28697,10 @@ "People.Person" ], "summary": "Delete Photo for the navigation property Friends in People", - "operationId": "People.DeleteFriendsPhoto", + "operationId": "People.DeleteFriendsPhoto-b97d", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -27823,6 +28750,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.AsManager.Friends.GetCount-1c0c", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -27877,6 +28808,9 @@ "summary": "Get ref of Friends from People", "description": "Friends of person", "operationId": "People.AsManager.ListRefFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -27946,6 +28880,12 @@ ], "summary": "Create new navigation property ref to Friends for People", "operationId": "People.AsManager.CreateRefFriends", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -27982,6 +28922,9 @@ ], "summary": "Delete ref of navigation property Friends for People", "operationId": "People.AsManager.DeleteRefFriends", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -28030,7 +28973,10 @@ "People.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "People.ListFriends.AsEmployee", + "operationId": "People.ListFriends.AsEmployee-161e", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -28120,6 +29066,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.Friends.GetCount.AsEmployee-f325", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -28232,6 +29182,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -28274,7 +29227,7 @@ "People.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.GetHomeAddress.AsEventLocation", + "operationId": "People.GetHomeAddress.AsEventLocation-e3dc", "produces": [ "application/json" ], @@ -28320,6 +29273,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -28375,6 +29331,9 @@ "url": "https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0" }, "operationId": "People.AsManager.ListTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -28606,6 +29565,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -28664,6 +29626,9 @@ "url": "https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0" }, "operationId": "People.AsManager.DeleteTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -28791,8 +29756,8 @@ "200": { "description": "Success", "schema": { - "title": "Collection of Person", "type": "object", + "title": "Collection of Person", "properties": { "value": { "type": "array", @@ -28829,6 +29794,9 @@ ], "summary": "Get PlanItems from People", "operationId": "People.AsManager.Trips.ListPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -28922,6 +29890,9 @@ ], "summary": "Delete ref of navigation property PlanItems for People", "operationId": "People.AsManager.Trips.planItems.DeleteRefPlanItem", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -28986,8 +29957,12 @@ ], "summary": "Get the number of the resource", "operationId": "People.AsManager.Trips.PlanItems.GetCount-fa08", - "parameters": [ - { + "produces": [ + "text/plain", + "application/json" + ], + "parameters": [ + { "in": "path", "name": "UserName", "description": "The unique identifier of Person", @@ -29038,6 +30013,9 @@ ], "summary": "Get ref of PlanItems from People", "operationId": "People.AsManager.Trips.ListRefPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -29106,6 +30084,12 @@ ], "summary": "Create new navigation property ref to PlanItems for People", "operationId": "People.AsManager.Trips.CreateRefPlanItems", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -29153,6 +30137,9 @@ ], "summary": "Delete ref of navigation property PlanItems for People", "operationId": "People.AsManager.Trips.DeleteRefPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -29213,6 +30200,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.AsManager.Trips.GetCount-1f8c", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -29267,6 +30258,12 @@ "summary": "Invoke action ShareTrip", "description": "Details of the shared trip.", "operationId": "People.Person.ShareTrip", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -29306,6 +30303,9 @@ ], "summary": "Invoke function UpdatePersonLastName", "operationId": "People.Person.UpdatePersonLastName", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -29353,9 +30353,10 @@ "description": "Find more info here", "url": "https://learn.microsoft.com/graph/api/person-get-photo?view=graph-rest-1.0" }, - "operationId": "People.Person.GetPhoto", + "operationId": "People.Person.GetPhoto-883f", "produces": [ - "application/octet-stream" + "application/octet-stream", + "application/json" ], "parameters": [ { @@ -29371,8 +30372,8 @@ "200": { "description": "Retrieved media content", "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } }, "default": { @@ -29397,10 +30398,13 @@ "description": "Find more info here", "url": "https://learn.microsoft.com/graph/api/person-update-photo?view=graph-rest-1.0" }, - "operationId": "People.Person.UpdatePhoto", + "operationId": "People.Person.UpdatePhoto-883f", "consumes": [ "application/octet-stream" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -29416,8 +30420,8 @@ "description": "New media content.", "required": true, "schema": { - "format": "binary", - "type": "string" + "type": "string", + "format": "binary" } } ], @@ -29447,7 +30451,10 @@ "description": "Find more info here", "url": "https://learn.microsoft.com/graph/api/person-delete-photo?view=graph-rest-1.0" }, - "operationId": "People.Person.DeletePhoto", + "operationId": "People.Person.DeletePhoto-883f", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -29494,6 +30501,9 @@ "url": "https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0" }, "operationId": "People.ListTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -29725,6 +30735,9 @@ "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -29783,6 +30796,9 @@ "url": "https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0" }, "operationId": "People.DeleteTrips", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -29910,8 +30926,8 @@ "200": { "description": "Success", "schema": { - "title": "Collection of Person", "type": "object", + "title": "Collection of Person", "properties": { "value": { "type": "array", @@ -29948,6 +30964,9 @@ ], "summary": "Get PlanItems from People", "operationId": "People.Trips.ListPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -30041,6 +31060,9 @@ ], "summary": "Delete ref of navigation property PlanItems for People", "operationId": "People.Trips.planItems.DeleteRefPlanItem", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -30105,6 +31127,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.Trips.PlanItems.GetCount-9a27", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -30157,6 +31183,9 @@ ], "summary": "Get ref of PlanItems from People", "operationId": "People.Trips.ListRefPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -30225,6 +31254,12 @@ ], "summary": "Create new navigation property ref to PlanItems for People", "operationId": "People.Trips.CreateRefPlanItems", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -30272,6 +31307,9 @@ ], "summary": "Delete ref of navigation property PlanItems for People", "operationId": "People.Trips.DeleteRefPlanItems", + "produces": [ + "application/json" + ], "parameters": [ { "in": "path", @@ -30332,6 +31370,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.Trips.GetCount-e877", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "path", @@ -30385,6 +31427,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.GetCount-dd8d", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "header", @@ -30429,7 +31475,10 @@ "People.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "People.Person.ListPerson.AsEmployee", + "operationId": "People.Person.ListPerson.AsEmployee-013a", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -30511,6 +31560,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.Person.Person.GetCount.AsEmployee-ef29", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "header", @@ -30555,7 +31608,10 @@ "People.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "People.Person.ListPerson.AsManager", + "operationId": "People.Person.ListPerson.AsManager-3e14", + "produces": [ + "application/json" + ], "parameters": [ { "in": "header", @@ -30637,6 +31693,10 @@ ], "summary": "Get the number of the resource", "operationId": "People.Person.Person.GetCount.AsManager-2d48", + "produces": [ + "text/plain", + "application/json" + ], "parameters": [ { "in": "header", @@ -30683,6 +31743,9 @@ "summary": "Invoke actionImport ResetDataSource", "description": "Resets the data source to default values.", "operationId": "ActionImport.ResetDataSource", + "produces": [ + "application/json" + ], "responses": { "204": { "description": "Success" @@ -30697,227 +31760,561 @@ } }, "definitions": { - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person": { - "title": "Person", + "Edm.Geography": { + "$ref": "#/definitions/Edm.Geometry" + }, + "Edm.GeographyPoint": { + "$ref": "#/definitions/Edm.GeometryPoint" + }, + "Edm.GeographyLineString": { + "$ref": "#/definitions/Edm.GeometryLineString" + }, + "Edm.GeographyPolygon": { + "$ref": "#/definitions/Edm.GeometryPolygon" + }, + "Edm.GeographyMultiPoint": { + "$ref": "#/definitions/Edm.GeometryMultiPoint" + }, + "Edm.GeographyMultiLineString": { + "$ref": "#/definitions/Edm.GeometryMultiLineString" + }, + "Edm.GeographyMultiPolygon": { + "$ref": "#/definitions/Edm.GeometryMultiPolygon" + }, + "Edm.GeographyCollection": { + "$ref": "#/definitions/Edm.GeometryCollection" + }, + "Edm.Geometry": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Edm.GeometryPoint" + } + ] + }, + "Edm.GeometryPoint": { "type": "object", + "required": [ + "type", + "coordinates" + ], "properties": { - "UserName": { - "type": "string" - }, - "FirstName": { - "type": "string" - }, - "LastName": { - "type": "string" - }, - "MiddleName": { - "type": "string" - }, - "Gender": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender" - }, - "Age": { - "format": "int64", - "allOf": [ - { - "format": "int64", - "type": "number" - } + "type": { + "type": "string", + "default": "Point", + "enum": [ + "Point" ] }, - "Emails": { - "type": "array", - "items": { - "type": "string" - } + "coordinates": { + "$ref": "#/definitions/GeoJSON.position" + } + } + }, + "Edm.GeometryLineString": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "enum": [ + "LineString" + ] }, - "AddressInfo": { + "coordinates": { "type": "array", + "minItems": 2, "items": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + "$ref": "#/definitions/GeoJSON.position" } + } + } + }, + "Edm.GeometryPolygon": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "enum": [ + "Polygon" + ] }, - "HomeAddress": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" - }, - "FavoriteFeature": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" - }, - "Features": { + "coordinates": { "type": "array", + "minItems": 4, "items": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSON.position" + } } - }, - "Photo": { - "format": "base64url", - "type": "string" - }, - "Friends": { - "description": "Friends of person", - "type": "array", - "items": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" - }, - "x-ms-navigationProperty": true - }, - "BestFriend": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" - }, - "Trips": { - "description": "Collection of trips.", - "type": "array", - "items": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" - }, - "x-ms-navigationProperty": true } } }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline": { - "title": "Airline", + "Edm.GeometryMultiPoint": { "type": "object", + "required": [ + "type", + "coordinates" + ], "properties": { - "AirlineCode": { - "type": "string" + "type": { + "enum": [ + "MultiPoint" + ] }, - "Name": { - "type": "string" + "coordinates": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSON.position" + } } } }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport": { - "title": "Airport", + "Edm.GeometryMultiLineString": { "type": "object", + "required": [ + "type", + "coordinates" + ], "properties": { - "Name": { - "type": "string" + "type": { + "enum": [ + "MultiLineString" + ] }, - "IcaoCode": { - "type": "string" + "coordinates": { + "type": "array", + "minItems": 2, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSON.position" + } + } + } + } + }, + "Edm.GeometryMultiPolygon": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "enum": [ + "MultiPolygon" + ] }, - "IataCode": { - "type": "string" + "coordinates": { + "type": "array", + "minItems": 4, + "items": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/GeoJSON.position" + } + } + } + } + } + }, + "Edm.GeometryCollection": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "enum": [ + "GeometryCollection" + ] }, - "Location": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation" + "coordinates": { + "type": "array", + "items": { + "$ref": "#/definitions/Edm.Geometry" + } } } }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location": { - "title": "Location", + "GeoJSON.position": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ODataError": { "type": "object", + "required": [ + "error" + ], "properties": { - "Address": { + "error": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError" + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError": { + "type": "object", + "required": [ + "code", + "message" + ], + "properties": { + "code": { "type": "string" }, - "City": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.City" + "message": { + "type": "string", + "x-ms-primary-error-message": true + }, + "target": { + "type": "string", + "x-nullable": true + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails" + } + }, + "innerError": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError" } } }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.City": { - "title": "City", + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails": { "type": "object", + "required": [ + "code", + "message" + ], "properties": { - "Name": { + "code": { "type": "string" }, - "CountryRegion": { + "message": { "type": "string" }, - "Region": { - "type": "string" + "target": { + "type": "string", + "x-nullable": true } } }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation": { - "allOf": [ - { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError": { + "type": "object", + "title": "InnerError", + "properties": { + "Date": { + "type": "string", + "x-nullable": true, + "format": "date-time", + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, - { - "title": "AirportLocation", - "type": "object", - "properties": { - "Loc": { - "$ref": "#/definitions/Edm.GeographyPoint" - }, - "EmergencyAuthority": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" - } + "RequestId": { + "type": "string", + "x-nullable": true + } + } + }, + "ODataCountResponse": { + "type": "number", + "format": "int64" + }, + "StringCollectionResponse": { + "type": "object", + "title": "Collection of string", + "properties": { + "value": { + "type": "array", + "items": { + "type": "string" } } - ] + } }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { - "allOf": [ - { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + "ReferenceUpdate": { + "type": "object", + "properties": { + "@odata.id": { + "type": "string" }, - { - "title": "EventLocation", - "type": "object", - "properties": { - "BuildingInfo": { - "type": "string" - } - } + "@odata.type": { + "type": "string", + "x-nullable": true + } + } + }, + "ReferenceCreate": { + "type": "object", + "properties": { + "@odata.id": { + "type": "string" } + }, + "additionalProperties": { + "type": "object" + } + }, + "ReferenceNumeric": { + "type": "string", + "x-nullable": true, + "enum": [ + "-INF", + "INF", + "NaN" ] }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip": { - "title": "Trip", + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person": { "type": "object", + "title": "Person", "properties": { - "TripId": { - "format": "int32", - "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" - }, - "ShareId": { - "format": "uuid", - "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", + "UserName": { "type": "string" }, - "Name": { + "FirstName": { "type": "string" }, - "Budget": { - "format": "float", + "LastName": { + "type": "string", + "x-nullable": true + }, + "MiddleName": { + "type": "string", + "x-nullable": true + }, + "Gender": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender" + }, + "Age": { + "format": "int64", "allOf": [ { - "format": "float", - "type": "number" + "type": "number", + "x-nullable": true, + "format": "int64" } ] }, - "Description": { - "type": "string" - }, - "Tags": { + "Emails": { "type": "array", "items": { - "type": "string" + "type": "string", + "x-nullable": true } }, - "TripData": { }, - "DestinationInfo": { + "AddressInfo": { "type": "array", - "items": { } + "items": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } }, - "StartsAt": { - "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "HomeAddress": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" }, - "EndsAt": { - "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "FavoriteFeature": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" }, - "PlanItems": { + "Features": { + "type": "array", + "items": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" + } + }, + "Photo": { + "type": "string", + "x-nullable": true, + "format": "base64url" + }, + "Friends": { + "type": "array", + "description": "Friends of person", + "items": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + "x-ms-navigationProperty": true + }, + "BestFriend": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + "Trips": { + "type": "array", + "description": "Collection of trips.", + "items": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + }, + "x-ms-navigationProperty": true + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline": { + "type": "object", + "title": "Airline", + "properties": { + "AirlineCode": { + "type": "string" + }, + "Name": { + "type": "string", + "x-nullable": true + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport": { + "type": "object", + "title": "Airport", + "properties": { + "Name": { + "type": "string", + "x-nullable": true + }, + "IcaoCode": { + "type": "string" + }, + "IataCode": { + "type": "string", + "x-nullable": true + }, + "Location": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation" + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location": { + "type": "object", + "title": "Location", + "properties": { + "Address": { + "type": "string", + "x-nullable": true + }, + "City": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.City" + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.City": { + "type": "object", + "title": "City", + "properties": { + "Name": { + "type": "string", + "x-nullable": true + }, + "CountryRegion": { + "type": "string", + "x-nullable": true + }, + "Region": { + "type": "string", + "x-nullable": true + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation": { + "allOf": [ + { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + }, + { + "type": "object", + "title": "AirportLocation", + "properties": { + "Loc": { + "$ref": "#/definitions/Edm.GeographyPoint" + }, + "EmergencyAuthority": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + ] + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "allOf": [ + { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + }, + { + "type": "object", + "title": "EventLocation", + "properties": { + "BuildingInfo": { + "type": "string", + "x-nullable": true + } + } + } + ] + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip": { + "type": "object", + "title": "Trip", + "properties": { + "TripId": { + "type": "number", + "format": "int32", + "maximum": 2147483647, + "minimum": -2147483648 + }, + "ShareId": { + "type": "string", + "format": "uuid", + "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" + }, + "Name": { + "type": "string", + "x-nullable": true + }, + "Budget": { + "format": "float", + "allOf": [ + { + "type": "number", + "x-nullable": true, + "format": "float" + } + ] + }, + "Description": { + "type": "string", + "x-nullable": true + }, + "Tags": { + "type": "array", + "items": { + "type": "string", + "x-nullable": true + } + }, + "TripData": { }, + "DestinationInfo": { + "type": "array", + "items": { } + }, + "StartsAt": { + "type": "string", + "format": "date-time", + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" + }, + "EndsAt": { + "type": "string", + "format": "date-time", + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" + }, + "PlanItems": { "type": "array", "items": { "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem" @@ -30927,32 +32324,33 @@ } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem": { - "title": "PlanItem", "type": "object", + "title": "PlanItem", "properties": { "PlanItemId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 }, "ConfirmationCode": { - "type": "string" + "type": "string", + "x-nullable": true }, "StartsAt": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "EndsAt": { + "type": "string", "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$" }, "Duration": { + "type": "string", "format": "duration", - "pattern": "^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$", - "type": "string" + "pattern": "^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$" } } }, @@ -30962,14 +32360,15 @@ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem" }, { - "title": "Event", "type": "object", + "title": "Event", "properties": { "OccursAt": { "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" }, "Description": { - "type": "string" + "type": "string", + "x-nullable": true } } } @@ -30981,11 +32380,12 @@ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem" }, { - "title": "PublicTransportation", "type": "object", + "title": "PublicTransportation", "properties": { "SeatNumber": { - "type": "string" + "type": "string", + "x-nullable": true } } } @@ -30997,11 +32397,12 @@ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation" }, { - "title": "Flight", "type": "object", + "title": "Flight", "properties": { "FlightNumber": { - "type": "string" + "type": "string", + "x-nullable": true }, "Airline": { "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline" @@ -31012,387 +32413,120 @@ "To": { "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport" } - } - } - ] - }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { - "allOf": [ - { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" - }, - { - "title": "Employee", - "type": "object", - "properties": { - "Cost": { - "format": "int64", - "allOf": [ - { - "format": "int64", - "type": "number" - } - ] - }, - "Peers": { - "type": "array", - "items": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" - }, - "x-ms-navigationProperty": true - } - } - } - ] - }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { - "allOf": [ - { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" - }, - { - "title": "Manager", - "type": "object", - "properties": { - "Budget": { - "format": "int64", - "allOf": [ - { - "format": "int64", - "type": "number" - } - ] - }, - "BossOffice": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" - }, - "DirectReports": { - "type": "array", - "items": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" - }, - "x-ms-navigationProperty": true - } - } - } - ] - }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender": { - "title": "PersonGender", - "description": "Gender of the person.", - "enum": [ - "Male", - "Female", - "Unknow" - ], - "type": "string", - "x-ms-enum": { - "name": "PersonGender", - "modelAsString": false, - "values": [ - { - "value": "Male", - "description": "The Male gender.", - "name": "Male" - }, - { - "value": "Female", - "description": "The Female gender.", - "name": "Female" - }, - { - "value": "Unknow", - "description": "Unknown gender or prefers not to say.", - "name": "Unknow" - } - ] - } - }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature": { - "title": "Feature", - "enum": [ - "Feature1", - "Feature2", - "Feature3", - "Feature4" - ], - "type": "string", - "x-ms-enum-flags": { - "isFlags": true - } - }, - "Edm.Geography": { - "$ref": "#/definitions/Edm.Geometry" - }, - "Edm.GeographyPoint": { - "$ref": "#/definitions/Edm.GeometryPoint" - }, - "Edm.GeographyLineString": { - "$ref": "#/definitions/Edm.GeometryLineString" - }, - "Edm.GeographyPolygon": { - "$ref": "#/definitions/Edm.GeometryPolygon" - }, - "Edm.GeographyMultiPoint": { - "$ref": "#/definitions/Edm.GeometryMultiPoint" - }, - "Edm.GeographyMultiLineString": { - "$ref": "#/definitions/Edm.GeometryMultiLineString" - }, - "Edm.GeographyMultiPolygon": { - "$ref": "#/definitions/Edm.GeometryMultiPolygon" - }, - "Edm.GeographyCollection": { - "$ref": "#/definitions/Edm.GeometryCollection" - }, - "Edm.Geometry": { - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Edm.GeometryPoint" - } - ] - }, - "Edm.GeometryPoint": { - "required": [ - "type", - "coordinates" - ], - "type": "object", - "properties": { - "type": { - "default": "Point", - "enum": [ - "Point" - ], - "type": "string" - }, - "coordinates": { - "$ref": "#/definitions/GeoJSON.position" - } - } - }, - "Edm.GeometryLineString": { - "required": [ - "type", - "coordinates" - ], - "type": "object", - "properties": { - "type": { - "enum": [ - "LineString" - ] - }, - "coordinates": { - "minItems": 2, - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSON.position" - } - } - } - }, - "Edm.GeometryPolygon": { - "required": [ - "type", - "coordinates" - ], - "type": "object", - "properties": { - "type": { - "enum": [ - "Polygon" - ] - }, - "coordinates": { - "minItems": 4, - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSON.position" - } - } - } - } - }, - "Edm.GeometryMultiPoint": { - "required": [ - "type", - "coordinates" - ], - "type": "object", - "properties": { - "type": { - "enum": [ - "MultiPoint" - ] - }, - "coordinates": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSON.position" - } - } - } - }, - "Edm.GeometryMultiLineString": { - "required": [ - "type", - "coordinates" - ], - "type": "object", - "properties": { - "type": { - "enum": [ - "MultiLineString" - ] - }, - "coordinates": { - "minItems": 2, - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/GeoJSON.position" - } - } - } - } - }, - "Edm.GeometryMultiPolygon": { - "required": [ - "type", - "coordinates" - ], - "type": "object", - "properties": { - "type": { - "enum": [ - "MultiPolygon" - ] + } + } + ] + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "allOf": [ + { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" }, - "coordinates": { - "minItems": 4, - "type": "array", - "items": { - "type": "array", - "items": { + { + "type": "object", + "title": "Employee", + "properties": { + "Cost": { + "format": "int64", + "allOf": [ + { + "type": "number", + "x-nullable": true, + "format": "int64" + } + ] + }, + "Peers": { "type": "array", "items": { - "$ref": "#/definitions/GeoJSON.position" - } + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + "x-ms-navigationProperty": true } } } - } + ] }, - "Edm.GeometryCollection": { - "required": [ - "type", - "coordinates" - ], - "type": "object", - "properties": { - "type": { - "enum": [ - "GeometryCollection" - ] + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "allOf": [ + { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" }, - "coordinates": { - "type": "array", - "items": { - "$ref": "#/definitions/Edm.Geometry" + { + "type": "object", + "title": "Manager", + "properties": { + "Budget": { + "format": "int64", + "allOf": [ + { + "type": "number", + "x-nullable": true, + "format": "int64" + } + ] + }, + "BossOffice": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + }, + "DirectReports": { + "type": "array", + "items": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + "x-ms-navigationProperty": true + } } } - } - }, - "GeoJSON.position": { - "minItems": 2, - "type": "array", - "items": { - "type": "number" - } - }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ODataError": { - "required": [ - "error" - ], - "type": "object", - "properties": { - "error": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError" - } - } + ] }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError": { - "required": [ - "code", - "message" + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender": { + "type": "string", + "description": "Gender of the person.", + "title": "PersonGender", + "enum": [ + "Male", + "Female", + "Unknow" ], - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "message": { - "type": "string", - "x-ms-primary-error-message": true - }, - "target": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails" + "x-ms-enum": { + "name": "PersonGender", + "modelAsString": false, + "values": [ + { + "value": "Male", + "description": "The Male gender.", + "name": "Male" + }, + { + "value": "Female", + "description": "The Female gender.", + "name": "Female" + }, + { + "value": "Unknow", + "description": "Unknown gender or prefers not to say.", + "name": "Unknow" } - }, - "innerError": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError" - } + ] } }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails": { - "required": [ - "code", - "message" + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature": { + "type": "string", + "title": "Feature", + "enum": [ + "Feature1", + "Feature2", + "Feature3", + "Feature4" ], - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "message": { - "type": "string" - }, - "target": { - "type": "string" - } - } - }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError": { - "title": "InnerError", - "type": "object", - "properties": { - "Date": { - "format": "date-time", - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string" - }, - "RequestId": { - "type": "string" - } + "x-ms-enum-flags": { + "isFlags": true } }, - "ODataCountResponse": { - "format": "int32", - "type": "integer" - }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse": { - "title": "Collection of Person", "type": "object", + "title": "Collection of Person", "properties": { "value": { "type": "array", @@ -31403,8 +32537,8 @@ } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirlineCollectionResponse": { - "title": "Collection of Airline", "type": "object", + "title": "Collection of Airline", "properties": { "value": { "type": "array", @@ -31415,8 +32549,8 @@ } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportCollectionResponse": { - "title": "Collection of Airport", "type": "object", + "title": "Collection of Airport", "properties": { "value": { "type": "array", @@ -31427,8 +32561,8 @@ } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse": { - "title": "Collection of Trip", "type": "object", + "title": "Collection of Trip", "properties": { "value": { "type": "array", @@ -31439,8 +32573,8 @@ } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse": { - "title": "Collection of PlanItem", "type": "object", + "title": "Collection of PlanItem", "properties": { "value": { "type": "array", @@ -31451,8 +32585,8 @@ } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse": { - "title": "Collection of Employee", "type": "object", + "title": "Collection of Employee", "properties": { "value": { "type": "array", @@ -31463,8 +32597,8 @@ } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse": { - "title": "Collection of Manager", "type": "object", + "title": "Collection of Manager", "properties": { "value": { "type": "array", @@ -31475,8 +32609,8 @@ } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventCollectionResponse": { - "title": "Collection of Event", "type": "object", + "title": "Collection of Event", "properties": { "value": { "type": "array", @@ -31487,8 +32621,8 @@ } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportationCollectionResponse": { - "title": "Collection of PublicTransportation", "type": "object", + "title": "Collection of PublicTransportation", "properties": { "value": { "type": "array", @@ -31499,8 +32633,8 @@ } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.FlightCollectionResponse": { - "title": "Collection of Flight", "type": "object", + "title": "Collection of Flight", "properties": { "value": { "type": "array", @@ -31511,8 +32645,8 @@ } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse": { - "title": "Collection of Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location", "type": "object", + "title": "Collection of Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location", "properties": { "value": { "type": "array", @@ -31521,48 +32655,6 @@ } } } - }, - "StringCollectionResponse": { - "title": "Collection of string", - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ReferenceUpdate": { - "type": "object", - "properties": { - "@odata.id": { - "type": "string" - }, - "@odata.type": { - "type": "string" - } - } - }, - "ReferenceCreate": { - "type": "object", - "properties": { - "@odata.id": { - "type": "string" - } - }, - "additionalProperties": { - "type": "object" - } - }, - "ReferenceNumeric": { - "enum": [ - "-INF", - "INF", - "NaN" - ], - "type": "string" } }, "parameters": { @@ -31570,14 +32662,16 @@ "in": "query", "name": "$top", "description": "Show only the first n items", - "type": "integer", + "type": "number", + "format": "int64", "minimum": 0 }, "skip": { "in": "query", "name": "$skip", "description": "Skip the first n items", - "type": "integer", + "type": "number", + "format": "int64", "minimum": 0 }, "count": { @@ -31628,10 +32722,10 @@ "type": "string" }, "tripId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 } } } @@ -31648,10 +32742,10 @@ "type": "string" }, "tripId": { + "type": "number", "format": "int32", "maximum": 2147483647, - "minimum": -2147483648, - "type": "number" + "minimum": -2147483648 } } } @@ -31751,8 +32845,8 @@ "GetFriendsTripsResponse": { "description": "Success", "schema": { - "title": "Collection of Trip", "type": "object", + "title": "Collection of Trip", "properties": { "value": { "type": "array", @@ -31769,8 +32863,8 @@ "type": "object", "properties": { "value": { - "default": false, - "type": "boolean" + "type": "boolean", + "default": false } } } @@ -31778,8 +32872,8 @@ "GetPeersForTripResponse": { "description": "Success", "schema": { - "title": "Collection of Person", "type": "object", + "title": "Collection of Person", "properties": { "value": { "type": "array", diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.yaml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.yaml index d03261ed5..dda54ba8b 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.yaml +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.yaml @@ -2,7 +2,7 @@ swagger: '2.0' info: title: OData Service for namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models description: This OData service is located at http://services.odata.org/TrippinRESTierService - version: '1.2.3' + version: 1.0.1 host: services.odata.org basePath: /TrippinRESTierService schemes: @@ -14,6 +14,8 @@ paths: - Airlines.Airline summary: Get entities from Airlines operationId: Airlines.Airline.ListAirline + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -110,6 +112,8 @@ paths: operationId: Airlines.Airline.SetAirline consumes: - application/json + produces: + - application/json parameters: - in: path name: AirlineCode @@ -134,6 +138,8 @@ paths: - Airlines.Airline summary: Delete entity from Airlines operationId: Airlines.Airline.DeleteAirline + produces: + - application/json parameters: - in: path name: AirlineCode @@ -158,6 +164,9 @@ paths: - Airlines.Airline summary: Get the number of the resource operationId: Airlines.GetCount-27a7 + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -173,6 +182,8 @@ paths: - Airports.Airport summary: Get entities from Airports operationId: Airports.Airport.ListAirport + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -269,6 +280,8 @@ paths: operationId: Airports.Airport.UpdateAirport consumes: - application/json + produces: + - application/json parameters: - in: path name: IcaoCode @@ -293,6 +306,8 @@ paths: - Airports.Airport summary: Delete entity from Airports operationId: Airports.Airport.DeleteAirport + produces: + - application/json parameters: - in: path name: IcaoCode @@ -352,6 +367,8 @@ paths: operationId: Airports.SetLocation consumes: - application/json + produces: + - application/json parameters: - in: path name: IcaoCode @@ -436,6 +453,10 @@ paths: - Airports.Person summary: Update the ref of navigation property EmergencyAuthority in Airports operationId: Airports.UpdateRefEmergencyAuthority + consumes: + - application/json + produces: + - application/json parameters: - in: path name: IcaoCode @@ -455,6 +476,8 @@ paths: - Airports.Person summary: Delete ref of navigation property EmergencyAuthority for Airports operationId: Airports.DeleteRefEmergencyAuthority + produces: + - application/json parameters: - in: path name: IcaoCode @@ -479,6 +502,8 @@ paths: - Airports.Person.Location summary: Get AddressInfo property value operationId: Airports.EmergencyAuthority.ListAddressInfo + produces: + - application/json parameters: - in: path name: IcaoCode @@ -521,6 +546,8 @@ paths: operationId: Airports.EmergencyAuthority.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: IcaoCode @@ -551,6 +578,8 @@ paths: operationId: Airports.EmergencyAuthority.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: IcaoCode @@ -581,6 +610,9 @@ paths: - Airports.Person.Location summary: Get the number of the resource operationId: Airports.EmergencyAuthority.AddressInfo.GetCount-2ffe + produces: + - text/plain + - application/json parameters: - in: path name: IcaoCode @@ -601,7 +633,7 @@ paths: tags: - Airports.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Airports.EmergencyAuthority.ListAddressInfo.AsEventLocation + operationId: Airports.EmergencyAuthority.ListAddressInfo.AsEventLocation-fbf9 produces: - application/json parameters: @@ -623,6 +655,9 @@ paths: get: summary: Get the number of the resource operationId: Airports.EmergencyAuthority.AddressInfo.GetCount.AsEventLocation-e708 + produces: + - text/plain + - application/json parameters: - in: path name: IcaoCode @@ -679,6 +714,8 @@ paths: operationId: Airports.EmergencyAuthority.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: IcaoCode @@ -702,7 +739,7 @@ paths: tags: - Airports.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Airports.EmergencyAuthority.GetHomeAddress.AsEventLocation + operationId: Airports.EmergencyAuthority.GetHomeAddress.AsEventLocation-0bb9 produces: - application/json parameters: @@ -725,9 +762,10 @@ paths: tags: - Airports.Person summary: Get Photo for the navigation property EmergencyAuthority from Airports - operationId: Airports.GetEmergencyAuthorityPhoto + operationId: Airports.GetEmergencyAuthorityPhoto-13fb produces: - application/octet-stream + - application/json parameters: - in: path name: IcaoCode @@ -739,17 +777,19 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' put: tags: - Airports.Person summary: Update Photo for the navigation property EmergencyAuthority in Airports - operationId: Airports.UpdateEmergencyAuthorityPhoto + operationId: Airports.UpdateEmergencyAuthorityPhoto-13fb consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: IcaoCode @@ -762,8 +802,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -773,7 +813,9 @@ paths: tags: - Airports.Person summary: Delete Photo for the navigation property EmergencyAuthority in Airports - operationId: Airports.DeleteEmergencyAuthorityPhoto + operationId: Airports.DeleteEmergencyAuthorityPhoto-13fb + produces: + - application/json parameters: - in: path name: IcaoCode @@ -797,6 +839,9 @@ paths: - Airports.Airport summary: Get the number of the resource operationId: Airports.GetCount-60cc + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -893,6 +938,8 @@ paths: operationId: Me.Person.UpdatePerson consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -919,6 +966,8 @@ paths: - Me.Location summary: Get AddressInfo property value operationId: Me.ListAddressInfo + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -961,6 +1010,8 @@ paths: operationId: Me.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -991,6 +1042,8 @@ paths: operationId: Me.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: header name: If-Match @@ -1021,6 +1074,9 @@ paths: - Me.Location summary: Get the number of the resource operationId: Me.AddressInfo.GetCount-38f2 + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -1041,7 +1097,7 @@ paths: tags: - Me.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.ListAddressInfo.AsEventLocation + operationId: Me.ListAddressInfo.AsEventLocation-b1a4 produces: - application/json responses: @@ -1062,6 +1118,9 @@ paths: get: summary: Get the number of the resource operationId: Me.AddressInfo.GetCount.AsEventLocation-5575 + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -1121,6 +1180,8 @@ paths: operationId: Me.UpdateBestFriend consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -1173,6 +1234,10 @@ paths: summary: Update the best friend. description: Update an instance of a best friend. operationId: Me.UpdateRefBestFriend + consumes: + - application/json + produces: + - application/json parameters: - $ref: '#/parameters/refPutBody' responses: @@ -1192,6 +1257,8 @@ paths: - Me.Person summary: Delete ref of navigation property BestFriend for Me operationId: Me.DeleteRefBestFriend + produces: + - application/json parameters: - in: header name: If-Match @@ -1216,6 +1283,8 @@ paths: - Me.Person.Location summary: Get AddressInfo property value operationId: Me.BestFriend.ListAddressInfo + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -1258,6 +1327,8 @@ paths: operationId: Me.BestFriend.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -1288,6 +1359,8 @@ paths: operationId: Me.BestFriend.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: header name: If-Match @@ -1318,6 +1391,9 @@ paths: - Me.Person.Location summary: Get the number of the resource operationId: Me.BestFriend.AddressInfo.GetCount-b695 + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -1338,7 +1414,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.BestFriend.ListAddressInfo.AsEventLocation + operationId: Me.BestFriend.ListAddressInfo.AsEventLocation-2154 produces: - application/json responses: @@ -1359,6 +1435,9 @@ paths: get: summary: Get the number of the resource operationId: Me.BestFriend.AddressInfo.GetCount.AsEventLocation-0105 + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -1415,6 +1494,8 @@ paths: operationId: Me.BestFriend.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -1438,7 +1519,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.BestFriend.GetHomeAddress.AsEventLocation + operationId: Me.BestFriend.GetHomeAddress.AsEventLocation-a28d produces: - application/json responses: @@ -1460,7 +1541,7 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: Me.GetBestFriend.AsEmployee + operationId: Me.GetBestFriend.AsEmployee-dcf6 produces: - application/json parameters: @@ -1495,7 +1576,7 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: Me.GetBestFriend.AsManager + operationId: Me.GetBestFriend.AsManager-09a9 produces: - application/json parameters: @@ -1530,15 +1611,16 @@ paths: tags: - Me.Person summary: Get Photo for the navigation property BestFriend from Me - operationId: Me.GetBestFriendPhoto + operationId: Me.GetBestFriendPhoto-8333 produces: - application/octet-stream + - application/json responses: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -1551,17 +1633,19 @@ paths: tags: - Me.Person summary: Update Photo for the navigation property BestFriend in Me - operationId: Me.UpdateBestFriendPhoto + operationId: Me.UpdateBestFriendPhoto-8333 consumes: - application/octet-stream + produces: + - application/json parameters: - in: body name: body description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -1577,7 +1661,9 @@ paths: tags: - Me.Person summary: Delete Photo for the navigation property BestFriend in Me - operationId: Me.DeleteBestFriendPhoto + operationId: Me.DeleteBestFriendPhoto-8333 + produces: + - application/json parameters: - in: header name: If-Match @@ -1602,6 +1688,8 @@ paths: summary: Get Friends from Me description: Friends of person operationId: Me.ListFriends + produces: + - application/json parameters: - in: header name: ConsistencyLevel @@ -1656,6 +1744,8 @@ paths: - Me.Person summary: Delete ref of navigation property Friends for Me operationId: Me.friends.DeleteRefPerson + produces: + - application/json parameters: - in: path name: UserName @@ -1686,6 +1776,8 @@ paths: - Me.Person.Location summary: Get AddressInfo property value operationId: Me.Friends.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -1734,6 +1826,8 @@ paths: operationId: Me.Friends.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -1770,6 +1864,8 @@ paths: operationId: Me.Friends.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -1806,6 +1902,9 @@ paths: - Me.Person.Location summary: Get the number of the resource operationId: Me.Friends.AddressInfo.GetCount-246e + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -1832,7 +1931,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.Friends.ListAddressInfo.AsEventLocation + operationId: Me.Friends.ListAddressInfo.AsEventLocation-f440 produces: - application/json parameters: @@ -1860,6 +1959,9 @@ paths: get: summary: Get the number of the resource operationId: Me.Friends.AddressInfo.GetCount.AsEventLocation-42c7 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -1928,6 +2030,8 @@ paths: operationId: Me.Friends.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -1957,7 +2061,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.Friends.GetHomeAddress.AsEventLocation + operationId: Me.Friends.GetHomeAddress.AsEventLocation-15cc produces: - application/json parameters: @@ -1986,7 +2090,7 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: Me.GetFriends.AsEmployee + operationId: Me.GetFriends.AsEmployee-3dc7 produces: - application/json parameters: @@ -2035,7 +2139,7 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: Me.GetFriends.AsManager + operationId: Me.GetFriends.AsManager-ddec produces: - application/json parameters: @@ -2084,9 +2188,10 @@ paths: tags: - Me.Person summary: Get Photo for the navigation property Friends from Me - operationId: Me.GetFriendsPhoto + operationId: Me.GetFriendsPhoto-287d produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -2098,8 +2203,8 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -2112,9 +2217,11 @@ paths: tags: - Me.Person summary: Update Photo for the navigation property Friends in Me - operationId: Me.UpdateFriendsPhoto + operationId: Me.UpdateFriendsPhoto-287d consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -2127,8 +2234,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -2144,7 +2251,9 @@ paths: tags: - Me.Person summary: Delete Photo for the navigation property Friends in Me - operationId: Me.DeleteFriendsPhoto + operationId: Me.DeleteFriendsPhoto-287d + produces: + - application/json parameters: - in: path name: UserName @@ -2174,6 +2283,9 @@ paths: - Me.Person summary: Get the number of the resource operationId: Me.Friends.GetCount-182b + produces: + - text/plain + - application/json parameters: - in: header name: ConsistencyLevel @@ -2204,6 +2316,8 @@ paths: summary: Get ref of Friends from Me description: Friends of person operationId: Me.ListRefFriends + produces: + - application/json parameters: - in: header name: ConsistencyLevel @@ -2241,6 +2355,10 @@ paths: - Me.Person summary: Create new navigation property ref to Friends for Me operationId: Me.CreateRefFriends + consumes: + - application/json + produces: + - application/json parameters: - $ref: '#/parameters/refPostBody' responses: @@ -2260,6 +2378,8 @@ paths: - Me.Person summary: Delete ref of navigation property Friends for Me operationId: Me.DeleteRefFriends + produces: + - application/json parameters: - in: header name: If-Match @@ -2288,7 +2408,9 @@ paths: tags: - Me.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: Me.ListFriends.AsEmployee + operationId: Me.ListFriends.AsEmployee-f4a5 + produces: + - application/json parameters: - in: header name: ConsistencyLevel @@ -2339,6 +2461,9 @@ paths: - Me.Person summary: Get the number of the resource operationId: Me.Friends.GetCount.AsEmployee-884b + produces: + - text/plain + - application/json parameters: - in: header name: ConsistencyLevel @@ -2367,7 +2492,9 @@ paths: tags: - Me.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: Me.ListFriends.AsManager + operationId: Me.ListFriends.AsManager-98ae + produces: + - application/json parameters: - in: header name: ConsistencyLevel @@ -2418,6 +2545,9 @@ paths: - Me.Person summary: Get the number of the resource operationId: Me.Friends.GetCount.AsManager-9376 + produces: + - text/plain + - application/json parameters: - in: header name: ConsistencyLevel @@ -2482,6 +2612,8 @@ paths: operationId: Me.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -2505,7 +2637,7 @@ paths: tags: - Me.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.GetHomeAddress.AsEventLocation + operationId: Me.GetHomeAddress.AsEventLocation-ba49 produces: - application/json responses: @@ -2527,7 +2659,7 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: Me.Person.GetPerson.AsEmployee + operationId: Me.Person.GetPerson.AsEmployee-bd18 produces: - application/json parameters: @@ -2563,6 +2695,8 @@ paths: - Me.Location summary: Get AddressInfo property value operationId: Me.AsEmployee.ListAddressInfo + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -2605,6 +2739,8 @@ paths: operationId: Me.AsEmployee.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -2635,6 +2771,8 @@ paths: operationId: Me.AsEmployee.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: header name: If-Match @@ -2665,15 +2803,10 @@ paths: - Me.Location summary: Get the number of the resource operationId: Me.AsEmployee.AddressInfo.GetCount-8488 + produces: + - text/plain + - application/json parameters: - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -2693,7 +2826,7 @@ paths: tags: - Me.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.ListAddressInfo.AsEventLocation + operationId: Me.ListAddressInfo.AsEventLocation-989f produces: - application/json responses: @@ -2714,15 +2847,10 @@ paths: get: summary: Get the number of the resource operationId: Me.AddressInfo.GetCount.AsEventLocation-9375 + produces: + - text/plain + - application/json parameters: - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -2781,6 +2909,8 @@ paths: operationId: Me.AsEmployee.UpdateBestFriend consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -2833,6 +2963,10 @@ paths: summary: Update the best friend. description: Update an instance of a best friend. operationId: Me.AsEmployee.UpdateRefBestFriend + consumes: + - application/json + produces: + - application/json parameters: - $ref: '#/parameters/refPutBody' responses: @@ -2852,6 +2986,8 @@ paths: - Me.Person summary: Delete ref of navigation property BestFriend for Me operationId: Me.AsEmployee.DeleteRefBestFriend + produces: + - application/json parameters: - in: header name: If-Match @@ -2876,6 +3012,8 @@ paths: - Me.Person.Location summary: Get AddressInfo property value operationId: Me.AsEmployee.BestFriend.ListAddressInfo + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -2918,6 +3056,8 @@ paths: operationId: Me.AsEmployee.BestFriend.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -2948,6 +3088,8 @@ paths: operationId: Me.AsEmployee.BestFriend.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: header name: If-Match @@ -2978,15 +3120,10 @@ paths: - Me.Person.Location summary: Get the number of the resource operationId: Me.AsEmployee.BestFriend.AddressInfo.GetCount-81de + produces: + - text/plain + - application/json parameters: - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -3006,7 +3143,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.BestFriend.ListAddressInfo.AsEventLocation + operationId: Me.BestFriend.ListAddressInfo.AsEventLocation-1d72 produces: - application/json responses: @@ -3027,15 +3164,10 @@ paths: get: summary: Get the number of the resource operationId: Me.BestFriend.AddressInfo.GetCount.AsEventLocation-842c + produces: + - text/plain + - application/json parameters: - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -3091,6 +3223,8 @@ paths: operationId: Me.AsEmployee.BestFriend.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -3114,7 +3248,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.BestFriend.GetHomeAddress.AsEventLocation + operationId: Me.BestFriend.GetHomeAddress.AsEventLocation-19b8 produces: - application/json responses: @@ -3136,7 +3270,7 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: Me.GetBestFriend.AsManager + operationId: Me.GetBestFriend.AsManager-c104 produces: - application/json parameters: @@ -3171,15 +3305,16 @@ paths: tags: - Me.Person summary: Get Photo for the navigation property BestFriend from Me - operationId: Me.GetBestFriendPhoto + operationId: Me.GetBestFriendPhoto-4dc7 produces: - application/octet-stream + - application/json responses: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -3192,17 +3327,19 @@ paths: tags: - Me.Person summary: Update Photo for the navigation property BestFriend in Me - operationId: Me.UpdateBestFriendPhoto + operationId: Me.UpdateBestFriendPhoto-4dc7 consumes: - application/octet-stream + produces: + - application/json parameters: - in: body name: body description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -3218,7 +3355,9 @@ paths: tags: - Me.Person summary: Delete Photo for the navigation property BestFriend in Me - operationId: Me.DeleteBestFriendPhoto + operationId: Me.DeleteBestFriendPhoto-4dc7 + produces: + - application/json parameters: - in: header name: If-Match @@ -3243,6 +3382,8 @@ paths: summary: Get Friends from Me description: Friends of person operationId: Me.AsEmployee.ListFriends + produces: + - application/json parameters: - in: header name: ConsistencyLevel @@ -3297,6 +3438,8 @@ paths: - Me.Person summary: Delete ref of navigation property Friends for Me operationId: Me.AsEmployee.friends.DeleteRefPerson + produces: + - application/json parameters: - in: path name: UserName @@ -3327,6 +3470,8 @@ paths: - Me.Person.Location summary: Get AddressInfo property value operationId: Me.AsEmployee.Friends.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -3375,6 +3520,8 @@ paths: operationId: Me.AsEmployee.Friends.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -3411,6 +3558,8 @@ paths: operationId: Me.AsEmployee.Friends.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -3447,6 +3596,9 @@ paths: - Me.Person.Location summary: Get the number of the resource operationId: Me.AsEmployee.Friends.AddressInfo.GetCount-660e + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -3454,14 +3606,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -3481,7 +3625,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.Friends.ListAddressInfo.AsEventLocation + operationId: Me.Friends.ListAddressInfo.AsEventLocation-7b1e produces: - application/json parameters: @@ -3509,6 +3653,9 @@ paths: get: summary: Get the number of the resource operationId: Me.Friends.AddressInfo.GetCount.AsEventLocation-feb8 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -3516,14 +3663,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -3585,6 +3724,8 @@ paths: operationId: Me.AsEmployee.Friends.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -3614,7 +3755,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.Friends.GetHomeAddress.AsEventLocation + operationId: Me.Friends.GetHomeAddress.AsEventLocation-600f produces: - application/json parameters: @@ -3643,7 +3784,7 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: Me.GetFriends.AsManager + operationId: Me.GetFriends.AsManager-aa0c produces: - application/json parameters: @@ -3692,9 +3833,10 @@ paths: tags: - Me.Person summary: Get Photo for the navigation property Friends from Me - operationId: Me.GetFriendsPhoto + operationId: Me.GetFriendsPhoto-6e41 produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -3706,8 +3848,8 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -3720,9 +3862,11 @@ paths: tags: - Me.Person summary: Update Photo for the navigation property Friends in Me - operationId: Me.UpdateFriendsPhoto + operationId: Me.UpdateFriendsPhoto-6e41 consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -3735,8 +3879,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -3752,7 +3896,9 @@ paths: tags: - Me.Person summary: Delete Photo for the navigation property Friends in Me - operationId: Me.DeleteFriendsPhoto + operationId: Me.DeleteFriendsPhoto-6e41 + produces: + - application/json parameters: - in: path name: UserName @@ -3782,6 +3928,9 @@ paths: - Me.Person summary: Get the number of the resource operationId: Me.AsEmployee.Friends.GetCount-0cb7 + produces: + - text/plain + - application/json parameters: - in: header name: ConsistencyLevel @@ -3812,6 +3961,8 @@ paths: summary: Get ref of Friends from Me description: Friends of person operationId: Me.AsEmployee.ListRefFriends + produces: + - application/json parameters: - in: header name: ConsistencyLevel @@ -3849,6 +4000,10 @@ paths: - Me.Person summary: Create new navigation property ref to Friends for Me operationId: Me.AsEmployee.CreateRefFriends + consumes: + - application/json + produces: + - application/json parameters: - $ref: '#/parameters/refPostBody' responses: @@ -3868,6 +4023,8 @@ paths: - Me.Person summary: Delete ref of navigation property Friends for Me operationId: Me.AsEmployee.DeleteRefFriends + produces: + - application/json parameters: - in: header name: If-Match @@ -3896,7 +4053,9 @@ paths: tags: - Me.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: Me.ListFriends.AsManager + operationId: Me.ListFriends.AsManager-f993 + produces: + - application/json parameters: - in: header name: ConsistencyLevel @@ -3947,7 +4106,10 @@ paths: - Me.Person summary: Get the number of the resource operationId: Me.Friends.GetCount.AsManager-85ff - parameters: + produces: + - text/plain + - application/json + parameters: - in: header name: ConsistencyLevel description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' @@ -4011,6 +4173,8 @@ paths: operationId: Me.AsEmployee.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -4034,7 +4198,7 @@ paths: tags: - Me.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.GetHomeAddress.AsEventLocation + operationId: Me.GetHomeAddress.AsEventLocation-6fc5 produces: - application/json responses: @@ -4057,6 +4221,8 @@ paths: - Me.Person summary: Get Peers from Me operationId: Me.AsEmployee.ListPeers + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -4100,6 +4266,8 @@ paths: - Me.Person summary: Delete ref of navigation property Peers for Me operationId: Me.AsEmployee.peers.DeleteRefPerson + produces: + - application/json parameters: - in: path name: UserName @@ -4130,6 +4298,8 @@ paths: - Me.Person.Location summary: Get AddressInfo property value operationId: Me.AsEmployee.Peers.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -4178,6 +4348,8 @@ paths: operationId: Me.AsEmployee.Peers.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -4214,6 +4386,8 @@ paths: operationId: Me.AsEmployee.Peers.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -4250,6 +4424,9 @@ paths: - Me.Person.Location summary: Get the number of the resource operationId: Me.AsEmployee.Peers.AddressInfo.GetCount-3e91 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -4257,14 +4434,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -4284,7 +4453,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.Peers.ListAddressInfo.AsEventLocation + operationId: Me.Peers.ListAddressInfo.AsEventLocation-1e59 produces: - application/json parameters: @@ -4312,6 +4481,9 @@ paths: get: summary: Get the number of the resource operationId: Me.Peers.AddressInfo.GetCount.AsEventLocation-be1d + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -4319,14 +4491,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -4388,6 +4552,8 @@ paths: operationId: Me.AsEmployee.Peers.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -4417,7 +4583,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.Peers.GetHomeAddress.AsEventLocation + operationId: Me.Peers.GetHomeAddress.AsEventLocation-dc11 produces: - application/json parameters: @@ -4446,9 +4612,10 @@ paths: tags: - Me.Person summary: Get Photo for the navigation property Peers from Me - operationId: Me.GetPeersPhoto + operationId: Me.GetPeersPhoto-4c48 produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -4460,8 +4627,8 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -4474,9 +4641,11 @@ paths: tags: - Me.Person summary: Update Photo for the navigation property Peers in Me - operationId: Me.UpdatePeersPhoto + operationId: Me.UpdatePeersPhoto-4c48 consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -4489,8 +4658,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -4506,7 +4675,9 @@ paths: tags: - Me.Person summary: Delete Photo for the navigation property Peers in Me - operationId: Me.DeletePeersPhoto + operationId: Me.DeletePeersPhoto-4c48 + produces: + - application/json parameters: - in: path name: UserName @@ -4536,6 +4707,9 @@ paths: - Me.Person summary: Get the number of the resource operationId: Me.AsEmployee.Peers.GetCount-9fc2 + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -4557,6 +4731,8 @@ paths: - Me.Person summary: Get ref of Peers from Me operationId: Me.AsEmployee.ListRefPeers + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -4586,6 +4762,10 @@ paths: - Me.Person summary: Create new navigation property ref to Peers for Me operationId: Me.AsEmployee.CreateRefPeers + consumes: + - application/json + produces: + - application/json parameters: - $ref: '#/parameters/refPostBody' responses: @@ -4605,6 +4785,8 @@ paths: - Me.Person summary: Delete ref of navigation property Peers for Me operationId: Me.AsEmployee.DeleteRefPeers + produces: + - application/json parameters: - in: header name: If-Match @@ -4638,6 +4820,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0 operationId: Me.AsEmployee.ListTrips + produces: + - application/json parameters: - in: header name: ConsistencyLevel @@ -4779,6 +4963,8 @@ paths: operationId: Me.AsEmployee.UpdateTrips consumes: - application/json + produces: + - application/json parameters: - in: path name: TripId @@ -4816,6 +5002,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0 operationId: Me.AsEmployee.DeleteTrips + produces: + - application/json parameters: - in: path name: TripId @@ -4891,8 +5079,8 @@ paths: '200': description: Success schema: - title: Collection of Person type: object + title: Collection of Person properties: value: type: array @@ -4917,6 +5105,8 @@ paths: - Me.Trips.PlanItem summary: Get PlanItems from Me operationId: Me.AsEmployee.Trips.ListPlanItems + produces: + - application/json parameters: - in: path name: TripId @@ -4972,6 +5162,8 @@ paths: - Me.Trips.PlanItem summary: Delete ref of navigation property PlanItems for Me operationId: Me.AsEmployee.Trips.planItems.DeleteRefPlanItem + produces: + - application/json parameters: - in: path name: TripId @@ -5014,6 +5206,9 @@ paths: - Me.Trips.PlanItem summary: Get the number of the resource operationId: Me.AsEmployee.Trips.PlanItems.GetCount-a822 + produces: + - text/plain + - application/json parameters: - in: path name: TripId @@ -5044,6 +5239,8 @@ paths: - Me.Trips.PlanItem summary: Get ref of PlanItems from Me operationId: Me.AsEmployee.Trips.ListRefPlanItems + produces: + - application/json parameters: - in: path name: TripId @@ -5082,6 +5279,10 @@ paths: - Me.Trips.PlanItem summary: Create new navigation property ref to PlanItems for Me operationId: Me.AsEmployee.Trips.CreateRefPlanItems + consumes: + - application/json + produces: + - application/json parameters: - in: path name: TripId @@ -5110,6 +5311,8 @@ paths: - Me.Trips.PlanItem summary: Delete ref of navigation property PlanItems for Me operationId: Me.AsEmployee.Trips.DeleteRefPlanItems + produces: + - application/json parameters: - in: path name: TripId @@ -5148,6 +5351,9 @@ paths: - Me.Trip summary: Get the number of the resource operationId: Me.AsEmployee.Trips.GetCount-5aa2 + produces: + - text/plain + - application/json parameters: - in: header name: ConsistencyLevel @@ -5177,6 +5383,8 @@ paths: - Me.Person.Functions summary: Invoke function GetFavoriteAirline operationId: Me.GetFavoriteAirline + produces: + - application/json responses: '200': $ref: '#/responses/GetFavoriteAirlineResponse' @@ -5196,6 +5404,8 @@ paths: - Me.Person.Functions summary: Invoke function GetFriendsTrips operationId: Me.GetFriendsTrips + produces: + - application/json parameters: - in: path name: userName @@ -5244,6 +5454,10 @@ paths: - Me.Person.Actions summary: Invoke action GetPeersForTrip operationId: Me.GetPeersForTrip + consumes: + - application/json + produces: + - application/json parameters: - $ref: '#/parameters/GetPeersForTripRequestBody' responses: @@ -5264,7 +5478,7 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: Me.Person.GetPerson.AsManager + operationId: Me.Person.GetPerson.AsManager-16dc produces: - application/json parameters: @@ -5300,6 +5514,8 @@ paths: - Me.Location summary: Get AddressInfo property value operationId: Me.AsManager.ListAddressInfo + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -5342,6 +5558,8 @@ paths: operationId: Me.AsManager.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -5372,6 +5590,8 @@ paths: operationId: Me.AsManager.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: header name: If-Match @@ -5402,15 +5622,10 @@ paths: - Me.Location summary: Get the number of the resource operationId: Me.AsManager.AddressInfo.GetCount-75da + produces: + - text/plain + - application/json parameters: - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -5430,7 +5645,7 @@ paths: tags: - Me.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.ListAddressInfo.AsEventLocation + operationId: Me.ListAddressInfo.AsEventLocation-55be produces: - application/json responses: @@ -5451,15 +5666,10 @@ paths: get: summary: Get the number of the resource operationId: Me.AddressInfo.GetCount.AsEventLocation-f67e + produces: + - text/plain + - application/json parameters: - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -5518,6 +5728,8 @@ paths: operationId: Me.AsManager.UpdateBestFriend consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -5570,6 +5782,10 @@ paths: summary: Update the best friend. description: Update an instance of a best friend. operationId: Me.AsManager.UpdateRefBestFriend + consumes: + - application/json + produces: + - application/json parameters: - $ref: '#/parameters/refPutBody' responses: @@ -5589,6 +5805,8 @@ paths: - Me.Person summary: Delete ref of navigation property BestFriend for Me operationId: Me.AsManager.DeleteRefBestFriend + produces: + - application/json parameters: - in: header name: If-Match @@ -5613,6 +5831,8 @@ paths: - Me.Person.Location summary: Get AddressInfo property value operationId: Me.AsManager.BestFriend.ListAddressInfo + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -5655,6 +5875,8 @@ paths: operationId: Me.AsManager.BestFriend.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -5685,6 +5907,8 @@ paths: operationId: Me.AsManager.BestFriend.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: header name: If-Match @@ -5715,15 +5939,10 @@ paths: - Me.Person.Location summary: Get the number of the resource operationId: Me.AsManager.BestFriend.AddressInfo.GetCount-6ea6 + produces: + - text/plain + - application/json parameters: - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -5743,7 +5962,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.BestFriend.ListAddressInfo.AsEventLocation + operationId: Me.BestFriend.ListAddressInfo.AsEventLocation-987a produces: - application/json responses: @@ -5764,15 +5983,10 @@ paths: get: summary: Get the number of the resource operationId: Me.BestFriend.AddressInfo.GetCount.AsEventLocation-692e + produces: + - text/plain + - application/json parameters: - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -5828,6 +6042,8 @@ paths: operationId: Me.AsManager.BestFriend.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -5851,7 +6067,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.BestFriend.GetHomeAddress.AsEventLocation + operationId: Me.BestFriend.GetHomeAddress.AsEventLocation-15c5 produces: - application/json responses: @@ -5873,7 +6089,7 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: Me.GetBestFriend.AsEmployee + operationId: Me.GetBestFriend.AsEmployee-7bbe produces: - application/json parameters: @@ -5908,15 +6124,16 @@ paths: tags: - Me.Person summary: Get Photo for the navigation property BestFriend from Me - operationId: Me.GetBestFriendPhoto + operationId: Me.GetBestFriendPhoto-bac8 produces: - application/octet-stream + - application/json responses: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -5929,17 +6146,19 @@ paths: tags: - Me.Person summary: Update Photo for the navigation property BestFriend in Me - operationId: Me.UpdateBestFriendPhoto + operationId: Me.UpdateBestFriendPhoto-bac8 consumes: - application/octet-stream + produces: + - application/json parameters: - in: body name: body description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -5955,7 +6174,9 @@ paths: tags: - Me.Person summary: Delete Photo for the navigation property BestFriend in Me - operationId: Me.DeleteBestFriendPhoto + operationId: Me.DeleteBestFriendPhoto-bac8 + produces: + - application/json parameters: - in: header name: If-Match @@ -5979,6 +6200,8 @@ paths: - Me.Person summary: Get DirectReports from Me operationId: Me.AsManager.ListDirectReports + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -6022,6 +6245,8 @@ paths: - Me.Person summary: Delete ref of navigation property DirectReports for Me operationId: Me.AsManager.directReports.DeleteRefPerson + produces: + - application/json parameters: - in: path name: UserName @@ -6052,6 +6277,8 @@ paths: - Me.Person.Location summary: Get AddressInfo property value operationId: Me.AsManager.DirectReports.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -6100,6 +6327,8 @@ paths: operationId: Me.AsManager.DirectReports.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -6136,6 +6365,8 @@ paths: operationId: Me.AsManager.DirectReports.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -6172,6 +6403,9 @@ paths: - Me.Person.Location summary: Get the number of the resource operationId: Me.AsManager.DirectReports.AddressInfo.GetCount-f650 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -6179,14 +6413,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -6206,7 +6432,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.DirectReports.ListAddressInfo.AsEventLocation + operationId: Me.DirectReports.ListAddressInfo.AsEventLocation-660b produces: - application/json parameters: @@ -6234,6 +6460,9 @@ paths: get: summary: Get the number of the resource operationId: Me.DirectReports.AddressInfo.GetCount.AsEventLocation-a070 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -6241,14 +6470,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -6310,6 +6531,8 @@ paths: operationId: Me.AsManager.DirectReports.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -6339,7 +6562,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.DirectReports.GetHomeAddress.AsEventLocation + operationId: Me.DirectReports.GetHomeAddress.AsEventLocation-5e6e produces: - application/json parameters: @@ -6368,9 +6591,10 @@ paths: tags: - Me.Person summary: Get Photo for the navigation property DirectReports from Me - operationId: Me.GetDirectReportsPhoto + operationId: Me.GetDirectReportsPhoto-e60c produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -6382,8 +6606,8 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -6396,9 +6620,11 @@ paths: tags: - Me.Person summary: Update Photo for the navigation property DirectReports in Me - operationId: Me.UpdateDirectReportsPhoto + operationId: Me.UpdateDirectReportsPhoto-e60c consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -6411,8 +6637,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -6428,7 +6654,9 @@ paths: tags: - Me.Person summary: Delete Photo for the navigation property DirectReports in Me - operationId: Me.DeleteDirectReportsPhoto + operationId: Me.DeleteDirectReportsPhoto-e60c + produces: + - application/json parameters: - in: path name: UserName @@ -6458,6 +6686,9 @@ paths: - Me.Person summary: Get the number of the resource operationId: Me.AsManager.DirectReports.GetCount-8b92 + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -6479,6 +6710,8 @@ paths: - Me.Person summary: Get ref of DirectReports from Me operationId: Me.AsManager.ListRefDirectReports + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -6508,6 +6741,10 @@ paths: - Me.Person summary: Create new navigation property ref to DirectReports for Me operationId: Me.AsManager.CreateRefDirectReports + consumes: + - application/json + produces: + - application/json parameters: - $ref: '#/parameters/refPostBody' responses: @@ -6527,6 +6764,8 @@ paths: - Me.Person summary: Delete ref of navigation property DirectReports for Me operationId: Me.AsManager.DeleteRefDirectReports + produces: + - application/json parameters: - in: header name: If-Match @@ -6557,6 +6796,8 @@ paths: summary: Get Friends from Me description: Friends of person operationId: Me.AsManager.ListFriends + produces: + - application/json parameters: - in: header name: ConsistencyLevel @@ -6611,6 +6852,8 @@ paths: - Me.Person summary: Delete ref of navigation property Friends for Me operationId: Me.AsManager.friends.DeleteRefPerson + produces: + - application/json parameters: - in: path name: UserName @@ -6641,6 +6884,8 @@ paths: - Me.Person.Location summary: Get AddressInfo property value operationId: Me.AsManager.Friends.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -6689,6 +6934,8 @@ paths: operationId: Me.AsManager.Friends.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -6725,6 +6972,8 @@ paths: operationId: Me.AsManager.Friends.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -6761,6 +7010,9 @@ paths: - Me.Person.Location summary: Get the number of the resource operationId: Me.AsManager.Friends.AddressInfo.GetCount-b7db + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -6787,7 +7039,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.Friends.ListAddressInfo.AsEventLocation + operationId: Me.Friends.ListAddressInfo.AsEventLocation-1ad9 produces: - application/json parameters: @@ -6815,6 +7067,9 @@ paths: get: summary: Get the number of the resource operationId: Me.Friends.AddressInfo.GetCount.AsEventLocation-4d69 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -6883,6 +7138,8 @@ paths: operationId: Me.AsManager.Friends.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -6912,7 +7169,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.Friends.GetHomeAddress.AsEventLocation + operationId: Me.Friends.GetHomeAddress.AsEventLocation-1e07 produces: - application/json parameters: @@ -6941,7 +7198,7 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: Me.GetFriends.AsEmployee + operationId: Me.GetFriends.AsEmployee-5b5f produces: - application/json parameters: @@ -6990,9 +7247,10 @@ paths: tags: - Me.Person summary: Get Photo for the navigation property Friends from Me - operationId: Me.GetFriendsPhoto + operationId: Me.GetFriendsPhoto-64bd produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -7004,8 +7262,8 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -7018,9 +7276,11 @@ paths: tags: - Me.Person summary: Update Photo for the navigation property Friends in Me - operationId: Me.UpdateFriendsPhoto + operationId: Me.UpdateFriendsPhoto-64bd consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -7033,8 +7293,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -7050,7 +7310,9 @@ paths: tags: - Me.Person summary: Delete Photo for the navigation property Friends in Me - operationId: Me.DeleteFriendsPhoto + operationId: Me.DeleteFriendsPhoto-64bd + produces: + - application/json parameters: - in: path name: UserName @@ -7080,6 +7342,9 @@ paths: - Me.Person summary: Get the number of the resource operationId: Me.AsManager.Friends.GetCount-60a7 + produces: + - text/plain + - application/json parameters: - in: header name: ConsistencyLevel @@ -7110,6 +7375,8 @@ paths: summary: Get ref of Friends from Me description: Friends of person operationId: Me.AsManager.ListRefFriends + produces: + - application/json parameters: - in: header name: ConsistencyLevel @@ -7147,6 +7414,10 @@ paths: - Me.Person summary: Create new navigation property ref to Friends for Me operationId: Me.AsManager.CreateRefFriends + consumes: + - application/json + produces: + - application/json parameters: - $ref: '#/parameters/refPostBody' responses: @@ -7166,6 +7437,8 @@ paths: - Me.Person summary: Delete ref of navigation property Friends for Me operationId: Me.AsManager.DeleteRefFriends + produces: + - application/json parameters: - in: header name: If-Match @@ -7194,7 +7467,9 @@ paths: tags: - Me.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: Me.ListFriends.AsEmployee + operationId: Me.ListFriends.AsEmployee-fe32 + produces: + - application/json parameters: - in: header name: ConsistencyLevel @@ -7245,6 +7520,9 @@ paths: - Me.Person summary: Get the number of the resource operationId: Me.Friends.GetCount.AsEmployee-6a35 + produces: + - text/plain + - application/json parameters: - in: header name: ConsistencyLevel @@ -7309,6 +7587,8 @@ paths: operationId: Me.AsManager.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -7332,7 +7612,7 @@ paths: tags: - Me.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.GetHomeAddress.AsEventLocation + operationId: Me.GetHomeAddress.AsEventLocation-5d95 produces: - application/json responses: @@ -7358,6 +7638,8 @@ paths: operationId: Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire consumes: - application/json + produces: + - application/json parameters: - in: body name: body @@ -7391,6 +7673,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0 operationId: Me.AsManager.ListTrips + produces: + - application/json parameters: - in: header name: ConsistencyLevel @@ -7532,7 +7816,9 @@ paths: operationId: Me.AsManager.UpdateTrips consumes: - application/json - parameters: + produces: + - application/json + parameters: - in: path name: TripId description: The unique identifier of Trip @@ -7569,6 +7855,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0 operationId: Me.AsManager.DeleteTrips + produces: + - application/json parameters: - in: path name: TripId @@ -7644,8 +7932,8 @@ paths: '200': description: Success schema: - title: Collection of Person type: object + title: Collection of Person properties: value: type: array @@ -7670,6 +7958,8 @@ paths: - Me.Trips.PlanItem summary: Get PlanItems from Me operationId: Me.AsManager.Trips.ListPlanItems + produces: + - application/json parameters: - in: path name: TripId @@ -7725,6 +8015,8 @@ paths: - Me.Trips.PlanItem summary: Delete ref of navigation property PlanItems for Me operationId: Me.AsManager.Trips.planItems.DeleteRefPlanItem + produces: + - application/json parameters: - in: path name: TripId @@ -7767,6 +8059,9 @@ paths: - Me.Trips.PlanItem summary: Get the number of the resource operationId: Me.AsManager.Trips.PlanItems.GetCount-5ad2 + produces: + - text/plain + - application/json parameters: - in: path name: TripId @@ -7797,6 +8092,8 @@ paths: - Me.Trips.PlanItem summary: Get ref of PlanItems from Me operationId: Me.AsManager.Trips.ListRefPlanItems + produces: + - application/json parameters: - in: path name: TripId @@ -7835,6 +8132,10 @@ paths: - Me.Trips.PlanItem summary: Create new navigation property ref to PlanItems for Me operationId: Me.AsManager.Trips.CreateRefPlanItems + consumes: + - application/json + produces: + - application/json parameters: - in: path name: TripId @@ -7863,6 +8164,8 @@ paths: - Me.Trips.PlanItem summary: Delete ref of navigation property PlanItems for Me operationId: Me.AsManager.Trips.DeleteRefPlanItems + produces: + - application/json parameters: - in: path name: TripId @@ -7901,6 +8204,9 @@ paths: - Me.Trip summary: Get the number of the resource operationId: Me.AsManager.Trips.GetCount-f3f4 + produces: + - text/plain + - application/json parameters: - in: header name: ConsistencyLevel @@ -7931,6 +8237,10 @@ paths: summary: Invoke action ShareTrip description: Details of the shared trip. operationId: Me.ShareTrip + consumes: + - application/json + produces: + - application/json parameters: - $ref: '#/parameters/ShareTripRequestBody' responses: @@ -7952,6 +8262,8 @@ paths: - Me.Person.Functions summary: Invoke function UpdatePersonLastName operationId: Me.UpdatePersonLastName + produces: + - application/json parameters: - in: path name: lastName @@ -7976,15 +8288,16 @@ paths: tags: - Me.Person summary: Get Photo for Person from Me - operationId: Me.Person.GetPhoto + operationId: Me.Person.GetPhoto-ab7e produces: - application/octet-stream + - application/json responses: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -7997,17 +8310,19 @@ paths: tags: - Me.Person summary: Update Photo for Person in Me - operationId: Me.Person.UpdatePhoto + operationId: Me.Person.UpdatePhoto-ab7e consumes: - application/octet-stream + produces: + - application/json parameters: - in: body name: body description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -8023,7 +8338,9 @@ paths: tags: - Me.Person summary: Delete Photo for Person in Me - operationId: Me.Person.DeletePhoto + operationId: Me.Person.DeletePhoto-ab7e + produces: + - application/json parameters: - in: header name: If-Match @@ -8051,6 +8368,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0 operationId: Me.ListTrips + produces: + - application/json parameters: - in: header name: ConsistencyLevel @@ -8192,6 +8511,8 @@ paths: operationId: Me.UpdateTrips consumes: - application/json + produces: + - application/json parameters: - in: path name: TripId @@ -8229,6 +8550,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0 operationId: Me.DeleteTrips + produces: + - application/json parameters: - in: path name: TripId @@ -8304,8 +8627,8 @@ paths: '200': description: Success schema: - title: Collection of Person type: object + title: Collection of Person properties: value: type: array @@ -8330,6 +8653,8 @@ paths: - Me.Trips.PlanItem summary: Get PlanItems from Me operationId: Me.Trips.ListPlanItems + produces: + - application/json parameters: - in: path name: TripId @@ -8385,6 +8710,8 @@ paths: - Me.Trips.PlanItem summary: Delete ref of navigation property PlanItems for Me operationId: Me.Trips.planItems.DeleteRefPlanItem + produces: + - application/json parameters: - in: path name: TripId @@ -8427,6 +8754,9 @@ paths: - Me.Trips.PlanItem summary: Get the number of the resource operationId: Me.Trips.PlanItems.GetCount-c250 + produces: + - text/plain + - application/json parameters: - in: path name: TripId @@ -8457,6 +8787,8 @@ paths: - Me.Trips.PlanItem summary: Get ref of PlanItems from Me operationId: Me.Trips.ListRefPlanItems + produces: + - application/json parameters: - in: path name: TripId @@ -8495,6 +8827,10 @@ paths: - Me.Trips.PlanItem summary: Create new navigation property ref to PlanItems for Me operationId: Me.Trips.CreateRefPlanItems + consumes: + - application/json + produces: + - application/json parameters: - in: path name: TripId @@ -8523,6 +8859,8 @@ paths: - Me.Trips.PlanItem summary: Delete ref of navigation property PlanItems for Me operationId: Me.Trips.DeleteRefPlanItems + produces: + - application/json parameters: - in: path name: TripId @@ -8561,6 +8899,9 @@ paths: - Me.Trip summary: Get the number of the resource operationId: Me.Trips.GetCount-7b69 + produces: + - text/plain + - application/json parameters: - in: header name: ConsistencyLevel @@ -8590,6 +8931,8 @@ paths: - NewComePeople.Person summary: Get entities from NewComePeople operationId: NewComePeople.Person.ListPerson + produces: + - application/json parameters: - $ref: '#/parameters/top' - $ref: '#/parameters/skip' @@ -8686,6 +9029,8 @@ paths: operationId: NewComePeople.Person.UpdatePerson consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -8710,6 +9055,8 @@ paths: - NewComePeople.Person summary: Delete entity from NewComePeople operationId: NewComePeople.Person.DeletePerson + produces: + - application/json parameters: - in: path name: UserName @@ -8734,6 +9081,8 @@ paths: - NewComePeople.Location summary: Get AddressInfo property value operationId: NewComePeople.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -8776,6 +9125,8 @@ paths: operationId: NewComePeople.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -8806,6 +9157,8 @@ paths: operationId: NewComePeople.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -8836,6 +9189,9 @@ paths: - NewComePeople.Location summary: Get the number of the resource operationId: NewComePeople.AddressInfo.GetCount-29d6 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -8843,14 +9199,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -8864,7 +9212,7 @@ paths: tags: - NewComePeople.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: NewComePeople.ListAddressInfo.AsEventLocation + operationId: NewComePeople.ListAddressInfo.AsEventLocation-d026 produces: - application/json parameters: @@ -8886,6 +9234,9 @@ paths: get: summary: Get the number of the resource operationId: NewComePeople.AddressInfo.GetCount.AsEventLocation-29d3 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -8893,14 +9244,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -8959,6 +9302,8 @@ paths: operationId: NewComePeople.UpdateBestFriend consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -9021,6 +9366,10 @@ paths: summary: Update the best friend. description: Update an instance of a best friend. operationId: NewComePeople.UpdateRefBestFriend + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -9046,6 +9395,8 @@ paths: - NewComePeople.Person summary: Delete ref of navigation property BestFriend for NewComePeople operationId: NewComePeople.DeleteRefBestFriend + produces: + - application/json parameters: - in: path name: UserName @@ -9076,6 +9427,8 @@ paths: - NewComePeople.Person.Location summary: Get AddressInfo property value operationId: NewComePeople.BestFriend.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -9124,6 +9477,8 @@ paths: operationId: NewComePeople.BestFriend.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -9160,6 +9515,8 @@ paths: operationId: NewComePeople.BestFriend.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -9196,6 +9553,9 @@ paths: - NewComePeople.Person.Location summary: Get the number of the resource operationId: NewComePeople.BestFriend.AddressInfo.GetCount-513c + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -9203,14 +9563,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -9230,7 +9582,7 @@ paths: tags: - NewComePeople.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: NewComePeople.BestFriend.ListAddressInfo.AsEventLocation + operationId: NewComePeople.BestFriend.ListAddressInfo.AsEventLocation-73fa produces: - application/json parameters: @@ -9258,6 +9610,9 @@ paths: get: summary: Get the number of the resource operationId: NewComePeople.BestFriend.AddressInfo.GetCount.AsEventLocation-ba36 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -9265,14 +9620,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -9334,6 +9681,8 @@ paths: operationId: NewComePeople.BestFriend.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -9363,7 +9712,7 @@ paths: tags: - NewComePeople.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: NewComePeople.BestFriend.GetHomeAddress.AsEventLocation + operationId: NewComePeople.BestFriend.GetHomeAddress.AsEventLocation-8ebe produces: - application/json parameters: @@ -9392,7 +9741,7 @@ paths: tags: - NewComePeople.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: NewComePeople.GetBestFriend.AsEmployee + operationId: NewComePeople.GetBestFriend.AsEmployee-7b75 produces: - application/json parameters: @@ -9433,7 +9782,7 @@ paths: tags: - NewComePeople.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: NewComePeople.GetBestFriend.AsManager + operationId: NewComePeople.GetBestFriend.AsManager-61ce produces: - application/json parameters: @@ -9474,9 +9823,10 @@ paths: tags: - NewComePeople.Person summary: Get Photo for the navigation property BestFriend from NewComePeople - operationId: NewComePeople.GetBestFriendPhoto + operationId: NewComePeople.GetBestFriendPhoto-4f67 produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -9488,8 +9838,8 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -9502,9 +9852,11 @@ paths: tags: - NewComePeople.Person summary: Update Photo for the navigation property BestFriend in NewComePeople - operationId: NewComePeople.UpdateBestFriendPhoto + operationId: NewComePeople.UpdateBestFriendPhoto-4f67 consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -9517,8 +9869,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -9534,7 +9886,9 @@ paths: tags: - NewComePeople.Person summary: Delete Photo for the navigation property BestFriend in NewComePeople - operationId: NewComePeople.DeleteBestFriendPhoto + operationId: NewComePeople.DeleteBestFriendPhoto-4f67 + produces: + - application/json parameters: - in: path name: UserName @@ -9565,6 +9919,8 @@ paths: summary: Get Friends from NewComePeople description: Friends of person operationId: NewComePeople.ListFriends + produces: + - application/json parameters: - in: path name: UserName @@ -9616,6 +9972,8 @@ paths: - NewComePeople.Person summary: Delete ref of navigation property Friends for NewComePeople operationId: NewComePeople.friends.DeleteRefPerson + produces: + - application/json parameters: - in: path name: UserName @@ -9646,6 +10004,8 @@ paths: - NewComePeople.Person.Location summary: Get AddressInfo property value operationId: NewComePeople.Friends.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -9694,6 +10054,8 @@ paths: operationId: NewComePeople.Friends.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -9730,6 +10092,8 @@ paths: operationId: NewComePeople.Friends.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -9766,6 +10130,9 @@ paths: - NewComePeople.Person.Location summary: Get the number of the resource operationId: NewComePeople.Friends.AddressInfo.GetCount-9334 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -9779,14 +10146,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -9800,7 +10159,7 @@ paths: tags: - NewComePeople.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: NewComePeople.Friends.ListAddressInfo.AsEventLocation + operationId: NewComePeople.Friends.ListAddressInfo.AsEventLocation-eeb4 produces: - application/json parameters: @@ -9828,6 +10187,9 @@ paths: get: summary: Get the number of the resource operationId: NewComePeople.Friends.AddressInfo.GetCount.AsEventLocation-be92 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -9841,14 +10203,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -9904,6 +10258,8 @@ paths: operationId: NewComePeople.Friends.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -9933,7 +10289,7 @@ paths: tags: - NewComePeople.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: NewComePeople.Friends.GetHomeAddress.AsEventLocation + operationId: NewComePeople.Friends.GetHomeAddress.AsEventLocation-f4d9 produces: - application/json parameters: @@ -9962,7 +10318,7 @@ paths: tags: - NewComePeople.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: NewComePeople.GetFriends.AsEmployee + operationId: NewComePeople.GetFriends.AsEmployee-2969 produces: - application/json parameters: @@ -10011,7 +10367,7 @@ paths: tags: - NewComePeople.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: NewComePeople.GetFriends.AsManager + operationId: NewComePeople.GetFriends.AsManager-708f produces: - application/json parameters: @@ -10060,9 +10416,10 @@ paths: tags: - NewComePeople.Person summary: Get Photo for the navigation property Friends from NewComePeople - operationId: NewComePeople.GetFriendsPhoto + operationId: NewComePeople.GetFriendsPhoto-e9fc produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -10080,17 +10437,19 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' put: tags: - NewComePeople.Person summary: Update Photo for the navigation property Friends in NewComePeople - operationId: NewComePeople.UpdateFriendsPhoto + operationId: NewComePeople.UpdateFriendsPhoto-e9fc consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -10109,8 +10468,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -10120,7 +10479,9 @@ paths: tags: - NewComePeople.Person summary: Delete Photo for the navigation property Friends in NewComePeople - operationId: NewComePeople.DeleteFriendsPhoto + operationId: NewComePeople.DeleteFriendsPhoto-e9fc + produces: + - application/json parameters: - in: path name: UserName @@ -10150,6 +10511,9 @@ paths: - NewComePeople.Person summary: Get the number of the resource operationId: NewComePeople.Friends.GetCount-2ec1 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -10180,6 +10544,8 @@ paths: summary: Get ref of Friends from NewComePeople description: Friends of person operationId: NewComePeople.ListRefFriends + produces: + - application/json parameters: - in: path name: UserName @@ -10217,6 +10583,10 @@ paths: - NewComePeople.Person summary: Create new navigation property ref to Friends for NewComePeople operationId: NewComePeople.CreateRefFriends + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -10236,6 +10606,8 @@ paths: - NewComePeople.Person summary: Delete ref of navigation property Friends for NewComePeople operationId: NewComePeople.DeleteRefFriends + produces: + - application/json parameters: - in: path name: UserName @@ -10264,7 +10636,9 @@ paths: tags: - NewComePeople.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: NewComePeople.ListFriends.AsEmployee + operationId: NewComePeople.ListFriends.AsEmployee-2969 + produces: + - application/json parameters: - in: path name: UserName @@ -10315,6 +10689,9 @@ paths: - NewComePeople.Person summary: Get the number of the resource operationId: NewComePeople.Friends.GetCount.AsEmployee-4069 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -10343,7 +10720,9 @@ paths: tags: - NewComePeople.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: NewComePeople.ListFriends.AsManager + operationId: NewComePeople.ListFriends.AsManager-708f + produces: + - application/json parameters: - in: path name: UserName @@ -10394,6 +10773,9 @@ paths: - NewComePeople.Person summary: Get the number of the resource operationId: NewComePeople.Friends.GetCount.AsManager-d1d3 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -10458,6 +10840,8 @@ paths: operationId: NewComePeople.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -10481,7 +10865,7 @@ paths: tags: - NewComePeople.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: NewComePeople.GetHomeAddress.AsEventLocation + operationId: NewComePeople.GetHomeAddress.AsEventLocation-3fd9 produces: - application/json parameters: @@ -10505,6 +10889,8 @@ paths: - NewComePeople.Person.Functions summary: Invoke function GetFavoriteAirline operationId: NewComePeople.Person.GetFavoriteAirline + produces: + - application/json parameters: - in: path name: UserName @@ -10525,6 +10911,8 @@ paths: - NewComePeople.Person.Functions summary: Invoke function GetFriendsTrips operationId: NewComePeople.Person.GetFriendsTrips + produces: + - application/json parameters: - in: path name: UserName @@ -10579,6 +10967,10 @@ paths: - NewComePeople.Person.Actions summary: Invoke action GetPeersForTrip operationId: NewComePeople.Person.GetPeersForTrip + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -10603,6 +10995,8 @@ paths: operationId: NewComePeople.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -10633,6 +11027,10 @@ paths: summary: Invoke action ShareTrip description: Details of the shared trip. operationId: NewComePeople.Person.ShareTrip + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -10654,6 +11052,8 @@ paths: - NewComePeople.Person.Functions summary: Invoke function UpdatePersonLastName operationId: NewComePeople.Person.UpdatePersonLastName + produces: + - application/json parameters: - in: path name: UserName @@ -10678,9 +11078,10 @@ paths: tags: - NewComePeople.Person summary: Get Photo for Person from NewComePeople - operationId: NewComePeople.Person.GetPhoto + operationId: NewComePeople.Person.GetPhoto-74be produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -10692,17 +11093,19 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' put: tags: - NewComePeople.Person summary: Update Photo for Person in NewComePeople - operationId: NewComePeople.Person.UpdatePhoto + operationId: NewComePeople.Person.UpdatePhoto-74be consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -10715,8 +11118,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -10726,7 +11129,9 @@ paths: tags: - NewComePeople.Person summary: Delete Photo for Person in NewComePeople - operationId: NewComePeople.Person.DeletePhoto + operationId: NewComePeople.Person.DeletePhoto-74be + produces: + - application/json parameters: - in: path name: UserName @@ -10754,6 +11159,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0 operationId: NewComePeople.ListTrips + produces: + - application/json parameters: - in: path name: UserName @@ -10892,6 +11299,8 @@ paths: operationId: NewComePeople.UpdateTrips consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -10929,6 +11338,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0 operationId: NewComePeople.DeleteTrips + produces: + - application/json parameters: - in: path name: UserName @@ -11007,8 +11418,8 @@ paths: '200': description: Success schema: - title: Collection of Person type: object + title: Collection of Person properties: value: type: array @@ -11024,6 +11435,8 @@ paths: - NewComePeople.Trips.PlanItem summary: Get PlanItems from NewComePeople operationId: NewComePeople.Trips.ListPlanItems + produces: + - application/json parameters: - in: path name: UserName @@ -11076,6 +11489,8 @@ paths: - NewComePeople.Trips.PlanItem summary: Delete ref of navigation property PlanItems for NewComePeople operationId: NewComePeople.Trips.planItems.DeleteRefPlanItem + produces: + - application/json parameters: - in: path name: UserName @@ -11118,6 +11533,9 @@ paths: - NewComePeople.Trips.PlanItem summary: Get the number of the resource operationId: NewComePeople.Trips.PlanItems.GetCount-841f + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -11148,6 +11566,8 @@ paths: - NewComePeople.Trips.PlanItem summary: Get ref of PlanItems from NewComePeople operationId: NewComePeople.Trips.ListRefPlanItems + produces: + - application/json parameters: - in: path name: UserName @@ -11186,6 +11606,10 @@ paths: - NewComePeople.Trips.PlanItem summary: Create new navigation property ref to PlanItems for NewComePeople operationId: NewComePeople.Trips.CreateRefPlanItems + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -11214,6 +11638,8 @@ paths: - NewComePeople.Trips.PlanItem summary: Delete ref of navigation property PlanItems for NewComePeople operationId: NewComePeople.Trips.DeleteRefPlanItems + produces: + - application/json parameters: - in: path name: UserName @@ -11252,6 +11678,9 @@ paths: - NewComePeople.Trip summary: Get the number of the resource operationId: NewComePeople.Trips.GetCount-d155 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -11281,6 +11710,9 @@ paths: - NewComePeople.Person summary: Get the number of the resource operationId: NewComePeople.GetCount-55d5 + produces: + - text/plain + - application/json parameters: - $ref: '#/parameters/search' - $ref: '#/parameters/filter' @@ -11296,6 +11728,8 @@ paths: - People.Person summary: Get entities from People operationId: People.Person.ListPerson + produces: + - application/json parameters: - in: header name: ConsistencyLevel @@ -11426,6 +11860,8 @@ paths: operationId: People.Person.UpdatePerson consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -11456,7 +11892,9 @@ paths: - People.Person summary: Delete entity from People operationId: People.Person.DeletePerson - parameters: + produces: + - application/json + parameters: - in: path name: UserName description: The unique identifier of Person @@ -11486,6 +11924,8 @@ paths: - People.Location summary: Get AddressInfo property value operationId: People.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -11534,6 +11974,8 @@ paths: operationId: People.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -11570,6 +12012,8 @@ paths: operationId: People.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -11606,6 +12050,9 @@ paths: - People.Location summary: Get the number of the resource operationId: People.AddressInfo.GetCount-ed5a + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -11632,7 +12079,7 @@ paths: tags: - People.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.ListAddressInfo.AsEventLocation + operationId: People.ListAddressInfo.AsEventLocation-e5b8 produces: - application/json parameters: @@ -11660,6 +12107,9 @@ paths: get: summary: Get the number of the resource operationId: People.AddressInfo.GetCount.AsEventLocation-4abd + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -11731,6 +12181,8 @@ paths: operationId: People.UpdateBestFriend consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -11796,6 +12248,10 @@ paths: summary: Update the best friend. description: Update an instance of a best friend. operationId: People.UpdateRefBestFriend + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -11821,6 +12277,8 @@ paths: - People.Person summary: Delete ref of navigation property BestFriend for People operationId: People.DeleteRefBestFriend + produces: + - application/json parameters: - in: path name: UserName @@ -11851,6 +12309,8 @@ paths: - People.Person.Location summary: Get AddressInfo property value operationId: People.BestFriend.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -11899,6 +12359,8 @@ paths: operationId: People.BestFriend.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -11935,6 +12397,8 @@ paths: operationId: People.BestFriend.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -11971,6 +12435,9 @@ paths: - People.Person.Location summary: Get the number of the resource operationId: People.BestFriend.AddressInfo.GetCount-16df + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -11997,7 +12464,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.BestFriend.ListAddressInfo.AsEventLocation + operationId: People.BestFriend.ListAddressInfo.AsEventLocation-c332 produces: - application/json parameters: @@ -12025,6 +12492,9 @@ paths: get: summary: Get the number of the resource operationId: People.BestFriend.AddressInfo.GetCount.AsEventLocation-fe88 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -12093,6 +12563,8 @@ paths: operationId: People.BestFriend.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -12122,7 +12594,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.BestFriend.GetHomeAddress.AsEventLocation + operationId: People.BestFriend.GetHomeAddress.AsEventLocation-53c4 produces: - application/json parameters: @@ -12151,7 +12623,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: People.GetBestFriend.AsEmployee + operationId: People.GetBestFriend.AsEmployee-7188 produces: - application/json parameters: @@ -12196,7 +12668,7 @@ paths: externalDocs: description: Find more info here url: https://learn.microsoft.com/graph/api/person-get-friend-manager?view=graph-rest-1.0 - operationId: People.GetBestFriend.AsManager + operationId: People.GetBestFriend.AsManager-5f08 produces: - application/json parameters: @@ -12237,9 +12709,10 @@ paths: tags: - People.Person summary: Get Photo for the navigation property BestFriend from People - operationId: People.GetBestFriendPhoto + operationId: People.GetBestFriendPhoto-c3ac produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -12251,8 +12724,8 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -12265,9 +12738,11 @@ paths: tags: - People.Person summary: Update Photo for the navigation property BestFriend in People - operationId: People.UpdateBestFriendPhoto + operationId: People.UpdateBestFriendPhoto-c3ac consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -12280,8 +12755,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -12297,7 +12772,9 @@ paths: tags: - People.Person summary: Delete Photo for the navigation property BestFriend in People - operationId: People.DeleteBestFriendPhoto + operationId: People.DeleteBestFriendPhoto-c3ac + produces: + - application/json parameters: - in: path name: UserName @@ -12331,6 +12808,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/person-list-friends?view=graph-rest-1.0 operationId: People.ListFriends + produces: + - application/json parameters: - in: path name: UserName @@ -12395,6 +12874,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/person-delete-friend?view=graph-rest-1.0 operationId: People.friends.DeleteRefPerson + produces: + - application/json parameters: - in: path name: UserName @@ -12431,6 +12912,8 @@ paths: - People.Person.Location summary: Get AddressInfo property value operationId: People.Friends.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -12485,6 +12968,8 @@ paths: operationId: People.Friends.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -12527,6 +13012,8 @@ paths: operationId: People.Friends.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -12569,6 +13056,9 @@ paths: - People.Person.Location summary: Get the number of the resource operationId: People.Friends.AddressInfo.GetCount-bdaf + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -12601,7 +13091,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.Friends.ListAddressInfo.AsEventLocation + operationId: People.Friends.ListAddressInfo.AsEventLocation-a5f6 produces: - application/json parameters: @@ -12635,6 +13125,9 @@ paths: get: summary: Get the number of the resource operationId: People.Friends.AddressInfo.GetCount.AsEventLocation-2795 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -12715,6 +13208,8 @@ paths: operationId: People.Friends.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -12750,7 +13245,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.Friends.GetHomeAddress.AsEventLocation + operationId: People.Friends.GetHomeAddress.AsEventLocation-da5e produces: - application/json parameters: @@ -12785,7 +13280,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: People.GetFriends.AsEmployee + operationId: People.GetFriends.AsEmployee-11bf produces: - application/json parameters: @@ -12840,7 +13335,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: People.GetFriends.AsManager + operationId: People.GetFriends.AsManager-1cfb produces: - application/json parameters: @@ -12895,9 +13390,10 @@ paths: tags: - People.Person summary: Get Photo for the navigation property Friends from People - operationId: People.GetFriendsPhoto + operationId: People.GetFriendsPhoto-12fc produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -12915,8 +13411,8 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -12929,9 +13425,11 @@ paths: tags: - People.Person summary: Update Photo for the navigation property Friends in People - operationId: People.UpdateFriendsPhoto + operationId: People.UpdateFriendsPhoto-12fc consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -12950,8 +13448,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -12967,7 +13465,9 @@ paths: tags: - People.Person summary: Delete Photo for the navigation property Friends in People - operationId: People.DeleteFriendsPhoto + operationId: People.DeleteFriendsPhoto-12fc + produces: + - application/json parameters: - in: path name: UserName @@ -13003,6 +13503,9 @@ paths: - People.Person summary: Get the number of the resource operationId: People.Friends.GetCount-92b9 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -13042,6 +13545,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/person-list-friends?view=graph-rest-1.0 operationId: People.ListRefFriends + produces: + - application/json parameters: - in: path name: UserName @@ -13089,6 +13594,10 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/person-post-friend?view=graph-rest-1.0 operationId: People.CreateRefFriends + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -13118,6 +13627,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/person-delete-friend?view=graph-rest-1.0 operationId: People.DeleteRefFriends + produces: + - application/json parameters: - in: path name: UserName @@ -13152,7 +13663,9 @@ paths: tags: - People.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: People.ListFriends.AsEmployee + operationId: People.ListFriends.AsEmployee-11bf + produces: + - application/json parameters: - in: path name: UserName @@ -13209,6 +13722,9 @@ paths: - People.Person summary: Get the number of the resource operationId: People.Friends.GetCount.AsEmployee-a96c + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -13243,7 +13759,9 @@ paths: tags: - People.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: People.ListFriends.AsManager + operationId: People.ListFriends.AsManager-1cfb + produces: + - application/json parameters: - in: path name: UserName @@ -13300,6 +13818,9 @@ paths: - People.Person summary: Get the number of the resource operationId: People.Friends.GetCount.AsManager-26b3 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -13377,6 +13898,8 @@ paths: operationId: People.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -13406,7 +13929,7 @@ paths: tags: - People.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.GetHomeAddress.AsEventLocation + operationId: People.GetHomeAddress.AsEventLocation-d0cf produces: - application/json parameters: @@ -13435,7 +13958,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: People.Person.GetPerson.AsEmployee + operationId: People.Person.GetPerson.AsEmployee-317b produces: - application/json parameters: @@ -13485,6 +14008,8 @@ paths: - People.Location summary: Get AddressInfo property value operationId: People.AsEmployee.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -13533,6 +14058,8 @@ paths: operationId: People.AsEmployee.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -13569,6 +14096,8 @@ paths: operationId: People.AsEmployee.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -13605,6 +14134,9 @@ paths: - People.Location summary: Get the number of the resource operationId: People.AsEmployee.AddressInfo.GetCount-3d43 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -13612,14 +14144,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -13639,7 +14163,7 @@ paths: tags: - People.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.ListAddressInfo.AsEventLocation + operationId: People.ListAddressInfo.AsEventLocation-1342 produces: - application/json parameters: @@ -13667,6 +14191,9 @@ paths: get: summary: Get the number of the resource operationId: People.AddressInfo.GetCount.AsEventLocation-ac7d + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -13674,14 +14201,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -13746,6 +14265,8 @@ paths: operationId: People.AsEmployee.UpdateBestFriend consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -13811,6 +14332,10 @@ paths: summary: Update the best friend. description: Update an instance of a best friend. operationId: People.AsEmployee.UpdateRefBestFriend + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -13836,6 +14361,8 @@ paths: - People.Person summary: Delete ref of navigation property BestFriend for People operationId: People.AsEmployee.DeleteRefBestFriend + produces: + - application/json parameters: - in: path name: UserName @@ -13866,6 +14393,8 @@ paths: - People.Person.Location summary: Get AddressInfo property value operationId: People.AsEmployee.BestFriend.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -13914,6 +14443,8 @@ paths: operationId: People.AsEmployee.BestFriend.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -13950,6 +14481,8 @@ paths: operationId: People.AsEmployee.BestFriend.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -13986,6 +14519,9 @@ paths: - People.Person.Location summary: Get the number of the resource operationId: People.AsEmployee.BestFriend.AddressInfo.GetCount-cb8a + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -13993,14 +14529,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -14020,7 +14548,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.BestFriend.ListAddressInfo.AsEventLocation + operationId: People.BestFriend.ListAddressInfo.AsEventLocation-7cd9 produces: - application/json parameters: @@ -14048,6 +14576,9 @@ paths: get: summary: Get the number of the resource operationId: People.BestFriend.AddressInfo.GetCount.AsEventLocation-0343 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -14055,14 +14586,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -14124,6 +14647,8 @@ paths: operationId: People.AsEmployee.BestFriend.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -14153,7 +14678,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.BestFriend.GetHomeAddress.AsEventLocation + operationId: People.BestFriend.GetHomeAddress.AsEventLocation-7db9 produces: - application/json parameters: @@ -14182,7 +14707,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: People.GetBestFriend.AsManager + operationId: People.GetBestFriend.AsManager-7b70 produces: - application/json parameters: @@ -14223,9 +14748,10 @@ paths: tags: - People.Person summary: Get Photo for the navigation property BestFriend from People - operationId: People.GetBestFriendPhoto + operationId: People.GetBestFriendPhoto-a839 produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -14237,8 +14763,8 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -14251,9 +14777,11 @@ paths: tags: - People.Person summary: Update Photo for the navigation property BestFriend in People - operationId: People.UpdateBestFriendPhoto + operationId: People.UpdateBestFriendPhoto-a839 consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -14266,8 +14794,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -14283,7 +14811,9 @@ paths: tags: - People.Person summary: Delete Photo for the navigation property BestFriend in People - operationId: People.DeleteBestFriendPhoto + operationId: People.DeleteBestFriendPhoto-a839 + produces: + - application/json parameters: - in: path name: UserName @@ -14314,6 +14844,8 @@ paths: summary: Get Friends from People description: Friends of person operationId: People.AsEmployee.ListFriends + produces: + - application/json parameters: - in: path name: UserName @@ -14374,6 +14906,8 @@ paths: - People.Person summary: Delete ref of navigation property Friends for People operationId: People.AsEmployee.friends.DeleteRefPerson + produces: + - application/json parameters: - in: path name: UserName @@ -14410,6 +14944,8 @@ paths: - People.Person.Location summary: Get AddressInfo property value operationId: People.AsEmployee.Friends.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -14464,6 +15000,8 @@ paths: operationId: People.AsEmployee.Friends.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -14506,6 +15044,8 @@ paths: operationId: People.AsEmployee.Friends.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -14548,6 +15088,9 @@ paths: - People.Person.Location summary: Get the number of the resource operationId: People.AsEmployee.Friends.AddressInfo.GetCount-1e8b + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -14561,14 +15104,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -14588,7 +15123,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.Friends.ListAddressInfo.AsEventLocation + operationId: People.Friends.ListAddressInfo.AsEventLocation-d49e produces: - application/json parameters: @@ -14622,6 +15157,9 @@ paths: get: summary: Get the number of the resource operationId: People.Friends.AddressInfo.GetCount.AsEventLocation-1f2b + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -14635,14 +15173,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -14710,6 +15240,8 @@ paths: operationId: People.AsEmployee.Friends.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -14745,7 +15277,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.Friends.GetHomeAddress.AsEventLocation + operationId: People.Friends.GetHomeAddress.AsEventLocation-d77d produces: - application/json parameters: @@ -14780,7 +15312,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: People.GetFriends.AsManager + operationId: People.GetFriends.AsManager-3e3c produces: - application/json parameters: @@ -14835,9 +15367,10 @@ paths: tags: - People.Person summary: Get Photo for the navigation property Friends from People - operationId: People.GetFriendsPhoto + operationId: People.GetFriendsPhoto-1a66 produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -14855,8 +15388,8 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -14869,9 +15402,11 @@ paths: tags: - People.Person summary: Update Photo for the navigation property Friends in People - operationId: People.UpdateFriendsPhoto + operationId: People.UpdateFriendsPhoto-1a66 consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -14890,8 +15425,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -14907,7 +15442,9 @@ paths: tags: - People.Person summary: Delete Photo for the navigation property Friends in People - operationId: People.DeleteFriendsPhoto + operationId: People.DeleteFriendsPhoto-1a66 + produces: + - application/json parameters: - in: path name: UserName @@ -14943,6 +15480,9 @@ paths: - People.Person summary: Get the number of the resource operationId: People.AsEmployee.Friends.GetCount-4db4 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -14979,6 +15519,8 @@ paths: summary: Get ref of Friends from People description: Friends of person operationId: People.AsEmployee.ListRefFriends + produces: + - application/json parameters: - in: path name: UserName @@ -15022,6 +15564,10 @@ paths: - People.Person summary: Create new navigation property ref to Friends for People operationId: People.AsEmployee.CreateRefFriends + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -15047,6 +15593,8 @@ paths: - People.Person summary: Delete ref of navigation property Friends for People operationId: People.AsEmployee.DeleteRefFriends + produces: + - application/json parameters: - in: path name: UserName @@ -15081,7 +15629,9 @@ paths: tags: - People.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: People.ListFriends.AsManager + operationId: People.ListFriends.AsManager-3e3c + produces: + - application/json parameters: - in: path name: UserName @@ -15138,6 +15688,9 @@ paths: - People.Person summary: Get the number of the resource operationId: People.Friends.GetCount.AsManager-b145 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -15214,6 +15767,8 @@ paths: operationId: People.AsEmployee.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -15243,7 +15798,7 @@ paths: tags: - People.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.GetHomeAddress.AsEventLocation + operationId: People.GetHomeAddress.AsEventLocation-90e5 produces: - application/json parameters: @@ -15273,6 +15828,8 @@ paths: - People.Person summary: Get Peers from People operationId: People.AsEmployee.ListPeers + produces: + - application/json parameters: - in: path name: UserName @@ -15322,6 +15879,8 @@ paths: - People.Person summary: Delete ref of navigation property Peers for People operationId: People.AsEmployee.peers.DeleteRefPerson + produces: + - application/json parameters: - in: path name: UserName @@ -15358,6 +15917,8 @@ paths: - People.Person.Location summary: Get AddressInfo property value operationId: People.AsEmployee.Peers.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -15412,6 +15973,8 @@ paths: operationId: People.AsEmployee.Peers.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -15454,6 +16017,8 @@ paths: operationId: People.AsEmployee.Peers.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -15496,6 +16061,9 @@ paths: - People.Person.Location summary: Get the number of the resource operationId: People.AsEmployee.Peers.AddressInfo.GetCount-755d + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -15509,14 +16077,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -15536,7 +16096,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.Peers.ListAddressInfo.AsEventLocation + operationId: People.Peers.ListAddressInfo.AsEventLocation-b918 produces: - application/json parameters: @@ -15570,6 +16130,9 @@ paths: get: summary: Get the number of the resource operationId: People.Peers.AddressInfo.GetCount.AsEventLocation-ef5e + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -15583,14 +16146,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -15658,6 +16213,8 @@ paths: operationId: People.AsEmployee.Peers.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -15693,7 +16250,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.Peers.GetHomeAddress.AsEventLocation + operationId: People.Peers.GetHomeAddress.AsEventLocation-311b produces: - application/json parameters: @@ -15728,9 +16285,10 @@ paths: tags: - People.Person summary: Get Photo for the navigation property Peers from People - operationId: People.GetPeersPhoto + operationId: People.GetPeersPhoto-ecda produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -15748,8 +16306,8 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -15762,9 +16320,11 @@ paths: tags: - People.Person summary: Update Photo for the navigation property Peers in People - operationId: People.UpdatePeersPhoto + operationId: People.UpdatePeersPhoto-ecda consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -15783,8 +16343,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -15800,7 +16360,9 @@ paths: tags: - People.Person summary: Delete Photo for the navigation property Peers in People - operationId: People.DeletePeersPhoto + operationId: People.DeletePeersPhoto-ecda + produces: + - application/json parameters: - in: path name: UserName @@ -15836,6 +16398,9 @@ paths: - People.Person summary: Get the number of the resource operationId: People.AsEmployee.Peers.GetCount-44d2 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -15863,6 +16428,8 @@ paths: - People.Person summary: Get ref of Peers from People operationId: People.AsEmployee.ListRefPeers + produces: + - application/json parameters: - in: path name: UserName @@ -15898,6 +16465,10 @@ paths: - People.Person summary: Create new navigation property ref to Peers for People operationId: People.AsEmployee.CreateRefPeers + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -15923,6 +16494,8 @@ paths: - People.Person summary: Delete ref of navigation property Peers for People operationId: People.AsEmployee.DeleteRefPeers + produces: + - application/json parameters: - in: path name: UserName @@ -15962,6 +16535,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0 operationId: People.AsEmployee.ListTrips + produces: + - application/json parameters: - in: path name: UserName @@ -16121,6 +16696,8 @@ paths: operationId: People.AsEmployee.UpdateTrips consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -16164,6 +16741,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0 operationId: People.AsEmployee.DeleteTrips + produces: + - application/json parameters: - in: path name: UserName @@ -16251,8 +16830,8 @@ paths: '200': description: Success schema: - title: Collection of Person type: object + title: Collection of Person properties: value: type: array @@ -16277,6 +16856,8 @@ paths: - People.Trips.PlanItem summary: Get PlanItems from People operationId: People.AsEmployee.Trips.ListPlanItems + produces: + - application/json parameters: - in: path name: UserName @@ -16338,6 +16919,8 @@ paths: - People.Trips.PlanItem summary: Delete ref of navigation property PlanItems for People operationId: People.AsEmployee.Trips.planItems.DeleteRefPlanItem + produces: + - application/json parameters: - in: path name: UserName @@ -16386,6 +16969,9 @@ paths: - People.Trips.PlanItem summary: Get the number of the resource operationId: People.AsEmployee.Trips.PlanItems.GetCount-7df9 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -16422,6 +17008,8 @@ paths: - People.Trips.PlanItem summary: Get ref of PlanItems from People operationId: People.AsEmployee.Trips.ListRefPlanItems + produces: + - application/json parameters: - in: path name: UserName @@ -16466,6 +17054,10 @@ paths: - People.Trips.PlanItem summary: Create new navigation property ref to PlanItems for People operationId: People.AsEmployee.Trips.CreateRefPlanItems + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -16500,6 +17092,8 @@ paths: - People.Trips.PlanItem summary: Delete ref of navigation property PlanItems for People operationId: People.AsEmployee.Trips.DeleteRefPlanItems + produces: + - application/json parameters: - in: path name: UserName @@ -16544,6 +17138,9 @@ paths: - People.Trip summary: Get the number of the resource operationId: People.AsEmployee.Trips.GetCount-c760 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -16579,6 +17176,8 @@ paths: - People.Person.Functions summary: Invoke function GetFavoriteAirline operationId: People.Person.GetFavoriteAirline + produces: + - application/json parameters: - in: path name: UserName @@ -16605,6 +17204,8 @@ paths: - People.Person.Functions summary: Invoke function GetFriendsTrips operationId: People.Person.GetFriendsTrips + produces: + - application/json parameters: - in: path name: UserName @@ -16659,6 +17260,10 @@ paths: - People.Person.Actions summary: Invoke action GetPeersForTrip operationId: People.Person.GetPeersForTrip + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -16685,7 +17290,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: People.Person.GetPerson.AsManager + operationId: People.Person.GetPerson.AsManager-d051 produces: - application/json parameters: @@ -16735,6 +17340,8 @@ paths: - People.Location summary: Get AddressInfo property value operationId: People.AsManager.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -16783,6 +17390,8 @@ paths: operationId: People.AsManager.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -16819,6 +17428,8 @@ paths: operationId: People.AsManager.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -16855,6 +17466,9 @@ paths: - People.Location summary: Get the number of the resource operationId: People.AsManager.AddressInfo.GetCount-f84e + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -16862,14 +17476,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -16889,7 +17495,7 @@ paths: tags: - People.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.ListAddressInfo.AsEventLocation + operationId: People.ListAddressInfo.AsEventLocation-7526 produces: - application/json parameters: @@ -16917,6 +17523,9 @@ paths: get: summary: Get the number of the resource operationId: People.AddressInfo.GetCount.AsEventLocation-3722 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -16924,14 +17533,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -16996,6 +17597,8 @@ paths: operationId: People.AsManager.UpdateBestFriend consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -17061,6 +17664,10 @@ paths: summary: Update the best friend. description: Update an instance of a best friend. operationId: People.AsManager.UpdateRefBestFriend + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -17086,6 +17693,8 @@ paths: - People.Person summary: Delete ref of navigation property BestFriend for People operationId: People.AsManager.DeleteRefBestFriend + produces: + - application/json parameters: - in: path name: UserName @@ -17116,6 +17725,8 @@ paths: - People.Person.Location summary: Get AddressInfo property value operationId: People.AsManager.BestFriend.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -17164,6 +17775,8 @@ paths: operationId: People.AsManager.BestFriend.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -17200,6 +17813,8 @@ paths: operationId: People.AsManager.BestFriend.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -17236,6 +17851,9 @@ paths: - People.Person.Location summary: Get the number of the resource operationId: People.AsManager.BestFriend.AddressInfo.GetCount-5a39 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -17243,14 +17861,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -17270,7 +17880,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.BestFriend.ListAddressInfo.AsEventLocation + operationId: People.BestFriend.ListAddressInfo.AsEventLocation-897f produces: - application/json parameters: @@ -17298,6 +17908,9 @@ paths: get: summary: Get the number of the resource operationId: People.BestFriend.AddressInfo.GetCount.AsEventLocation-5af3 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -17305,14 +17918,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -17374,6 +17979,8 @@ paths: operationId: People.AsManager.BestFriend.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -17403,7 +18010,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.BestFriend.GetHomeAddress.AsEventLocation + operationId: People.BestFriend.GetHomeAddress.AsEventLocation-545d produces: - application/json parameters: @@ -17432,7 +18039,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: People.GetBestFriend.AsEmployee + operationId: People.GetBestFriend.AsEmployee-0445 produces: - application/json parameters: @@ -17473,9 +18080,10 @@ paths: tags: - People.Person summary: Get Photo for the navigation property BestFriend from People - operationId: People.GetBestFriendPhoto + operationId: People.GetBestFriendPhoto-f05d produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -17487,8 +18095,8 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -17501,9 +18109,11 @@ paths: tags: - People.Person summary: Update Photo for the navigation property BestFriend in People - operationId: People.UpdateBestFriendPhoto + operationId: People.UpdateBestFriendPhoto-f05d consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -17516,8 +18126,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -17533,7 +18143,9 @@ paths: tags: - People.Person summary: Delete Photo for the navigation property BestFriend in People - operationId: People.DeleteBestFriendPhoto + operationId: People.DeleteBestFriendPhoto-f05d + produces: + - application/json parameters: - in: path name: UserName @@ -17563,6 +18175,8 @@ paths: - People.Person summary: Get DirectReports from People operationId: People.AsManager.ListDirectReports + produces: + - application/json parameters: - in: path name: UserName @@ -17612,6 +18226,8 @@ paths: - People.Person summary: Delete ref of navigation property DirectReports for People operationId: People.AsManager.directReports.DeleteRefPerson + produces: + - application/json parameters: - in: path name: UserName @@ -17648,6 +18264,8 @@ paths: - People.Person.Location summary: Get AddressInfo property value operationId: People.AsManager.DirectReports.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -17702,6 +18320,8 @@ paths: operationId: People.AsManager.DirectReports.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -17744,6 +18364,8 @@ paths: operationId: People.AsManager.DirectReports.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -17786,6 +18408,9 @@ paths: - People.Person.Location summary: Get the number of the resource operationId: People.AsManager.DirectReports.AddressInfo.GetCount-f46e + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -17799,14 +18424,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -17826,7 +18443,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.DirectReports.ListAddressInfo.AsEventLocation + operationId: People.DirectReports.ListAddressInfo.AsEventLocation-1252 produces: - application/json parameters: @@ -17860,6 +18477,9 @@ paths: get: summary: Get the number of the resource operationId: People.DirectReports.AddressInfo.GetCount.AsEventLocation-5d49 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -17873,14 +18493,6 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - type: string - x-examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/parameters/search' - $ref: '#/parameters/filter' responses: @@ -17948,6 +18560,8 @@ paths: operationId: People.AsManager.DirectReports.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -17983,7 +18597,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.DirectReports.GetHomeAddress.AsEventLocation + operationId: People.DirectReports.GetHomeAddress.AsEventLocation-cf8d produces: - application/json parameters: @@ -18018,9 +18632,10 @@ paths: tags: - People.Person summary: Get Photo for the navigation property DirectReports from People - operationId: People.GetDirectReportsPhoto + operationId: People.GetDirectReportsPhoto-7149 produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -18038,8 +18653,8 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -18052,9 +18667,11 @@ paths: tags: - People.Person summary: Update Photo for the navigation property DirectReports in People - operationId: People.UpdateDirectReportsPhoto + operationId: People.UpdateDirectReportsPhoto-7149 consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -18073,8 +18690,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -18090,7 +18707,9 @@ paths: tags: - People.Person summary: Delete Photo for the navigation property DirectReports in People - operationId: People.DeleteDirectReportsPhoto + operationId: People.DeleteDirectReportsPhoto-7149 + produces: + - application/json parameters: - in: path name: UserName @@ -18126,6 +18745,9 @@ paths: - People.Person summary: Get the number of the resource operationId: People.AsManager.DirectReports.GetCount-0ec4 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -18153,6 +18775,8 @@ paths: - People.Person summary: Get ref of DirectReports from People operationId: People.AsManager.ListRefDirectReports + produces: + - application/json parameters: - in: path name: UserName @@ -18188,6 +18812,10 @@ paths: - People.Person summary: Create new navigation property ref to DirectReports for People operationId: People.AsManager.CreateRefDirectReports + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -18213,6 +18841,8 @@ paths: - People.Person summary: Delete ref of navigation property DirectReports for People operationId: People.AsManager.DeleteRefDirectReports + produces: + - application/json parameters: - in: path name: UserName @@ -18249,6 +18879,8 @@ paths: summary: Get Friends from People description: Friends of person operationId: People.AsManager.ListFriends + produces: + - application/json parameters: - in: path name: UserName @@ -18309,6 +18941,8 @@ paths: - People.Person summary: Delete ref of navigation property Friends for People operationId: People.AsManager.friends.DeleteRefPerson + produces: + - application/json parameters: - in: path name: UserName @@ -18345,6 +18979,8 @@ paths: - People.Person.Location summary: Get AddressInfo property value operationId: People.AsManager.Friends.ListAddressInfo + produces: + - application/json parameters: - in: path name: UserName @@ -18399,6 +19035,8 @@ paths: operationId: People.AsManager.Friends.UpdateAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -18441,6 +19079,8 @@ paths: operationId: People.AsManager.Friends.SetAddressInfo consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -18483,6 +19123,9 @@ paths: - People.Person.Location summary: Get the number of the resource operationId: People.AsManager.Friends.AddressInfo.GetCount-f486 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -18515,7 +19158,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.Friends.ListAddressInfo.AsEventLocation + operationId: People.Friends.ListAddressInfo.AsEventLocation-f8c9 produces: - application/json parameters: @@ -18549,6 +19192,9 @@ paths: get: summary: Get the number of the resource operationId: People.Friends.AddressInfo.GetCount.AsEventLocation-4480 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -18629,6 +19275,8 @@ paths: operationId: People.AsManager.Friends.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -18664,7 +19312,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.Friends.GetHomeAddress.AsEventLocation + operationId: People.Friends.GetHomeAddress.AsEventLocation-eb71 produces: - application/json parameters: @@ -18699,7 +19347,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: People.GetFriends.AsEmployee + operationId: People.GetFriends.AsEmployee-161e produces: - application/json parameters: @@ -18754,9 +19402,10 @@ paths: tags: - People.Person summary: Get Photo for the navigation property Friends from People - operationId: People.GetFriendsPhoto + operationId: People.GetFriendsPhoto-b97d produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -18774,8 +19423,8 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -18788,9 +19437,11 @@ paths: tags: - People.Person summary: Update Photo for the navigation property Friends in People - operationId: People.UpdateFriendsPhoto + operationId: People.UpdateFriendsPhoto-b97d consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -18809,8 +19460,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -18826,7 +19477,9 @@ paths: tags: - People.Person summary: Delete Photo for the navigation property Friends in People - operationId: People.DeleteFriendsPhoto + operationId: People.DeleteFriendsPhoto-b97d + produces: + - application/json parameters: - in: path name: UserName @@ -18862,6 +19515,9 @@ paths: - People.Person summary: Get the number of the resource operationId: People.AsManager.Friends.GetCount-1c0c + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -18898,6 +19554,8 @@ paths: summary: Get ref of Friends from People description: Friends of person operationId: People.AsManager.ListRefFriends + produces: + - application/json parameters: - in: path name: UserName @@ -18941,6 +19599,10 @@ paths: - People.Person summary: Create new navigation property ref to Friends for People operationId: People.AsManager.CreateRefFriends + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -18966,6 +19628,8 @@ paths: - People.Person summary: Delete ref of navigation property Friends for People operationId: People.AsManager.DeleteRefFriends + produces: + - application/json parameters: - in: path name: UserName @@ -19000,7 +19664,9 @@ paths: tags: - People.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: People.ListFriends.AsEmployee + operationId: People.ListFriends.AsEmployee-161e + produces: + - application/json parameters: - in: path name: UserName @@ -19057,6 +19723,9 @@ paths: - People.Person summary: Get the number of the resource operationId: People.Friends.GetCount.AsEmployee-f325 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -19133,6 +19802,8 @@ paths: operationId: People.AsManager.UpdateHomeAddress consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -19162,7 +19833,7 @@ paths: tags: - People.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.GetHomeAddress.AsEventLocation + operationId: People.GetHomeAddress.AsEventLocation-e3dc produces: - application/json parameters: @@ -19195,6 +19866,8 @@ paths: operationId: People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -19234,6 +19907,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0 operationId: People.AsManager.ListTrips + produces: + - application/json parameters: - in: path name: UserName @@ -19393,6 +20068,8 @@ paths: operationId: People.AsManager.UpdateTrips consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -19436,6 +20113,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0 operationId: People.AsManager.DeleteTrips + produces: + - application/json parameters: - in: path name: UserName @@ -19523,8 +20202,8 @@ paths: '200': description: Success schema: - title: Collection of Person type: object + title: Collection of Person properties: value: type: array @@ -19549,6 +20228,8 @@ paths: - People.Trips.PlanItem summary: Get PlanItems from People operationId: People.AsManager.Trips.ListPlanItems + produces: + - application/json parameters: - in: path name: UserName @@ -19610,6 +20291,8 @@ paths: - People.Trips.PlanItem summary: Delete ref of navigation property PlanItems for People operationId: People.AsManager.Trips.planItems.DeleteRefPlanItem + produces: + - application/json parameters: - in: path name: UserName @@ -19658,6 +20341,9 @@ paths: - People.Trips.PlanItem summary: Get the number of the resource operationId: People.AsManager.Trips.PlanItems.GetCount-fa08 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -19694,6 +20380,8 @@ paths: - People.Trips.PlanItem summary: Get ref of PlanItems from People operationId: People.AsManager.Trips.ListRefPlanItems + produces: + - application/json parameters: - in: path name: UserName @@ -19738,6 +20426,10 @@ paths: - People.Trips.PlanItem summary: Create new navigation property ref to PlanItems for People operationId: People.AsManager.Trips.CreateRefPlanItems + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -19772,6 +20464,8 @@ paths: - People.Trips.PlanItem summary: Delete ref of navigation property PlanItems for People operationId: People.AsManager.Trips.DeleteRefPlanItems + produces: + - application/json parameters: - in: path name: UserName @@ -19816,6 +20510,9 @@ paths: - People.Trip summary: Get the number of the resource operationId: People.AsManager.Trips.GetCount-1f8c + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -19852,6 +20549,10 @@ paths: summary: Invoke action ShareTrip description: Details of the shared trip. operationId: People.Person.ShareTrip + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -19879,6 +20580,8 @@ paths: - People.Person.Functions summary: Invoke function UpdatePersonLastName operationId: People.Person.UpdatePersonLastName + produces: + - application/json parameters: - in: path name: UserName @@ -19913,9 +20616,10 @@ paths: externalDocs: description: Find more info here url: https://learn.microsoft.com/graph/api/person-get-photo?view=graph-rest-1.0 - operationId: People.Person.GetPhoto + operationId: People.Person.GetPhoto-883f produces: - application/octet-stream + - application/json parameters: - in: path name: UserName @@ -19927,8 +20631,8 @@ paths: '200': description: Retrieved media content schema: - format: binary type: string + format: binary default: $ref: '#/responses/error' deprecated: true @@ -19945,9 +20649,11 @@ paths: externalDocs: description: Find more info here url: https://learn.microsoft.com/graph/api/person-update-photo?view=graph-rest-1.0 - operationId: People.Person.UpdatePhoto + operationId: People.Person.UpdatePhoto-883f consumes: - application/octet-stream + produces: + - application/json parameters: - in: path name: UserName @@ -19960,8 +20666,8 @@ paths: description: New media content. required: true schema: - format: binary type: string + format: binary responses: '204': description: Success @@ -19981,7 +20687,9 @@ paths: externalDocs: description: Find more info here url: https://learn.microsoft.com/graph/api/person-delete-photo?view=graph-rest-1.0 - operationId: People.Person.DeletePhoto + operationId: People.Person.DeletePhoto-883f + produces: + - application/json parameters: - in: path name: UserName @@ -20015,6 +20723,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0 operationId: People.ListTrips + produces: + - application/json parameters: - in: path name: UserName @@ -20174,6 +20884,8 @@ paths: operationId: People.UpdateTrips consumes: - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -20217,6 +20929,8 @@ paths: description: Find more info here url: https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0 operationId: People.DeleteTrips + produces: + - application/json parameters: - in: path name: UserName @@ -20304,8 +21018,8 @@ paths: '200': description: Success schema: - title: Collection of Person type: object + title: Collection of Person properties: value: type: array @@ -20330,6 +21044,8 @@ paths: - People.Trips.PlanItem summary: Get PlanItems from People operationId: People.Trips.ListPlanItems + produces: + - application/json parameters: - in: path name: UserName @@ -20391,6 +21107,8 @@ paths: - People.Trips.PlanItem summary: Delete ref of navigation property PlanItems for People operationId: People.Trips.planItems.DeleteRefPlanItem + produces: + - application/json parameters: - in: path name: UserName @@ -20439,6 +21157,9 @@ paths: - People.Trips.PlanItem summary: Get the number of the resource operationId: People.Trips.PlanItems.GetCount-9a27 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -20475,6 +21196,8 @@ paths: - People.Trips.PlanItem summary: Get ref of PlanItems from People operationId: People.Trips.ListRefPlanItems + produces: + - application/json parameters: - in: path name: UserName @@ -20519,6 +21242,10 @@ paths: - People.Trips.PlanItem summary: Create new navigation property ref to PlanItems for People operationId: People.Trips.CreateRefPlanItems + consumes: + - application/json + produces: + - application/json parameters: - in: path name: UserName @@ -20553,6 +21280,8 @@ paths: - People.Trips.PlanItem summary: Delete ref of navigation property PlanItems for People operationId: People.Trips.DeleteRefPlanItems + produces: + - application/json parameters: - in: path name: UserName @@ -20597,6 +21326,9 @@ paths: - People.Trip summary: Get the number of the resource operationId: People.Trips.GetCount-e877 + produces: + - text/plain + - application/json parameters: - in: path name: UserName @@ -20632,6 +21364,9 @@ paths: - People.Person summary: Get the number of the resource operationId: People.GetCount-dd8d + produces: + - text/plain + - application/json parameters: - in: header name: ConsistencyLevel @@ -20660,7 +21395,9 @@ paths: tags: - People.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: People.Person.ListPerson.AsEmployee + operationId: People.Person.ListPerson.AsEmployee-013a + produces: + - application/json parameters: - in: header name: ConsistencyLevel @@ -20711,6 +21448,9 @@ paths: - People.Person summary: Get the number of the resource operationId: People.Person.Person.GetCount.AsEmployee-ef29 + produces: + - text/plain + - application/json parameters: - in: header name: ConsistencyLevel @@ -20739,7 +21479,9 @@ paths: tags: - People.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: People.Person.ListPerson.AsManager + operationId: People.Person.ListPerson.AsManager-3e14 + produces: + - application/json parameters: - in: header name: ConsistencyLevel @@ -20790,6 +21532,9 @@ paths: - People.Person summary: Get the number of the resource operationId: People.Person.Person.GetCount.AsManager-2d48 + produces: + - text/plain + - application/json parameters: - in: header name: ConsistencyLevel @@ -20820,6 +21565,8 @@ paths: summary: Invoke actionImport ResetDataSource description: Resets the data source to default values. operationId: ActionImport.ResetDataSource + produces: + - application/json responses: '204': description: Success @@ -20828,9 +21575,222 @@ paths: x-ms-docs-operation-type: actionImport x-description: Provides operations to call the ResetDataSource method. definitions: + Edm.Geography: + $ref: '#/definitions/Edm.Geometry' + Edm.GeographyPoint: + $ref: '#/definitions/Edm.GeometryPoint' + Edm.GeographyLineString: + $ref: '#/definitions/Edm.GeometryLineString' + Edm.GeographyPolygon: + $ref: '#/definitions/Edm.GeometryPolygon' + Edm.GeographyMultiPoint: + $ref: '#/definitions/Edm.GeometryMultiPoint' + Edm.GeographyMultiLineString: + $ref: '#/definitions/Edm.GeometryMultiLineString' + Edm.GeographyMultiPolygon: + $ref: '#/definitions/Edm.GeometryMultiPolygon' + Edm.GeographyCollection: + $ref: '#/definitions/Edm.GeometryCollection' + Edm.Geometry: + type: object + allOf: + - $ref: '#/definitions/Edm.GeometryPoint' + Edm.GeometryPoint: + type: object + required: + - type + - coordinates + properties: + type: + type: string + default: Point + enum: + - Point + coordinates: + $ref: '#/definitions/GeoJSON.position' + Edm.GeometryLineString: + type: object + required: + - type + - coordinates + properties: + type: + enum: + - LineString + coordinates: + type: array + minItems: 2 + items: + $ref: '#/definitions/GeoJSON.position' + Edm.GeometryPolygon: + type: object + required: + - type + - coordinates + properties: + type: + enum: + - Polygon + coordinates: + type: array + minItems: 4 + items: + type: array + items: + $ref: '#/definitions/GeoJSON.position' + Edm.GeometryMultiPoint: + type: object + required: + - type + - coordinates + properties: + type: + enum: + - MultiPoint + coordinates: + type: array + items: + $ref: '#/definitions/GeoJSON.position' + Edm.GeometryMultiLineString: + type: object + required: + - type + - coordinates + properties: + type: + enum: + - MultiLineString + coordinates: + type: array + minItems: 2 + items: + type: array + items: + $ref: '#/definitions/GeoJSON.position' + Edm.GeometryMultiPolygon: + type: object + required: + - type + - coordinates + properties: + type: + enum: + - MultiPolygon + coordinates: + type: array + minItems: 4 + items: + type: array + items: + type: array + items: + $ref: '#/definitions/GeoJSON.position' + Edm.GeometryCollection: + type: object + required: + - type + - coordinates + properties: + type: + enum: + - GeometryCollection + coordinates: + type: array + items: + $ref: '#/definitions/Edm.Geometry' + GeoJSON.position: + type: array + minItems: 2 + items: + type: number + Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ODataError: + type: object + required: + - error + properties: + error: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError: + type: object + required: + - code + - message + properties: + code: + type: string + message: + type: string + x-ms-primary-error-message: true + target: + type: string + x-nullable: true + details: + type: array + items: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails' + innerError: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails: + type: object + required: + - code + - message + properties: + code: + type: string + message: + type: string + target: + type: string + x-nullable: true + Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError: + type: object + title: InnerError + properties: + Date: + type: string + x-nullable: true + format: date-time + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + RequestId: + type: string + x-nullable: true + ODataCountResponse: + type: number + format: int64 + StringCollectionResponse: + type: object + title: Collection of string + properties: + value: + type: array + items: + type: string + ReferenceUpdate: + type: object + properties: + '@odata.id': + type: string + '@odata.type': + type: string + x-nullable: true + ReferenceCreate: + type: object + properties: + '@odata.id': + type: string + additionalProperties: + type: object + ReferenceNumeric: + type: string + x-nullable: true + enum: + - '-INF' + - INF + - NaN Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person: - title: Person type: object + title: Person properties: UserName: type: string @@ -20838,19 +21798,23 @@ definitions: type: string LastName: type: string + x-nullable: true MiddleName: type: string + x-nullable: true Gender: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender' Age: format: int64 allOf: - - format: int64 - type: number + - type: number + x-nullable: true + format: int64 Emails: type: array items: type: string + x-nullable: true AddressInfo: type: array items: @@ -20864,65 +21828,73 @@ definitions: items: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature' Photo: - format: base64url type: string + x-nullable: true + format: base64url Friends: - description: Friends of person type: array + description: Friends of person items: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' x-ms-navigationProperty: true BestFriend: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' Trips: - description: Collection of trips. type: array + description: Collection of trips. items: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' x-ms-navigationProperty: true Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline: - title: Airline type: object + title: Airline properties: AirlineCode: type: string Name: type: string + x-nullable: true Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport: - title: Airport type: object + title: Airport properties: Name: type: string + x-nullable: true IcaoCode: type: string IataCode: type: string + x-nullable: true Location: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation' Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location: - title: Location type: object + title: Location properties: Address: type: string + x-nullable: true City: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.City' Microsoft.OData.Service.Sample.TrippinInMemory.Models.City: - title: City type: object + title: City properties: Name: type: string + x-nullable: true CountryRegion: type: string + x-nullable: true Region: type: string + x-nullable: true Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation: allOf: - $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' - - title: AirportLocation - type: object + - type: object + title: AirportLocation properties: Loc: $ref: '#/definitions/Edm.GeographyPoint' @@ -20931,103 +21903,112 @@ definitions: Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: allOf: - $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' - - title: EventLocation - type: object + - type: object + title: EventLocation properties: BuildingInfo: type: string + x-nullable: true Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip: - title: Trip type: object + title: Trip properties: TripId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ShareId: + type: string format: uuid pattern: '^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$' - type: string Name: type: string + x-nullable: true Budget: format: float allOf: - - format: float - type: number + - type: number + x-nullable: true + format: float Description: type: string + x-nullable: true Tags: type: array items: type: string + x-nullable: true TripData: { } DestinationInfo: type: array items: { } StartsAt: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string EndsAt: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string PlanItems: type: array items: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem' x-ms-navigationProperty: true Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem: - title: PlanItem type: object + title: PlanItem properties: PlanItemId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number ConfirmationCode: type: string + x-nullable: true StartsAt: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string EndsAt: + type: string format: date-time pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string Duration: + type: string format: duration pattern: '^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$' - type: string Microsoft.OData.Service.Sample.TrippinInMemory.Models.Event: allOf: - $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem' - - title: Event - type: object + - type: object + title: Event properties: OccursAt: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' Description: type: string + x-nullable: true Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation: allOf: - $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem' - - title: PublicTransportation - type: object + - type: object + title: PublicTransportation properties: SeatNumber: type: string + x-nullable: true Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight: allOf: - $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation' - - title: Flight - type: object + - type: object + title: Flight properties: FlightNumber: type: string + x-nullable: true Airline: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline' From: @@ -21037,14 +22018,15 @@ definitions: Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee: allOf: - $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' - - title: Employee - type: object + - type: object + title: Employee properties: Cost: format: int64 allOf: - - format: int64 - type: number + - type: number + x-nullable: true + format: int64 Peers: type: array items: @@ -21053,14 +22035,15 @@ definitions: Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager: allOf: - $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' - - title: Manager - type: object + - type: object + title: Manager properties: Budget: format: int64 allOf: - - format: int64 - type: number + - type: number + x-nullable: true + format: int64 BossOffice: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' DirectReports: @@ -21069,13 +22052,13 @@ definitions: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' x-ms-navigationProperty: true Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender: - title: PersonGender + type: string description: Gender of the person. + title: PersonGender enum: - Male - Female - Unknow - type: string x-ms-enum: name: PersonGender modelAsString: false @@ -21090,322 +22073,117 @@ definitions: description: Unknown gender or prefers not to say. name: Unknow Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature: + type: string title: Feature enum: - Feature1 - Feature2 - Feature3 - Feature4 - type: string x-ms-enum-flags: isFlags: true - Edm.Geography: - $ref: '#/definitions/Edm.Geometry' - Edm.GeographyPoint: - $ref: '#/definitions/Edm.GeometryPoint' - Edm.GeographyLineString: - $ref: '#/definitions/Edm.GeometryLineString' - Edm.GeographyPolygon: - $ref: '#/definitions/Edm.GeometryPolygon' - Edm.GeographyMultiPoint: - $ref: '#/definitions/Edm.GeometryMultiPoint' - Edm.GeographyMultiLineString: - $ref: '#/definitions/Edm.GeometryMultiLineString' - Edm.GeographyMultiPolygon: - $ref: '#/definitions/Edm.GeometryMultiPolygon' - Edm.GeographyCollection: - $ref: '#/definitions/Edm.GeometryCollection' - Edm.Geometry: - type: object - allOf: - - $ref: '#/definitions/Edm.GeometryPoint' - Edm.GeometryPoint: - required: - - type - - coordinates - type: object - properties: - type: - default: Point - enum: - - Point - type: string - coordinates: - $ref: '#/definitions/GeoJSON.position' - Edm.GeometryLineString: - required: - - type - - coordinates - type: object - properties: - type: - enum: - - LineString - coordinates: - minItems: 2 - type: array - items: - $ref: '#/definitions/GeoJSON.position' - Edm.GeometryPolygon: - required: - - type - - coordinates - type: object - properties: - type: - enum: - - Polygon - coordinates: - minItems: 4 - type: array - items: - type: array - items: - $ref: '#/definitions/GeoJSON.position' - Edm.GeometryMultiPoint: - required: - - type - - coordinates - type: object - properties: - type: - enum: - - MultiPoint - coordinates: - type: array - items: - $ref: '#/definitions/GeoJSON.position' - Edm.GeometryMultiLineString: - required: - - type - - coordinates - type: object - properties: - type: - enum: - - MultiLineString - coordinates: - minItems: 2 - type: array - items: - type: array - items: - $ref: '#/definitions/GeoJSON.position' - Edm.GeometryMultiPolygon: - required: - - type - - coordinates - type: object - properties: - type: - enum: - - MultiPolygon - coordinates: - minItems: 4 - type: array - items: - type: array - items: - type: array - items: - $ref: '#/definitions/GeoJSON.position' - Edm.GeometryCollection: - required: - - type - - coordinates - type: object - properties: - type: - enum: - - GeometryCollection - coordinates: - type: array - items: - $ref: '#/definitions/Edm.Geometry' - GeoJSON.position: - minItems: 2 - type: array - items: - type: number - Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ODataError: - required: - - error - type: object - properties: - error: - $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError' - Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError: - required: - - code - - message - type: object - properties: - code: - type: string - message: - type: string - x-ms-primary-error-message: true - target: - type: string - details: - type: array - items: - $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails' - innerError: - $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError' - Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails: - required: - - code - - message - type: object - properties: - code: - type: string - message: - type: string - target: - type: string - Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError: - title: InnerError - type: object - properties: - Date: - format: date-time - pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string - RequestId: - type: string - ODataCountResponse: - format: int32 - type: integer Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse: - title: Collection of Person type: object + title: Collection of Person properties: value: type: array items: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirlineCollectionResponse: - title: Collection of Airline type: object + title: Collection of Airline properties: value: type: array items: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline' Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportCollectionResponse: - title: Collection of Airport type: object + title: Collection of Airport properties: value: type: array items: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport' Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse: - title: Collection of Trip type: object + title: Collection of Trip properties: value: type: array items: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse: - title: Collection of PlanItem type: object + title: Collection of PlanItem properties: value: type: array items: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem' Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse: - title: Collection of Employee type: object + title: Collection of Employee properties: value: type: array items: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee' Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse: - title: Collection of Manager type: object + title: Collection of Manager properties: value: type: array items: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventCollectionResponse: - title: Collection of Event type: object + title: Collection of Event properties: value: type: array items: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Event' Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportationCollectionResponse: - title: Collection of PublicTransportation type: object + title: Collection of PublicTransportation properties: value: type: array items: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation' Microsoft.OData.Service.Sample.TrippinInMemory.Models.FlightCollectionResponse: - title: Collection of Flight type: object + title: Collection of Flight properties: value: type: array items: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight' Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse: - title: Collection of Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location type: object + title: Collection of Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location properties: value: type: array items: $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' - StringCollectionResponse: - title: Collection of string - type: object - properties: - value: - type: array - items: - type: string - ReferenceUpdate: - type: object - properties: - '@odata.id': - type: string - '@odata.type': - type: string - ReferenceCreate: - type: object - properties: - '@odata.id': - type: string - additionalProperties: - type: object - ReferenceNumeric: - enum: - - '-INF' - - INF - - NaN - type: string parameters: top: in: query name: $top description: Show only the first n items - type: integer + type: number + format: int64 minimum: 0 skip: in: query name: $skip description: Skip the first n items - type: integer + type: number + format: int64 minimum: 0 count: in: query @@ -21447,10 +22225,10 @@ parameters: userName: type: string tripId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number GetPeersForTripRequestBody: in: body name: body @@ -21462,10 +22240,10 @@ parameters: userName: type: string tripId: + type: number format: int32 maximum: 2147483647 minimum: -2147483648 - type: number responses: error: description: error @@ -21530,8 +22308,8 @@ responses: GetFriendsTripsResponse: description: Success schema: - title: Collection of Trip type: object + title: Collection of Trip properties: value: type: array @@ -21543,13 +22321,13 @@ responses: type: object properties: value: - default: false type: boolean + default: false GetPeersForTripResponse: description: Success schema: - title: Collection of Person type: object + title: Collection of Person properties: value: type: array diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V3.1.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V3.1.json new file mode 100644 index 000000000..75cb382aa --- /dev/null +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V3.1.json @@ -0,0 +1,35241 @@ +{ + "openapi": "3.1.1", + "info": { + "title": "OData Service for namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models", + "description": "This OData service is located at http://services.odata.org/TrippinRESTierService", + "version": "1.0.1" + }, + "servers": [ + { + "url": "http://services.odata.org/TrippinRESTierService" + } + ], + "paths": { + "/Airlines": { + "description": "Provides operations to manage the collection of Airline entities.", + "get": { + "tags": [ + "Airlines.Airline" + ], + "summary": "Get entities from Airlines", + "operationId": "Airlines.Airline.ListAirline", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirlineCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "Airlines.Airline" + ], + "summary": "Add new entity to Airlines", + "operationId": "Airlines.Airline.CreateAirline", + "requestBody": { + "description": "New entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Airlines/{AirlineCode}": { + "description": "Provides operations to manage the collection of Airline entities.", + "get": { + "tags": [ + "Airlines.Airline" + ], + "summary": "Get entity from Airlines by key", + "operationId": "Airlines.Airline.GetAirline", + "parameters": [ + { + "name": "AirlineCode", + "in": "path", + "description": "The unique identifier of Airline", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airline" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "put": { + "tags": [ + "Airlines.Airline" + ], + "summary": "Update entity in Airlines", + "operationId": "Airlines.Airline.SetAirline", + "parameters": [ + { + "name": "AirlineCode", + "in": "path", + "description": "The unique identifier of Airline", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airline" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Airlines.Airline" + ], + "summary": "Delete entity from Airlines", + "operationId": "Airlines.Airline.DeleteAirline", + "parameters": [ + { + "name": "AirlineCode", + "in": "path", + "description": "The unique identifier of Airline", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airline" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Airlines/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Airlines.Airline" + ], + "summary": "Get the number of the resource", + "operationId": "Airlines.GetCount-27a7", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Airports": { + "description": "Provides operations to manage the collection of Airport entities.", + "get": { + "tags": [ + "Airports.Airport" + ], + "summary": "Get entities from Airports", + "operationId": "Airports.Airport.ListAirport", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "Airports.Airport" + ], + "summary": "Add new entity to Airports", + "operationId": "Airports.Airport.CreateAirport", + "requestBody": { + "description": "New entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Airports/{IcaoCode}": { + "description": "Provides operations to manage the collection of Airport entities.", + "get": { + "tags": [ + "Airports.Airport" + ], + "summary": "Get entity from Airports by key", + "operationId": "Airports.Airport.GetAirport", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "Airports.Airport" + ], + "summary": "Update entity in Airports", + "operationId": "Airports.Airport.UpdateAirport", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Airports.Airport" + ], + "summary": "Delete entity from Airports", + "operationId": "Airports.Airport.DeleteAirport", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Airports/{IcaoCode}/Location": { + "get": { + "tags": [ + "Airports.AirportLocation" + ], + "summary": "Get Location property value", + "operationId": "Airports.GetLocation", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "put": { + "tags": [ + "Airports.AirportLocation" + ], + "summary": "Update property Location value.", + "operationId": "Airports.SetLocation", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Airports/{IcaoCode}/Location/EmergencyAuthority": { + "description": "Provides operations to manage the EmergencyAuthority property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation entity.", + "get": { + "tags": [ + "Airports.Person" + ], + "summary": "Get EmergencyAuthority from Airports", + "description": "The person to contact in case of a crisis at this location.", + "operationId": "Airports.GetEmergencyAuthority", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Airports/{IcaoCode}/Location/EmergencyAuthority/$ref": { + "description": "Provides operations to manage the collection of Airport entities.", + "get": { + "tags": [ + "Airports.Person" + ], + "summary": "Get ref of EmergencyAuthority from Airports", + "description": "The person to contact in case of a crisis at this location.", + "operationId": "Airports.GetRefEmergencyAuthority", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property link", + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "put": { + "tags": [ + "Airports.Person" + ], + "summary": "Update the ref of navigation property EmergencyAuthority in Airports", + "operationId": "Airports.UpdateRefEmergencyAuthority", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPutBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Airports.Person" + ], + "summary": "Delete ref of navigation property EmergencyAuthority for Airports", + "operationId": "Airports.DeleteRefEmergencyAuthority", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Airports/{IcaoCode}/Location/EmergencyAuthority/AddressInfo": { + "get": { + "tags": [ + "Airports.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "Airports.EmergencyAuthority.ListAddressInfo", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "patch": { + "tags": [ + "Airports.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "Airports.EmergencyAuthority.UpdateAddressInfo", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "Airports.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "Airports.EmergencyAuthority.SetAddressInfo", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Airports/{IcaoCode}/Location/EmergencyAuthority/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Airports.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "Airports.EmergencyAuthority.AddressInfo.GetCount-2ffe", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Airports/{IcaoCode}/Location/EmergencyAuthority/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Airports.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Airports.EmergencyAuthority.ListAddressInfo.AsEventLocation-fbf9", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Airports/{IcaoCode}/Location/EmergencyAuthority/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "Airports.EmergencyAuthority.AddressInfo.GetCount.AsEventLocation-e708", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Airports/{IcaoCode}/Location/EmergencyAuthority/HomeAddress": { + "get": { + "tags": [ + "Airports.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "Airports.EmergencyAuthority.GetHomeAddress", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "patch": { + "tags": [ + "Airports.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "Airports.EmergencyAuthority.UpdateHomeAddress", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Airports/{IcaoCode}/Location/EmergencyAuthority/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Airports.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Airports.EmergencyAuthority.GetHomeAddress.AsEventLocation-0bb9", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Airports/{IcaoCode}/Location/EmergencyAuthority/Photo": { + "description": "Provides operations to manage the media for the Airport entity.", + "get": { + "tags": [ + "Airports.Person" + ], + "summary": "Get Photo for the navigation property EmergencyAuthority from Airports", + "operationId": "Airports.GetEmergencyAuthorityPhoto-13fb", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "put": { + "tags": [ + "Airports.Person" + ], + "summary": "Update Photo for the navigation property EmergencyAuthority in Airports", + "operationId": "Airports.UpdateEmergencyAuthorityPhoto-13fb", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "delete": { + "tags": [ + "Airports.Person" + ], + "summary": "Delete Photo for the navigation property EmergencyAuthority in Airports", + "operationId": "Airports.DeleteEmergencyAuthorityPhoto-13fb", + "parameters": [ + { + "name": "IcaoCode", + "in": "path", + "description": "The unique identifier of Airport", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Airport" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/Airports/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Airports.Airport" + ], + "summary": "Get the number of the resource", + "operationId": "Airports.GetCount-60cc", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/GetNearestAirport(lat={lat},lon={lon})": { + "description": "Provides operations to call the GetNearestAirport method.", + "get": { + "tags": [ + "Airports" + ], + "summary": "Invoke functionImport GetNearestAirport", + "operationId": "FunctionImport.GetNearestAirport", + "parameters": [ + { + "name": "lat", + "in": "path", + "required": true, + "schema": { + "oneOf": [ + { + "type": [ + "null", + "number" + ], + "format": "double" + }, + { + "type": [ + "null", + "string" + ] + }, + { + "$ref": "#/components/schemas/ReferenceNumeric" + } + ] + } + }, + { + "name": "lon", + "in": "path", + "required": true, + "schema": { + "oneOf": [ + { + "type": [ + "null", + "number" + ], + "format": "double" + }, + { + "type": [ + "null", + "string" + ] + }, + { + "$ref": "#/components/schemas/ReferenceNumeric" + } + ] + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport" + }, + { + "type": "null" + } + ] + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "functionImport" + } + }, + "/GetPersonWithMostFriends()": { + "description": "Provides operations to call the GetPersonWithMostFriends method.", + "get": { + "tags": [ + "People" + ], + "summary": "Invoke functionImport GetPersonWithMostFriends", + "description": "The person with most friends.", + "operationId": "FunctionImport.GetPersonWithMostFriends", + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + { + "type": "null" + } + ] + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "functionImport" + } + }, + "/Me": { + "description": "Provides operations to manage the Person singleton.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get signed in person", + "description": "Retrieve the properties and relationships of Person object.", + "operationId": "Me.Person.GetPerson", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "Me.Person" + ], + "summary": "Update Me", + "operationId": "Me.Person.UpdatePerson", + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/AddressInfo": { + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "Me.ListAddressInfo", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "Me.UpdateAddressInfo", + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "post": { + "tags": [ + "Me.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "Me.SetAddressInfo", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AddressInfo.GetCount-38f2", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.ListAddressInfo.AsEventLocation-b1a4", + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "Me.AddressInfo.GetCount.AsEventLocation-5575", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/BestFriend": { + "description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get BestFriend from Me", + "description": "The best friend.", + "operationId": "Me.GetBestFriend", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "Me.Person" + ], + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "Me.UpdateBestFriend", + "requestBody": { + "description": "New navigation property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend" + ] + }, + "/Me/BestFriend/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get ref of BestFriend from Me", + "description": "The best friend.", + "operationId": "Me.GetRefBestFriend", + "responses": { + "200": { + "description": "Retrieved navigation property link", + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "put": { + "tags": [ + "Me.Person" + ], + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "Me.UpdateRefBestFriend", + "requestBody": { + "$ref": "#/components/requestBodies/refPutBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property BestFriend for Me", + "operationId": "Me.DeleteRefBestFriend", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/BestFriend/AddressInfo": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "Me.BestFriend.ListAddressInfo", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "Me.BestFriend.UpdateAddressInfo", + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "post": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "Me.BestFriend.SetAddressInfo", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/BestFriend/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "Me.BestFriend.AddressInfo.GetCount-b695", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation-2154", + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "Me.BestFriend.AddressInfo.GetCount.AsEventLocation-0105", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/BestFriend/HomeAddress": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "Me.BestFriend.GetHomeAddress", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "Me.BestFriend.UpdateHomeAddress", + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation-a28d", + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", + "operationId": "Me.GetBestFriend.AsEmployee-dcf6", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", + "operationId": "Me.GetBestFriend.AsManager-09a9", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/BestFriend/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get Photo for the navigation property BestFriend from Me", + "operationId": "Me.GetBestFriendPhoto-8333", + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "put": { + "tags": [ + "Me.Person" + ], + "summary": "Update Photo for the navigation property BestFriend in Me", + "operationId": "Me.UpdateBestFriendPhoto-8333", + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete Photo for the navigation property BestFriend in Me", + "operationId": "Me.DeleteBestFriendPhoto-8333", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Friends": { + "description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get Friends from Me", + "description": "Friends of person", + "operationId": "Me.ListFriends", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends" + ] + }, + "/Me/Friends/{UserName}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property Friends for Me", + "operationId": "Me.friends.DeleteRefPerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Friends/{UserName}/AddressInfo": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "Me.Friends.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "Me.Friends.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "post": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "Me.Friends.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Friends/{UserName}/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "Me.Friends.AddressInfo.GetCount-246e", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.Friends.ListAddressInfo.AsEventLocation-f440", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "Me.Friends.AddressInfo.GetCount.AsEventLocation-42c7", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Friends/{UserName}/HomeAddress": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "Me.Friends.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "Me.Friends.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.Friends.GetHomeAddress.AsEventLocation-15cc", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", + "operationId": "Me.GetFriends.AsEmployee-3dc7", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", + "operationId": "Me.GetFriends.AsManager-ddec", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Friends/{UserName}/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get Photo for the navigation property Friends from Me", + "operationId": "Me.GetFriendsPhoto-287d", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "put": { + "tags": [ + "Me.Person" + ], + "summary": "Update Photo for the navigation property Friends in Me", + "operationId": "Me.UpdateFriendsPhoto-287d", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete Photo for the navigation property Friends in Me", + "operationId": "Me.DeleteFriendsPhoto-287d", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Friends/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the number of the resource", + "operationId": "Me.Friends.GetCount-182b", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Friends/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get ref of Friends from Me", + "description": "Friends of person", + "operationId": "Me.ListRefFriends", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "Me.Person" + ], + "summary": "Create new navigation property ref to Friends for Me", + "operationId": "Me.CreateRefFriends", + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property Friends for Me", + "operationId": "Me.DeleteRefFriends", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", + "operationId": "Me.ListFriends.AsEmployee-f4a5", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the number of the resource", + "operationId": "Me.Friends.GetCount.AsEmployee-884b", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", + "operationId": "Me.ListFriends.AsManager-98ae", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the number of the resource", + "operationId": "Me.Friends.GetCount.AsManager-9376", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/HomeAddress": { + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "Me.GetHomeAddress", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "Me.UpdateHomeAddress", + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.GetHomeAddress.AsEventLocation-ba49", + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", + "operationId": "Me.Person.GetPerson.AsEmployee-bd18", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo": { + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "Me.AsEmployee.ListAddressInfo", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "Me.AsEmployee.UpdateAddressInfo", + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "post": { + "tags": [ + "Me.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "Me.AsEmployee.SetAddressInfo", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AsEmployee.AddressInfo.GetCount-8488", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.ListAddressInfo.AsEventLocation-989f", + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "Me.AddressInfo.GetCount.AsEventLocation-9375", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend": { + "description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get BestFriend from Me", + "description": "The best friend.", + "operationId": "Me.AsEmployee.GetBestFriend", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "Me.Person" + ], + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "Me.AsEmployee.UpdateBestFriend", + "requestBody": { + "description": "New navigation property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/Me/BestFriend", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend" + ] + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get ref of BestFriend from Me", + "description": "The best friend.", + "operationId": "Me.AsEmployee.GetRefBestFriend", + "responses": { + "200": { + "description": "Retrieved navigation property link", + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "put": { + "tags": [ + "Me.Person" + ], + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "Me.AsEmployee.UpdateRefBestFriend", + "requestBody": { + "$ref": "#/components/requestBodies/refPutBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property BestFriend for Me", + "operationId": "Me.AsEmployee.DeleteRefBestFriend", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "Me.AsEmployee.BestFriend.ListAddressInfo", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "Me.AsEmployee.BestFriend.UpdateAddressInfo", + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "post": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "Me.AsEmployee.BestFriend.SetAddressInfo", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AsEmployee.BestFriend.AddressInfo.GetCount-81de", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation-1d72", + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "Me.BestFriend.AddressInfo.GetCount.AsEventLocation-842c", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "Me.AsEmployee.BestFriend.GetHomeAddress", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "Me.AsEmployee.BestFriend.UpdateHomeAddress", + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation-19b8", + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", + "operationId": "Me.GetBestFriend.AsManager-c104", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get Photo for the navigation property BestFriend from Me", + "operationId": "Me.GetBestFriendPhoto-4dc7", + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "put": { + "tags": [ + "Me.Person" + ], + "summary": "Update Photo for the navigation property BestFriend in Me", + "operationId": "Me.UpdateBestFriendPhoto-4dc7", + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete Photo for the navigation property BestFriend in Me", + "operationId": "Me.DeleteBestFriendPhoto-4dc7", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends": { + "description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get Friends from Me", + "description": "Friends of person", + "operationId": "Me.AsEmployee.ListFriends", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/Me/Friends", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends" + ] + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property Friends for Me", + "operationId": "Me.AsEmployee.friends.DeleteRefPerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "Me.AsEmployee.Friends.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "Me.AsEmployee.Friends.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "post": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "Me.AsEmployee.Friends.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AsEmployee.Friends.AddressInfo.GetCount-660e", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.Friends.ListAddressInfo.AsEventLocation-7b1e", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "Me.Friends.AddressInfo.GetCount.AsEventLocation-feb8", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "Me.AsEmployee.Friends.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "Me.AsEmployee.Friends.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.Friends.GetHomeAddress.AsEventLocation-600f", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", + "operationId": "Me.GetFriends.AsManager-aa0c", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get Photo for the navigation property Friends from Me", + "operationId": "Me.GetFriendsPhoto-6e41", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "put": { + "tags": [ + "Me.Person" + ], + "summary": "Update Photo for the navigation property Friends in Me", + "operationId": "Me.UpdateFriendsPhoto-6e41", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete Photo for the navigation property Friends in Me", + "operationId": "Me.DeleteFriendsPhoto-6e41", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AsEmployee.Friends.GetCount-0cb7", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get ref of Friends from Me", + "description": "Friends of person", + "operationId": "Me.AsEmployee.ListRefFriends", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "Me.Person" + ], + "summary": "Create new navigation property ref to Friends for Me", + "operationId": "Me.AsEmployee.CreateRefFriends", + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property Friends for Me", + "operationId": "Me.AsEmployee.DeleteRefFriends", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", + "operationId": "Me.ListFriends.AsManager-f993", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the number of the resource", + "operationId": "Me.Friends.GetCount.AsManager-85ff", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/HomeAddress": { + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "Me.AsEmployee.GetHomeAddress", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "Me.AsEmployee.UpdateHomeAddress", + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.GetHomeAddress.AsEventLocation-6fc5", + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers": { + "description": "Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get Peers from Me", + "operationId": "Me.AsEmployee.ListPeers", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property Peers for Me", + "operationId": "Me.AsEmployee.peers.DeleteRefPerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "Me.AsEmployee.Peers.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "Me.AsEmployee.Peers.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "post": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "Me.AsEmployee.Peers.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AsEmployee.Peers.AddressInfo.GetCount-3e91", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.Peers.ListAddressInfo.AsEventLocation-1e59", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "Me.Peers.AddressInfo.GetCount.AsEventLocation-be1d", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "Me.AsEmployee.Peers.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "Me.AsEmployee.Peers.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.Peers.GetHomeAddress.AsEventLocation-dc11", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get Photo for the navigation property Peers from Me", + "operationId": "Me.GetPeersPhoto-4c48", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "put": { + "tags": [ + "Me.Person" + ], + "summary": "Update Photo for the navigation property Peers in Me", + "operationId": "Me.UpdatePeersPhoto-4c48", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete Photo for the navigation property Peers in Me", + "operationId": "Me.DeletePeersPhoto-4c48", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AsEmployee.Peers.GetCount-9fc2", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get ref of Peers from Me", + "operationId": "Me.AsEmployee.ListRefPeers", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "Me.Person" + ], + "summary": "Create new navigation property ref to Peers for Me", + "operationId": "Me.AsEmployee.CreateRefPeers", + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property Peers for Me", + "operationId": "Me.AsEmployee.DeleteRefPeers", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips": { + "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "Me.Trip" + ], + "summary": "List trips.", + "description": "Retrieve a list of trips.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0" + }, + "operationId": "Me.AsEmployee.ListTrips", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "Me.Trip" + ], + "summary": "Create a trip.", + "description": "Create a new trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-post-trips?view=graph-rest-1.0" + }, + "operationId": "Me.AsEmployee.CreateTrips", + "requestBody": { + "description": "New navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created navigation property.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips", + "/Me/Trips" + ] + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}": { + "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "Me.Trip" + ], + "summary": "Get a trip.", + "description": "Retrieve the properties of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-get-trips?view=graph-rest-1.0" + }, + "operationId": "Me.AsEmployee.GetTrips", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "Me.Trip" + ], + "summary": "Update a trip.", + "description": "Update an instance of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-update-trips?view=graph-rest-1.0" + }, + "operationId": "Me.AsEmployee.UpdateTrips", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + } + ], + "requestBody": { + "description": "New navigation property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Trip" + ], + "summary": "Delete a trip.", + "description": "Delete an instance of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0" + }, + "operationId": "Me.AsEmployee.DeleteTrips", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}", + "/Me/Trips/{TripId}" + ] + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": { + "description": "Provides operations to call the GetInvolvedPeople method.", + "get": { + "tags": [ + "Me.Trip" + ], + "summary": "Invoke function GetInvolvedPeople", + "operationId": "Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee.Trips.Trip.GetInvolvedPeople", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "title": "Collection of Person", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "function" + }, + "x-ms-docs-grouped-path": [ + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()", + "/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()" + ] + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems": { + "description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.", + "get": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Get PlanItems from Me", + "operationId": "Me.AsEmployee.Trips.ListPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems", + "/Me/Trips/{TripId}/PlanItems" + ] + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for Me", + "operationId": "Me.AsEmployee.Trips.planItems.DeleteRefPlanItem", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "PlanItemId", + "in": "path", + "description": "The unique identifier of PlanItem", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "PlanItem" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AsEmployee.Trips.PlanItems.GetCount-a822", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Get ref of PlanItems from Me", + "operationId": "Me.AsEmployee.Trips.ListRefPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Create new navigation property ref to PlanItems for Me", + "operationId": "Me.AsEmployee.Trips.CreateRefPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for Me", + "operationId": "Me.AsEmployee.Trips.DeleteRefPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Trip" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AsEmployee.Trips.GetCount-5aa2", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()": { + "description": "Provides operations to call the GetFavoriteAirline method.", + "get": { + "tags": [ + "Me.Person.Functions" + ], + "summary": "Invoke function GetFavoriteAirline", + "operationId": "Me.GetFavoriteAirline", + "responses": { + "200": { + "$ref": "#/components/responses/GetFavoriteAirlineResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "function" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName='{userName}')": { + "description": "Provides operations to call the GetFriendsTrips method.", + "get": { + "tags": [ + "Me.Person.Functions" + ], + "summary": "Invoke function GetFriendsTrips", + "operationId": "Me.GetFriendsTrips", + "parameters": [ + { + "name": "userName", + "in": "path", + "description": "Usage: userName='{userName}'", + "required": true, + "schema": { + "type": "string" + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/GetFriendsTripsResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "function" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": { + "description": "Provides operations to call the GetPeersForTrip method.", + "post": { + "tags": [ + "Me.Person.Actions" + ], + "summary": "Invoke action GetPeersForTrip", + "operationId": "Me.GetPeersForTrip", + "requestBody": { + "$ref": "#/components/requestBodies/GetPeersForTripRequestBody" + }, + "responses": { + "200": { + "$ref": "#/components/responses/GetPeersForTripResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "action" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", + "operationId": "Me.Person.GetPerson.AsManager-16dc", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo": { + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "Me.AsManager.ListAddressInfo", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "Me.AsManager.UpdateAddressInfo", + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "post": { + "tags": [ + "Me.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "Me.AsManager.SetAddressInfo", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AsManager.AddressInfo.GetCount-75da", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.ListAddressInfo.AsEventLocation-55be", + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "Me.AddressInfo.GetCount.AsEventLocation-f67e", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend": { + "description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get BestFriend from Me", + "description": "The best friend.", + "operationId": "Me.AsManager.GetBestFriend", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "Me.Person" + ], + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "Me.AsManager.UpdateBestFriend", + "requestBody": { + "description": "New navigation property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/Me/BestFriend", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend" + ] + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get ref of BestFriend from Me", + "description": "The best friend.", + "operationId": "Me.AsManager.GetRefBestFriend", + "responses": { + "200": { + "description": "Retrieved navigation property link", + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "put": { + "tags": [ + "Me.Person" + ], + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "Me.AsManager.UpdateRefBestFriend", + "requestBody": { + "$ref": "#/components/requestBodies/refPutBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property BestFriend for Me", + "operationId": "Me.AsManager.DeleteRefBestFriend", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "Me.AsManager.BestFriend.ListAddressInfo", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "Me.AsManager.BestFriend.UpdateAddressInfo", + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "post": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "Me.AsManager.BestFriend.SetAddressInfo", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AsManager.BestFriend.AddressInfo.GetCount-6ea6", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation-987a", + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "Me.BestFriend.AddressInfo.GetCount.AsEventLocation-692e", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "Me.AsManager.BestFriend.GetHomeAddress", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "Me.AsManager.BestFriend.UpdateHomeAddress", + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation-15c5", + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", + "operationId": "Me.GetBestFriend.AsEmployee-7bbe", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get Photo for the navigation property BestFriend from Me", + "operationId": "Me.GetBestFriendPhoto-bac8", + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "put": { + "tags": [ + "Me.Person" + ], + "summary": "Update Photo for the navigation property BestFriend in Me", + "operationId": "Me.UpdateBestFriendPhoto-bac8", + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete Photo for the navigation property BestFriend in Me", + "operationId": "Me.DeleteBestFriendPhoto-bac8", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports": { + "description": "Provides operations to manage the DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get DirectReports from Me", + "operationId": "Me.AsManager.ListDirectReports", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property DirectReports for Me", + "operationId": "Me.AsManager.directReports.DeleteRefPerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "Me.AsManager.DirectReports.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "Me.AsManager.DirectReports.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "post": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "Me.AsManager.DirectReports.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AsManager.DirectReports.AddressInfo.GetCount-f650", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.DirectReports.ListAddressInfo.AsEventLocation-660b", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "Me.DirectReports.AddressInfo.GetCount.AsEventLocation-a070", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "Me.AsManager.DirectReports.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "Me.AsManager.DirectReports.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.DirectReports.GetHomeAddress.AsEventLocation-5e6e", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get Photo for the navigation property DirectReports from Me", + "operationId": "Me.GetDirectReportsPhoto-e60c", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "put": { + "tags": [ + "Me.Person" + ], + "summary": "Update Photo for the navigation property DirectReports in Me", + "operationId": "Me.UpdateDirectReportsPhoto-e60c", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete Photo for the navigation property DirectReports in Me", + "operationId": "Me.DeleteDirectReportsPhoto-e60c", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AsManager.DirectReports.GetCount-8b92", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get ref of DirectReports from Me", + "operationId": "Me.AsManager.ListRefDirectReports", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "Me.Person" + ], + "summary": "Create new navigation property ref to DirectReports for Me", + "operationId": "Me.AsManager.CreateRefDirectReports", + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property DirectReports for Me", + "operationId": "Me.AsManager.DeleteRefDirectReports", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends": { + "description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get Friends from Me", + "description": "Friends of person", + "operationId": "Me.AsManager.ListFriends", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/Me/Friends", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends" + ] + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property Friends for Me", + "operationId": "Me.AsManager.friends.DeleteRefPerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "Me.AsManager.Friends.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "Me.AsManager.Friends.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "post": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "Me.AsManager.Friends.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AsManager.Friends.AddressInfo.GetCount-b7db", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.Friends.ListAddressInfo.AsEventLocation-1ad9", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "Me.Friends.AddressInfo.GetCount.AsEventLocation-4d69", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/HomeAddress": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "Me.AsManager.Friends.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "Me.AsManager.Friends.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.Friends.GetHomeAddress.AsEventLocation-1e07", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", + "operationId": "Me.GetFriends.AsEmployee-5b5f", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get Photo for the navigation property Friends from Me", + "operationId": "Me.GetFriendsPhoto-64bd", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "put": { + "tags": [ + "Me.Person" + ], + "summary": "Update Photo for the navigation property Friends in Me", + "operationId": "Me.UpdateFriendsPhoto-64bd", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete Photo for the navigation property Friends in Me", + "operationId": "Me.DeleteFriendsPhoto-64bd", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AsManager.Friends.GetCount-60a7", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get ref of Friends from Me", + "description": "Friends of person", + "operationId": "Me.AsManager.ListRefFriends", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "Me.Person" + ], + "summary": "Create new navigation property ref to Friends for Me", + "operationId": "Me.AsManager.CreateRefFriends", + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property Friends for Me", + "operationId": "Me.AsManager.DeleteRefFriends", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", + "operationId": "Me.ListFriends.AsEmployee-fe32", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the number of the resource", + "operationId": "Me.Friends.GetCount.AsEmployee-6a35", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/HomeAddress": { + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "Me.AsManager.GetHomeAddress", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "Me.AsManager.UpdateHomeAddress", + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.GetHomeAddress.AsEventLocation-5d95", + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": { + "description": "Provides operations to call the Hire method.", + "post": { + "tags": [ + "Me.Person.Actions" + ], + "summary": "Invoke action Hire", + "description": "Hires someone for the company.", + "operationId": "Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire", + "requestBody": { + "description": "Action parameters", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "hire": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + { + "type": "null" + } + ] + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "action" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips": { + "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "Me.Trip" + ], + "summary": "List trips.", + "description": "Retrieve a list of trips.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0" + }, + "operationId": "Me.AsManager.ListTrips", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "Me.Trip" + ], + "summary": "Create a trip.", + "description": "Create a new trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-post-trips?view=graph-rest-1.0" + }, + "operationId": "Me.AsManager.CreateTrips", + "requestBody": { + "description": "New navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created navigation property.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips", + "/Me/Trips" + ] + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}": { + "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "Me.Trip" + ], + "summary": "Get a trip.", + "description": "Retrieve the properties of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-get-trips?view=graph-rest-1.0" + }, + "operationId": "Me.AsManager.GetTrips", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "Me.Trip" + ], + "summary": "Update a trip.", + "description": "Update an instance of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-update-trips?view=graph-rest-1.0" + }, + "operationId": "Me.AsManager.UpdateTrips", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + } + ], + "requestBody": { + "description": "New navigation property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Trip" + ], + "summary": "Delete a trip.", + "description": "Delete an instance of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0" + }, + "operationId": "Me.AsManager.DeleteTrips", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}", + "/Me/Trips/{TripId}" + ] + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": { + "description": "Provides operations to call the GetInvolvedPeople method.", + "get": { + "tags": [ + "Me.Trip" + ], + "summary": "Invoke function GetInvolvedPeople", + "operationId": "Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Trips.Trip.GetInvolvedPeople", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "title": "Collection of Person", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "function" + }, + "x-ms-docs-grouped-path": [ + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()", + "/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()" + ] + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems": { + "description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.", + "get": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Get PlanItems from Me", + "operationId": "Me.AsManager.Trips.ListPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems", + "/Me/Trips/{TripId}/PlanItems" + ] + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for Me", + "operationId": "Me.AsManager.Trips.planItems.DeleteRefPlanItem", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "PlanItemId", + "in": "path", + "description": "The unique identifier of PlanItem", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "PlanItem" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AsManager.Trips.PlanItems.GetCount-5ad2", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Get ref of PlanItems from Me", + "operationId": "Me.AsManager.Trips.ListRefPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Create new navigation property ref to PlanItems for Me", + "operationId": "Me.AsManager.Trips.CreateRefPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for Me", + "operationId": "Me.AsManager.Trips.DeleteRefPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Trip" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AsManager.Trips.GetCount-f3f4", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip": { + "description": "Provides operations to call the ShareTrip method.", + "post": { + "tags": [ + "Me.Person.Actions" + ], + "summary": "Invoke action ShareTrip", + "description": "Details of the shared trip.", + "operationId": "Me.ShareTrip", + "requestBody": { + "$ref": "#/components/requestBodies/ShareTripRequestBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "action" + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName='{lastName}')": { + "description": "Provides operations to call the UpdatePersonLastName method.", + "get": { + "tags": [ + "Me.Person.Functions" + ], + "summary": "Invoke function UpdatePersonLastName", + "operationId": "Me.UpdatePersonLastName", + "parameters": [ + { + "name": "lastName", + "in": "path", + "description": "Usage: lastName='{lastName}'", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/UpdatePersonLastNameResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "function" + } + }, + "/Me/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get Photo for Person from Me", + "operationId": "Me.Person.GetPhoto-ab7e", + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "put": { + "tags": [ + "Me.Person" + ], + "summary": "Update Photo for Person in Me", + "operationId": "Me.Person.UpdatePhoto-ab7e", + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete Photo for Person in Me", + "operationId": "Me.Person.DeletePhoto-ab7e", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Trips": { + "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "Me.Trip" + ], + "summary": "List trips.", + "description": "Retrieve a list of trips.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0" + }, + "operationId": "Me.ListTrips", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "Me.Trip" + ], + "summary": "Create a trip.", + "description": "Create a new trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-post-trips?view=graph-rest-1.0" + }, + "operationId": "Me.CreateTrips", + "requestBody": { + "description": "New navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created navigation property.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips" + ] + }, + "/Me/Trips/{TripId}": { + "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "Me.Trip" + ], + "summary": "Get a trip.", + "description": "Retrieve the properties of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-get-trips?view=graph-rest-1.0" + }, + "operationId": "Me.GetTrips", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "Me.Trip" + ], + "summary": "Update a trip.", + "description": "Update an instance of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-update-trips?view=graph-rest-1.0" + }, + "operationId": "Me.UpdateTrips", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + } + ], + "requestBody": { + "description": "New navigation property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Trip" + ], + "summary": "Delete a trip.", + "description": "Delete an instance of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0" + }, + "operationId": "Me.DeleteTrips", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}" + ] + }, + "/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": { + "description": "Provides operations to call the GetInvolvedPeople method.", + "get": { + "tags": [ + "Me.Trip" + ], + "summary": "Invoke function GetInvolvedPeople", + "operationId": "Me.Trips.Trip.GetInvolvedPeople", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "title": "Collection of Person", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "function" + }, + "x-ms-docs-grouped-path": [ + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()" + ] + }, + "/Me/Trips/{TripId}/PlanItems": { + "description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.", + "get": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Get PlanItems from Me", + "operationId": "Me.Trips.ListPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems" + ] + }, + "/Me/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for Me", + "operationId": "Me.Trips.planItems.DeleteRefPlanItem", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "PlanItemId", + "in": "path", + "description": "The unique identifier of PlanItem", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "PlanItem" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Trips/{TripId}/PlanItems/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Get the number of the resource", + "operationId": "Me.Trips.PlanItems.GetCount-c250", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Trips/{TripId}/PlanItems/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Get ref of PlanItems from Me", + "operationId": "Me.Trips.ListRefPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Create new navigation property ref to PlanItems for Me", + "operationId": "Me.Trips.CreateRefPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for Me", + "operationId": "Me.Trips.DeleteRefPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/Me/Trips/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "Me.Trip" + ], + "summary": "Get the number of the resource", + "operationId": "Me.Trips.GetCount-7b69", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/NewComePeople": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get entities from NewComePeople", + "operationId": "NewComePeople.Person.ListPerson", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Add new entity to NewComePeople", + "operationId": "NewComePeople.Person.CreatePerson", + "requestBody": { + "description": "New entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/NewComePeople/{UserName}": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get entity from NewComePeople by key", + "operationId": "NewComePeople.Person.GetPerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Update entity in NewComePeople", + "operationId": "NewComePeople.Person.UpdatePerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Delete entity from NewComePeople", + "operationId": "NewComePeople.Person.DeletePerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/NewComePeople/{UserName}/AddressInfo": { + "get": { + "tags": [ + "NewComePeople.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "NewComePeople.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "patch": { + "tags": [ + "NewComePeople.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "NewComePeople.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "NewComePeople.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "NewComePeople.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "NewComePeople.Location" + ], + "summary": "Get the number of the resource", + "operationId": "NewComePeople.AddressInfo.GetCount-29d6", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "NewComePeople.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "NewComePeople.ListAddressInfo.AsEventLocation-d026", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "NewComePeople.AddressInfo.GetCount.AsEventLocation-29d3", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/BestFriend": { + "description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get BestFriend from NewComePeople", + "description": "The best friend.", + "operationId": "NewComePeople.GetBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "NewComePeople.UpdateBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New navigation property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/NewComePeople/{UserName}/BestFriend/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get ref of BestFriend from NewComePeople", + "description": "The best friend.", + "operationId": "NewComePeople.GetRefBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property link", + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + }, + "x-ms-docs-operation-type": "operation" + }, + "put": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "NewComePeople.UpdateRefBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPutBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Delete ref of navigation property BestFriend for NewComePeople", + "operationId": "NewComePeople.DeleteRefBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/NewComePeople/{UserName}/BestFriend/AddressInfo": { + "get": { + "tags": [ + "NewComePeople.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "NewComePeople.BestFriend.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + } + }, + "patch": { + "tags": [ + "NewComePeople.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "NewComePeople.BestFriend.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + } + }, + "post": { + "tags": [ + "NewComePeople.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "NewComePeople.BestFriend.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + } + } + }, + "/NewComePeople/{UserName}/BestFriend/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "NewComePeople.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "NewComePeople.BestFriend.AddressInfo.GetCount-513c", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + } + } + }, + "/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "NewComePeople.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "NewComePeople.BestFriend.ListAddressInfo.AsEventLocation-73fa", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + } + } + }, + "/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "NewComePeople.BestFriend.AddressInfo.GetCount.AsEventLocation-ba36", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + } + } + }, + "/NewComePeople/{UserName}/BestFriend/HomeAddress": { + "get": { + "tags": [ + "NewComePeople.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "NewComePeople.BestFriend.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + } + }, + "patch": { + "tags": [ + "NewComePeople.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "NewComePeople.BestFriend.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + } + } + }, + "/NewComePeople/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "NewComePeople.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "NewComePeople.BestFriend.GetHomeAddress.AsEventLocation-8ebe", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + } + } + }, + "/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", + "operationId": "NewComePeople.GetBestFriend.AsEmployee-7b75", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + } + } + }, + "/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", + "operationId": "NewComePeople.GetBestFriend.AsManager-61ce", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + } + } + }, + "/NewComePeople/{UserName}/BestFriend/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get Photo for the navigation property BestFriend from NewComePeople", + "operationId": "NewComePeople.GetBestFriendPhoto-4f67", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + } + }, + "put": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Update Photo for the navigation property BestFriend in NewComePeople", + "operationId": "NewComePeople.UpdateBestFriendPhoto-4f67", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + } + }, + "delete": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Delete Photo for the navigation property BestFriend in NewComePeople", + "operationId": "NewComePeople.DeleteBestFriendPhoto-4f67", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/bestfriend", + "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API." + } + } + }, + "/NewComePeople/{UserName}/Friends": { + "description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get Friends from NewComePeople", + "description": "Friends of person", + "operationId": "NewComePeople.ListFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/NewComePeople/{UserName}/Friends/{UserName1}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Delete ref of navigation property Friends for NewComePeople", + "operationId": "NewComePeople.friends.DeleteRefPerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo": { + "get": { + "tags": [ + "NewComePeople.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "NewComePeople.Friends.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "patch": { + "tags": [ + "NewComePeople.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "NewComePeople.Friends.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "post": { + "tags": [ + "NewComePeople.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "NewComePeople.Friends.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "NewComePeople.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "NewComePeople.Friends.AddressInfo.GetCount-9334", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "NewComePeople.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "NewComePeople.Friends.ListAddressInfo.AsEventLocation-eeb4", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "NewComePeople.Friends.AddressInfo.GetCount.AsEventLocation-be92", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress": { + "get": { + "tags": [ + "NewComePeople.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "NewComePeople.Friends.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "patch": { + "tags": [ + "NewComePeople.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "NewComePeople.Friends.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "NewComePeople.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "NewComePeople.Friends.GetHomeAddress.AsEventLocation-f4d9", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", + "operationId": "NewComePeople.GetFriends.AsEmployee-2969", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", + "operationId": "NewComePeople.GetFriends.AsManager-708f", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/Friends/{UserName1}/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get Photo for the navigation property Friends from NewComePeople", + "operationId": "NewComePeople.GetFriendsPhoto-e9fc", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "put": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Update Photo for the navigation property Friends in NewComePeople", + "operationId": "NewComePeople.UpdateFriendsPhoto-e9fc", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "delete": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Delete Photo for the navigation property Friends in NewComePeople", + "operationId": "NewComePeople.DeleteFriendsPhoto-e9fc", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/Friends/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get the number of the resource", + "operationId": "NewComePeople.Friends.GetCount-2ec1", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/Friends/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get ref of Friends from NewComePeople", + "description": "Friends of person", + "operationId": "NewComePeople.ListRefFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Create new navigation property ref to Friends for NewComePeople", + "operationId": "NewComePeople.CreateRefFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Delete ref of navigation property Friends for NewComePeople", + "operationId": "NewComePeople.DeleteRefFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", + "operationId": "NewComePeople.ListFriends.AsEmployee-2969", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get the number of the resource", + "operationId": "NewComePeople.Friends.GetCount.AsEmployee-4069", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", + "operationId": "NewComePeople.ListFriends.AsManager-708f", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get the number of the resource", + "operationId": "NewComePeople.Friends.GetCount.AsManager-d1d3", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/HomeAddress": { + "get": { + "tags": [ + "NewComePeople.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "NewComePeople.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "patch": { + "tags": [ + "NewComePeople.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "NewComePeople.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "NewComePeople.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "NewComePeople.GetHomeAddress.AsEventLocation-3fd9", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()": { + "description": "Provides operations to call the GetFavoriteAirline method.", + "get": { + "tags": [ + "NewComePeople.Person.Functions" + ], + "summary": "Invoke function GetFavoriteAirline", + "operationId": "NewComePeople.Person.GetFavoriteAirline", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/GetFavoriteAirlineResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "function" + } + }, + "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName='{userName}')": { + "description": "Provides operations to call the GetFriendsTrips method.", + "get": { + "tags": [ + "NewComePeople.Person.Functions" + ], + "summary": "Invoke function GetFriendsTrips", + "operationId": "NewComePeople.Person.GetFriendsTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "userName", + "in": "path", + "description": "Usage: userName='{userName}'", + "required": true, + "schema": { + "type": "string" + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/GetFriendsTripsResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/trips", + "description": "The GetFriendsTrips API is deprecated and will stop returning data on March 2023. Please use the new trips API on friends." + }, + "x-ms-docs-operation-type": "function" + } + }, + "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": { + "description": "Provides operations to call the GetPeersForTrip method.", + "post": { + "tags": [ + "NewComePeople.Person.Actions" + ], + "summary": "Invoke action GetPeersForTrip", + "operationId": "NewComePeople.Person.GetPeersForTrip", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/GetPeersForTripRequestBody" + }, + "responses": { + "200": { + "$ref": "#/components/responses/GetPeersForTripResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "action" + } + }, + "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": { + "description": "Provides operations to call the Hire method.", + "post": { + "tags": [ + "NewComePeople.Person.Actions" + ], + "summary": "Invoke action Hire", + "description": "Hires someone for the company.", + "operationId": "NewComePeople.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "Action parameters", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "hire": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + { + "type": "null" + } + ] + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "action" + } + }, + "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip": { + "description": "Provides operations to call the ShareTrip method.", + "post": { + "tags": [ + "NewComePeople.Person.Actions" + ], + "summary": "Invoke action ShareTrip", + "description": "Details of the shared trip.", + "operationId": "NewComePeople.Person.ShareTrip", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/ShareTripRequestBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "action" + } + }, + "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName='{lastName}')": { + "description": "Provides operations to call the UpdatePersonLastName method.", + "get": { + "tags": [ + "NewComePeople.Person.Functions" + ], + "summary": "Invoke function UpdatePersonLastName", + "operationId": "NewComePeople.Person.UpdatePersonLastName", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "lastName", + "in": "path", + "description": "Usage: lastName='{lastName}'", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/UpdatePersonLastNameResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "function" + } + }, + "/NewComePeople/{UserName}/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get Photo for Person from NewComePeople", + "operationId": "NewComePeople.Person.GetPhoto-74be", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "put": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Update Photo for Person in NewComePeople", + "operationId": "NewComePeople.Person.UpdatePhoto-74be", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + }, + "delete": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Delete Photo for Person in NewComePeople", + "operationId": "NewComePeople.Person.DeletePhoto-74be", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/Trips": { + "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "NewComePeople.Trip" + ], + "summary": "List trips.", + "description": "Retrieve a list of trips.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0" + }, + "operationId": "NewComePeople.ListTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "NewComePeople.Trip" + ], + "summary": "Create a trip.", + "description": "Create a new trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-post-trips?view=graph-rest-1.0" + }, + "operationId": "NewComePeople.CreateTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created navigation property.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/NewComePeople/{UserName}/Trips/{TripId}": { + "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "NewComePeople.Trip" + ], + "summary": "Get a trip.", + "description": "Retrieve the properties of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-get-trips?view=graph-rest-1.0" + }, + "operationId": "NewComePeople.GetTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "NewComePeople.Trip" + ], + "summary": "Update a trip.", + "description": "Update an instance of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-update-trips?view=graph-rest-1.0" + }, + "operationId": "NewComePeople.UpdateTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + } + ], + "requestBody": { + "description": "New navigation property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "NewComePeople.Trip" + ], + "summary": "Delete a trip.", + "description": "Delete an instance of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0" + }, + "operationId": "NewComePeople.DeleteTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/NewComePeople/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": { + "description": "Provides operations to call the GetInvolvedPeople method.", + "get": { + "tags": [ + "NewComePeople.Trip" + ], + "summary": "Invoke function GetInvolvedPeople", + "operationId": "NewComePeople.Person.Trips.Trip.GetInvolvedPeople", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "title": "Collection of Person", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "function" + } + }, + "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems": { + "description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.", + "get": { + "tags": [ + "NewComePeople.Trips.PlanItem" + ], + "summary": "Get PlanItems from NewComePeople", + "operationId": "NewComePeople.Trips.ListPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "NewComePeople.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for NewComePeople", + "operationId": "NewComePeople.Trips.planItems.DeleteRefPlanItem", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "PlanItemId", + "in": "path", + "description": "The unique identifier of PlanItem", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "PlanItem" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "NewComePeople.Trips.PlanItem" + ], + "summary": "Get the number of the resource", + "operationId": "NewComePeople.Trips.PlanItems.GetCount-841f", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "NewComePeople.Trips.PlanItem" + ], + "summary": "Get ref of PlanItems from NewComePeople", + "operationId": "NewComePeople.Trips.ListRefPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "NewComePeople.Trips.PlanItem" + ], + "summary": "Create new navigation property ref to PlanItems for NewComePeople", + "operationId": "NewComePeople.Trips.CreateRefPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "NewComePeople.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for NewComePeople", + "operationId": "NewComePeople.Trips.DeleteRefPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/NewComePeople/{UserName}/Trips/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "NewComePeople.Trip" + ], + "summary": "Get the number of the resource", + "operationId": "NewComePeople.Trips.GetCount-d155", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/NewComePeople/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Get the number of the resource", + "operationId": "NewComePeople.GetCount-55d5", + "parameters": [ + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + } + } + }, + "/People": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get entities from People", + "operationId": "People.Person.ListPerson", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "post": { + "tags": [ + "People.Person" + ], + "summary": "Add new entity to People", + "operationId": "People.Person.CreatePerson", + "requestBody": { + "description": "New entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get entity from People by key", + "operationId": "People.Person.GetPerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "People.Person" + ], + "summary": "Update entity in People", + "operationId": "People.Person.UpdatePerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete entity from People", + "operationId": "People.Person.DeletePerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/AddressInfo": { + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "People.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "People.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "post": { + "tags": [ + "People.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "People.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get the number of the resource", + "operationId": "People.AddressInfo.GetCount-ed5a", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.ListAddressInfo.AsEventLocation-e5b8", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "People.AddressInfo.GetCount.AsEventLocation-4abd", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/BestFriend": { + "description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get BestFriend from People", + "description": "The best friend.", + "operationId": "People.GetBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "People.Person" + ], + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "People.UpdateBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New navigation property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend" + ] + }, + "/People/{UserName}/BestFriend/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get ref of BestFriend from People", + "description": "The best friend.", + "operationId": "People.GetRefBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property link", + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "put": { + "tags": [ + "People.Person" + ], + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "People.UpdateRefBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPutBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property BestFriend for People", + "operationId": "People.DeleteRefBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/BestFriend/AddressInfo": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "People.BestFriend.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "People.BestFriend.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "post": { + "tags": [ + "People.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "People.BestFriend.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/BestFriend/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "People.BestFriend.AddressInfo.GetCount-16df", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation-c332", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "People.BestFriend.AddressInfo.GetCount.AsEventLocation-fe88", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/BestFriend/HomeAddress": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "People.BestFriend.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "People.BestFriend.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation-53c4", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", + "operationId": "People.GetBestFriend.AsEmployee-7188", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get best friend", + "description": "Get the item of type Person cast as Manager", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/person-get-friend-manager?view=graph-rest-1.0" + }, + "operationId": "People.GetBestFriend.AsManager-5f08", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/BestFriend/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get Photo for the navigation property BestFriend from People", + "operationId": "People.GetBestFriendPhoto-c3ac", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "put": { + "tags": [ + "People.Person" + ], + "summary": "Update Photo for the navigation property BestFriend in People", + "operationId": "People.UpdateBestFriendPhoto-c3ac", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete Photo for the navigation property BestFriend in People", + "operationId": "People.DeleteBestFriendPhoto-c3ac", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Friends": { + "description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "List friends", + "description": "List the friends of a specific person", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/person-list-friends?view=graph-rest-1.0" + }, + "operationId": "People.ListFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends" + ] + }, + "/People/{UserName}/Friends/{UserName1}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete a friend.", + "description": "Delete an instance of a friend relationship.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/person-delete-friend?view=graph-rest-1.0" + }, + "operationId": "People.friends.DeleteRefPerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Friends/{UserName1}/AddressInfo": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "People.Friends.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "People.Friends.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "post": { + "tags": [ + "People.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "People.Friends.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Friends/{UserName1}/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "People.Friends.AddressInfo.GetCount-bdaf", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.Friends.ListAddressInfo.AsEventLocation-a5f6", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "People.Friends.AddressInfo.GetCount.AsEventLocation-2795", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Friends/{UserName1}/HomeAddress": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "People.Friends.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "People.Friends.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.Friends.GetHomeAddress.AsEventLocation-da5e", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", + "operationId": "People.GetFriends.AsEmployee-11bf", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", + "operationId": "People.GetFriends.AsManager-1cfb", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Friends/{UserName1}/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get Photo for the navigation property Friends from People", + "operationId": "People.GetFriendsPhoto-12fc", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "put": { + "tags": [ + "People.Person" + ], + "summary": "Update Photo for the navigation property Friends in People", + "operationId": "People.UpdateFriendsPhoto-12fc", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete Photo for the navigation property Friends in People", + "operationId": "People.DeleteFriendsPhoto-12fc", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Friends/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the number of the resource", + "operationId": "People.Friends.GetCount-92b9", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Friends/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "List friends", + "description": "List the friends of a specific person", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/person-list-friends?view=graph-rest-1.0" + }, + "operationId": "People.ListRefFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "People.Person" + ], + "summary": "Create a friend.", + "description": "Create a new friend.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/person-post-friend?view=graph-rest-1.0" + }, + "operationId": "People.CreateRefFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete a friend.", + "description": "Delete an instance of a friend relationship.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/person-delete-friend?view=graph-rest-1.0" + }, + "operationId": "People.DeleteRefFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", + "operationId": "People.ListFriends.AsEmployee-11bf", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the number of the resource", + "operationId": "People.Friends.GetCount.AsEmployee-a96c", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", + "operationId": "People.ListFriends.AsManager-1cfb", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the number of the resource", + "operationId": "People.Friends.GetCount.AsManager-26b3", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/HomeAddress": { + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get home address", + "description": "Get the home address of a specific person", + "operationId": "People.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "People.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.GetHomeAddress.AsEventLocation-d0cf", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", + "operationId": "People.Person.GetPerson.AsEmployee-317b", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo": { + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "People.AsEmployee.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "People.AsEmployee.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "post": { + "tags": [ + "People.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "People.AsEmployee.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get the number of the resource", + "operationId": "People.AsEmployee.AddressInfo.GetCount-3d43", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.ListAddressInfo.AsEventLocation-1342", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "People.AddressInfo.GetCount.AsEventLocation-ac7d", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend": { + "description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get BestFriend from People", + "description": "The best friend.", + "operationId": "People.AsEmployee.GetBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "People.Person" + ], + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "People.AsEmployee.UpdateBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New navigation property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/BestFriend", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend" + ] + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get ref of BestFriend from People", + "description": "The best friend.", + "operationId": "People.AsEmployee.GetRefBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property link", + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "put": { + "tags": [ + "People.Person" + ], + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "People.AsEmployee.UpdateRefBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPutBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property BestFriend for People", + "operationId": "People.AsEmployee.DeleteRefBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "People.AsEmployee.BestFriend.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "People.AsEmployee.BestFriend.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "post": { + "tags": [ + "People.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "People.AsEmployee.BestFriend.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "People.AsEmployee.BestFriend.AddressInfo.GetCount-cb8a", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation-7cd9", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "People.BestFriend.AddressInfo.GetCount.AsEventLocation-0343", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "People.AsEmployee.BestFriend.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "People.AsEmployee.BestFriend.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation-7db9", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", + "operationId": "People.GetBestFriend.AsManager-7b70", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get Photo for the navigation property BestFriend from People", + "operationId": "People.GetBestFriendPhoto-a839", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "put": { + "tags": [ + "People.Person" + ], + "summary": "Update Photo for the navigation property BestFriend in People", + "operationId": "People.UpdateBestFriendPhoto-a839", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete Photo for the navigation property BestFriend in People", + "operationId": "People.DeleteBestFriendPhoto-a839", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends": { + "description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get Friends from People", + "description": "Friends of person", + "operationId": "People.AsEmployee.ListFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/Friends", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends" + ] + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property Friends for People", + "operationId": "People.AsEmployee.friends.DeleteRefPerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "People.AsEmployee.Friends.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "People.AsEmployee.Friends.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "post": { + "tags": [ + "People.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "People.AsEmployee.Friends.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "People.AsEmployee.Friends.AddressInfo.GetCount-1e8b", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.Friends.ListAddressInfo.AsEventLocation-d49e", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "People.Friends.AddressInfo.GetCount.AsEventLocation-1f2b", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/HomeAddress": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "People.AsEmployee.Friends.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "People.AsEmployee.Friends.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.Friends.GetHomeAddress.AsEventLocation-d77d", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", + "operationId": "People.GetFriends.AsManager-3e3c", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get Photo for the navigation property Friends from People", + "operationId": "People.GetFriendsPhoto-1a66", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "put": { + "tags": [ + "People.Person" + ], + "summary": "Update Photo for the navigation property Friends in People", + "operationId": "People.UpdateFriendsPhoto-1a66", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete Photo for the navigation property Friends in People", + "operationId": "People.DeleteFriendsPhoto-1a66", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the number of the resource", + "operationId": "People.AsEmployee.Friends.GetCount-4db4", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get ref of Friends from People", + "description": "Friends of person", + "operationId": "People.AsEmployee.ListRefFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "People.Person" + ], + "summary": "Create new navigation property ref to Friends for People", + "operationId": "People.AsEmployee.CreateRefFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property Friends for People", + "operationId": "People.AsEmployee.DeleteRefFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", + "operationId": "People.ListFriends.AsManager-3e3c", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the number of the resource", + "operationId": "People.Friends.GetCount.AsManager-b145", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/HomeAddress": { + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "People.AsEmployee.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "People.AsEmployee.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.GetHomeAddress.AsEventLocation-90e5", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers": { + "description": "Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get Peers from People", + "operationId": "People.AsEmployee.ListPeers", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property Peers for People", + "operationId": "People.AsEmployee.peers.DeleteRefPerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "People.AsEmployee.Peers.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "People.AsEmployee.Peers.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "post": { + "tags": [ + "People.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "People.AsEmployee.Peers.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "People.AsEmployee.Peers.AddressInfo.GetCount-755d", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.Peers.ListAddressInfo.AsEventLocation-b918", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "People.Peers.AddressInfo.GetCount.AsEventLocation-ef5e", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "People.AsEmployee.Peers.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "People.AsEmployee.Peers.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.Peers.GetHomeAddress.AsEventLocation-311b", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get Photo for the navigation property Peers from People", + "operationId": "People.GetPeersPhoto-ecda", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "put": { + "tags": [ + "People.Person" + ], + "summary": "Update Photo for the navigation property Peers in People", + "operationId": "People.UpdatePeersPhoto-ecda", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete Photo for the navigation property Peers in People", + "operationId": "People.DeletePeersPhoto-ecda", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the number of the resource", + "operationId": "People.AsEmployee.Peers.GetCount-44d2", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get ref of Peers from People", + "operationId": "People.AsEmployee.ListRefPeers", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "People.Person" + ], + "summary": "Create new navigation property ref to Peers for People", + "operationId": "People.AsEmployee.CreateRefPeers", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property Peers for People", + "operationId": "People.AsEmployee.DeleteRefPeers", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips": { + "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "People.Trip" + ], + "summary": "List trips.", + "description": "Retrieve a list of trips.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0" + }, + "operationId": "People.AsEmployee.ListTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "People.Trip" + ], + "summary": "Create a trip.", + "description": "Create a new trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-post-trips?view=graph-rest-1.0" + }, + "operationId": "People.AsEmployee.CreateTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created navigation property.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips", + "/People/{UserName}/Trips" + ] + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}": { + "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "People.Trip" + ], + "summary": "Get a trip.", + "description": "Retrieve the properties of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-get-trips?view=graph-rest-1.0" + }, + "operationId": "People.AsEmployee.GetTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "People.Trip" + ], + "summary": "Update a trip.", + "description": "Update an instance of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-update-trips?view=graph-rest-1.0" + }, + "operationId": "People.AsEmployee.UpdateTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + } + ], + "requestBody": { + "description": "New navigation property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Trip" + ], + "summary": "Delete a trip.", + "description": "Delete an instance of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0" + }, + "operationId": "People.AsEmployee.DeleteTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}", + "/People/{UserName}/Trips/{TripId}" + ] + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": { + "description": "Provides operations to call the GetInvolvedPeople method.", + "get": { + "tags": [ + "People.Trip" + ], + "summary": "Invoke function GetInvolvedPeople", + "operationId": "People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee.Trips.Trip.GetInvolvedPeople", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "title": "Collection of Person", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "function" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()", + "/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()" + ] + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems": { + "description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.", + "get": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Get PlanItems from People", + "operationId": "People.AsEmployee.Trips.ListPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems", + "/People/{UserName}/Trips/{TripId}/PlanItems" + ] + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for People", + "operationId": "People.AsEmployee.Trips.planItems.DeleteRefPlanItem", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "PlanItemId", + "in": "path", + "description": "The unique identifier of PlanItem", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "PlanItem" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Get the number of the resource", + "operationId": "People.AsEmployee.Trips.PlanItems.GetCount-7df9", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Get ref of PlanItems from People", + "operationId": "People.AsEmployee.Trips.ListRefPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Create new navigation property ref to PlanItems for People", + "operationId": "People.AsEmployee.Trips.CreateRefPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for People", + "operationId": "People.AsEmployee.Trips.DeleteRefPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Trip" + ], + "summary": "Get the number of the resource", + "operationId": "People.AsEmployee.Trips.GetCount-c760", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()": { + "description": "Provides operations to call the GetFavoriteAirline method.", + "get": { + "tags": [ + "People.Person.Functions" + ], + "summary": "Invoke function GetFavoriteAirline", + "operationId": "People.Person.GetFavoriteAirline", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/GetFavoriteAirlineResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "function" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName='{userName}')": { + "description": "Provides operations to call the GetFriendsTrips method.", + "get": { + "tags": [ + "People.Person.Functions" + ], + "summary": "Invoke function GetFriendsTrips", + "operationId": "People.Person.GetFriendsTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "userName", + "in": "path", + "description": "Usage: userName='{userName}'", + "required": true, + "schema": { + "type": "string" + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/GetFriendsTripsResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "function" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": { + "description": "Provides operations to call the GetPeersForTrip method.", + "post": { + "tags": [ + "People.Person.Actions" + ], + "summary": "Invoke action GetPeersForTrip", + "operationId": "People.Person.GetPeersForTrip", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/GetPeersForTripRequestBody" + }, + "responses": { + "200": { + "$ref": "#/components/responses/GetPeersForTripResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "action" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", + "operationId": "People.Person.GetPerson.AsManager-d051", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo": { + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "People.AsManager.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "People.AsManager.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "post": { + "tags": [ + "People.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "People.AsManager.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get the number of the resource", + "operationId": "People.AsManager.AddressInfo.GetCount-f84e", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.ListAddressInfo.AsEventLocation-7526", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "People.AddressInfo.GetCount.AsEventLocation-3722", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend": { + "description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get BestFriend from People", + "description": "The best friend.", + "operationId": "People.AsManager.GetBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "People.Person" + ], + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "People.AsManager.UpdateBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New navigation property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/BestFriend", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend" + ] + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get ref of BestFriend from People", + "description": "The best friend.", + "operationId": "People.AsManager.GetRefBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property link", + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "put": { + "tags": [ + "People.Person" + ], + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "People.AsManager.UpdateRefBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPutBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property BestFriend for People", + "operationId": "People.AsManager.DeleteRefBestFriend", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "People.AsManager.BestFriend.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "People.AsManager.BestFriend.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "post": { + "tags": [ + "People.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "People.AsManager.BestFriend.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "People.AsManager.BestFriend.AddressInfo.GetCount-5a39", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation-897f", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "People.BestFriend.AddressInfo.GetCount.AsEventLocation-5af3", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "People.AsManager.BestFriend.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "People.AsManager.BestFriend.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation-545d", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", + "operationId": "People.GetBestFriend.AsEmployee-0445", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get Photo for the navigation property BestFriend from People", + "operationId": "People.GetBestFriendPhoto-f05d", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "put": { + "tags": [ + "People.Person" + ], + "summary": "Update Photo for the navigation property BestFriend in People", + "operationId": "People.UpdateBestFriendPhoto-f05d", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete Photo for the navigation property BestFriend in People", + "operationId": "People.DeleteBestFriendPhoto-f05d", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports": { + "description": "Provides operations to manage the DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get DirectReports from People", + "operationId": "People.AsManager.ListDirectReports", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property DirectReports for People", + "operationId": "People.AsManager.directReports.DeleteRefPerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "People.AsManager.DirectReports.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "People.AsManager.DirectReports.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "post": { + "tags": [ + "People.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "People.AsManager.DirectReports.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "People.AsManager.DirectReports.AddressInfo.GetCount-f46e", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.DirectReports.ListAddressInfo.AsEventLocation-1252", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "People.DirectReports.AddressInfo.GetCount.AsEventLocation-5d49", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "People.AsManager.DirectReports.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "People.AsManager.DirectReports.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.DirectReports.GetHomeAddress.AsEventLocation-cf8d", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get Photo for the navigation property DirectReports from People", + "operationId": "People.GetDirectReportsPhoto-7149", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "put": { + "tags": [ + "People.Person" + ], + "summary": "Update Photo for the navigation property DirectReports in People", + "operationId": "People.UpdateDirectReportsPhoto-7149", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete Photo for the navigation property DirectReports in People", + "operationId": "People.DeleteDirectReportsPhoto-7149", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the number of the resource", + "operationId": "People.AsManager.DirectReports.GetCount-0ec4", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get ref of DirectReports from People", + "operationId": "People.AsManager.ListRefDirectReports", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "People.Person" + ], + "summary": "Create new navigation property ref to DirectReports for People", + "operationId": "People.AsManager.CreateRefDirectReports", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property DirectReports for People", + "operationId": "People.AsManager.DeleteRefDirectReports", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends": { + "description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get Friends from People", + "description": "Friends of person", + "operationId": "People.AsManager.ListFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/Friends", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends" + ] + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property Friends for People", + "operationId": "People.AsManager.friends.DeleteRefPerson", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "People.AsManager.Friends.ListAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property AddressInfo value.", + "operationId": "People.AsManager.Friends.UpdateAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "post": { + "tags": [ + "People.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "People.AsManager.Friends.SetAddressInfo", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "People.AsManager.Friends.AddressInfo.GetCount-f486", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.Friends.ListAddressInfo.AsEventLocation-f8c9", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "People.Friends.AddressInfo.GetCount.AsEventLocation-4480", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/HomeAddress": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "People.AsManager.Friends.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "People.AsManager.Friends.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.Friends.GetHomeAddress.AsEventLocation-eb71", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", + "operationId": "People.GetFriends.AsEmployee-161e", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get Photo for the navigation property Friends from People", + "operationId": "People.GetFriendsPhoto-b97d", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "put": { + "tags": [ + "People.Person" + ], + "summary": "Update Photo for the navigation property Friends in People", + "operationId": "People.UpdateFriendsPhoto-b97d", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete Photo for the navigation property Friends in People", + "operationId": "People.DeleteFriendsPhoto-b97d", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the number of the resource", + "operationId": "People.AsManager.Friends.GetCount-1c0c", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get ref of Friends from People", + "description": "Friends of person", + "operationId": "People.AsManager.ListRefFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "People.Person" + ], + "summary": "Create new navigation property ref to Friends for People", + "operationId": "People.AsManager.CreateRefFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property Friends for People", + "operationId": "People.AsManager.DeleteRefFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", + "operationId": "People.ListFriends.AsEmployee-161e", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the number of the resource", + "operationId": "People.Friends.GetCount.AsEmployee-f325", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/HomeAddress": { + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "People.AsManager.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "People.AsManager.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.GetHomeAddress.AsEventLocation-e3dc", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": { + "description": "Provides operations to call the Hire method.", + "post": { + "tags": [ + "People.Person.Actions" + ], + "summary": "Invoke action Hire", + "description": "Hires someone for the company.", + "operationId": "People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "Action parameters", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "hire": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + { + "type": "null" + } + ] + } + } + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "action" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips": { + "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "People.Trip" + ], + "summary": "List trips.", + "description": "Retrieve a list of trips.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0" + }, + "operationId": "People.AsManager.ListTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "People.Trip" + ], + "summary": "Create a trip.", + "description": "Create a new trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-post-trips?view=graph-rest-1.0" + }, + "operationId": "People.AsManager.CreateTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created navigation property.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips", + "/People/{UserName}/Trips" + ] + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}": { + "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "People.Trip" + ], + "summary": "Get a trip.", + "description": "Retrieve the properties of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-get-trips?view=graph-rest-1.0" + }, + "operationId": "People.AsManager.GetTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "People.Trip" + ], + "summary": "Update a trip.", + "description": "Update an instance of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-update-trips?view=graph-rest-1.0" + }, + "operationId": "People.AsManager.UpdateTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + } + ], + "requestBody": { + "description": "New navigation property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Trip" + ], + "summary": "Delete a trip.", + "description": "Delete an instance of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0" + }, + "operationId": "People.AsManager.DeleteTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}", + "/People/{UserName}/Trips/{TripId}" + ] + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": { + "description": "Provides operations to call the GetInvolvedPeople method.", + "get": { + "tags": [ + "People.Trip" + ], + "summary": "Invoke function GetInvolvedPeople", + "operationId": "People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Trips.Trip.GetInvolvedPeople", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "title": "Collection of Person", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "function" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()", + "/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()" + ] + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems": { + "description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.", + "get": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Get PlanItems from People", + "operationId": "People.AsManager.Trips.ListPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems", + "/People/{UserName}/Trips/{TripId}/PlanItems" + ] + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for People", + "operationId": "People.AsManager.Trips.planItems.DeleteRefPlanItem", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "PlanItemId", + "in": "path", + "description": "The unique identifier of PlanItem", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "PlanItem" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Get the number of the resource", + "operationId": "People.AsManager.Trips.PlanItems.GetCount-fa08", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Get ref of PlanItems from People", + "operationId": "People.AsManager.Trips.ListRefPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Create new navigation property ref to PlanItems for People", + "operationId": "People.AsManager.Trips.CreateRefPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for People", + "operationId": "People.AsManager.Trips.DeleteRefPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Trip" + ], + "summary": "Get the number of the resource", + "operationId": "People.AsManager.Trips.GetCount-1f8c", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip": { + "description": "Provides operations to call the ShareTrip method.", + "post": { + "tags": [ + "People.Person.Actions" + ], + "summary": "Invoke action ShareTrip", + "description": "Details of the shared trip.", + "operationId": "People.Person.ShareTrip", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/ShareTripRequestBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "action" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName='{lastName}')": { + "description": "Provides operations to call the UpdatePersonLastName method.", + "get": { + "tags": [ + "People.Person.Functions" + ], + "summary": "Invoke function UpdatePersonLastName", + "operationId": "People.Person.UpdatePersonLastName", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "lastName", + "in": "path", + "description": "Usage: lastName='{lastName}'", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/UpdatePersonLastNameResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "function" + } + }, + "/People/{UserName}/Photo": { + "description": "Provides operations to manage the media for the Person entity.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get photo", + "description": "Get photo of a specific user", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/person-get-photo?view=graph-rest-1.0" + }, + "operationId": "People.Person.GetPhoto-883f", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Retrieved media content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "put": { + "tags": [ + "People.Person" + ], + "summary": "Update photo", + "description": "Update photo of a specific user", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/person-update-photo?view=graph-rest-1.0" + }, + "operationId": "People.Person.UpdatePhoto-883f", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New media content.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete photo", + "description": "Delete photo of a specific user", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/person-delete-photo?view=graph-rest-1.0" + }, + "operationId": "People.Person.DeletePhoto-883f", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Trips": { + "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "People.Trip" + ], + "summary": "List trips.", + "description": "Retrieve a list of trips.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0" + }, + "operationId": "People.ListTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "People.Trip" + ], + "summary": "Create a trip.", + "description": "Create a new trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-post-trips?view=graph-rest-1.0" + }, + "operationId": "People.CreateTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created navigation property.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips" + ] + }, + "/People/{UserName}/Trips/{TripId}": { + "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "get": { + "tags": [ + "People.Trip" + ], + "summary": "Get a trip.", + "description": "Retrieve the properties of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-get-trips?view=graph-rest-1.0" + }, + "operationId": "People.GetTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "patch": { + "tags": [ + "People.Trip" + ], + "summary": "Update a trip.", + "description": "Update an instance of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-update-trips?view=graph-rest-1.0" + }, + "operationId": "People.UpdateTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + } + ], + "requestBody": { + "description": "New navigation property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Trip" + ], + "summary": "Delete a trip.", + "description": "Delete an instance of a trip.", + "externalDocs": { + "description": "Find more info here", + "url": "https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0" + }, + "operationId": "People.DeleteTrips", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}" + ] + }, + "/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": { + "description": "Provides operations to call the GetInvolvedPeople method.", + "get": { + "tags": [ + "People.Trip" + ], + "summary": "Invoke function GetInvolvedPeople", + "operationId": "People.Person.Trips.Trip.GetInvolvedPeople", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "title": "Collection of Person", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "function" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()" + ] + }, + "/People/{UserName}/Trips/{TripId}/PlanItems": { + "description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.", + "get": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Get PlanItems from People", + "operationId": "People.Trips.ListPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "x-ms-docs-grouped-path": [ + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems" + ] + }, + "/People/{UserName}/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "delete": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for People", + "operationId": "People.Trips.planItems.DeleteRefPlanItem", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "PlanItemId", + "in": "path", + "description": "The unique identifier of PlanItem", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "PlanItem" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Trips/{TripId}/PlanItems/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Get the number of the resource", + "operationId": "People.Trips.PlanItems.GetCount-9a27", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Trips/{TripId}/PlanItems/$ref": { + "description": "Provides operations to manage the collection of Person entities.", + "get": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Get ref of PlanItems from People", + "operationId": "People.Trips.ListRefPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/StringCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Create new navigation property ref to PlanItems for People", + "operationId": "People.Trips.CreateRefPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for People", + "operationId": "People.Trips.DeleteRefPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Trips/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Trip" + ], + "summary": "Get the number of the resource", + "operationId": "People.Trips.GetCount-e877", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the number of the resource", + "operationId": "People.GetCount-dd8d", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", + "operationId": "People.Person.ListPerson.AsEmployee-013a", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the number of the resource", + "operationId": "People.Person.Person.GetCount.AsEmployee-ef29", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", + "operationId": "People.Person.ListPerson.AsManager-3e14", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get the number of the resource", + "operationId": "People.Person.Person.GetCount.AsManager-2d48", + "parameters": [ + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" + } + } + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/ResetDataSource": { + "description": "Provides operations to call the ResetDataSource method.", + "post": { + "tags": [ + "ResetDataSource" + ], + "summary": "Invoke actionImport ResetDataSource", + "description": "Resets the data source to default values.", + "operationId": "ActionImport.ResetDataSource", + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "actionImport" + } + } + }, + "components": { + "schemas": { + "Edm.Geography": { + "$ref": "#/components/schemas/Edm.Geometry" + }, + "Edm.GeographyPoint": { + "$ref": "#/components/schemas/Edm.GeometryPoint" + }, + "Edm.GeographyLineString": { + "$ref": "#/components/schemas/Edm.GeometryLineString" + }, + "Edm.GeographyPolygon": { + "$ref": "#/components/schemas/Edm.GeometryPolygon" + }, + "Edm.GeographyMultiPoint": { + "$ref": "#/components/schemas/Edm.GeometryMultiPoint" + }, + "Edm.GeographyMultiLineString": { + "$ref": "#/components/schemas/Edm.GeometryMultiLineString" + }, + "Edm.GeographyMultiPolygon": { + "$ref": "#/components/schemas/Edm.GeometryMultiPolygon" + }, + "Edm.GeographyCollection": { + "$ref": "#/components/schemas/Edm.GeometryCollection" + }, + "Edm.Geometry": { + "type": "object", + "oneOf": [ + { + "$ref": "#/components/schemas/Edm.GeometryPoint" + }, + { + "$ref": "#/components/schemas/Edm.GeometryLineString" + }, + { + "$ref": "#/components/schemas/Edm.GeometryPolygon" + }, + { + "$ref": "#/components/schemas/Edm.GeometryMultiPoint" + }, + { + "$ref": "#/components/schemas/Edm.GeometryMultiLineString" + }, + { + "$ref": "#/components/schemas/Edm.GeometryMultiPolygon" + }, + { + "$ref": "#/components/schemas/Edm.GeometryCollection" + } + ] + }, + "Edm.GeometryPoint": { + "required": [ + "type", + "coordinates" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "Point" + ], + "type": "string", + "default": "Point" + }, + "coordinates": { + "$ref": "#/components/schemas/GeoJSON.position" + } + } + }, + "Edm.GeometryLineString": { + "required": [ + "type", + "coordinates" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "LineString" + ] + }, + "coordinates": { + "minItems": 2, + "type": "array", + "items": { + "$ref": "#/components/schemas/GeoJSON.position" + } + } + } + }, + "Edm.GeometryPolygon": { + "required": [ + "type", + "coordinates" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "Polygon" + ] + }, + "coordinates": { + "minItems": 4, + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GeoJSON.position" + } + } + } + } + }, + "Edm.GeometryMultiPoint": { + "required": [ + "type", + "coordinates" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "MultiPoint" + ] + }, + "coordinates": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GeoJSON.position" + } + } + } + }, + "Edm.GeometryMultiLineString": { + "required": [ + "type", + "coordinates" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "MultiLineString" + ] + }, + "coordinates": { + "minItems": 2, + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GeoJSON.position" + } + } + } + } + }, + "Edm.GeometryMultiPolygon": { + "required": [ + "type", + "coordinates" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "MultiPolygon" + ] + }, + "coordinates": { + "minItems": 4, + "type": "array", + "items": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GeoJSON.position" + } + } + } + } + } + }, + "Edm.GeometryCollection": { + "required": [ + "type", + "coordinates" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "GeometryCollection" + ] + }, + "coordinates": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Edm.Geometry" + } + } + } + }, + "GeoJSON.position": { + "minItems": 2, + "type": "array", + "items": { + "type": "number" + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ODataError": { + "required": [ + "error" + ], + "type": "object", + "properties": { + "error": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError" + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string", + "x-ms-primary-error-message": true + }, + "target": { + "type": [ + "null", + "string" + ] + }, + "details": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails" + } + }, + "innerError": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError" + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "target": { + "type": [ + "null", + "string" + ] + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError": { + "title": "InnerError", + "type": "object", + "properties": { + "Date": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "RequestId": { + "type": [ + "null", + "string" + ] + } + } + }, + "ODataCountResponse": { + "type": "number", + "format": "int64" + }, + "StringCollectionResponse": { + "title": "Collection of string", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ReferenceUpdate": { + "type": "object", + "properties": { + "@odata.id": { + "type": "string" + }, + "@odata.type": { + "type": [ + "null", + "string" + ] + } + } + }, + "ReferenceCreate": { + "type": "object", + "properties": { + "@odata.id": { + "type": "string" + } + }, + "additionalProperties": { + "type": "object" + } + }, + "ReferenceNumeric": { + "enum": [ + "-INF", + "INF", + "NaN" + ], + "type": [ + "null", + "string" + ] + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person": { + "title": "Person", + "type": "object", + "properties": { + "UserName": { + "type": "string" + }, + "FirstName": { + "type": "string" + }, + "LastName": { + "type": [ + "null", + "string" + ] + }, + "MiddleName": { + "type": [ + "null", + "string" + ] + }, + "Gender": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender" + }, + "Age": { + "oneOf": [ + { + "type": [ + "null", + "number" + ], + "format": "int64" + }, + { + "type": [ + "null", + "string" + ] + } + ] + }, + "Emails": { + "type": "array", + "items": { + "type": [ + "null", + "string" + ] + } + }, + "AddressInfo": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + }, + "HomeAddress": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + }, + { + "type": "null" + } + ] + }, + "FavoriteFeature": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" + }, + "Features": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" + } + }, + "Photo": { + "type": [ + "null", + "string" + ], + "format": "base64url" + }, + "Friends": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + "description": "Friends of person", + "x-ms-navigationProperty": true + }, + "BestFriend": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + { + "type": "null" + } + ], + "description": "The best friend.", + "x-ms-navigationProperty": true + }, + "Trips": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + }, + "description": "Collection of trips.", + "x-ms-navigationProperty": true + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline": { + "title": "Airline", + "type": "object", + "properties": { + "AirlineCode": { + "type": "string" + }, + "Name": { + "type": [ + "null", + "string" + ] + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport": { + "title": "Airport", + "type": "object", + "properties": { + "Name": { + "type": [ + "null", + "string" + ] + }, + "IcaoCode": { + "type": "string" + }, + "IataCode": { + "type": [ + "null", + "string" + ] + }, + "Location": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation" + }, + { + "type": "null" + } + ] + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location": { + "title": "Location", + "type": "object", + "properties": { + "Address": { + "type": [ + "null", + "string" + ] + }, + "City": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.City" + }, + { + "type": "null" + } + ] + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.City": { + "title": "City", + "type": "object", + "properties": { + "Name": { + "type": [ + "null", + "string" + ] + }, + "CountryRegion": { + "type": [ + "null", + "string" + ] + }, + "Region": { + "type": [ + "null", + "string" + ] + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation": { + "allOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + }, + { + "title": "AirportLocation", + "type": "object", + "properties": { + "Loc": { + "$ref": "#/components/schemas/Edm.GeographyPoint" + }, + "EmergencyAuthority": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + { + "type": "null" + } + ], + "description": "The person to contact in case of a crisis at this location.", + "x-ms-navigationProperty": true + } + } + } + ] + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "allOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + }, + { + "title": "EventLocation", + "type": "object", + "properties": { + "BuildingInfo": { + "type": [ + "null", + "string" + ] + } + } + } + ] + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip": { + "title": "Trip", + "type": "object", + "properties": { + "TripId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "ShareId": { + "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", + "type": "string", + "format": "uuid" + }, + "Name": { + "type": [ + "null", + "string" + ] + }, + "Budget": { + "oneOf": [ + { + "type": [ + "null", + "number" + ], + "format": "float" + }, + { + "type": [ + "null", + "string" + ] + }, + { + "$ref": "#/components/schemas/ReferenceNumeric" + } + ] + }, + "Description": { + "type": [ + "null", + "string" + ] + }, + "Tags": { + "type": "array", + "items": { + "type": [ + "null", + "string" + ] + } + }, + "TripData": { }, + "DestinationInfo": { + "type": "array", + "items": { } + }, + "StartsAt": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "EndsAt": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "PlanItems": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem" + }, + "x-ms-navigationProperty": true + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem": { + "title": "PlanItem", + "type": "object", + "properties": { + "PlanItemId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + }, + "ConfirmationCode": { + "type": [ + "null", + "string" + ] + }, + "StartsAt": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "EndsAt": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time" + }, + "Duration": { + "pattern": "^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$", + "type": "string", + "format": "duration" + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Event": { + "allOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem" + }, + { + "title": "Event", + "type": "object", + "properties": { + "OccursAt": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + }, + { + "type": "null" + } + ] + }, + "Description": { + "type": [ + "null", + "string" + ] + } + } + } + ] + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation": { + "allOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem" + }, + { + "title": "PublicTransportation", + "type": "object", + "properties": { + "SeatNumber": { + "type": [ + "null", + "string" + ] + } + } + } + ] + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight": { + "allOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation" + }, + { + "title": "Flight", + "type": "object", + "properties": { + "FlightNumber": { + "type": [ + "null", + "string" + ] + }, + "Airline": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline" + }, + { + "type": "null" + } + ], + "x-ms-navigationProperty": true + }, + "From": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport" + }, + { + "type": "null" + } + ], + "x-ms-navigationProperty": true + }, + "To": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport" + }, + { + "type": "null" + } + ], + "x-ms-navigationProperty": true + } + } + } + ] + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "allOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + { + "title": "Employee", + "type": "object", + "properties": { + "Cost": { + "oneOf": [ + { + "type": [ + "null", + "number" + ], + "format": "int64" + }, + { + "type": [ + "null", + "string" + ] + } + ] + }, + "Peers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + "x-ms-navigationProperty": true + } + } + } + ] + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "allOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + { + "title": "Manager", + "type": "object", + "properties": { + "Budget": { + "oneOf": [ + { + "type": [ + "null", + "number" + ], + "format": "int64" + }, + { + "type": [ + "null", + "string" + ] + } + ] + }, + "BossOffice": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + }, + { + "type": "null" + } + ] + }, + "DirectReports": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + "x-ms-navigationProperty": true + } + } + } + ] + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender": { + "title": "PersonGender", + "enum": [ + "Male", + "Female", + "Unknow" + ], + "type": "string", + "description": "Gender of the person.", + "x-ms-enum": { + "name": "PersonGender", + "modelAsString": false, + "values": [ + { + "value": "Male", + "description": "The Male gender.", + "name": "Male" + }, + { + "value": "Female", + "description": "The Female gender.", + "name": "Female" + }, + { + "value": "Unknow", + "description": "Unknown gender or prefers not to say.", + "name": "Unknow" + } + ] + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature": { + "title": "Feature", + "enum": [ + "Feature1", + "Feature2", + "Feature3", + "Feature4" + ], + "type": "string", + "x-ms-enum-flags": { + "isFlags": true + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse": { + "title": "Collection of Person", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirlineCollectionResponse": { + "title": "Collection of Airline", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportCollectionResponse": { + "title": "Collection of Airport", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse": { + "title": "Collection of Trip", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse": { + "title": "Collection of PlanItem", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse": { + "title": "Collection of Employee", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse": { + "title": "Collection of Manager", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventCollectionResponse": { + "title": "Collection of Event", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Event" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportationCollectionResponse": { + "title": "Collection of PublicTransportation", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.FlightCollectionResponse": { + "title": "Collection of Flight", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse": { + "title": "Collection of Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + } + }, + "responses": { + "error": { + "description": "error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ODataError" + } + } + } + }, + "ODataCountResponse": { + "description": "The count of the resource", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/ODataCountResponse" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirlineCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirlineCollectionResponse" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportCollectionResponse" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventCollectionResponse" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportationCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportationCollectionResponse" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.FlightCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.FlightCollectionResponse" + } + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + } + } + } + }, + "StringCollectionResponse": { + "description": "Retrieved collection", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StringCollectionResponse" + } + } + } + }, + "GetFavoriteAirlineResponse": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline" + }, + { + "type": "null" + } + ] + } + } + } + }, + "GetFriendsTripsResponse": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "title": "Collection of Trip", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } + } + } + } + }, + "UpdatePersonLastNameResponse": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "value": { + "type": "boolean", + "default": false + } + } + } + } + } + }, + "GetPeersForTripResponse": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "title": "Collection of Person", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + } + } + } + } + } + }, + "parameters": { + "top": { + "name": "$top", + "in": "query", + "description": "Show only the first n items", + "explode": false, + "schema": { + "minimum": 0, + "type": "number", + "format": "int64" + }, + "example": 50 + }, + "skip": { + "name": "$skip", + "in": "query", + "description": "Skip the first n items", + "explode": false, + "schema": { + "minimum": 0, + "type": "number", + "format": "int64" + } + }, + "count": { + "name": "$count", + "in": "query", + "description": "Include count of items", + "explode": false, + "schema": { + "type": "boolean" + } + }, + "filter": { + "name": "$filter", + "in": "query", + "description": "Filter items by property values", + "explode": false, + "schema": { + "type": "string" + } + }, + "search": { + "name": "$search", + "in": "query", + "description": "Search items by search phrases", + "explode": false, + "schema": { + "type": "string" + } + } + }, + "examples": { + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.InnerError": { + "value": { + "Date": "0001-01-01T00:00:00.0000000+00:00", + "RequestId": "string" + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person": { + "value": { + "UserName": "string (identifier)", + "FirstName": "string", + "LastName": "string", + "MiddleName": "string", + "Gender": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender" + }, + "Age": 0, + "Emails": [ + "string" + ], + "AddressInfo": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + ], + "HomeAddress": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + }, + "FavoriteFeature": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" + }, + "Features": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" + } + ], + "Photo": "string", + "Friends": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + ], + "BestFriend": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + "Trips": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + ] + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline": { + "value": { + "AirlineCode": "string (identifier)", + "Name": "string" + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport": { + "value": { + "Name": "string", + "IcaoCode": "string (identifier)", + "IataCode": "string", + "Location": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation" + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location": { + "value": { + "Address": "string", + "City": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.City" + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.City": { + "value": { + "Name": "string", + "CountryRegion": "string", + "Region": "string" + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation": { + "value": { + "Address": "string", + "City": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.City" + }, + "Loc": "Edm.GeographyPoint", + "EmergencyAuthority": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "value": { + "Address": "string", + "City": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.City" + }, + "BuildingInfo": "string" + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip": { + "value": { + "TripId": 0, + "ShareId": "00000000-0000-0000-0000-000000000000", + "Name": "string", + "Budget": 0, + "Description": "string", + "Tags": [ + "string" + ], + "TripData": { }, + "DestinationInfo": [ + { } + ], + "StartsAt": "0001-01-01T00:00:00.0000000+00:00", + "EndsAt": "0001-01-01T00:00:00.0000000+00:00", + "PlanItems": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem" + } + ] + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem": { + "value": { + "PlanItemId": 0, + "ConfirmationCode": "string", + "StartsAt": "0001-01-01T00:00:00.0000000+00:00", + "EndsAt": "0001-01-01T00:00:00.0000000+00:00", + "Duration": "string" + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Event": { + "value": { + "PlanItemId": 0, + "ConfirmationCode": "string", + "StartsAt": "0001-01-01T00:00:00.0000000+00:00", + "EndsAt": "0001-01-01T00:00:00.0000000+00:00", + "Duration": "string", + "OccursAt": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + }, + "Description": "string" + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation": { + "value": { + "PlanItemId": 0, + "ConfirmationCode": "string", + "StartsAt": "0001-01-01T00:00:00.0000000+00:00", + "EndsAt": "0001-01-01T00:00:00.0000000+00:00", + "Duration": "string", + "SeatNumber": "string" + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight": { + "value": { + "PlanItemId": 0, + "ConfirmationCode": "string", + "StartsAt": "0001-01-01T00:00:00.0000000+00:00", + "EndsAt": "0001-01-01T00:00:00.0000000+00:00", + "Duration": "string", + "SeatNumber": "string", + "FlightNumber": "string", + "Airline": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline" + }, + "From": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport" + }, + "To": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport" + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "value": { + "UserName": "string (identifier)", + "FirstName": "string", + "LastName": "string", + "MiddleName": "string", + "Gender": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender" + }, + "Age": 0, + "Emails": [ + "string" + ], + "AddressInfo": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + ], + "HomeAddress": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + }, + "FavoriteFeature": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" + }, + "Features": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" + } + ], + "Photo": "string", + "Friends": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + ], + "BestFriend": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + "Trips": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + ], + "Cost": 0, + "Peers": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + ] + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "value": { + "UserName": "string (identifier)", + "FirstName": "string", + "LastName": "string", + "MiddleName": "string", + "Gender": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender" + }, + "Age": 0, + "Emails": [ + "string" + ], + "AddressInfo": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + ], + "HomeAddress": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + }, + "FavoriteFeature": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" + }, + "Features": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" + } + ], + "Photo": "string", + "Friends": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + ], + "BestFriend": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + "Trips": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + ], + "Budget": 0, + "BossOffice": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + }, + "DirectReports": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + ] + } + } + }, + "requestBodies": { + "refPostBody": { + "description": "New navigation property ref value", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReferenceCreate" + } + } + }, + "required": true + }, + "refPutBody": { + "description": "New navigation property ref values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReferenceUpdate" + } + } + }, + "required": true + }, + "ShareTripRequestBody": { + "description": "Action parameters", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "userName": { + "type": "string" + }, + "tripId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + } + } + } + } + }, + "required": true + }, + "GetPeersForTripRequestBody": { + "description": "Action parameters", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "userName": { + "type": "string" + }, + "tripId": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "number", + "format": "int32" + } + } + } + } + }, + "required": true + } + } + }, + "tags": [ + { + "name": "Airlines.Airline", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Airports.Airport", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Airports.AirportLocation", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Airports.Person", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Airports.Person.Location", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Airports", + "x-ms-docs-toc-type": "container" + }, + { + "name": "People", + "x-ms-docs-toc-type": "container" + }, + { + "name": "Me.Person", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Me.Location", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Me.Person.Location", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Me.Trip", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Me.Trips.PlanItem", + "x-ms-docs-toc-type": "page" + }, + { + "name": "Me.Person.Functions", + "x-ms-docs-toc-type": "container" + }, + { + "name": "Me.Person.Actions", + "x-ms-docs-toc-type": "container" + }, + { + "name": "NewComePeople.Person", + "x-ms-docs-toc-type": "page" + }, + { + "name": "NewComePeople.Location", + "x-ms-docs-toc-type": "page" + }, + { + "name": "NewComePeople.Person.Location", + "x-ms-docs-toc-type": "page" + }, + { + "name": "NewComePeople.Person.Functions", + "x-ms-docs-toc-type": "container" + }, + { + "name": "NewComePeople.Person.Actions", + "x-ms-docs-toc-type": "container" + }, + { + "name": "NewComePeople.Trip", + "x-ms-docs-toc-type": "page" + }, + { + "name": "NewComePeople.Trips.PlanItem", + "x-ms-docs-toc-type": "page" + }, + { + "name": "People.Person", + "x-ms-docs-toc-type": "page" + }, + { + "name": "People.Location", + "x-ms-docs-toc-type": "page" + }, + { + "name": "People.Person.Location", + "x-ms-docs-toc-type": "page" + }, + { + "name": "People.Trip", + "x-ms-docs-toc-type": "page" + }, + { + "name": "People.Trips.PlanItem", + "x-ms-docs-toc-type": "page" + }, + { + "name": "People.Person.Functions", + "x-ms-docs-toc-type": "container" + }, + { + "name": "People.Person.Actions", + "x-ms-docs-toc-type": "container" + }, + { + "name": "ResetDataSource", + "x-ms-docs-toc-type": "container" + } + ] +} \ No newline at end of file diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V3.1.yaml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V3.1.yaml new file mode 100644 index 000000000..e191756cf --- /dev/null +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V3.1.yaml @@ -0,0 +1,23507 @@ +openapi: '3.1.1' +info: + title: OData Service for namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models + description: This OData service is located at http://services.odata.org/TrippinRESTierService + version: 1.0.1 +servers: + - url: http://services.odata.org/TrippinRESTierService +paths: + /Airlines: + description: Provides operations to manage the collection of Airline entities. + get: + tags: + - Airlines.Airline + summary: Get entities from Airlines + operationId: Airlines.Airline.ListAirline + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirlineCollectionResponse' + default: + $ref: '#/components/responses/error' + post: + tags: + - Airlines.Airline + summary: Add new entity to Airlines + operationId: Airlines.Airline.CreateAirline + requestBody: + description: New entity + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline' + required: true + responses: + '201': + description: Created entity + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Airlines/{AirlineCode}': + description: Provides operations to manage the collection of Airline entities. + get: + tags: + - Airlines.Airline + summary: Get entity from Airlines by key + operationId: Airlines.Airline.GetAirline + parameters: + - name: AirlineCode + in: path + description: The unique identifier of Airline + required: true + schema: + type: string + x-ms-docs-key-type: Airline + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved entity + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + put: + tags: + - Airlines.Airline + summary: Update entity in Airlines + operationId: Airlines.Airline.SetAirline + parameters: + - name: AirlineCode + in: path + description: The unique identifier of Airline + required: true + schema: + type: string + x-ms-docs-key-type: Airline + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - Airlines.Airline + summary: Delete entity from Airlines + operationId: Airlines.Airline.DeleteAirline + parameters: + - name: AirlineCode + in: path + description: The unique identifier of Airline + required: true + schema: + type: string + x-ms-docs-key-type: Airline + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + /Airlines/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Airlines.Airline + summary: Get the number of the resource + operationId: Airlines.GetCount-27a7 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + /Airports: + description: Provides operations to manage the collection of Airport entities. + get: + tags: + - Airports.Airport + summary: Get entities from Airports + operationId: Airports.Airport.ListAirport + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportCollectionResponse' + default: + $ref: '#/components/responses/error' + post: + tags: + - Airports.Airport + summary: Add new entity to Airports + operationId: Airports.Airport.CreateAirport + requestBody: + description: New entity + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport' + required: true + responses: + '201': + description: Created entity + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Airports/{IcaoCode}': + description: Provides operations to manage the collection of Airport entities. + get: + tags: + - Airports.Airport + summary: Get entity from Airports by key + operationId: Airports.Airport.GetAirport + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved entity + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + patch: + tags: + - Airports.Airport + summary: Update entity in Airports + operationId: Airports.Airport.UpdateAirport + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - Airports.Airport + summary: Delete entity from Airports + operationId: Airports.Airport.DeleteAirport + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Airports/{IcaoCode}/Location': + get: + tags: + - Airports.AirportLocation + summary: Get Location property value + operationId: Airports.GetLocation + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation' + default: + $ref: '#/components/responses/error' + put: + tags: + - Airports.AirportLocation + summary: Update property Location value. + operationId: Airports.SetLocation + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + '/Airports/{IcaoCode}/Location/EmergencyAuthority': + description: Provides operations to manage the EmergencyAuthority property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation entity. + get: + tags: + - Airports.Person + summary: Get EmergencyAuthority from Airports + description: The person to contact in case of a crisis at this location. + operationId: Airports.GetEmergencyAuthority + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Airports/{IcaoCode}/Location/EmergencyAuthority/$ref': + description: Provides operations to manage the collection of Airport entities. + get: + tags: + - Airports.Person + summary: Get ref of EmergencyAuthority from Airports + description: The person to contact in case of a crisis at this location. + operationId: Airports.GetRefEmergencyAuthority + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + responses: + '200': + description: Retrieved navigation property link + content: + application/json: + schema: + type: string + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + put: + tags: + - Airports.Person + summary: Update the ref of navigation property EmergencyAuthority in Airports + operationId: Airports.UpdateRefEmergencyAuthority + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + requestBody: + $ref: '#/components/requestBodies/refPutBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - Airports.Person + summary: Delete ref of navigation property EmergencyAuthority for Airports + operationId: Airports.DeleteRefEmergencyAuthority + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/Airports/{IcaoCode}/Location/EmergencyAuthority/AddressInfo': + get: + tags: + - Airports.Person.Location + summary: Get AddressInfo property value + operationId: Airports.EmergencyAuthority.ListAddressInfo + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + patch: + tags: + - Airports.Person.Location + summary: Update property AddressInfo value. + operationId: Airports.EmergencyAuthority.UpdateAddressInfo + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + post: + tags: + - Airports.Person.Location + summary: Sets a new value for the collection of Location. + operationId: Airports.EmergencyAuthority.SetAddressInfo + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + '/Airports/{IcaoCode}/Location/EmergencyAuthority/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Airports.Person.Location + summary: Get the number of the resource + operationId: Airports.EmergencyAuthority.AddressInfo.GetCount-2ffe + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + '/Airports/{IcaoCode}/Location/EmergencyAuthority/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - Airports.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Airports.EmergencyAuthority.ListAddressInfo.AsEventLocation-fbf9 + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + '/Airports/{IcaoCode}/Location/EmergencyAuthority/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: Airports.EmergencyAuthority.AddressInfo.GetCount.AsEventLocation-e708 + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + '/Airports/{IcaoCode}/Location/EmergencyAuthority/HomeAddress': + get: + tags: + - Airports.Person.Location + summary: Get HomeAddress property value + operationId: Airports.EmergencyAuthority.GetHomeAddress + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + patch: + tags: + - Airports.Person.Location + summary: Update property HomeAddress value. + operationId: Airports.EmergencyAuthority.UpdateHomeAddress + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + '/Airports/{IcaoCode}/Location/EmergencyAuthority/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - Airports.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Airports.EmergencyAuthority.GetHomeAddress.AsEventLocation-0bb9 + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + '/Airports/{IcaoCode}/Location/EmergencyAuthority/Photo': + description: Provides operations to manage the media for the Airport entity. + get: + tags: + - Airports.Person + summary: Get Photo for the navigation property EmergencyAuthority from Airports + operationId: Airports.GetEmergencyAuthorityPhoto-13fb + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + put: + tags: + - Airports.Person + summary: Update Photo for the navigation property EmergencyAuthority in Airports + operationId: Airports.UpdateEmergencyAuthorityPhoto-13fb + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + delete: + tags: + - Airports.Person + summary: Delete Photo for the navigation property EmergencyAuthority in Airports + operationId: Airports.DeleteEmergencyAuthorityPhoto-13fb + parameters: + - name: IcaoCode + in: path + description: The unique identifier of Airport + required: true + schema: + type: string + x-ms-docs-key-type: Airport + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + /Airports/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Airports.Airport + summary: Get the number of the resource + operationId: Airports.GetCount-60cc + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + '/GetNearestAirport(lat={lat},lon={lon})': + description: Provides operations to call the GetNearestAirport method. + get: + tags: + - Airports + summary: Invoke functionImport GetNearestAirport + operationId: FunctionImport.GetNearestAirport + parameters: + - name: lat + in: path + required: true + schema: + oneOf: + - type: + - 'null' + - number + format: double + - type: + - 'null' + - string + - $ref: '#/components/schemas/ReferenceNumeric' + - name: lon + in: path + required: true + schema: + oneOf: + - type: + - 'null' + - number + format: double + - type: + - 'null' + - string + - $ref: '#/components/schemas/ReferenceNumeric' + responses: + '200': + description: Success + content: + application/json: + schema: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport' + - type: 'null' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: functionImport + /GetPersonWithMostFriends(): + description: Provides operations to call the GetPersonWithMostFriends method. + get: + tags: + - People + summary: Invoke functionImport GetPersonWithMostFriends + description: The person with most friends. + operationId: FunctionImport.GetPersonWithMostFriends + responses: + '200': + description: Success + content: + application/json: + schema: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + - type: 'null' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: functionImport + /Me: + description: Provides operations to manage the Person singleton. + get: + tags: + - Me.Person + summary: Get signed in person + description: Retrieve the properties and relationships of Person object. + operationId: Me.Person.GetPerson + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved entity + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + patch: + tags: + - Me.Person + summary: Update Me + operationId: Me.Person.UpdatePerson + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + /Me/AddressInfo: + get: + tags: + - Me.Location + summary: Get AddressInfo property value + operationId: Me.ListAddressInfo + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Location + summary: Update property AddressInfo value. + operationId: Me.UpdateAddressInfo + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + post: + tags: + - Me.Location + summary: Sets a new value for the collection of Location. + operationId: Me.SetAddressInfo + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/AddressInfo/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Location + summary: Get the number of the resource + operationId: Me.AddressInfo.GetCount-38f2 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.ListAddressInfo.AsEventLocation-b1a4 + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count: + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: Me.AddressInfo.GetCount.AsEventLocation-5575 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/BestFriend: + description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - Me.Person + summary: Get BestFriend from Me + description: The best friend. + operationId: Me.GetBestFriend + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + patch: + tags: + - Me.Person + summary: Update the best friend. + description: Update an instance of a best friend. + operationId: Me.UpdateBestFriend + requestBody: + description: New navigation property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend + - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend + /Me/BestFriend/$ref: + description: Provides operations to manage the collection of Person entities. + get: + tags: + - Me.Person + summary: Get ref of BestFriend from Me + description: The best friend. + operationId: Me.GetRefBestFriend + responses: + '200': + description: Retrieved navigation property link + content: + application/json: + schema: + type: string + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + put: + tags: + - Me.Person + summary: Update the best friend. + description: Update an instance of a best friend. + operationId: Me.UpdateRefBestFriend + requestBody: + $ref: '#/components/requestBodies/refPutBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property BestFriend for Me + operationId: Me.DeleteRefBestFriend + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + /Me/BestFriend/AddressInfo: + get: + tags: + - Me.Person.Location + summary: Get AddressInfo property value + operationId: Me.BestFriend.ListAddressInfo + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Person.Location + summary: Update property AddressInfo value. + operationId: Me.BestFriend.UpdateAddressInfo + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + post: + tags: + - Me.Person.Location + summary: Sets a new value for the collection of Location. + operationId: Me.BestFriend.SetAddressInfo + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/BestFriend/AddressInfo/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person.Location + summary: Get the number of the resource + operationId: Me.BestFriend.AddressInfo.GetCount-b695 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.BestFriend.ListAddressInfo.AsEventLocation-2154 + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count: + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: Me.BestFriend.AddressInfo.GetCount.AsEventLocation-0105 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/BestFriend/HomeAddress: + get: + tags: + - Me.Person.Location + summary: Get HomeAddress property value + operationId: Me.BestFriend.GetHomeAddress + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Person.Location + summary: Update property HomeAddress value. + operationId: Me.BestFriend.UpdateHomeAddress + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.BestFriend.GetHomeAddress.AsEventLocation-a28d + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee: + description: Casts the previous resource to Employee. + get: + tags: + - Me.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee + operationId: Me.GetBestFriend.AsEmployee-dcf6 + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager: + description: Casts the previous resource to Manager. + get: + tags: + - Me.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager + operationId: Me.GetBestFriend.AsManager-09a9 + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/BestFriend/Photo: + description: Provides operations to manage the media for the Person entity. + get: + tags: + - Me.Person + summary: Get Photo for the navigation property BestFriend from Me + operationId: Me.GetBestFriendPhoto-8333 + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + put: + tags: + - Me.Person + summary: Update Photo for the navigation property BestFriend in Me + operationId: Me.UpdateBestFriendPhoto-8333 + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + delete: + tags: + - Me.Person + summary: Delete Photo for the navigation property BestFriend in Me + operationId: Me.DeleteBestFriendPhoto-8333 + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Friends: + description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - Me.Person + summary: Get Friends from Me + description: Friends of person + operationId: Me.ListFriends + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends + - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends + '/Me/Friends/{UserName}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - Me.Person + summary: Delete ref of navigation property Friends for Me + operationId: Me.friends.DeleteRefPerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + '/Me/Friends/{UserName}/AddressInfo': + get: + tags: + - Me.Person.Location + summary: Get AddressInfo property value + operationId: Me.Friends.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Person.Location + summary: Update property AddressInfo value. + operationId: Me.Friends.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + post: + tags: + - Me.Person.Location + summary: Sets a new value for the collection of Location. + operationId: Me.Friends.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Friends/{UserName}/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person.Location + summary: Get the number of the resource + operationId: Me.Friends.AddressInfo.GetCount-246e + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.Friends.ListAddressInfo.AsEventLocation-f440 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: Me.Friends.AddressInfo.GetCount.AsEventLocation-42c7 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Friends/{UserName}/HomeAddress': + get: + tags: + - Me.Person.Location + summary: Get HomeAddress property value + operationId: Me.Friends.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Person.Location + summary: Update property HomeAddress value. + operationId: Me.Friends.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.Friends.GetHomeAddress.AsEventLocation-15cc + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': + description: Casts the previous resource to Employee. + get: + tags: + - Me.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee + operationId: Me.GetFriends.AsEmployee-3dc7 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager': + description: Casts the previous resource to Manager. + get: + tags: + - Me.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager + operationId: Me.GetFriends.AsManager-ddec + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Friends/{UserName}/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - Me.Person + summary: Get Photo for the navigation property Friends from Me + operationId: Me.GetFriendsPhoto-287d + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + put: + tags: + - Me.Person + summary: Update Photo for the navigation property Friends in Me + operationId: Me.UpdateFriendsPhoto-287d + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + delete: + tags: + - Me.Person + summary: Delete Photo for the navigation property Friends in Me + operationId: Me.DeleteFriendsPhoto-287d + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Friends/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person + summary: Get the number of the resource + operationId: Me.Friends.GetCount-182b + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Friends/$ref: + description: Provides operations to manage the collection of Person entities. + get: + tags: + - Me.Person + summary: Get ref of Friends from Me + description: Friends of person + operationId: Me.ListRefFriends + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + post: + tags: + - Me.Person + summary: Create new navigation property ref to Friends for Me + operationId: Me.CreateRefFriends + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property Friends for Me + operationId: Me.DeleteRefFriends + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + /Me/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee: + description: Casts the previous resource to Employee. + get: + tags: + - Me.Person + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection + operationId: Me.ListFriends.AsEmployee-f4a5 + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person + summary: Get the number of the resource + operationId: Me.Friends.GetCount.AsEmployee-884b + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager: + description: Casts the previous resource to Manager. + get: + tags: + - Me.Person + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection + operationId: Me.ListFriends.AsManager-98ae + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person + summary: Get the number of the resource + operationId: Me.Friends.GetCount.AsManager-9376 + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/HomeAddress: + get: + tags: + - Me.Location + summary: Get HomeAddress property value + operationId: Me.GetHomeAddress + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Location + summary: Update property HomeAddress value. + operationId: Me.UpdateHomeAddress + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.GetHomeAddress.AsEventLocation-ba49 + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee: + description: Casts the previous resource to Employee. + get: + tags: + - Me.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee + operationId: Me.Person.GetPerson.AsEmployee-bd18 + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo: + get: + tags: + - Me.Location + summary: Get AddressInfo property value + operationId: Me.AsEmployee.ListAddressInfo + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Location + summary: Update property AddressInfo value. + operationId: Me.AsEmployee.UpdateAddressInfo + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + post: + tags: + - Me.Location + summary: Sets a new value for the collection of Location. + operationId: Me.AsEmployee.SetAddressInfo + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Location + summary: Get the number of the resource + operationId: Me.AsEmployee.AddressInfo.GetCount-8488 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.ListAddressInfo.AsEventLocation-989f + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count: + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: Me.AddressInfo.GetCount.AsEventLocation-9375 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend: + description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - Me.Person + summary: Get BestFriend from Me + description: The best friend. + operationId: Me.AsEmployee.GetBestFriend + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + patch: + tags: + - Me.Person + summary: Update the best friend. + description: Update an instance of a best friend. + operationId: Me.AsEmployee.UpdateBestFriend + requestBody: + description: New navigation property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - /Me/BestFriend + - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/$ref: + description: Provides operations to manage the collection of Person entities. + get: + tags: + - Me.Person + summary: Get ref of BestFriend from Me + description: The best friend. + operationId: Me.AsEmployee.GetRefBestFriend + responses: + '200': + description: Retrieved navigation property link + content: + application/json: + schema: + type: string + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + put: + tags: + - Me.Person + summary: Update the best friend. + description: Update an instance of a best friend. + operationId: Me.AsEmployee.UpdateRefBestFriend + requestBody: + $ref: '#/components/requestBodies/refPutBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property BestFriend for Me + operationId: Me.AsEmployee.DeleteRefBestFriend + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo: + get: + tags: + - Me.Person.Location + summary: Get AddressInfo property value + operationId: Me.AsEmployee.BestFriend.ListAddressInfo + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Person.Location + summary: Update property AddressInfo value. + operationId: Me.AsEmployee.BestFriend.UpdateAddressInfo + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + post: + tags: + - Me.Person.Location + summary: Sets a new value for the collection of Location. + operationId: Me.AsEmployee.BestFriend.SetAddressInfo + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person.Location + summary: Get the number of the resource + operationId: Me.AsEmployee.BestFriend.AddressInfo.GetCount-81de + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.BestFriend.ListAddressInfo.AsEventLocation-1d72 + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count: + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: Me.BestFriend.AddressInfo.GetCount.AsEventLocation-842c + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress: + get: + tags: + - Me.Person.Location + summary: Get HomeAddress property value + operationId: Me.AsEmployee.BestFriend.GetHomeAddress + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Person.Location + summary: Update property HomeAddress value. + operationId: Me.AsEmployee.BestFriend.UpdateHomeAddress + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.BestFriend.GetHomeAddress.AsEventLocation-19b8 + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager: + description: Casts the previous resource to Manager. + get: + tags: + - Me.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager + operationId: Me.GetBestFriend.AsManager-c104 + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Photo: + description: Provides operations to manage the media for the Person entity. + get: + tags: + - Me.Person + summary: Get Photo for the navigation property BestFriend from Me + operationId: Me.GetBestFriendPhoto-4dc7 + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + put: + tags: + - Me.Person + summary: Update Photo for the navigation property BestFriend in Me + operationId: Me.UpdateBestFriendPhoto-4dc7 + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + delete: + tags: + - Me.Person + summary: Delete Photo for the navigation property BestFriend in Me + operationId: Me.DeleteBestFriendPhoto-4dc7 + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends: + description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - Me.Person + summary: Get Friends from Me + description: Friends of person + operationId: Me.AsEmployee.ListFriends + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - /Me/Friends + - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - Me.Person + summary: Delete ref of navigation property Friends for Me + operationId: Me.AsEmployee.friends.DeleteRefPerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo': + get: + tags: + - Me.Person.Location + summary: Get AddressInfo property value + operationId: Me.AsEmployee.Friends.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Person.Location + summary: Update property AddressInfo value. + operationId: Me.AsEmployee.Friends.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + post: + tags: + - Me.Person.Location + summary: Sets a new value for the collection of Location. + operationId: Me.AsEmployee.Friends.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person.Location + summary: Get the number of the resource + operationId: Me.AsEmployee.Friends.AddressInfo.GetCount-660e + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.Friends.ListAddressInfo.AsEventLocation-7b1e + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: Me.Friends.AddressInfo.GetCount.AsEventLocation-feb8 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress': + get: + tags: + - Me.Person.Location + summary: Get HomeAddress property value + operationId: Me.AsEmployee.Friends.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Person.Location + summary: Update property HomeAddress value. + operationId: Me.AsEmployee.Friends.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.Friends.GetHomeAddress.AsEventLocation-600f + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager': + description: Casts the previous resource to Manager. + get: + tags: + - Me.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager + operationId: Me.GetFriends.AsManager-aa0c + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - Me.Person + summary: Get Photo for the navigation property Friends from Me + operationId: Me.GetFriendsPhoto-6e41 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + put: + tags: + - Me.Person + summary: Update Photo for the navigation property Friends in Me + operationId: Me.UpdateFriendsPhoto-6e41 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + delete: + tags: + - Me.Person + summary: Delete Photo for the navigation property Friends in Me + operationId: Me.DeleteFriendsPhoto-6e41 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person + summary: Get the number of the resource + operationId: Me.AsEmployee.Friends.GetCount-0cb7 + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$ref: + description: Provides operations to manage the collection of Person entities. + get: + tags: + - Me.Person + summary: Get ref of Friends from Me + description: Friends of person + operationId: Me.AsEmployee.ListRefFriends + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + post: + tags: + - Me.Person + summary: Create new navigation property ref to Friends for Me + operationId: Me.AsEmployee.CreateRefFriends + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property Friends for Me + operationId: Me.AsEmployee.DeleteRefFriends + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager: + description: Casts the previous resource to Manager. + get: + tags: + - Me.Person + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection + operationId: Me.ListFriends.AsManager-f993 + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person + summary: Get the number of the resource + operationId: Me.Friends.GetCount.AsManager-85ff + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/HomeAddress: + get: + tags: + - Me.Location + summary: Get HomeAddress property value + operationId: Me.AsEmployee.GetHomeAddress + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Location + summary: Update property HomeAddress value. + operationId: Me.AsEmployee.UpdateHomeAddress + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.GetHomeAddress.AsEventLocation-6fc5 + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers: + description: Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity. + get: + tags: + - Me.Person + summary: Get Peers from Me + operationId: Me.AsEmployee.ListPeers + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - Me.Person + summary: Delete ref of navigation property Peers for Me + operationId: Me.AsEmployee.peers.DeleteRefPerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo': + get: + tags: + - Me.Person.Location + summary: Get AddressInfo property value + operationId: Me.AsEmployee.Peers.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Person.Location + summary: Update property AddressInfo value. + operationId: Me.AsEmployee.Peers.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + post: + tags: + - Me.Person.Location + summary: Sets a new value for the collection of Location. + operationId: Me.AsEmployee.Peers.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person.Location + summary: Get the number of the resource + operationId: Me.AsEmployee.Peers.AddressInfo.GetCount-3e91 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.Peers.ListAddressInfo.AsEventLocation-1e59 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: Me.Peers.AddressInfo.GetCount.AsEventLocation-be1d + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress': + get: + tags: + - Me.Person.Location + summary: Get HomeAddress property value + operationId: Me.AsEmployee.Peers.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Person.Location + summary: Update property HomeAddress value. + operationId: Me.AsEmployee.Peers.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.Peers.GetHomeAddress.AsEventLocation-dc11 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - Me.Person + summary: Get Photo for the navigation property Peers from Me + operationId: Me.GetPeersPhoto-4c48 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + put: + tags: + - Me.Person + summary: Update Photo for the navigation property Peers in Me + operationId: Me.UpdatePeersPhoto-4c48 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + delete: + tags: + - Me.Person + summary: Delete Photo for the navigation property Peers in Me + operationId: Me.DeletePeersPhoto-4c48 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person + summary: Get the number of the resource + operationId: Me.AsEmployee.Peers.GetCount-9fc2 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref: + description: Provides operations to manage the collection of Person entities. + get: + tags: + - Me.Person + summary: Get ref of Peers from Me + operationId: Me.AsEmployee.ListRefPeers + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + post: + tags: + - Me.Person + summary: Create new navigation property ref to Peers for Me + operationId: Me.AsEmployee.CreateRefPeers + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property Peers for Me + operationId: Me.AsEmployee.DeleteRefPeers + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips: + description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - Me.Trip + summary: List trips. + description: Retrieve a list of trips. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0 + operationId: Me.AsEmployee.ListTrips + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + post: + tags: + - Me.Trip + summary: Create a trip. + description: Create a new trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-post-trips?view=graph-rest-1.0 + operationId: Me.AsEmployee.CreateTrips + requestBody: + description: New navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + required: true + responses: + '201': + description: Created navigation property. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips + - /Me/Trips + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}': + description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - Me.Trip + summary: Get a trip. + description: Retrieve the properties of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-get-trips?view=graph-rest-1.0 + operationId: Me.AsEmployee.GetTrips + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + patch: + tags: + - Me.Trip + summary: Update a trip. + description: Update an instance of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-update-trips?view=graph-rest-1.0 + operationId: Me.AsEmployee.UpdateTrips + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + requestBody: + description: New navigation property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + delete: + tags: + - Me.Trip + summary: Delete a trip. + description: Delete an instance of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0 + operationId: Me.AsEmployee.DeleteTrips + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}' + - '/Me/Trips/{TripId}' + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()': + description: Provides operations to call the GetInvolvedPeople method. + get: + tags: + - Me.Trip + summary: Invoke function GetInvolvedPeople + operationId: Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee.Trips.Trip.GetInvolvedPeople + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Success + content: + application/json: + schema: + title: Collection of Person + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: function + x-ms-docs-grouped-path: + - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()' + - '/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()' + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems': + description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity. + get: + tags: + - Me.Trips.PlanItem + summary: Get PlanItems from Me + operationId: Me.AsEmployee.Trips.ListPlanItems + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems' + - '/Me/Trips/{TripId}/PlanItems' + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/{PlanItemId}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - Me.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for Me + operationId: Me.AsEmployee.Trips.planItems.DeleteRefPlanItem + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: PlanItemId + in: path + description: The unique identifier of PlanItem + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: PlanItem + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Trips.PlanItem + summary: Get the number of the resource + operationId: Me.AsEmployee.Trips.PlanItems.GetCount-a822 + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - Me.Trips.PlanItem + summary: Get ref of PlanItems from Me + operationId: Me.AsEmployee.Trips.ListRefPlanItems + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + post: + tags: + - Me.Trips.PlanItem + summary: Create new navigation property ref to PlanItems for Me + operationId: Me.AsEmployee.Trips.CreateRefPlanItems + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + delete: + tags: + - Me.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for Me + operationId: Me.AsEmployee.Trips.DeleteRefPlanItems + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Trip + summary: Get the number of the resource + operationId: Me.AsEmployee.Trips.GetCount-5aa2 + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline(): + description: Provides operations to call the GetFavoriteAirline method. + get: + tags: + - Me.Person.Functions + summary: Invoke function GetFavoriteAirline + operationId: Me.GetFavoriteAirline + responses: + '200': + $ref: '#/components/responses/GetFavoriteAirlineResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: function + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')': + description: Provides operations to call the GetFriendsTrips method. + get: + tags: + - Me.Person.Functions + summary: Invoke function GetFriendsTrips + operationId: Me.GetFriendsTrips + parameters: + - name: userName + in: path + description: 'Usage: userName=''{userName}''' + required: true + schema: + type: string + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/GetFriendsTripsResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: function + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip: + description: Provides operations to call the GetPeersForTrip method. + post: + tags: + - Me.Person.Actions + summary: Invoke action GetPeersForTrip + operationId: Me.GetPeersForTrip + requestBody: + $ref: '#/components/requestBodies/GetPeersForTripRequestBody' + responses: + '200': + $ref: '#/components/responses/GetPeersForTripResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: action + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager: + description: Casts the previous resource to Manager. + get: + tags: + - Me.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager + operationId: Me.Person.GetPerson.AsManager-16dc + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo: + get: + tags: + - Me.Location + summary: Get AddressInfo property value + operationId: Me.AsManager.ListAddressInfo + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Location + summary: Update property AddressInfo value. + operationId: Me.AsManager.UpdateAddressInfo + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + post: + tags: + - Me.Location + summary: Sets a new value for the collection of Location. + operationId: Me.AsManager.SetAddressInfo + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Location + summary: Get the number of the resource + operationId: Me.AsManager.AddressInfo.GetCount-75da + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.ListAddressInfo.AsEventLocation-55be + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count: + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: Me.AddressInfo.GetCount.AsEventLocation-f67e + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend: + description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - Me.Person + summary: Get BestFriend from Me + description: The best friend. + operationId: Me.AsManager.GetBestFriend + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + patch: + tags: + - Me.Person + summary: Update the best friend. + description: Update an instance of a best friend. + operationId: Me.AsManager.UpdateBestFriend + requestBody: + description: New navigation property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - /Me/BestFriend + - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/$ref: + description: Provides operations to manage the collection of Person entities. + get: + tags: + - Me.Person + summary: Get ref of BestFriend from Me + description: The best friend. + operationId: Me.AsManager.GetRefBestFriend + responses: + '200': + description: Retrieved navigation property link + content: + application/json: + schema: + type: string + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + put: + tags: + - Me.Person + summary: Update the best friend. + description: Update an instance of a best friend. + operationId: Me.AsManager.UpdateRefBestFriend + requestBody: + $ref: '#/components/requestBodies/refPutBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property BestFriend for Me + operationId: Me.AsManager.DeleteRefBestFriend + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo: + get: + tags: + - Me.Person.Location + summary: Get AddressInfo property value + operationId: Me.AsManager.BestFriend.ListAddressInfo + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Person.Location + summary: Update property AddressInfo value. + operationId: Me.AsManager.BestFriend.UpdateAddressInfo + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + post: + tags: + - Me.Person.Location + summary: Sets a new value for the collection of Location. + operationId: Me.AsManager.BestFriend.SetAddressInfo + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person.Location + summary: Get the number of the resource + operationId: Me.AsManager.BestFriend.AddressInfo.GetCount-6ea6 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.BestFriend.ListAddressInfo.AsEventLocation-987a + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count: + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: Me.BestFriend.AddressInfo.GetCount.AsEventLocation-692e + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress: + get: + tags: + - Me.Person.Location + summary: Get HomeAddress property value + operationId: Me.AsManager.BestFriend.GetHomeAddress + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Person.Location + summary: Update property HomeAddress value. + operationId: Me.AsManager.BestFriend.UpdateHomeAddress + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.BestFriend.GetHomeAddress.AsEventLocation-15c5 + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee: + description: Casts the previous resource to Employee. + get: + tags: + - Me.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee + operationId: Me.GetBestFriend.AsEmployee-7bbe + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/Photo: + description: Provides operations to manage the media for the Person entity. + get: + tags: + - Me.Person + summary: Get Photo for the navigation property BestFriend from Me + operationId: Me.GetBestFriendPhoto-bac8 + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + put: + tags: + - Me.Person + summary: Update Photo for the navigation property BestFriend in Me + operationId: Me.UpdateBestFriendPhoto-bac8 + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + delete: + tags: + - Me.Person + summary: Delete Photo for the navigation property BestFriend in Me + operationId: Me.DeleteBestFriendPhoto-bac8 + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports: + description: Provides operations to manage the DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity. + get: + tags: + - Me.Person + summary: Get DirectReports from Me + operationId: Me.AsManager.ListDirectReports + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - Me.Person + summary: Delete ref of navigation property DirectReports for Me + operationId: Me.AsManager.directReports.DeleteRefPerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo': + get: + tags: + - Me.Person.Location + summary: Get AddressInfo property value + operationId: Me.AsManager.DirectReports.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Person.Location + summary: Update property AddressInfo value. + operationId: Me.AsManager.DirectReports.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + post: + tags: + - Me.Person.Location + summary: Sets a new value for the collection of Location. + operationId: Me.AsManager.DirectReports.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person.Location + summary: Get the number of the resource + operationId: Me.AsManager.DirectReports.AddressInfo.GetCount-f650 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.DirectReports.ListAddressInfo.AsEventLocation-660b + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: Me.DirectReports.AddressInfo.GetCount.AsEventLocation-a070 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress': + get: + tags: + - Me.Person.Location + summary: Get HomeAddress property value + operationId: Me.AsManager.DirectReports.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Person.Location + summary: Update property HomeAddress value. + operationId: Me.AsManager.DirectReports.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.DirectReports.GetHomeAddress.AsEventLocation-5e6e + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - Me.Person + summary: Get Photo for the navigation property DirectReports from Me + operationId: Me.GetDirectReportsPhoto-e60c + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + put: + tags: + - Me.Person + summary: Update Photo for the navigation property DirectReports in Me + operationId: Me.UpdateDirectReportsPhoto-e60c + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + delete: + tags: + - Me.Person + summary: Delete Photo for the navigation property DirectReports in Me + operationId: Me.DeleteDirectReportsPhoto-e60c + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person + summary: Get the number of the resource + operationId: Me.AsManager.DirectReports.GetCount-8b92 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref: + description: Provides operations to manage the collection of Person entities. + get: + tags: + - Me.Person + summary: Get ref of DirectReports from Me + operationId: Me.AsManager.ListRefDirectReports + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + post: + tags: + - Me.Person + summary: Create new navigation property ref to DirectReports for Me + operationId: Me.AsManager.CreateRefDirectReports + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property DirectReports for Me + operationId: Me.AsManager.DeleteRefDirectReports + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends: + description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - Me.Person + summary: Get Friends from Me + description: Friends of person + operationId: Me.AsManager.ListFriends + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - /Me/Friends + - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - Me.Person + summary: Delete ref of navigation property Friends for Me + operationId: Me.AsManager.friends.DeleteRefPerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo': + get: + tags: + - Me.Person.Location + summary: Get AddressInfo property value + operationId: Me.AsManager.Friends.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Person.Location + summary: Update property AddressInfo value. + operationId: Me.AsManager.Friends.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + post: + tags: + - Me.Person.Location + summary: Sets a new value for the collection of Location. + operationId: Me.AsManager.Friends.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person.Location + summary: Get the number of the resource + operationId: Me.AsManager.Friends.AddressInfo.GetCount-b7db + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.Friends.ListAddressInfo.AsEventLocation-1ad9 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: Me.Friends.AddressInfo.GetCount.AsEventLocation-4d69 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/HomeAddress': + get: + tags: + - Me.Person.Location + summary: Get HomeAddress property value + operationId: Me.AsManager.Friends.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Person.Location + summary: Update property HomeAddress value. + operationId: Me.AsManager.Friends.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.Friends.GetHomeAddress.AsEventLocation-1e07 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': + description: Casts the previous resource to Employee. + get: + tags: + - Me.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee + operationId: Me.GetFriends.AsEmployee-5b5f + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - Me.Person + summary: Get Photo for the navigation property Friends from Me + operationId: Me.GetFriendsPhoto-64bd + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + put: + tags: + - Me.Person + summary: Update Photo for the navigation property Friends in Me + operationId: Me.UpdateFriendsPhoto-64bd + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + delete: + tags: + - Me.Person + summary: Delete Photo for the navigation property Friends in Me + operationId: Me.DeleteFriendsPhoto-64bd + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person + summary: Get the number of the resource + operationId: Me.AsManager.Friends.GetCount-60a7 + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$ref: + description: Provides operations to manage the collection of Person entities. + get: + tags: + - Me.Person + summary: Get ref of Friends from Me + description: Friends of person + operationId: Me.AsManager.ListRefFriends + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + post: + tags: + - Me.Person + summary: Create new navigation property ref to Friends for Me + operationId: Me.AsManager.CreateRefFriends + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property Friends for Me + operationId: Me.AsManager.DeleteRefFriends + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee: + description: Casts the previous resource to Employee. + get: + tags: + - Me.Person + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection + operationId: Me.ListFriends.AsEmployee-fe32 + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Person + summary: Get the number of the resource + operationId: Me.Friends.GetCount.AsEmployee-6a35 + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/HomeAddress: + get: + tags: + - Me.Location + summary: Get HomeAddress property value + operationId: Me.AsManager.GetHomeAddress + parameters: + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + patch: + tags: + - Me.Location + summary: Update property HomeAddress value. + operationId: Me.AsManager.UpdateHomeAddress + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: Me.GetHomeAddress.AsEventLocation-5d95 + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire: + description: Provides operations to call the Hire method. + post: + tags: + - Me.Person.Actions + summary: Invoke action Hire + description: Hires someone for the company. + operationId: Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire + requestBody: + description: Action parameters + content: + application/json: + schema: + type: object + properties: + hire: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + - type: 'null' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: action + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips: + description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - Me.Trip + summary: List trips. + description: Retrieve a list of trips. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0 + operationId: Me.AsManager.ListTrips + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + post: + tags: + - Me.Trip + summary: Create a trip. + description: Create a new trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-post-trips?view=graph-rest-1.0 + operationId: Me.AsManager.CreateTrips + requestBody: + description: New navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + required: true + responses: + '201': + description: Created navigation property. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips + - /Me/Trips + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}': + description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - Me.Trip + summary: Get a trip. + description: Retrieve the properties of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-get-trips?view=graph-rest-1.0 + operationId: Me.AsManager.GetTrips + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + patch: + tags: + - Me.Trip + summary: Update a trip. + description: Update an instance of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-update-trips?view=graph-rest-1.0 + operationId: Me.AsManager.UpdateTrips + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + requestBody: + description: New navigation property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + delete: + tags: + - Me.Trip + summary: Delete a trip. + description: Delete an instance of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0 + operationId: Me.AsManager.DeleteTrips + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}' + - '/Me/Trips/{TripId}' + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()': + description: Provides operations to call the GetInvolvedPeople method. + get: + tags: + - Me.Trip + summary: Invoke function GetInvolvedPeople + operationId: Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Trips.Trip.GetInvolvedPeople + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Success + content: + application/json: + schema: + title: Collection of Person + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: function + x-ms-docs-grouped-path: + - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()' + - '/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()' + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems': + description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity. + get: + tags: + - Me.Trips.PlanItem + summary: Get PlanItems from Me + operationId: Me.AsManager.Trips.ListPlanItems + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems' + - '/Me/Trips/{TripId}/PlanItems' + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/{PlanItemId}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - Me.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for Me + operationId: Me.AsManager.Trips.planItems.DeleteRefPlanItem + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: PlanItemId + in: path + description: The unique identifier of PlanItem + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: PlanItem + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Trips.PlanItem + summary: Get the number of the resource + operationId: Me.AsManager.Trips.PlanItems.GetCount-5ad2 + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - Me.Trips.PlanItem + summary: Get ref of PlanItems from Me + operationId: Me.AsManager.Trips.ListRefPlanItems + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + post: + tags: + - Me.Trips.PlanItem + summary: Create new navigation property ref to PlanItems for Me + operationId: Me.AsManager.Trips.CreateRefPlanItems + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + delete: + tags: + - Me.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for Me + operationId: Me.AsManager.Trips.DeleteRefPlanItems + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Trip + summary: Get the number of the resource + operationId: Me.AsManager.Trips.GetCount-f3f4 + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip: + description: Provides operations to call the ShareTrip method. + post: + tags: + - Me.Person.Actions + summary: Invoke action ShareTrip + description: Details of the shared trip. + operationId: Me.ShareTrip + requestBody: + $ref: '#/components/requestBodies/ShareTripRequestBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: action + '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName=''{lastName}'')': + description: Provides operations to call the UpdatePersonLastName method. + get: + tags: + - Me.Person.Functions + summary: Invoke function UpdatePersonLastName + operationId: Me.UpdatePersonLastName + parameters: + - name: lastName + in: path + description: 'Usage: lastName=''{lastName}''' + required: true + schema: + type: string + responses: + '200': + $ref: '#/components/responses/UpdatePersonLastNameResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: function + /Me/Photo: + description: Provides operations to manage the media for the Person entity. + get: + tags: + - Me.Person + summary: Get Photo for Person from Me + operationId: Me.Person.GetPhoto-ab7e + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + put: + tags: + - Me.Person + summary: Update Photo for Person in Me + operationId: Me.Person.UpdatePhoto-ab7e + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + delete: + tags: + - Me.Person + summary: Delete Photo for Person in Me + operationId: Me.Person.DeletePhoto-ab7e + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /Me/Trips: + description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - Me.Trip + summary: List trips. + description: Retrieve a list of trips. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0 + operationId: Me.ListTrips + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + post: + tags: + - Me.Trip + summary: Create a trip. + description: Create a new trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-post-trips?view=graph-rest-1.0 + operationId: Me.CreateTrips + requestBody: + description: New navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + required: true + responses: + '201': + description: Created navigation property. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips + - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips + '/Me/Trips/{TripId}': + description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - Me.Trip + summary: Get a trip. + description: Retrieve the properties of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-get-trips?view=graph-rest-1.0 + operationId: Me.GetTrips + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + patch: + tags: + - Me.Trip + summary: Update a trip. + description: Update an instance of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-update-trips?view=graph-rest-1.0 + operationId: Me.UpdateTrips + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + requestBody: + description: New navigation property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + delete: + tags: + - Me.Trip + summary: Delete a trip. + description: Delete an instance of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0 + operationId: Me.DeleteTrips + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}' + - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}' + '/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()': + description: Provides operations to call the GetInvolvedPeople method. + get: + tags: + - Me.Trip + summary: Invoke function GetInvolvedPeople + operationId: Me.Trips.Trip.GetInvolvedPeople + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Success + content: + application/json: + schema: + title: Collection of Person + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: function + x-ms-docs-grouped-path: + - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()' + - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()' + '/Me/Trips/{TripId}/PlanItems': + description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity. + get: + tags: + - Me.Trips.PlanItem + summary: Get PlanItems from Me + operationId: Me.Trips.ListPlanItems + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems' + - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems' + '/Me/Trips/{TripId}/PlanItems/{PlanItemId}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - Me.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for Me + operationId: Me.Trips.planItems.DeleteRefPlanItem + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: PlanItemId + in: path + description: The unique identifier of PlanItem + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: PlanItem + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + '/Me/Trips/{TripId}/PlanItems/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Trips.PlanItem + summary: Get the number of the resource + operationId: Me.Trips.PlanItems.GetCount-c250 + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + '/Me/Trips/{TripId}/PlanItems/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - Me.Trips.PlanItem + summary: Get ref of PlanItems from Me + operationId: Me.Trips.ListRefPlanItems + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + post: + tags: + - Me.Trips.PlanItem + summary: Create new navigation property ref to PlanItems for Me + operationId: Me.Trips.CreateRefPlanItems + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + delete: + tags: + - Me.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for Me + operationId: Me.Trips.DeleteRefPlanItems + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + /Me/Trips/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Trip + summary: Get the number of the resource + operationId: Me.Trips.GetCount-7b69 + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + /NewComePeople: + description: Provides operations to manage the collection of Person entities. + get: + tags: + - NewComePeople.Person + summary: Get entities from NewComePeople + operationId: NewComePeople.Person.ListPerson + parameters: + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse' + default: + $ref: '#/components/responses/error' + post: + tags: + - NewComePeople.Person + summary: Add new entity to NewComePeople + operationId: NewComePeople.Person.CreatePerson + requestBody: + description: New entity + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + required: true + responses: + '201': + description: Created entity + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/NewComePeople/{UserName}': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - NewComePeople.Person + summary: Get entity from NewComePeople by key + operationId: NewComePeople.Person.GetPerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved entity + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + patch: + tags: + - NewComePeople.Person + summary: Update entity in NewComePeople + operationId: NewComePeople.Person.UpdatePerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - NewComePeople.Person + summary: Delete entity from NewComePeople + operationId: NewComePeople.Person.DeletePerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/NewComePeople/{UserName}/AddressInfo': + get: + tags: + - NewComePeople.Location + summary: Get AddressInfo property value + operationId: NewComePeople.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + patch: + tags: + - NewComePeople.Location + summary: Update property AddressInfo value. + operationId: NewComePeople.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + post: + tags: + - NewComePeople.Location + summary: Sets a new value for the collection of Location. + operationId: NewComePeople.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - NewComePeople.Location + summary: Get the number of the resource + operationId: NewComePeople.AddressInfo.GetCount-29d6 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - NewComePeople.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: NewComePeople.ListAddressInfo.AsEventLocation-d026 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: NewComePeople.AddressInfo.GetCount.AsEventLocation-29d3 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/BestFriend': + description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - NewComePeople.Person + summary: Get BestFriend from NewComePeople + description: The best friend. + operationId: NewComePeople.GetBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + x-ms-docs-operation-type: operation + patch: + tags: + - NewComePeople.Person + summary: Update the best friend. + description: Update an instance of a best friend. + operationId: NewComePeople.UpdateBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New navigation property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + x-ms-docs-operation-type: operation + '/NewComePeople/{UserName}/BestFriend/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - NewComePeople.Person + summary: Get ref of BestFriend from NewComePeople + description: The best friend. + operationId: NewComePeople.GetRefBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved navigation property link + content: + application/json: + schema: + type: string + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + x-ms-docs-operation-type: operation + put: + tags: + - NewComePeople.Person + summary: Update the best friend. + description: Update an instance of a best friend. + operationId: NewComePeople.UpdateRefBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + $ref: '#/components/requestBodies/refPutBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + x-ms-docs-operation-type: operation + delete: + tags: + - NewComePeople.Person + summary: Delete ref of navigation property BestFriend for NewComePeople + operationId: NewComePeople.DeleteRefBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + x-ms-docs-operation-type: operation + '/NewComePeople/{UserName}/BestFriend/AddressInfo': + get: + tags: + - NewComePeople.Person.Location + summary: Get AddressInfo property value + operationId: NewComePeople.BestFriend.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + patch: + tags: + - NewComePeople.Person.Location + summary: Update property AddressInfo value. + operationId: NewComePeople.BestFriend.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + post: + tags: + - NewComePeople.Person.Location + summary: Sets a new value for the collection of Location. + operationId: NewComePeople.BestFriend.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + '/NewComePeople/{UserName}/BestFriend/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - NewComePeople.Person.Location + summary: Get the number of the resource + operationId: NewComePeople.BestFriend.AddressInfo.GetCount-513c + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + '/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - NewComePeople.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: NewComePeople.BestFriend.ListAddressInfo.AsEventLocation-73fa + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + '/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: NewComePeople.BestFriend.AddressInfo.GetCount.AsEventLocation-ba36 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + '/NewComePeople/{UserName}/BestFriend/HomeAddress': + get: + tags: + - NewComePeople.Person.Location + summary: Get HomeAddress property value + operationId: NewComePeople.BestFriend.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + patch: + tags: + - NewComePeople.Person.Location + summary: Update property HomeAddress value. + operationId: NewComePeople.BestFriend.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + '/NewComePeople/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - NewComePeople.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: NewComePeople.BestFriend.GetHomeAddress.AsEventLocation-8ebe + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + '/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': + description: Casts the previous resource to Employee. + get: + tags: + - NewComePeople.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee + operationId: NewComePeople.GetBestFriend.AsEmployee-7b75 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + '/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager': + description: Casts the previous resource to Manager. + get: + tags: + - NewComePeople.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager + operationId: NewComePeople.GetBestFriend.AsManager-61ce + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + '/NewComePeople/{UserName}/BestFriend/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - NewComePeople.Person + summary: Get Photo for the navigation property BestFriend from NewComePeople + operationId: NewComePeople.GetBestFriendPhoto-4f67 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + put: + tags: + - NewComePeople.Person + summary: Update Photo for the navigation property BestFriend in NewComePeople + operationId: NewComePeople.UpdateBestFriendPhoto-4f67 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + delete: + tags: + - NewComePeople.Person + summary: Delete Photo for the navigation property BestFriend in NewComePeople + operationId: NewComePeople.DeleteBestFriendPhoto-4f67 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/bestfriend + description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API. + '/NewComePeople/{UserName}/Friends': + description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - NewComePeople.Person + summary: Get Friends from NewComePeople + description: Friends of person + operationId: NewComePeople.ListFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/NewComePeople/{UserName}/Friends/{UserName1}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - NewComePeople.Person + summary: Delete ref of navigation property Friends for NewComePeople + operationId: NewComePeople.friends.DeleteRefPerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo': + get: + tags: + - NewComePeople.Person.Location + summary: Get AddressInfo property value + operationId: NewComePeople.Friends.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + patch: + tags: + - NewComePeople.Person.Location + summary: Update property AddressInfo value. + operationId: NewComePeople.Friends.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + post: + tags: + - NewComePeople.Person.Location + summary: Sets a new value for the collection of Location. + operationId: NewComePeople.Friends.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - NewComePeople.Person.Location + summary: Get the number of the resource + operationId: NewComePeople.Friends.AddressInfo.GetCount-9334 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - NewComePeople.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: NewComePeople.Friends.ListAddressInfo.AsEventLocation-eeb4 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: NewComePeople.Friends.AddressInfo.GetCount.AsEventLocation-be92 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress': + get: + tags: + - NewComePeople.Person.Location + summary: Get HomeAddress property value + operationId: NewComePeople.Friends.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + patch: + tags: + - NewComePeople.Person.Location + summary: Update property HomeAddress value. + operationId: NewComePeople.Friends.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - NewComePeople.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: NewComePeople.Friends.GetHomeAddress.AsEventLocation-f4d9 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': + description: Casts the previous resource to Employee. + get: + tags: + - NewComePeople.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee + operationId: NewComePeople.GetFriends.AsEmployee-2969 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee' + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager': + description: Casts the previous resource to Manager. + get: + tags: + - NewComePeople.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager + operationId: NewComePeople.GetFriends.AsManager-708f + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/Friends/{UserName1}/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - NewComePeople.Person + summary: Get Photo for the navigation property Friends from NewComePeople + operationId: NewComePeople.GetFriendsPhoto-e9fc + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + put: + tags: + - NewComePeople.Person + summary: Update Photo for the navigation property Friends in NewComePeople + operationId: NewComePeople.UpdateFriendsPhoto-e9fc + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + delete: + tags: + - NewComePeople.Person + summary: Delete Photo for the navigation property Friends in NewComePeople + operationId: NewComePeople.DeleteFriendsPhoto-e9fc + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/Friends/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - NewComePeople.Person + summary: Get the number of the resource + operationId: NewComePeople.Friends.GetCount-2ec1 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/Friends/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - NewComePeople.Person + summary: Get ref of Friends from NewComePeople + description: Friends of person + operationId: NewComePeople.ListRefFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + post: + tags: + - NewComePeople.Person + summary: Create new navigation property ref to Friends for NewComePeople + operationId: NewComePeople.CreateRefFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - NewComePeople.Person + summary: Delete ref of navigation property Friends for NewComePeople + operationId: NewComePeople.DeleteRefFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': + description: Casts the previous resource to Employee. + get: + tags: + - NewComePeople.Person + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection + operationId: NewComePeople.ListFriends.AsEmployee-2969 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse' + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - NewComePeople.Person + summary: Get the number of the resource + operationId: NewComePeople.Friends.GetCount.AsEmployee-4069 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager': + description: Casts the previous resource to Manager. + get: + tags: + - NewComePeople.Person + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection + operationId: NewComePeople.ListFriends.AsManager-708f + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse' + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - NewComePeople.Person + summary: Get the number of the resource + operationId: NewComePeople.Friends.GetCount.AsManager-d1d3 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/HomeAddress': + get: + tags: + - NewComePeople.Location + summary: Get HomeAddress property value + operationId: NewComePeople.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + patch: + tags: + - NewComePeople.Location + summary: Update property HomeAddress value. + operationId: NewComePeople.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - NewComePeople.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: NewComePeople.GetHomeAddress.AsEventLocation-3fd9 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()': + description: Provides operations to call the GetFavoriteAirline method. + get: + tags: + - NewComePeople.Person.Functions + summary: Invoke function GetFavoriteAirline + operationId: NewComePeople.Person.GetFavoriteAirline + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + $ref: '#/components/responses/GetFavoriteAirlineResponse' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: function + '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')': + description: Provides operations to call the GetFriendsTrips method. + get: + tags: + - NewComePeople.Person.Functions + summary: Invoke function GetFriendsTrips + operationId: NewComePeople.Person.GetFriendsTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: userName + in: path + description: 'Usage: userName=''{userName}''' + required: true + schema: + type: string + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/GetFriendsTripsResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/trips + description: The GetFriendsTrips API is deprecated and will stop returning data on March 2023. Please use the new trips API on friends. + x-ms-docs-operation-type: function + '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip': + description: Provides operations to call the GetPeersForTrip method. + post: + tags: + - NewComePeople.Person.Actions + summary: Invoke action GetPeersForTrip + operationId: NewComePeople.Person.GetPeersForTrip + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + $ref: '#/components/requestBodies/GetPeersForTripRequestBody' + responses: + '200': + $ref: '#/components/responses/GetPeersForTripResponse' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: action + '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire': + description: Provides operations to call the Hire method. + post: + tags: + - NewComePeople.Person.Actions + summary: Invoke action Hire + description: Hires someone for the company. + operationId: NewComePeople.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: Action parameters + content: + application/json: + schema: + type: object + properties: + hire: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + - type: 'null' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: action + '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip': + description: Provides operations to call the ShareTrip method. + post: + tags: + - NewComePeople.Person.Actions + summary: Invoke action ShareTrip + description: Details of the shared trip. + operationId: NewComePeople.Person.ShareTrip + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + $ref: '#/components/requestBodies/ShareTripRequestBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: action + '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName=''{lastName}'')': + description: Provides operations to call the UpdatePersonLastName method. + get: + tags: + - NewComePeople.Person.Functions + summary: Invoke function UpdatePersonLastName + operationId: NewComePeople.Person.UpdatePersonLastName + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: lastName + in: path + description: 'Usage: lastName=''{lastName}''' + required: true + schema: + type: string + responses: + '200': + $ref: '#/components/responses/UpdatePersonLastNameResponse' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: function + '/NewComePeople/{UserName}/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - NewComePeople.Person + summary: Get Photo for Person from NewComePeople + operationId: NewComePeople.Person.GetPhoto-74be + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + put: + tags: + - NewComePeople.Person + summary: Update Photo for Person in NewComePeople + operationId: NewComePeople.Person.UpdatePhoto-74be + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + delete: + tags: + - NewComePeople.Person + summary: Delete Photo for Person in NewComePeople + operationId: NewComePeople.Person.DeletePhoto-74be + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/Trips': + description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - NewComePeople.Trip + summary: List trips. + description: Retrieve a list of trips. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0 + operationId: NewComePeople.ListTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + post: + tags: + - NewComePeople.Trip + summary: Create a trip. + description: Create a new trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-post-trips?view=graph-rest-1.0 + operationId: NewComePeople.CreateTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + required: true + responses: + '201': + description: Created navigation property. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/NewComePeople/{UserName}/Trips/{TripId}': + description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - NewComePeople.Trip + summary: Get a trip. + description: Retrieve the properties of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-get-trips?view=graph-rest-1.0 + operationId: NewComePeople.GetTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + patch: + tags: + - NewComePeople.Trip + summary: Update a trip. + description: Update an instance of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-update-trips?view=graph-rest-1.0 + operationId: NewComePeople.UpdateTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + requestBody: + description: New navigation property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - NewComePeople.Trip + summary: Delete a trip. + description: Delete an instance of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0 + operationId: NewComePeople.DeleteTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/NewComePeople/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()': + description: Provides operations to call the GetInvolvedPeople method. + get: + tags: + - NewComePeople.Trip + summary: Invoke function GetInvolvedPeople + operationId: NewComePeople.Person.Trips.Trip.GetInvolvedPeople + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Success + content: + application/json: + schema: + title: Collection of Person + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: function + '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems': + description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity. + get: + tags: + - NewComePeople.Trips.PlanItem + summary: Get PlanItems from NewComePeople + operationId: NewComePeople.Trips.ListPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/{PlanItemId}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - NewComePeople.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for NewComePeople + operationId: NewComePeople.Trips.planItems.DeleteRefPlanItem + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: PlanItemId + in: path + description: The unique identifier of PlanItem + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: PlanItem + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - NewComePeople.Trips.PlanItem + summary: Get the number of the resource + operationId: NewComePeople.Trips.PlanItems.GetCount-841f + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - NewComePeople.Trips.PlanItem + summary: Get ref of PlanItems from NewComePeople + operationId: NewComePeople.Trips.ListRefPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + post: + tags: + - NewComePeople.Trips.PlanItem + summary: Create new navigation property ref to PlanItems for NewComePeople + operationId: NewComePeople.Trips.CreateRefPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + delete: + tags: + - NewComePeople.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for NewComePeople + operationId: NewComePeople.Trips.DeleteRefPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation + '/NewComePeople/{UserName}/Trips/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - NewComePeople.Trip + summary: Get the number of the resource + operationId: NewComePeople.Trips.GetCount-d155 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + /NewComePeople/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - NewComePeople.Person + summary: Get the number of the resource + operationId: NewComePeople.GetCount-55d5 + parameters: + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + /People: + description: Provides operations to manage the collection of Person entities. + get: + tags: + - People.Person + summary: Get entities from People + operationId: People.Person.ListPerson + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + post: + tags: + - People.Person + summary: Add new entity to People + operationId: People.Person.CreatePerson + requestBody: + description: New entity + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + required: true + responses: + '201': + description: Created entity + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - People.Person + summary: Get entity from People by key + operationId: People.Person.GetPerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved entity + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + patch: + tags: + - People.Person + summary: Update entity in People + operationId: People.Person.UpdatePerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete entity from People + operationId: People.Person.DeletePerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/AddressInfo': + get: + tags: + - People.Location + summary: Get AddressInfo property value + operationId: People.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Location + summary: Update property AddressInfo value. + operationId: People.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + post: + tags: + - People.Location + summary: Sets a new value for the collection of Location. + operationId: People.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Location + summary: Get the number of the resource + operationId: People.AddressInfo.GetCount-ed5a + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.ListAddressInfo.AsEventLocation-e5b8 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: People.AddressInfo.GetCount.AsEventLocation-4abd + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/BestFriend': + description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - People.Person + summary: Get BestFriend from People + description: The best friend. + operationId: People.GetBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + patch: + tags: + - People.Person + summary: Update the best friend. + description: Update an instance of a best friend. + operationId: People.UpdateBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New navigation property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend' + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend' + '/People/{UserName}/BestFriend/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - People.Person + summary: Get ref of BestFriend from People + description: The best friend. + operationId: People.GetRefBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved navigation property link + content: + application/json: + schema: + type: string + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + put: + tags: + - People.Person + summary: Update the best friend. + description: Update an instance of a best friend. + operationId: People.UpdateRefBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + $ref: '#/components/requestBodies/refPutBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete ref of navigation property BestFriend for People + operationId: People.DeleteRefBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/BestFriend/AddressInfo': + get: + tags: + - People.Person.Location + summary: Get AddressInfo property value + operationId: People.BestFriend.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Person.Location + summary: Update property AddressInfo value. + operationId: People.BestFriend.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + post: + tags: + - People.Person.Location + summary: Sets a new value for the collection of Location. + operationId: People.BestFriend.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/BestFriend/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person.Location + summary: Get the number of the resource + operationId: People.BestFriend.AddressInfo.GetCount-16df + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.BestFriend.ListAddressInfo.AsEventLocation-c332 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: People.BestFriend.AddressInfo.GetCount.AsEventLocation-fe88 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/BestFriend/HomeAddress': + get: + tags: + - People.Person.Location + summary: Get HomeAddress property value + operationId: People.BestFriend.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Person.Location + summary: Update property HomeAddress value. + operationId: People.BestFriend.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.BestFriend.GetHomeAddress.AsEventLocation-53c4 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': + description: Casts the previous resource to Employee. + get: + tags: + - People.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee + operationId: People.GetBestFriend.AsEmployee-7188 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager': + description: Casts the previous resource to Manager. + get: + tags: + - People.Person + summary: Get best friend + description: Get the item of type Person cast as Manager + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/person-get-friend-manager?view=graph-rest-1.0 + operationId: People.GetBestFriend.AsManager-5f08 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/BestFriend/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - People.Person + summary: Get Photo for the navigation property BestFriend from People + operationId: People.GetBestFriendPhoto-c3ac + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + put: + tags: + - People.Person + summary: Update Photo for the navigation property BestFriend in People + operationId: People.UpdateBestFriendPhoto-c3ac + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + delete: + tags: + - People.Person + summary: Delete Photo for the navigation property BestFriend in People + operationId: People.DeleteBestFriendPhoto-c3ac + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Friends': + description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - People.Person + summary: List friends + description: List the friends of a specific person + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/person-list-friends?view=graph-rest-1.0 + operationId: People.ListFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends' + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends' + '/People/{UserName}/Friends/{UserName1}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - People.Person + summary: Delete a friend. + description: Delete an instance of a friend relationship. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/person-delete-friend?view=graph-rest-1.0 + operationId: People.friends.DeleteRefPerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Friends/{UserName1}/AddressInfo': + get: + tags: + - People.Person.Location + summary: Get AddressInfo property value + operationId: People.Friends.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Person.Location + summary: Update property AddressInfo value. + operationId: People.Friends.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + post: + tags: + - People.Person.Location + summary: Sets a new value for the collection of Location. + operationId: People.Friends.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Friends/{UserName1}/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person.Location + summary: Get the number of the resource + operationId: People.Friends.AddressInfo.GetCount-bdaf + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.Friends.ListAddressInfo.AsEventLocation-a5f6 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: People.Friends.AddressInfo.GetCount.AsEventLocation-2795 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Friends/{UserName1}/HomeAddress': + get: + tags: + - People.Person.Location + summary: Get HomeAddress property value + operationId: People.Friends.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Person.Location + summary: Update property HomeAddress value. + operationId: People.Friends.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.Friends.GetHomeAddress.AsEventLocation-da5e + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': + description: Casts the previous resource to Employee. + get: + tags: + - People.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee + operationId: People.GetFriends.AsEmployee-11bf + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager': + description: Casts the previous resource to Manager. + get: + tags: + - People.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager + operationId: People.GetFriends.AsManager-1cfb + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Friends/{UserName1}/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - People.Person + summary: Get Photo for the navigation property Friends from People + operationId: People.GetFriendsPhoto-12fc + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + put: + tags: + - People.Person + summary: Update Photo for the navigation property Friends in People + operationId: People.UpdateFriendsPhoto-12fc + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + delete: + tags: + - People.Person + summary: Delete Photo for the navigation property Friends in People + operationId: People.DeleteFriendsPhoto-12fc + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Friends/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person + summary: Get the number of the resource + operationId: People.Friends.GetCount-92b9 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Friends/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - People.Person + summary: List friends + description: List the friends of a specific person + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/person-list-friends?view=graph-rest-1.0 + operationId: People.ListRefFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + post: + tags: + - People.Person + summary: Create a friend. + description: Create a new friend. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/person-post-friend?view=graph-rest-1.0 + operationId: People.CreateRefFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete a friend. + description: Delete an instance of a friend relationship. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/person-delete-friend?view=graph-rest-1.0 + operationId: People.DeleteRefFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': + description: Casts the previous resource to Employee. + get: + tags: + - People.Person + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection + operationId: People.ListFriends.AsEmployee-11bf + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person + summary: Get the number of the resource + operationId: People.Friends.GetCount.AsEmployee-a96c + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager': + description: Casts the previous resource to Manager. + get: + tags: + - People.Person + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection + operationId: People.ListFriends.AsManager-1cfb + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person + summary: Get the number of the resource + operationId: People.Friends.GetCount.AsManager-26b3 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/HomeAddress': + get: + tags: + - People.Location + summary: Get home address + description: Get the home address of a specific person + operationId: People.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Location + summary: Update property HomeAddress value. + operationId: People.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.GetHomeAddress.AsEventLocation-d0cf + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': + description: Casts the previous resource to Employee. + get: + tags: + - People.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee + operationId: People.Person.GetPerson.AsEmployee-317b + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo': + get: + tags: + - People.Location + summary: Get AddressInfo property value + operationId: People.AsEmployee.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Location + summary: Update property AddressInfo value. + operationId: People.AsEmployee.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + post: + tags: + - People.Location + summary: Sets a new value for the collection of Location. + operationId: People.AsEmployee.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Location + summary: Get the number of the resource + operationId: People.AsEmployee.AddressInfo.GetCount-3d43 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.ListAddressInfo.AsEventLocation-1342 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: People.AddressInfo.GetCount.AsEventLocation-ac7d + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend': + description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - People.Person + summary: Get BestFriend from People + description: The best friend. + operationId: People.AsEmployee.GetBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + patch: + tags: + - People.Person + summary: Update the best friend. + description: Update an instance of a best friend. + operationId: People.AsEmployee.UpdateBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New navigation property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/People/{UserName}/BestFriend' + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend' + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - People.Person + summary: Get ref of BestFriend from People + description: The best friend. + operationId: People.AsEmployee.GetRefBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved navigation property link + content: + application/json: + schema: + type: string + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + put: + tags: + - People.Person + summary: Update the best friend. + description: Update an instance of a best friend. + operationId: People.AsEmployee.UpdateRefBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + $ref: '#/components/requestBodies/refPutBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete ref of navigation property BestFriend for People + operationId: People.AsEmployee.DeleteRefBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo': + get: + tags: + - People.Person.Location + summary: Get AddressInfo property value + operationId: People.AsEmployee.BestFriend.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Person.Location + summary: Update property AddressInfo value. + operationId: People.AsEmployee.BestFriend.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + post: + tags: + - People.Person.Location + summary: Sets a new value for the collection of Location. + operationId: People.AsEmployee.BestFriend.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person.Location + summary: Get the number of the resource + operationId: People.AsEmployee.BestFriend.AddressInfo.GetCount-cb8a + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.BestFriend.ListAddressInfo.AsEventLocation-7cd9 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: People.BestFriend.AddressInfo.GetCount.AsEventLocation-0343 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress': + get: + tags: + - People.Person.Location + summary: Get HomeAddress property value + operationId: People.AsEmployee.BestFriend.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Person.Location + summary: Update property HomeAddress value. + operationId: People.AsEmployee.BestFriend.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.BestFriend.GetHomeAddress.AsEventLocation-7db9 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager': + description: Casts the previous resource to Manager. + get: + tags: + - People.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager + operationId: People.GetBestFriend.AsManager-7b70 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - People.Person + summary: Get Photo for the navigation property BestFriend from People + operationId: People.GetBestFriendPhoto-a839 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + put: + tags: + - People.Person + summary: Update Photo for the navigation property BestFriend in People + operationId: People.UpdateBestFriendPhoto-a839 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + delete: + tags: + - People.Person + summary: Delete Photo for the navigation property BestFriend in People + operationId: People.DeleteBestFriendPhoto-a839 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends': + description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - People.Person + summary: Get Friends from People + description: Friends of person + operationId: People.AsEmployee.ListFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/People/{UserName}/Friends' + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends' + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - People.Person + summary: Delete ref of navigation property Friends for People + operationId: People.AsEmployee.friends.DeleteRefPerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo': + get: + tags: + - People.Person.Location + summary: Get AddressInfo property value + operationId: People.AsEmployee.Friends.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Person.Location + summary: Update property AddressInfo value. + operationId: People.AsEmployee.Friends.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + post: + tags: + - People.Person.Location + summary: Sets a new value for the collection of Location. + operationId: People.AsEmployee.Friends.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person.Location + summary: Get the number of the resource + operationId: People.AsEmployee.Friends.AddressInfo.GetCount-1e8b + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.Friends.ListAddressInfo.AsEventLocation-d49e + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: People.Friends.AddressInfo.GetCount.AsEventLocation-1f2b + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/HomeAddress': + get: + tags: + - People.Person.Location + summary: Get HomeAddress property value + operationId: People.AsEmployee.Friends.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Person.Location + summary: Update property HomeAddress value. + operationId: People.AsEmployee.Friends.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.Friends.GetHomeAddress.AsEventLocation-d77d + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager': + description: Casts the previous resource to Manager. + get: + tags: + - People.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager + operationId: People.GetFriends.AsManager-3e3c + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - People.Person + summary: Get Photo for the navigation property Friends from People + operationId: People.GetFriendsPhoto-1a66 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + put: + tags: + - People.Person + summary: Update Photo for the navigation property Friends in People + operationId: People.UpdateFriendsPhoto-1a66 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + delete: + tags: + - People.Person + summary: Delete Photo for the navigation property Friends in People + operationId: People.DeleteFriendsPhoto-1a66 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person + summary: Get the number of the resource + operationId: People.AsEmployee.Friends.GetCount-4db4 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - People.Person + summary: Get ref of Friends from People + description: Friends of person + operationId: People.AsEmployee.ListRefFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + post: + tags: + - People.Person + summary: Create new navigation property ref to Friends for People + operationId: People.AsEmployee.CreateRefFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete ref of navigation property Friends for People + operationId: People.AsEmployee.DeleteRefFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager': + description: Casts the previous resource to Manager. + get: + tags: + - People.Person + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection + operationId: People.ListFriends.AsManager-3e3c + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person + summary: Get the number of the resource + operationId: People.Friends.GetCount.AsManager-b145 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/HomeAddress': + get: + tags: + - People.Location + summary: Get HomeAddress property value + operationId: People.AsEmployee.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Location + summary: Update property HomeAddress value. + operationId: People.AsEmployee.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.GetHomeAddress.AsEventLocation-90e5 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers': + description: Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity. + get: + tags: + - People.Person + summary: Get Peers from People + operationId: People.AsEmployee.ListPeers + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - People.Person + summary: Delete ref of navigation property Peers for People + operationId: People.AsEmployee.peers.DeleteRefPerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo': + get: + tags: + - People.Person.Location + summary: Get AddressInfo property value + operationId: People.AsEmployee.Peers.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Person.Location + summary: Update property AddressInfo value. + operationId: People.AsEmployee.Peers.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + post: + tags: + - People.Person.Location + summary: Sets a new value for the collection of Location. + operationId: People.AsEmployee.Peers.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person.Location + summary: Get the number of the resource + operationId: People.AsEmployee.Peers.AddressInfo.GetCount-755d + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.Peers.ListAddressInfo.AsEventLocation-b918 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: People.Peers.AddressInfo.GetCount.AsEventLocation-ef5e + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress': + get: + tags: + - People.Person.Location + summary: Get HomeAddress property value + operationId: People.AsEmployee.Peers.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Person.Location + summary: Update property HomeAddress value. + operationId: People.AsEmployee.Peers.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.Peers.GetHomeAddress.AsEventLocation-311b + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - People.Person + summary: Get Photo for the navigation property Peers from People + operationId: People.GetPeersPhoto-ecda + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + put: + tags: + - People.Person + summary: Update Photo for the navigation property Peers in People + operationId: People.UpdatePeersPhoto-ecda + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + delete: + tags: + - People.Person + summary: Delete Photo for the navigation property Peers in People + operationId: People.DeletePeersPhoto-ecda + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person + summary: Get the number of the resource + operationId: People.AsEmployee.Peers.GetCount-44d2 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - People.Person + summary: Get ref of Peers from People + operationId: People.AsEmployee.ListRefPeers + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + post: + tags: + - People.Person + summary: Create new navigation property ref to Peers for People + operationId: People.AsEmployee.CreateRefPeers + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete ref of navigation property Peers for People + operationId: People.AsEmployee.DeleteRefPeers + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips': + description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - People.Trip + summary: List trips. + description: Retrieve a list of trips. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0 + operationId: People.AsEmployee.ListTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + post: + tags: + - People.Trip + summary: Create a trip. + description: Create a new trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-post-trips?view=graph-rest-1.0 + operationId: People.AsEmployee.CreateTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + required: true + responses: + '201': + description: Created navigation property. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips' + - '/People/{UserName}/Trips' + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}': + description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - People.Trip + summary: Get a trip. + description: Retrieve the properties of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-get-trips?view=graph-rest-1.0 + operationId: People.AsEmployee.GetTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + patch: + tags: + - People.Trip + summary: Update a trip. + description: Update an instance of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-update-trips?view=graph-rest-1.0 + operationId: People.AsEmployee.UpdateTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + requestBody: + description: New navigation property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + delete: + tags: + - People.Trip + summary: Delete a trip. + description: Delete an instance of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0 + operationId: People.AsEmployee.DeleteTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}' + - '/People/{UserName}/Trips/{TripId}' + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()': + description: Provides operations to call the GetInvolvedPeople method. + get: + tags: + - People.Trip + summary: Invoke function GetInvolvedPeople + operationId: People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee.Trips.Trip.GetInvolvedPeople + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Success + content: + application/json: + schema: + title: Collection of Person + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: function + x-ms-docs-grouped-path: + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()' + - '/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()' + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems': + description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity. + get: + tags: + - People.Trips.PlanItem + summary: Get PlanItems from People + operationId: People.AsEmployee.Trips.ListPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems' + - '/People/{UserName}/Trips/{TripId}/PlanItems' + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/{PlanItemId}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - People.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for People + operationId: People.AsEmployee.Trips.planItems.DeleteRefPlanItem + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: PlanItemId + in: path + description: The unique identifier of PlanItem + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: PlanItem + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Trips.PlanItem + summary: Get the number of the resource + operationId: People.AsEmployee.Trips.PlanItems.GetCount-7df9 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - People.Trips.PlanItem + summary: Get ref of PlanItems from People + operationId: People.AsEmployee.Trips.ListRefPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + post: + tags: + - People.Trips.PlanItem + summary: Create new navigation property ref to PlanItems for People + operationId: People.AsEmployee.Trips.CreateRefPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + delete: + tags: + - People.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for People + operationId: People.AsEmployee.Trips.DeleteRefPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Trip + summary: Get the number of the resource + operationId: People.AsEmployee.Trips.GetCount-c760 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()': + description: Provides operations to call the GetFavoriteAirline method. + get: + tags: + - People.Person.Functions + summary: Invoke function GetFavoriteAirline + operationId: People.Person.GetFavoriteAirline + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + $ref: '#/components/responses/GetFavoriteAirlineResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: function + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')': + description: Provides operations to call the GetFriendsTrips method. + get: + tags: + - People.Person.Functions + summary: Invoke function GetFriendsTrips + operationId: People.Person.GetFriendsTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: userName + in: path + description: 'Usage: userName=''{userName}''' + required: true + schema: + type: string + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/GetFriendsTripsResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: function + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip': + description: Provides operations to call the GetPeersForTrip method. + post: + tags: + - People.Person.Actions + summary: Invoke action GetPeersForTrip + operationId: People.Person.GetPeersForTrip + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + $ref: '#/components/requestBodies/GetPeersForTripRequestBody' + responses: + '200': + $ref: '#/components/responses/GetPeersForTripResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: action + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager': + description: Casts the previous resource to Manager. + get: + tags: + - People.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager + operationId: People.Person.GetPerson.AsManager-d051 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo': + get: + tags: + - People.Location + summary: Get AddressInfo property value + operationId: People.AsManager.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Location + summary: Update property AddressInfo value. + operationId: People.AsManager.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + post: + tags: + - People.Location + summary: Sets a new value for the collection of Location. + operationId: People.AsManager.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Location + summary: Get the number of the resource + operationId: People.AsManager.AddressInfo.GetCount-f84e + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.ListAddressInfo.AsEventLocation-7526 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: People.AddressInfo.GetCount.AsEventLocation-3722 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend': + description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - People.Person + summary: Get BestFriend from People + description: The best friend. + operationId: People.AsManager.GetBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + patch: + tags: + - People.Person + summary: Update the best friend. + description: Update an instance of a best friend. + operationId: People.AsManager.UpdateBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New navigation property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/People/{UserName}/BestFriend' + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend' + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - People.Person + summary: Get ref of BestFriend from People + description: The best friend. + operationId: People.AsManager.GetRefBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved navigation property link + content: + application/json: + schema: + type: string + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + put: + tags: + - People.Person + summary: Update the best friend. + description: Update an instance of a best friend. + operationId: People.AsManager.UpdateRefBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + $ref: '#/components/requestBodies/refPutBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete ref of navigation property BestFriend for People + operationId: People.AsManager.DeleteRefBestFriend + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo': + get: + tags: + - People.Person.Location + summary: Get AddressInfo property value + operationId: People.AsManager.BestFriend.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Person.Location + summary: Update property AddressInfo value. + operationId: People.AsManager.BestFriend.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + post: + tags: + - People.Person.Location + summary: Sets a new value for the collection of Location. + operationId: People.AsManager.BestFriend.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person.Location + summary: Get the number of the resource + operationId: People.AsManager.BestFriend.AddressInfo.GetCount-5a39 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.BestFriend.ListAddressInfo.AsEventLocation-897f + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: People.BestFriend.AddressInfo.GetCount.AsEventLocation-5af3 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress': + get: + tags: + - People.Person.Location + summary: Get HomeAddress property value + operationId: People.AsManager.BestFriend.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Person.Location + summary: Update property HomeAddress value. + operationId: People.AsManager.BestFriend.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.BestFriend.GetHomeAddress.AsEventLocation-545d + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': + description: Casts the previous resource to Employee. + get: + tags: + - People.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee + operationId: People.GetBestFriend.AsEmployee-0445 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - People.Person + summary: Get Photo for the navigation property BestFriend from People + operationId: People.GetBestFriendPhoto-f05d + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + put: + tags: + - People.Person + summary: Update Photo for the navigation property BestFriend in People + operationId: People.UpdateBestFriendPhoto-f05d + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + delete: + tags: + - People.Person + summary: Delete Photo for the navigation property BestFriend in People + operationId: People.DeleteBestFriendPhoto-f05d + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports': + description: Provides operations to manage the DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity. + get: + tags: + - People.Person + summary: Get DirectReports from People + operationId: People.AsManager.ListDirectReports + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - People.Person + summary: Delete ref of navigation property DirectReports for People + operationId: People.AsManager.directReports.DeleteRefPerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo': + get: + tags: + - People.Person.Location + summary: Get AddressInfo property value + operationId: People.AsManager.DirectReports.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Person.Location + summary: Update property AddressInfo value. + operationId: People.AsManager.DirectReports.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + post: + tags: + - People.Person.Location + summary: Sets a new value for the collection of Location. + operationId: People.AsManager.DirectReports.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person.Location + summary: Get the number of the resource + operationId: People.AsManager.DirectReports.AddressInfo.GetCount-f46e + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.DirectReports.ListAddressInfo.AsEventLocation-1252 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: People.DirectReports.AddressInfo.GetCount.AsEventLocation-5d49 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress': + get: + tags: + - People.Person.Location + summary: Get HomeAddress property value + operationId: People.AsManager.DirectReports.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Person.Location + summary: Update property HomeAddress value. + operationId: People.AsManager.DirectReports.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.DirectReports.GetHomeAddress.AsEventLocation-cf8d + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - People.Person + summary: Get Photo for the navigation property DirectReports from People + operationId: People.GetDirectReportsPhoto-7149 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + put: + tags: + - People.Person + summary: Update Photo for the navigation property DirectReports in People + operationId: People.UpdateDirectReportsPhoto-7149 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + delete: + tags: + - People.Person + summary: Delete Photo for the navigation property DirectReports in People + operationId: People.DeleteDirectReportsPhoto-7149 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person + summary: Get the number of the resource + operationId: People.AsManager.DirectReports.GetCount-0ec4 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - People.Person + summary: Get ref of DirectReports from People + operationId: People.AsManager.ListRefDirectReports + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + post: + tags: + - People.Person + summary: Create new navigation property ref to DirectReports for People + operationId: People.AsManager.CreateRefDirectReports + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete ref of navigation property DirectReports for People + operationId: People.AsManager.DeleteRefDirectReports + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends': + description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - People.Person + summary: Get Friends from People + description: Friends of person + operationId: People.AsManager.ListFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/People/{UserName}/Friends' + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends' + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - People.Person + summary: Delete ref of navigation property Friends for People + operationId: People.AsManager.friends.DeleteRefPerson + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo': + get: + tags: + - People.Person.Location + summary: Get AddressInfo property value + operationId: People.AsManager.Friends.ListAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Person.Location + summary: Update property AddressInfo value. + operationId: People.AsManager.Friends.UpdateAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + post: + tags: + - People.Person.Location + summary: Sets a new value for the collection of Location. + operationId: People.AsManager.Friends.SetAddressInfo + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + requestBody: + description: New property values + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person.Location + summary: Get the number of the resource + operationId: People.AsManager.Friends.AddressInfo.GetCount-f486 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.Friends.ListAddressInfo.AsEventLocation-f8c9 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + description: Provides operations to count the resources in the collection. + get: + summary: Get the number of the resource + operationId: People.Friends.AddressInfo.GetCount.AsEventLocation-4480 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/HomeAddress': + get: + tags: + - People.Person.Location + summary: Get HomeAddress property value + operationId: People.AsManager.Friends.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Person.Location + summary: Update property HomeAddress value. + operationId: People.AsManager.Friends.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Person.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.Friends.GetHomeAddress.AsEventLocation-eb71 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': + description: Casts the previous resource to Employee. + get: + tags: + - People.Person + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee + operationId: People.GetFriends.AsEmployee-161e + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - People.Person + summary: Get Photo for the navigation property Friends from People + operationId: People.GetFriendsPhoto-b97d + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + put: + tags: + - People.Person + summary: Update Photo for the navigation property Friends in People + operationId: People.UpdateFriendsPhoto-b97d + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + delete: + tags: + - People.Person + summary: Delete Photo for the navigation property Friends in People + operationId: People.DeleteFriendsPhoto-b97d + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: UserName1 + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person + summary: Get the number of the resource + operationId: People.AsManager.Friends.GetCount-1c0c + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - People.Person + summary: Get ref of Friends from People + description: Friends of person + operationId: People.AsManager.ListRefFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + post: + tags: + - People.Person + summary: Create new navigation property ref to Friends for People + operationId: People.AsManager.CreateRefFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete ref of navigation property Friends for People + operationId: People.AsManager.DeleteRefFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': + description: Casts the previous resource to Employee. + get: + tags: + - People.Person + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection + operationId: People.ListFriends.AsEmployee-161e + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person + summary: Get the number of the resource + operationId: People.Friends.GetCount.AsEmployee-f325 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/HomeAddress': + get: + tags: + - People.Location + summary: Get HomeAddress property value + operationId: People.AsManager.GetHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + patch: + tags: + - People.Location + summary: Update property HomeAddress value. + operationId: People.AsManager.UpdateHomeAddress + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + description: Casts the previous resource to EventLocation. + get: + tags: + - People.Location + summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + operationId: People.GetHomeAddress.AsEventLocation-e3dc + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Entity result. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire': + description: Provides operations to call the Hire method. + post: + tags: + - People.Person.Actions + summary: Invoke action Hire + description: Hires someone for the company. + operationId: People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: Action parameters + content: + application/json: + schema: + type: object + properties: + hire: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + - type: 'null' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: action + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips': + description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - People.Trip + summary: List trips. + description: Retrieve a list of trips. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0 + operationId: People.AsManager.ListTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + post: + tags: + - People.Trip + summary: Create a trip. + description: Create a new trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-post-trips?view=graph-rest-1.0 + operationId: People.AsManager.CreateTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + required: true + responses: + '201': + description: Created navigation property. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips' + - '/People/{UserName}/Trips' + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}': + description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - People.Trip + summary: Get a trip. + description: Retrieve the properties of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-get-trips?view=graph-rest-1.0 + operationId: People.AsManager.GetTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + patch: + tags: + - People.Trip + summary: Update a trip. + description: Update an instance of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-update-trips?view=graph-rest-1.0 + operationId: People.AsManager.UpdateTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + requestBody: + description: New navigation property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + delete: + tags: + - People.Trip + summary: Delete a trip. + description: Delete an instance of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0 + operationId: People.AsManager.DeleteTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}' + - '/People/{UserName}/Trips/{TripId}' + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()': + description: Provides operations to call the GetInvolvedPeople method. + get: + tags: + - People.Trip + summary: Invoke function GetInvolvedPeople + operationId: People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Trips.Trip.GetInvolvedPeople + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Success + content: + application/json: + schema: + title: Collection of Person + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: function + x-ms-docs-grouped-path: + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()' + - '/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()' + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems': + description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity. + get: + tags: + - People.Trips.PlanItem + summary: Get PlanItems from People + operationId: People.AsManager.Trips.ListPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems' + - '/People/{UserName}/Trips/{TripId}/PlanItems' + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/{PlanItemId}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - People.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for People + operationId: People.AsManager.Trips.planItems.DeleteRefPlanItem + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: PlanItemId + in: path + description: The unique identifier of PlanItem + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: PlanItem + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Trips.PlanItem + summary: Get the number of the resource + operationId: People.AsManager.Trips.PlanItems.GetCount-fa08 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - People.Trips.PlanItem + summary: Get ref of PlanItems from People + operationId: People.AsManager.Trips.ListRefPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + post: + tags: + - People.Trips.PlanItem + summary: Create new navigation property ref to PlanItems for People + operationId: People.AsManager.Trips.CreateRefPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + delete: + tags: + - People.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for People + operationId: People.AsManager.Trips.DeleteRefPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Trip + summary: Get the number of the resource + operationId: People.AsManager.Trips.GetCount-1f8c + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip': + description: Provides operations to call the ShareTrip method. + post: + tags: + - People.Person.Actions + summary: Invoke action ShareTrip + description: Details of the shared trip. + operationId: People.Person.ShareTrip + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + $ref: '#/components/requestBodies/ShareTripRequestBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: action + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName=''{lastName}'')': + description: Provides operations to call the UpdatePersonLastName method. + get: + tags: + - People.Person.Functions + summary: Invoke function UpdatePersonLastName + operationId: People.Person.UpdatePersonLastName + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: lastName + in: path + description: 'Usage: lastName=''{lastName}''' + required: true + schema: + type: string + responses: + '200': + $ref: '#/components/responses/UpdatePersonLastNameResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: function + '/People/{UserName}/Photo': + description: Provides operations to manage the media for the Person entity. + get: + tags: + - People.Person + summary: Get photo + description: Get photo of a specific user + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/person-get-photo?view=graph-rest-1.0 + operationId: People.Person.GetPhoto-883f + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + responses: + '200': + description: Retrieved media content + content: + application/octet-stream: + schema: + type: string + format: binary + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + put: + tags: + - People.Person + summary: Update photo + description: Update photo of a specific user + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/person-update-photo?view=graph-rest-1.0 + operationId: People.Person.UpdatePhoto-883f + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New media content. + content: + application/octet-stream: + schema: + type: string + format: binary + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + delete: + tags: + - People.Person + summary: Delete photo + description: Delete photo of a specific user + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/person-delete-photo?view=graph-rest-1.0 + operationId: People.Person.DeletePhoto-883f + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Trips': + description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - People.Trip + summary: List trips. + description: Retrieve a list of trips. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-list-trips?view=graph-rest-1.0 + operationId: People.ListTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + post: + tags: + - People.Trip + summary: Create a trip. + description: Create a new trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-post-trips?view=graph-rest-1.0 + operationId: People.CreateTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + requestBody: + description: New navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + required: true + responses: + '201': + description: Created navigation property. + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips' + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips' + '/People/{UserName}/Trips/{TripId}': + description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. + get: + tags: + - People.Trip + summary: Get a trip. + description: Retrieve the properties of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-get-trips?view=graph-rest-1.0 + operationId: People.GetTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Retrieved navigation property + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + patch: + tags: + - People.Trip + summary: Update a trip. + description: Update an instance of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-update-trips?view=graph-rest-1.0 + operationId: People.UpdateTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + requestBody: + description: New navigation property values + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + required: true + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + delete: + tags: + - People.Trip + summary: Delete a trip. + description: Delete an instance of a trip. + externalDocs: + description: Find more info here + url: https://learn.microsoft.com/graph/api/user-delete-trips?view=graph-rest-1.0 + operationId: People.DeleteTrips + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}' + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}' + '/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()': + description: Provides operations to call the GetInvolvedPeople method. + get: + tags: + - People.Trip + summary: Invoke function GetInvolvedPeople + operationId: People.Person.Trips.Trip.GetInvolvedPeople + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + description: Success + content: + application/json: + schema: + title: Collection of Person + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: function + x-ms-docs-grouped-path: + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()' + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()' + '/People/{UserName}/Trips/{TripId}/PlanItems': + description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity. + get: + tags: + - People.Trips.PlanItem + summary: Get PlanItems from People + operationId: People.Trips.ListPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + x-ms-docs-grouped-path: + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems' + - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems' + '/People/{UserName}/Trips/{TripId}/PlanItems/{PlanItemId}/$ref': + description: Provides operations to manage the collection of Person entities. + delete: + tags: + - People.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for People + operationId: People.Trips.planItems.DeleteRefPlanItem + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: PlanItemId + in: path + description: The unique identifier of PlanItem + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: PlanItem + - name: If-Match + in: header + description: ETag + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Trips/{TripId}/PlanItems/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Trips.PlanItem + summary: Get the number of the resource + operationId: People.Trips.PlanItems.GetCount-9a27 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + '/People/{UserName}/Trips/{TripId}/PlanItems/$ref': + description: Provides operations to manage the collection of Person entities. + get: + tags: + - People.Trips.PlanItem + summary: Get ref of PlanItems from People + operationId: People.Trips.ListRefPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/StringCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + post: + tags: + - People.Trips.PlanItem + summary: Create new navigation property ref to PlanItems for People + operationId: People.Trips.CreateRefPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + requestBody: + $ref: '#/components/requestBodies/refPostBody' + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + delete: + tags: + - People.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for People + operationId: People.Trips.DeleteRefPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation + '/People/{UserName}/Trips/$count': + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Trip + summary: Get the number of the resource + operationId: People.Trips.GetCount-e877 + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + /People/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person + summary: Get the number of the resource + operationId: People.GetCount-dd8d + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + /People/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee: + description: Casts the previous resource to Employee. + get: + tags: + - People.Person + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection + operationId: People.Person.ListPerson.AsEmployee-013a + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + /People/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person + summary: Get the number of the resource + operationId: People.Person.Person.GetCount.AsEmployee-ef29 + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + /People/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager: + description: Casts the previous resource to Manager. + get: + tags: + - People.Person + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection + operationId: People.Person.ListPerson.AsManager-3e14 + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/top' + - $ref: '#/components/parameters/skip' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + - $ref: '#/components/parameters/count' + - name: $orderby + in: query + description: Order items by property values + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $select + in: query + description: Select properties to be returned + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + - name: $expand + in: query + description: Expand related entities + explode: false + schema: + uniqueItems: true + type: array + items: + type: string + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + /People/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - People.Person + summary: Get the number of the resource + operationId: People.Person.Person.GetCount.AsManager-2d48 + parameters: + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + schema: + type: string + examples: + example-1: + description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. + value: eventual + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' + responses: + '200': + $ref: '#/components/responses/ODataCountResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + /ResetDataSource: + description: Provides operations to call the ResetDataSource method. + post: + tags: + - ResetDataSource + summary: Invoke actionImport ResetDataSource + description: Resets the data source to default values. + operationId: ActionImport.ResetDataSource + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: actionImport +components: + schemas: + Edm.Geography: + $ref: '#/components/schemas/Edm.Geometry' + Edm.GeographyPoint: + $ref: '#/components/schemas/Edm.GeometryPoint' + Edm.GeographyLineString: + $ref: '#/components/schemas/Edm.GeometryLineString' + Edm.GeographyPolygon: + $ref: '#/components/schemas/Edm.GeometryPolygon' + Edm.GeographyMultiPoint: + $ref: '#/components/schemas/Edm.GeometryMultiPoint' + Edm.GeographyMultiLineString: + $ref: '#/components/schemas/Edm.GeometryMultiLineString' + Edm.GeographyMultiPolygon: + $ref: '#/components/schemas/Edm.GeometryMultiPolygon' + Edm.GeographyCollection: + $ref: '#/components/schemas/Edm.GeometryCollection' + Edm.Geometry: + type: object + oneOf: + - $ref: '#/components/schemas/Edm.GeometryPoint' + - $ref: '#/components/schemas/Edm.GeometryLineString' + - $ref: '#/components/schemas/Edm.GeometryPolygon' + - $ref: '#/components/schemas/Edm.GeometryMultiPoint' + - $ref: '#/components/schemas/Edm.GeometryMultiLineString' + - $ref: '#/components/schemas/Edm.GeometryMultiPolygon' + - $ref: '#/components/schemas/Edm.GeometryCollection' + Edm.GeometryPoint: + required: + - type + - coordinates + type: object + properties: + type: + enum: + - Point + type: string + default: Point + coordinates: + $ref: '#/components/schemas/GeoJSON.position' + Edm.GeometryLineString: + required: + - type + - coordinates + type: object + properties: + type: + enum: + - LineString + coordinates: + minItems: 2 + type: array + items: + $ref: '#/components/schemas/GeoJSON.position' + Edm.GeometryPolygon: + required: + - type + - coordinates + type: object + properties: + type: + enum: + - Polygon + coordinates: + minItems: 4 + type: array + items: + type: array + items: + $ref: '#/components/schemas/GeoJSON.position' + Edm.GeometryMultiPoint: + required: + - type + - coordinates + type: object + properties: + type: + enum: + - MultiPoint + coordinates: + type: array + items: + $ref: '#/components/schemas/GeoJSON.position' + Edm.GeometryMultiLineString: + required: + - type + - coordinates + type: object + properties: + type: + enum: + - MultiLineString + coordinates: + minItems: 2 + type: array + items: + type: array + items: + $ref: '#/components/schemas/GeoJSON.position' + Edm.GeometryMultiPolygon: + required: + - type + - coordinates + type: object + properties: + type: + enum: + - MultiPolygon + coordinates: + minItems: 4 + type: array + items: + type: array + items: + type: array + items: + $ref: '#/components/schemas/GeoJSON.position' + Edm.GeometryCollection: + required: + - type + - coordinates + type: object + properties: + type: + enum: + - GeometryCollection + coordinates: + type: array + items: + $ref: '#/components/schemas/Edm.Geometry' + GeoJSON.position: + minItems: 2 + type: array + items: + type: number + Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ODataError: + required: + - error + type: object + properties: + error: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError: + required: + - code + - message + type: object + properties: + code: + type: string + message: + type: string + x-ms-primary-error-message: true + target: + type: + - 'null' + - string + details: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails' + innerError: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails: + required: + - code + - message + type: object + properties: + code: + type: string + message: + type: string + target: + type: + - 'null' + - string + Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError: + title: InnerError + type: object + properties: + Date: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: + - 'null' + - string + format: date-time + RequestId: + type: + - 'null' + - string + ODataCountResponse: + type: number + format: int64 + StringCollectionResponse: + title: Collection of string + type: object + properties: + value: + type: array + items: + type: string + ReferenceUpdate: + type: object + properties: + '@odata.id': + type: string + '@odata.type': + type: + - 'null' + - string + ReferenceCreate: + type: object + properties: + '@odata.id': + type: string + additionalProperties: + type: object + ReferenceNumeric: + enum: + - '-INF' + - INF + - NaN + type: + - 'null' + - string + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person: + title: Person + type: object + properties: + UserName: + type: string + FirstName: + type: string + LastName: + type: + - 'null' + - string + MiddleName: + type: + - 'null' + - string + Gender: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender' + Age: + oneOf: + - type: + - 'null' + - number + format: int64 + - type: + - 'null' + - string + Emails: + type: array + items: + type: + - 'null' + - string + AddressInfo: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + HomeAddress: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + - type: 'null' + FavoriteFeature: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature' + Features: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature' + Photo: + type: + - 'null' + - string + format: base64url + Friends: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + description: Friends of person + x-ms-navigationProperty: true + BestFriend: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + - type: 'null' + description: The best friend. + x-ms-navigationProperty: true + Trips: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + description: Collection of trips. + x-ms-navigationProperty: true + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline: + title: Airline + type: object + properties: + AirlineCode: + type: string + Name: + type: + - 'null' + - string + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport: + title: Airport + type: object + properties: + Name: + type: + - 'null' + - string + IcaoCode: + type: string + IataCode: + type: + - 'null' + - string + Location: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation' + - type: 'null' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location: + title: Location + type: object + properties: + Address: + type: + - 'null' + - string + City: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.City' + - type: 'null' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.City: + title: City + type: object + properties: + Name: + type: + - 'null' + - string + CountryRegion: + type: + - 'null' + - string + Region: + type: + - 'null' + - string + Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation: + allOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + - title: AirportLocation + type: object + properties: + Loc: + $ref: '#/components/schemas/Edm.GeographyPoint' + EmergencyAuthority: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + - type: 'null' + description: The person to contact in case of a crisis at this location. + x-ms-navigationProperty: true + Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + allOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + - title: EventLocation + type: object + properties: + BuildingInfo: + type: + - 'null' + - string + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip: + title: Trip + type: object + properties: + TripId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + ShareId: + pattern: '^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$' + type: string + format: uuid + Name: + type: + - 'null' + - string + Budget: + oneOf: + - type: + - 'null' + - number + format: float + - type: + - 'null' + - string + - $ref: '#/components/schemas/ReferenceNumeric' + Description: + type: + - 'null' + - string + Tags: + type: array + items: + type: + - 'null' + - string + TripData: { } + DestinationInfo: + type: array + items: { } + StartsAt: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + EndsAt: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + PlanItems: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem' + x-ms-navigationProperty: true + Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem: + title: PlanItem + type: object + properties: + PlanItemId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + ConfirmationCode: + type: + - 'null' + - string + StartsAt: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + EndsAt: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + format: date-time + Duration: + pattern: '^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$' + type: string + format: duration + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Event: + allOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem' + - title: Event + type: object + properties: + OccursAt: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' + - type: 'null' + Description: + type: + - 'null' + - string + Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation: + allOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem' + - title: PublicTransportation + type: object + properties: + SeatNumber: + type: + - 'null' + - string + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight: + allOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation' + - title: Flight + type: object + properties: + FlightNumber: + type: + - 'null' + - string + Airline: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline' + - type: 'null' + x-ms-navigationProperty: true + From: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport' + - type: 'null' + x-ms-navigationProperty: true + To: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport' + - type: 'null' + x-ms-navigationProperty: true + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee: + allOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + - title: Employee + type: object + properties: + Cost: + oneOf: + - type: + - 'null' + - number + format: int64 + - type: + - 'null' + - string + Peers: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + x-ms-navigationProperty: true + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager: + allOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + - title: Manager + type: object + properties: + Budget: + oneOf: + - type: + - 'null' + - number + format: int64 + - type: + - 'null' + - string + BossOffice: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + - type: 'null' + DirectReports: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + x-ms-navigationProperty: true + Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender: + title: PersonGender + enum: + - Male + - Female + - Unknow + type: string + description: Gender of the person. + x-ms-enum: + name: PersonGender + modelAsString: false + values: + - value: Male + description: The Male gender. + name: Male + - value: Female + description: The Female gender. + name: Female + - value: Unknow + description: Unknown gender or prefers not to say. + name: Unknow + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature: + title: Feature + enum: + - Feature1 + - Feature2 + - Feature3 + - Feature4 + type: string + x-ms-enum-flags: + isFlags: true + Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse: + title: Collection of Person + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirlineCollectionResponse: + title: Collection of Airline + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportCollectionResponse: + title: Collection of Airport + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse: + title: Collection of Trip + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse: + title: Collection of PlanItem + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse: + title: Collection of Employee + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse: + title: Collection of Manager + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventCollectionResponse: + title: Collection of Event + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Event' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportationCollectionResponse: + title: Collection of PublicTransportation + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.FlightCollectionResponse: + title: Collection of Flight + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse: + title: Collection of Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + responses: + error: + description: error + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ODataError' + ODataCountResponse: + description: The count of the resource + content: + text/plain: + schema: + $ref: '#/components/schemas/ODataCountResponse' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirlineCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirlineCollectionResponse' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportCollectionResponse' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventCollectionResponse' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportationCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportationCollectionResponse' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.FlightCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.FlightCollectionResponse' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + StringCollectionResponse: + description: Retrieved collection + content: + application/json: + schema: + $ref: '#/components/schemas/StringCollectionResponse' + GetFavoriteAirlineResponse: + description: Success + content: + application/json: + schema: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline' + - type: 'null' + GetFriendsTripsResponse: + description: Success + content: + application/json: + schema: + title: Collection of Trip + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + UpdatePersonLastNameResponse: + description: Success + content: + application/json: + schema: + type: object + properties: + value: + type: boolean + default: false + GetPeersForTripResponse: + description: Success + content: + application/json: + schema: + title: Collection of Person + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + parameters: + top: + name: $top + in: query + description: Show only the first n items + explode: false + schema: + minimum: 0 + type: number + format: int64 + example: 50 + skip: + name: $skip + in: query + description: Skip the first n items + explode: false + schema: + minimum: 0 + type: number + format: int64 + count: + name: $count + in: query + description: Include count of items + explode: false + schema: + type: boolean + filter: + name: $filter + in: query + description: Filter items by property values + explode: false + schema: + type: string + search: + name: $search + in: query + description: Search items by search phrases + explode: false + schema: + type: string + examples: + Microsoft.OData.Service.Sample.TrippinInMemory.Models.InnerError: + value: + Date: '0001-01-01T00:00:00.0000000+00:00' + RequestId: string + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person: + value: + UserName: string (identifier) + FirstName: string + LastName: string + MiddleName: string + Gender: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender + Age: 0 + Emails: + - string + AddressInfo: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location + HomeAddress: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location + FavoriteFeature: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature + Features: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature + Photo: string + Friends: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person + BestFriend: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person + Trips: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline: + value: + AirlineCode: string (identifier) + Name: string + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport: + value: + Name: string + IcaoCode: string (identifier) + IataCode: string + Location: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location: + value: + Address: string + City: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.City + Microsoft.OData.Service.Sample.TrippinInMemory.Models.City: + value: + Name: string + CountryRegion: string + Region: string + Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation: + value: + Address: string + City: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.City + Loc: Edm.GeographyPoint + EmergencyAuthority: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person + Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + value: + Address: string + City: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.City + BuildingInfo: string + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip: + value: + TripId: 0 + ShareId: 00000000-0000-0000-0000-000000000000 + Name: string + Budget: 0 + Description: string + Tags: + - string + TripData: { } + DestinationInfo: + - { } + StartsAt: '0001-01-01T00:00:00.0000000+00:00' + EndsAt: '0001-01-01T00:00:00.0000000+00:00' + PlanItems: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem + Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem: + value: + PlanItemId: 0 + ConfirmationCode: string + StartsAt: '0001-01-01T00:00:00.0000000+00:00' + EndsAt: '0001-01-01T00:00:00.0000000+00:00' + Duration: string + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Event: + value: + PlanItemId: 0 + ConfirmationCode: string + StartsAt: '0001-01-01T00:00:00.0000000+00:00' + EndsAt: '0001-01-01T00:00:00.0000000+00:00' + Duration: string + OccursAt: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + Description: string + Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation: + value: + PlanItemId: 0 + ConfirmationCode: string + StartsAt: '0001-01-01T00:00:00.0000000+00:00' + EndsAt: '0001-01-01T00:00:00.0000000+00:00' + Duration: string + SeatNumber: string + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight: + value: + PlanItemId: 0 + ConfirmationCode: string + StartsAt: '0001-01-01T00:00:00.0000000+00:00' + EndsAt: '0001-01-01T00:00:00.0000000+00:00' + Duration: string + SeatNumber: string + FlightNumber: string + Airline: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline + From: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport + To: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee: + value: + UserName: string (identifier) + FirstName: string + LastName: string + MiddleName: string + Gender: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender + Age: 0 + Emails: + - string + AddressInfo: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location + HomeAddress: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location + FavoriteFeature: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature + Features: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature + Photo: string + Friends: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person + BestFriend: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person + Trips: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip + Cost: 0 + Peers: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager: + value: + UserName: string (identifier) + FirstName: string + LastName: string + MiddleName: string + Gender: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender + Age: 0 + Emails: + - string + AddressInfo: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location + HomeAddress: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location + FavoriteFeature: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature + Features: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature + Photo: string + Friends: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person + BestFriend: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person + Trips: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip + Budget: 0 + BossOffice: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location + DirectReports: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person + requestBodies: + refPostBody: + description: New navigation property ref value + content: + application/json: + schema: + $ref: '#/components/schemas/ReferenceCreate' + required: true + refPutBody: + description: New navigation property ref values + content: + application/json: + schema: + $ref: '#/components/schemas/ReferenceUpdate' + required: true + ShareTripRequestBody: + description: Action parameters + content: + application/json: + schema: + type: object + properties: + userName: + type: string + tripId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + required: true + GetPeersForTripRequestBody: + description: Action parameters + content: + application/json: + schema: + type: object + properties: + userName: + type: string + tripId: + maximum: 2147483647 + minimum: -2147483648 + type: number + format: int32 + required: true +tags: + - name: Airlines.Airline + x-ms-docs-toc-type: page + - name: Airports.Airport + x-ms-docs-toc-type: page + - name: Airports.AirportLocation + x-ms-docs-toc-type: page + - name: Airports.Person + x-ms-docs-toc-type: page + - name: Airports.Person.Location + x-ms-docs-toc-type: page + - name: Airports + x-ms-docs-toc-type: container + - name: People + x-ms-docs-toc-type: container + - name: Me.Person + x-ms-docs-toc-type: page + - name: Me.Location + x-ms-docs-toc-type: page + - name: Me.Person.Location + x-ms-docs-toc-type: page + - name: Me.Trip + x-ms-docs-toc-type: page + - name: Me.Trips.PlanItem + x-ms-docs-toc-type: page + - name: Me.Person.Functions + x-ms-docs-toc-type: container + - name: Me.Person.Actions + x-ms-docs-toc-type: container + - name: NewComePeople.Person + x-ms-docs-toc-type: page + - name: NewComePeople.Location + x-ms-docs-toc-type: page + - name: NewComePeople.Person.Location + x-ms-docs-toc-type: page + - name: NewComePeople.Person.Functions + x-ms-docs-toc-type: container + - name: NewComePeople.Person.Actions + x-ms-docs-toc-type: container + - name: NewComePeople.Trip + x-ms-docs-toc-type: page + - name: NewComePeople.Trips.PlanItem + x-ms-docs-toc-type: page + - name: People.Person + x-ms-docs-toc-type: page + - name: People.Location + x-ms-docs-toc-type: page + - name: People.Person.Location + x-ms-docs-toc-type: page + - name: People.Trip + x-ms-docs-toc-type: page + - name: People.Trips.PlanItem + x-ms-docs-toc-type: page + - name: People.Person.Functions + x-ms-docs-toc-type: container + - name: People.Person.Actions + x-ms-docs-toc-type: container + - name: ResetDataSource + x-ms-docs-toc-type: container \ No newline at end of file diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json index 146b726dc..af20a5b5e 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json @@ -39,7 +39,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -53,7 +52,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -67,7 +65,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -145,7 +142,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -159,7 +155,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -317,7 +312,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -331,7 +325,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -345,7 +338,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -423,7 +415,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -437,7 +428,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -563,7 +553,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -577,7 +566,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -667,7 +655,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -681,7 +668,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -853,7 +839,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -867,7 +852,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -881,7 +865,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1040,7 +1023,7 @@ "Airports.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Airports.EmergencyAuthority.ListAddressInfo.AsEventLocation", + "operationId": "Airports.EmergencyAuthority.ListAddressInfo.AsEventLocation-fbf9", "parameters": [ { "name": "IcaoCode", @@ -1125,7 +1108,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1139,7 +1121,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1212,7 +1193,7 @@ "Airports.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Airports.EmergencyAuthority.GetHomeAddress.AsEventLocation", + "operationId": "Airports.EmergencyAuthority.GetHomeAddress.AsEventLocation-0bb9", "parameters": [ { "name": "IcaoCode", @@ -1249,7 +1230,7 @@ "Airports.Person" ], "summary": "Get Photo for the navigation property EmergencyAuthority from Airports", - "operationId": "Airports.GetEmergencyAuthorityPhoto", + "operationId": "Airports.GetEmergencyAuthorityPhoto-13fb", "parameters": [ { "name": "IcaoCode", @@ -1284,7 +1265,7 @@ "Airports.Person" ], "summary": "Update Photo for the navigation property EmergencyAuthority in Airports", - "operationId": "Airports.UpdateEmergencyAuthorityPhoto", + "operationId": "Airports.UpdateEmergencyAuthorityPhoto-13fb", "parameters": [ { "name": "IcaoCode", @@ -1323,7 +1304,7 @@ "Airports.Person" ], "summary": "Delete Photo for the navigation property EmergencyAuthority in Airports", - "operationId": "Airports.DeleteEmergencyAuthorityPhoto", + "operationId": "Airports.DeleteEmergencyAuthorityPhoto-13fb", "parameters": [ { "name": "IcaoCode", @@ -1507,7 +1488,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1521,7 +1501,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1618,7 +1597,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1632,7 +1610,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1646,7 +1623,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1801,7 +1777,7 @@ "Me.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.ListAddressInfo.AsEventLocation", + "operationId": "Me.ListAddressInfo.AsEventLocation-b1a4", "responses": { "200": { "description": "Entity result.", @@ -1870,7 +1846,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -1884,7 +1859,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2080,7 +2054,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2094,7 +2067,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2108,7 +2080,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2263,7 +2234,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation", + "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation-2154", "responses": { "200": { "description": "Entity result.", @@ -2330,7 +2301,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2344,7 +2314,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2419,7 +2388,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation", + "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation-a28d", "responses": { "200": { "description": "Entity result.", @@ -2451,13 +2420,12 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "Me.GetBestFriend.AsEmployee", + "operationId": "Me.GetBestFriend.AsEmployee-dcf6", "parameters": [ { "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2471,7 +2439,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2513,13 +2480,12 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "Me.GetBestFriend.AsManager", + "operationId": "Me.GetBestFriend.AsManager-09a9", "parameters": [ { "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2533,7 +2499,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2575,7 +2540,7 @@ "Me.Person" ], "summary": "Get Photo for the navigation property BestFriend from Me", - "operationId": "Me.GetBestFriendPhoto", + "operationId": "Me.GetBestFriendPhoto-8333", "responses": { "200": { "description": "Retrieved media content", @@ -2605,7 +2570,7 @@ "Me.Person" ], "summary": "Update Photo for the navigation property BestFriend in Me", - "operationId": "Me.UpdateBestFriendPhoto", + "operationId": "Me.UpdateBestFriendPhoto-8333", "requestBody": { "description": "New media content.", "content": { @@ -2639,7 +2604,7 @@ "Me.Person" ], "summary": "Delete Photo for the navigation property BestFriend in Me", - "operationId": "Me.DeleteBestFriendPhoto", + "operationId": "Me.DeleteBestFriendPhoto-8333", "parameters": [ { "name": "If-Match", @@ -2710,7 +2675,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2724,7 +2688,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2738,7 +2701,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2854,7 +2816,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2868,7 +2829,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -2882,7 +2842,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3069,7 +3028,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.Friends.ListAddressInfo.AsEventLocation", + "operationId": "Me.Friends.ListAddressInfo.AsEventLocation-f440", "parameters": [ { "name": "UserName", @@ -3168,7 +3127,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3182,7 +3140,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3269,7 +3226,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.Friends.GetHomeAddress.AsEventLocation", + "operationId": "Me.Friends.GetHomeAddress.AsEventLocation-15cc", "parameters": [ { "name": "UserName", @@ -3313,7 +3270,7 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "Me.GetFriends.AsEmployee", + "operationId": "Me.GetFriends.AsEmployee-3dc7", "parameters": [ { "name": "UserName", @@ -3343,7 +3300,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3357,7 +3313,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3399,7 +3354,7 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "Me.GetFriends.AsManager", + "operationId": "Me.GetFriends.AsManager-ddec", "parameters": [ { "name": "UserName", @@ -3429,7 +3384,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3443,7 +3397,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3485,7 +3438,7 @@ "Me.Person" ], "summary": "Get Photo for the navigation property Friends from Me", - "operationId": "Me.GetFriendsPhoto", + "operationId": "Me.GetFriendsPhoto-287d", "parameters": [ { "name": "UserName", @@ -3527,7 +3480,7 @@ "Me.Person" ], "summary": "Update Photo for the navigation property Friends in Me", - "operationId": "Me.UpdateFriendsPhoto", + "operationId": "Me.UpdateFriendsPhoto-287d", "parameters": [ { "name": "UserName", @@ -3573,7 +3526,7 @@ "Me.Person" ], "summary": "Delete Photo for the navigation property Friends in Me", - "operationId": "Me.DeleteFriendsPhoto", + "operationId": "Me.DeleteFriendsPhoto-287d", "parameters": [ { "name": "UserName", @@ -3701,7 +3654,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3805,7 +3757,7 @@ "Me.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "Me.ListFriends.AsEmployee", + "operationId": "Me.ListFriends.AsEmployee-f4a5", "parameters": [ { "name": "ConsistencyLevel", @@ -3840,7 +3792,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3854,7 +3805,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3868,7 +3818,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3950,7 +3899,7 @@ "Me.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "Me.ListFriends.AsManager", + "operationId": "Me.ListFriends.AsManager-98ae", "parameters": [ { "name": "ConsistencyLevel", @@ -3985,7 +3934,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -3999,7 +3947,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4013,7 +3960,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4100,7 +4046,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4114,7 +4059,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4189,7 +4133,7 @@ "Me.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.GetHomeAddress.AsEventLocation", + "operationId": "Me.GetHomeAddress.AsEventLocation-ba49", "responses": { "200": { "description": "Entity result.", @@ -4221,13 +4165,12 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "Me.Person.GetPerson.AsEmployee", + "operationId": "Me.Person.GetPerson.AsEmployee-bd18", "parameters": [ { "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4241,7 +4184,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4303,7 +4245,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4317,7 +4258,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4331,7 +4271,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4455,20 +4394,6 @@ "summary": "Get the number of the resource", "operationId": "Me.AsEmployee.AddressInfo.GetCount-8488", "parameters": [ - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -4500,7 +4425,7 @@ "Me.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.ListAddressInfo.AsEventLocation", + "operationId": "Me.ListAddressInfo.AsEventLocation-989f", "responses": { "200": { "description": "Entity result.", @@ -4531,20 +4456,6 @@ "summary": "Get the number of the resource", "operationId": "Me.AddressInfo.GetCount.AsEventLocation-9375", "parameters": [ - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -4583,7 +4494,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4597,7 +4507,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4793,7 +4702,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4807,7 +4715,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4821,7 +4728,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -4945,20 +4851,6 @@ "summary": "Get the number of the resource", "operationId": "Me.AsEmployee.BestFriend.AddressInfo.GetCount-81de", "parameters": [ - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -4990,7 +4882,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation", + "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation-1d72", "responses": { "200": { "description": "Entity result.", @@ -5021,20 +4913,6 @@ "summary": "Get the number of the resource", "operationId": "Me.BestFriend.AddressInfo.GetCount.AsEventLocation-842c", "parameters": [ - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -5071,7 +4949,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -5085,7 +4962,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -5160,7 +5036,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation", + "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation-19b8", "responses": { "200": { "description": "Entity result.", @@ -5192,13 +5068,12 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "Me.GetBestFriend.AsManager", + "operationId": "Me.GetBestFriend.AsManager-c104", "parameters": [ { "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -5212,7 +5087,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -5254,7 +5128,7 @@ "Me.Person" ], "summary": "Get Photo for the navigation property BestFriend from Me", - "operationId": "Me.GetBestFriendPhoto", + "operationId": "Me.GetBestFriendPhoto-4dc7", "responses": { "200": { "description": "Retrieved media content", @@ -5284,7 +5158,7 @@ "Me.Person" ], "summary": "Update Photo for the navigation property BestFriend in Me", - "operationId": "Me.UpdateBestFriendPhoto", + "operationId": "Me.UpdateBestFriendPhoto-4dc7", "requestBody": { "description": "New media content.", "content": { @@ -5318,7 +5192,7 @@ "Me.Person" ], "summary": "Delete Photo for the navigation property BestFriend in Me", - "operationId": "Me.DeleteBestFriendPhoto", + "operationId": "Me.DeleteBestFriendPhoto-4dc7", "parameters": [ { "name": "If-Match", @@ -5389,7 +5263,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -5403,7 +5276,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -5417,7 +5289,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -5533,7 +5404,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -5547,7 +5417,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -5561,7 +5430,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -5718,19 +5586,89 @@ "x-ms-docs-key-type": "Person" }, { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "Me.Friends.ListAddressInfo.AsEventLocation-7b1e", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, "schema": { "type": "string" }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } } } }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "Me.Friends.AddressInfo.GetCount.AsEventLocation-feb8", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, { "$ref": "#/components/parameters/search" }, @@ -5755,14 +5693,128 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress": { + "get": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "Me.AsEmployee.Friends.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + }, + "patch": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "Me.AsEmployee.Friends.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + } + } + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { "description": "Casts the previous resource to EventLocation.", "get": { "tags": [ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.Friends.ListAddressInfo.AsEventLocation", + "operationId": "Me.Friends.GetHomeAddress.AsEventLocation-600f", "parameters": [ { "name": "UserName", @@ -5799,11 +5851,14 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { - "description": "Provides operations to count the resources in the collection.", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", "get": { - "summary": "Get the number of the resource", - "operationId": "Me.Friends.AddressInfo.GetCount.AsEventLocation-feb8", + "tags": [ + "Me.Person" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", + "operationId": "Me.GetFriends.AsManager-aa0c", "parameters": [ { "name": "UserName", @@ -5829,53 +5884,10 @@ } } }, - { - "$ref": "#/components/parameters/search" - }, - { - "$ref": "#/components/parameters/filter" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/ODataCountResponse" - }, - "default": { - "$ref": "#/components/responses/error" - } - }, - "deprecated": true, - "x-ms-deprecation": { - "removalDate": "2023-03-15T00:00:00.0000000+00:00", - "date": "2021-08-24T00:00:00.0000000+00:00", - "version": "2021-05/me", - "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." - } - } - }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress": { - "get": { - "tags": [ - "Me.Person.Location" - ], - "summary": "Get HomeAddress property value", - "operationId": "Me.AsEmployee.Friends.GetHomeAddress", - "parameters": [ - { - "name": "UserName", - "in": "path", - "description": "The unique identifier of Person", - "required": true, - "schema": { - "type": "string" - }, - "x-ms-docs-key-type": "Person" - }, { "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -5889,182 +5901,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "type": "string" - } - } - } - ], - "responses": { - "200": { - "description": "Entity result.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" - } - } - } - }, - "default": { - "$ref": "#/components/responses/error" - } - }, - "deprecated": true, - "x-ms-deprecation": { - "removalDate": "2023-03-15T00:00:00.0000000+00:00", - "date": "2021-08-24T00:00:00.0000000+00:00", - "version": "2021-05/me", - "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." - } - }, - "patch": { - "tags": [ - "Me.Person.Location" - ], - "summary": "Update property HomeAddress value.", - "operationId": "Me.AsEmployee.Friends.UpdateHomeAddress", - "parameters": [ - { - "name": "UserName", - "in": "path", - "description": "The unique identifier of Person", - "required": true, - "schema": { - "type": "string" - }, - "x-ms-docs-key-type": "Person" - } - ], - "requestBody": { - "description": "New property values", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "Success" - }, - "default": { - "$ref": "#/components/responses/error" - } - }, - "deprecated": true, - "x-ms-deprecation": { - "removalDate": "2023-03-15T00:00:00.0000000+00:00", - "date": "2021-08-24T00:00:00.0000000+00:00", - "version": "2021-05/me", - "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." - } - } - }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { - "description": "Casts the previous resource to EventLocation.", - "get": { - "tags": [ - "Me.Person.Location" - ], - "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.Friends.GetHomeAddress.AsEventLocation", - "parameters": [ - { - "name": "UserName", - "in": "path", - "description": "The unique identifier of Person", - "required": true, - "schema": { - "type": "string" - }, - "x-ms-docs-key-type": "Person" - } - ], - "responses": { - "200": { - "description": "Entity result.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" - } - } - } - }, - "default": { - "$ref": "#/components/responses/error" - } - }, - "deprecated": true, - "x-ms-deprecation": { - "removalDate": "2023-03-15T00:00:00.0000000+00:00", - "date": "2021-08-24T00:00:00.0000000+00:00", - "version": "2021-05/me", - "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." - } - } - }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { - "description": "Casts the previous resource to Manager.", - "get": { - "tags": [ - "Me.Person" - ], - "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "Me.GetFriends.AsManager", - "parameters": [ - { - "name": "UserName", - "in": "path", - "description": "The unique identifier of Person", - "required": true, - "schema": { - "type": "string" - }, - "x-ms-docs-key-type": "Person" - }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, - { - "name": "$select", - "in": "query", - "description": "Select properties to be returned", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "name": "$expand", - "in": "query", - "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -6106,7 +5942,7 @@ "Me.Person" ], "summary": "Get Photo for the navigation property Friends from Me", - "operationId": "Me.GetFriendsPhoto", + "operationId": "Me.GetFriendsPhoto-6e41", "parameters": [ { "name": "UserName", @@ -6148,7 +5984,7 @@ "Me.Person" ], "summary": "Update Photo for the navigation property Friends in Me", - "operationId": "Me.UpdateFriendsPhoto", + "operationId": "Me.UpdateFriendsPhoto-6e41", "parameters": [ { "name": "UserName", @@ -6194,7 +6030,7 @@ "Me.Person" ], "summary": "Delete Photo for the navigation property Friends in Me", - "operationId": "Me.DeleteFriendsPhoto", + "operationId": "Me.DeleteFriendsPhoto-6e41", "parameters": [ { "name": "UserName", @@ -6322,7 +6158,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -6426,7 +6261,7 @@ "Me.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "Me.ListFriends.AsManager", + "operationId": "Me.ListFriends.AsManager-f993", "parameters": [ { "name": "ConsistencyLevel", @@ -6461,7 +6296,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -6475,7 +6309,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -6489,7 +6322,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -6576,7 +6408,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -6590,7 +6421,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -6665,7 +6495,7 @@ "Me.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.GetHomeAddress.AsEventLocation", + "operationId": "Me.GetHomeAddress.AsEventLocation-6fc5", "responses": { "200": { "description": "Entity result.", @@ -6718,7 +6548,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -6732,7 +6561,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -6746,7 +6574,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -6858,7 +6685,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -6872,7 +6698,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -6886,7 +6711,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -7042,20 +6866,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -7087,7 +6897,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.Peers.ListAddressInfo.AsEventLocation", + "operationId": "Me.Peers.ListAddressInfo.AsEventLocation-1e59", "parameters": [ { "name": "UserName", @@ -7140,20 +6950,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -7200,7 +6996,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -7214,7 +7009,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -7301,7 +7095,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.Peers.GetHomeAddress.AsEventLocation", + "operationId": "Me.Peers.GetHomeAddress.AsEventLocation-dc11", "parameters": [ { "name": "UserName", @@ -7345,7 +7139,7 @@ "Me.Person" ], "summary": "Get Photo for the navigation property Peers from Me", - "operationId": "Me.GetPeersPhoto", + "operationId": "Me.GetPeersPhoto-4c48", "parameters": [ { "name": "UserName", @@ -7387,7 +7181,7 @@ "Me.Person" ], "summary": "Update Photo for the navigation property Peers in Me", - "operationId": "Me.UpdatePeersPhoto", + "operationId": "Me.UpdatePeersPhoto-4c48", "parameters": [ { "name": "UserName", @@ -7433,7 +7227,7 @@ "Me.Person" ], "summary": "Delete Photo for the navigation property Peers in Me", - "operationId": "Me.DeletePeersPhoto", + "operationId": "Me.DeletePeersPhoto-4c48", "parameters": [ { "name": "UserName", @@ -7532,7 +7326,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -7676,7 +7469,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -7690,7 +7482,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -7704,7 +7495,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -7814,7 +7604,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -7828,7 +7617,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -8014,7 +7802,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -8028,7 +7815,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -8042,7 +7828,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -8132,7 +7917,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -8146,7 +7930,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -8160,7 +7943,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -8342,7 +8124,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -8577,7 +8358,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -8591,7 +8371,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -8605,7 +8384,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -8670,13 +8448,12 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "Me.Person.GetPerson.AsManager", + "operationId": "Me.Person.GetPerson.AsManager-16dc", "parameters": [ { "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -8690,7 +8467,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -8752,7 +8528,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -8766,7 +8541,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -8780,7 +8554,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -8904,20 +8677,6 @@ "summary": "Get the number of the resource", "operationId": "Me.AsManager.AddressInfo.GetCount-75da", "parameters": [ - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -8949,7 +8708,7 @@ "Me.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.ListAddressInfo.AsEventLocation", + "operationId": "Me.ListAddressInfo.AsEventLocation-55be", "responses": { "200": { "description": "Entity result.", @@ -8980,20 +8739,6 @@ "summary": "Get the number of the resource", "operationId": "Me.AddressInfo.GetCount.AsEventLocation-f67e", "parameters": [ - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -9032,7 +8777,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -9046,7 +8790,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -9242,7 +8985,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -9256,7 +8998,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -9270,7 +9011,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -9394,20 +9134,6 @@ "summary": "Get the number of the resource", "operationId": "Me.AsManager.BestFriend.AddressInfo.GetCount-6ea6", "parameters": [ - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -9439,7 +9165,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation", + "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation-987a", "responses": { "200": { "description": "Entity result.", @@ -9470,20 +9196,6 @@ "summary": "Get the number of the resource", "operationId": "Me.BestFriend.AddressInfo.GetCount.AsEventLocation-692e", "parameters": [ - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -9520,7 +9232,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -9534,7 +9245,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -9609,7 +9319,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation", + "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation-15c5", "responses": { "200": { "description": "Entity result.", @@ -9641,13 +9351,12 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "Me.GetBestFriend.AsEmployee", + "operationId": "Me.GetBestFriend.AsEmployee-7bbe", "parameters": [ { "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -9661,7 +9370,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -9703,7 +9411,7 @@ "Me.Person" ], "summary": "Get Photo for the navigation property BestFriend from Me", - "operationId": "Me.GetBestFriendPhoto", + "operationId": "Me.GetBestFriendPhoto-bac8", "responses": { "200": { "description": "Retrieved media content", @@ -9733,7 +9441,7 @@ "Me.Person" ], "summary": "Update Photo for the navigation property BestFriend in Me", - "operationId": "Me.UpdateBestFriendPhoto", + "operationId": "Me.UpdateBestFriendPhoto-bac8", "requestBody": { "description": "New media content.", "content": { @@ -9767,7 +9475,7 @@ "Me.Person" ], "summary": "Delete Photo for the navigation property BestFriend in Me", - "operationId": "Me.DeleteBestFriendPhoto", + "operationId": "Me.DeleteBestFriendPhoto-bac8", "parameters": [ { "name": "If-Match", @@ -9823,7 +9531,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -9837,7 +9544,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -9851,7 +9557,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -9963,7 +9668,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -9977,7 +9681,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -9991,7 +9694,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -10147,20 +9849,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -10192,7 +9880,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.DirectReports.ListAddressInfo.AsEventLocation", + "operationId": "Me.DirectReports.ListAddressInfo.AsEventLocation-660b", "parameters": [ { "name": "UserName", @@ -10245,20 +9933,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -10305,7 +9979,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -10319,7 +9992,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -10406,7 +10078,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.DirectReports.GetHomeAddress.AsEventLocation", + "operationId": "Me.DirectReports.GetHomeAddress.AsEventLocation-5e6e", "parameters": [ { "name": "UserName", @@ -10450,7 +10122,7 @@ "Me.Person" ], "summary": "Get Photo for the navigation property DirectReports from Me", - "operationId": "Me.GetDirectReportsPhoto", + "operationId": "Me.GetDirectReportsPhoto-e60c", "parameters": [ { "name": "UserName", @@ -10492,7 +10164,7 @@ "Me.Person" ], "summary": "Update Photo for the navigation property DirectReports in Me", - "operationId": "Me.UpdateDirectReportsPhoto", + "operationId": "Me.UpdateDirectReportsPhoto-e60c", "parameters": [ { "name": "UserName", @@ -10538,7 +10210,7 @@ "Me.Person" ], "summary": "Delete Photo for the navigation property DirectReports in Me", - "operationId": "Me.DeleteDirectReportsPhoto", + "operationId": "Me.DeleteDirectReportsPhoto-e60c", "parameters": [ { "name": "UserName", @@ -10637,7 +10309,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -10777,7 +10448,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -10791,7 +10461,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -10805,7 +10474,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -10921,7 +10589,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -10935,7 +10602,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -10949,7 +10615,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -11136,7 +10801,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.Friends.ListAddressInfo.AsEventLocation", + "operationId": "Me.Friends.ListAddressInfo.AsEventLocation-1ad9", "parameters": [ { "name": "UserName", @@ -11235,7 +10900,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -11249,7 +10913,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -11336,7 +10999,7 @@ "Me.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.Friends.GetHomeAddress.AsEventLocation", + "operationId": "Me.Friends.GetHomeAddress.AsEventLocation-1e07", "parameters": [ { "name": "UserName", @@ -11380,7 +11043,7 @@ "Me.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "Me.GetFriends.AsEmployee", + "operationId": "Me.GetFriends.AsEmployee-5b5f", "parameters": [ { "name": "UserName", @@ -11410,7 +11073,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -11424,7 +11086,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -11466,7 +11127,7 @@ "Me.Person" ], "summary": "Get Photo for the navigation property Friends from Me", - "operationId": "Me.GetFriendsPhoto", + "operationId": "Me.GetFriendsPhoto-64bd", "parameters": [ { "name": "UserName", @@ -11508,7 +11169,7 @@ "Me.Person" ], "summary": "Update Photo for the navigation property Friends in Me", - "operationId": "Me.UpdateFriendsPhoto", + "operationId": "Me.UpdateFriendsPhoto-64bd", "parameters": [ { "name": "UserName", @@ -11554,7 +11215,7 @@ "Me.Person" ], "summary": "Delete Photo for the navigation property Friends in Me", - "operationId": "Me.DeleteFriendsPhoto", + "operationId": "Me.DeleteFriendsPhoto-64bd", "parameters": [ { "name": "UserName", @@ -11682,7 +11343,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -11786,7 +11446,7 @@ "Me.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "Me.ListFriends.AsEmployee", + "operationId": "Me.ListFriends.AsEmployee-fe32", "parameters": [ { "name": "ConsistencyLevel", @@ -11821,7 +11481,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -11835,7 +11494,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -11849,7 +11507,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -11936,7 +11593,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -11950,7 +11606,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -12025,7 +11680,7 @@ "Me.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "Me.GetHomeAddress.AsEventLocation", + "operationId": "Me.GetHomeAddress.AsEventLocation-5d95", "responses": { "200": { "description": "Entity result.", @@ -12148,7 +11803,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -12162,7 +11816,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -12176,7 +11829,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -12286,7 +11938,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -12300,7 +11951,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -12486,7 +12136,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -12500,7 +12149,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -12514,7 +12162,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -12604,7 +12251,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -12618,7 +12264,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -12632,7 +12277,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -12814,7 +12458,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -13060,7 +12703,7 @@ "Me.Person" ], "summary": "Get Photo for Person from Me", - "operationId": "Me.Person.GetPhoto", + "operationId": "Me.Person.GetPhoto-ab7e", "responses": { "200": { "description": "Retrieved media content", @@ -13090,7 +12733,7 @@ "Me.Person" ], "summary": "Update Photo for Person in Me", - "operationId": "Me.Person.UpdatePhoto", + "operationId": "Me.Person.UpdatePhoto-ab7e", "requestBody": { "description": "New media content.", "content": { @@ -13124,7 +12767,7 @@ "Me.Person" ], "summary": "Delete Photo for Person in Me", - "operationId": "Me.Person.DeletePhoto", + "operationId": "Me.Person.DeletePhoto-ab7e", "parameters": [ { "name": "If-Match", @@ -13199,7 +12842,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -13213,7 +12855,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -13227,7 +12868,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -13337,7 +12977,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -13351,7 +12990,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -13537,7 +13175,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -13551,7 +13188,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -13565,7 +13201,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -13655,7 +13290,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -13669,7 +13303,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -13683,7 +13316,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -13865,7 +13497,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -14065,7 +13696,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -14079,7 +13709,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -14093,7 +13722,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -14171,7 +13799,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -14185,7 +13812,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -14326,7 +13952,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -14340,7 +13965,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -14354,7 +13978,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -14489,20 +14112,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -14527,7 +14136,7 @@ "NewComePeople.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "NewComePeople.ListAddressInfo.AsEventLocation", + "operationId": "NewComePeople.ListAddressInfo.AsEventLocation-d026", "parameters": [ { "name": "UserName", @@ -14573,20 +14182,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -14628,7 +14223,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -14642,7 +14236,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -14890,7 +14483,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -14904,7 +14496,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -14918,7 +14509,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -15074,20 +14664,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -15119,7 +14695,7 @@ "NewComePeople.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "NewComePeople.BestFriend.ListAddressInfo.AsEventLocation", + "operationId": "NewComePeople.BestFriend.ListAddressInfo.AsEventLocation-73fa", "parameters": [ { "name": "UserName", @@ -15172,20 +14748,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -15232,7 +14794,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -15246,7 +14807,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -15333,7 +14893,7 @@ "NewComePeople.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "NewComePeople.BestFriend.GetHomeAddress.AsEventLocation", + "operationId": "NewComePeople.BestFriend.GetHomeAddress.AsEventLocation-8ebe", "parameters": [ { "name": "UserName", @@ -15377,7 +14937,7 @@ "NewComePeople.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "NewComePeople.GetBestFriend.AsEmployee", + "operationId": "NewComePeople.GetBestFriend.AsEmployee-7b75", "parameters": [ { "name": "UserName", @@ -15393,7 +14953,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -15407,7 +14966,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -15449,7 +15007,7 @@ "NewComePeople.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "NewComePeople.GetBestFriend.AsManager", + "operationId": "NewComePeople.GetBestFriend.AsManager-61ce", "parameters": [ { "name": "UserName", @@ -15465,7 +15023,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -15479,7 +15036,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -15521,7 +15077,7 @@ "NewComePeople.Person" ], "summary": "Get Photo for the navigation property BestFriend from NewComePeople", - "operationId": "NewComePeople.GetBestFriendPhoto", + "operationId": "NewComePeople.GetBestFriendPhoto-4f67", "parameters": [ { "name": "UserName", @@ -15563,7 +15119,7 @@ "NewComePeople.Person" ], "summary": "Update Photo for the navigation property BestFriend in NewComePeople", - "operationId": "NewComePeople.UpdateBestFriendPhoto", + "operationId": "NewComePeople.UpdateBestFriendPhoto-4f67", "parameters": [ { "name": "UserName", @@ -15609,7 +15165,7 @@ "NewComePeople.Person" ], "summary": "Delete Photo for the navigation property BestFriend in NewComePeople", - "operationId": "NewComePeople.DeleteBestFriendPhoto", + "operationId": "NewComePeople.DeleteBestFriendPhoto-4f67", "parameters": [ { "name": "UserName", @@ -15700,7 +15256,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -15714,7 +15269,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -15728,7 +15282,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -15846,7 +15399,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -15860,7 +15412,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -15874,7 +15425,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -16039,20 +15589,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -16077,7 +15613,7 @@ "NewComePeople.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "NewComePeople.Friends.ListAddressInfo.AsEventLocation", + "operationId": "NewComePeople.Friends.ListAddressInfo.AsEventLocation-eeb4", "parameters": [ { "name": "UserName", @@ -16143,20 +15679,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -16206,7 +15728,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -16220,7 +15741,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -16303,7 +15823,7 @@ "NewComePeople.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "NewComePeople.Friends.GetHomeAddress.AsEventLocation", + "operationId": "NewComePeople.Friends.GetHomeAddress.AsEventLocation-f4d9", "parameters": [ { "name": "UserName", @@ -16350,7 +15870,7 @@ "NewComePeople.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "NewComePeople.GetFriends.AsEmployee", + "operationId": "NewComePeople.GetFriends.AsEmployee-2969", "parameters": [ { "name": "UserName", @@ -16390,7 +15910,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -16404,7 +15923,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -16439,7 +15957,7 @@ "NewComePeople.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "NewComePeople.GetFriends.AsManager", + "operationId": "NewComePeople.GetFriends.AsManager-708f", "parameters": [ { "name": "UserName", @@ -16479,7 +15997,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -16493,7 +16010,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -16528,7 +16044,7 @@ "NewComePeople.Person" ], "summary": "Get Photo for the navigation property Friends from NewComePeople", - "operationId": "NewComePeople.GetFriendsPhoto", + "operationId": "NewComePeople.GetFriendsPhoto-e9fc", "parameters": [ { "name": "UserName", @@ -16573,7 +16089,7 @@ "NewComePeople.Person" ], "summary": "Update Photo for the navigation property Friends in NewComePeople", - "operationId": "NewComePeople.UpdateFriendsPhoto", + "operationId": "NewComePeople.UpdateFriendsPhoto-e9fc", "parameters": [ { "name": "UserName", @@ -16622,7 +16138,7 @@ "NewComePeople.Person" ], "summary": "Delete Photo for the navigation property Friends in NewComePeople", - "operationId": "NewComePeople.DeleteFriendsPhoto", + "operationId": "NewComePeople.DeleteFriendsPhoto-e9fc", "parameters": [ { "name": "UserName", @@ -16766,7 +16282,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -16871,7 +16386,7 @@ "NewComePeople.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "NewComePeople.ListFriends.AsEmployee", + "operationId": "NewComePeople.ListFriends.AsEmployee-2969", "parameters": [ { "name": "UserName", @@ -16916,7 +16431,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -16930,7 +16444,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -16944,7 +16457,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -17022,7 +16534,7 @@ "NewComePeople.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "NewComePeople.ListFriends.AsManager", + "operationId": "NewComePeople.ListFriends.AsManager-708f", "parameters": [ { "name": "UserName", @@ -17067,7 +16579,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -17081,7 +16592,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -17095,7 +16605,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -17188,7 +16697,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -17202,7 +16710,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -17275,7 +16782,7 @@ "NewComePeople.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "NewComePeople.GetHomeAddress.AsEventLocation", + "operationId": "NewComePeople.GetHomeAddress.AsEventLocation-3fd9", "parameters": [ { "name": "UserName", @@ -17383,7 +16890,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -17397,7 +16903,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -17411,7 +16916,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -17612,7 +17116,7 @@ "NewComePeople.Person" ], "summary": "Get Photo for Person from NewComePeople", - "operationId": "NewComePeople.Person.GetPhoto", + "operationId": "NewComePeople.Person.GetPhoto-74be", "parameters": [ { "name": "UserName", @@ -17647,7 +17151,7 @@ "NewComePeople.Person" ], "summary": "Update Photo for Person in NewComePeople", - "operationId": "NewComePeople.Person.UpdatePhoto", + "operationId": "NewComePeople.Person.UpdatePhoto-74be", "parameters": [ { "name": "UserName", @@ -17686,7 +17190,7 @@ "NewComePeople.Person" ], "summary": "Delete Photo for Person in NewComePeople", - "operationId": "NewComePeople.Person.DeletePhoto", + "operationId": "NewComePeople.Person.DeletePhoto-74be", "parameters": [ { "name": "UserName", @@ -17774,7 +17278,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -17788,7 +17291,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -17802,7 +17304,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -17916,7 +17417,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -17930,7 +17430,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -18121,7 +17620,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -18135,7 +17633,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -18149,7 +17646,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -18238,7 +17734,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -18252,7 +17747,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -18266,7 +17760,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -18453,7 +17946,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -18695,7 +18187,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -18709,7 +18200,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -18723,7 +18213,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -18829,7 +18318,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -18843,7 +18331,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -19005,7 +18492,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -19019,7 +18505,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -19033,7 +18518,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -19220,7 +18704,7 @@ "People.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.ListAddressInfo.AsEventLocation", + "operationId": "People.ListAddressInfo.AsEventLocation-e5b8", "parameters": [ { "name": "UserName", @@ -19321,7 +18805,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -19335,7 +18818,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -19587,7 +19069,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -19601,7 +19082,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -19615,7 +19095,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -19802,7 +19281,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation", + "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation-c332", "parameters": [ { "name": "UserName", @@ -19901,7 +19380,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -19915,7 +19393,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -20002,7 +19479,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation", + "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation-53c4", "parameters": [ { "name": "UserName", @@ -20046,7 +19523,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "People.GetBestFriend.AsEmployee", + "operationId": "People.GetBestFriend.AsEmployee-7188", "parameters": [ { "name": "UserName", @@ -20062,7 +19539,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -20076,7 +19552,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -20123,7 +19598,7 @@ "description": "Find more info here", "url": "https://learn.microsoft.com/graph/api/person-get-friend-manager?view=graph-rest-1.0" }, - "operationId": "People.GetBestFriend.AsManager", + "operationId": "People.GetBestFriend.AsManager-5f08", "parameters": [ { "name": "UserName", @@ -20139,7 +19614,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -20153,7 +19627,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -20195,7 +19668,7 @@ "People.Person" ], "summary": "Get Photo for the navigation property BestFriend from People", - "operationId": "People.GetBestFriendPhoto", + "operationId": "People.GetBestFriendPhoto-c3ac", "parameters": [ { "name": "UserName", @@ -20237,7 +19710,7 @@ "People.Person" ], "summary": "Update Photo for the navigation property BestFriend in People", - "operationId": "People.UpdateBestFriendPhoto", + "operationId": "People.UpdateBestFriendPhoto-c3ac", "parameters": [ { "name": "UserName", @@ -20283,7 +19756,7 @@ "People.Person" ], "summary": "Delete Photo for the navigation property BestFriend in People", - "operationId": "People.DeleteBestFriendPhoto", + "operationId": "People.DeleteBestFriendPhoto-c3ac", "parameters": [ { "name": "UserName", @@ -20378,7 +19851,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -20392,7 +19864,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -20406,7 +19877,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -20547,7 +20017,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -20561,7 +20030,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -20575,7 +20043,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -20792,7 +20259,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.Friends.ListAddressInfo.AsEventLocation", + "operationId": "People.Friends.ListAddressInfo.AsEventLocation-a5f6", "parameters": [ { "name": "UserName", @@ -20921,7 +20388,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -20935,7 +20401,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -21032,7 +20497,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.Friends.GetHomeAddress.AsEventLocation", + "operationId": "People.Friends.GetHomeAddress.AsEventLocation-da5e", "parameters": [ { "name": "UserName", @@ -21086,7 +20551,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "People.GetFriends.AsEmployee", + "operationId": "People.GetFriends.AsEmployee-11bf", "parameters": [ { "name": "UserName", @@ -21126,7 +20591,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -21140,7 +20604,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -21182,7 +20645,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "People.GetFriends.AsManager", + "operationId": "People.GetFriends.AsManager-1cfb", "parameters": [ { "name": "UserName", @@ -21222,7 +20685,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -21236,7 +20698,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -21278,7 +20739,7 @@ "People.Person" ], "summary": "Get Photo for the navigation property Friends from People", - "operationId": "People.GetFriendsPhoto", + "operationId": "People.GetFriendsPhoto-12fc", "parameters": [ { "name": "UserName", @@ -21330,7 +20791,7 @@ "People.Person" ], "summary": "Update Photo for the navigation property Friends in People", - "operationId": "People.UpdateFriendsPhoto", + "operationId": "People.UpdateFriendsPhoto-12fc", "parameters": [ { "name": "UserName", @@ -21386,7 +20847,7 @@ "People.Person" ], "summary": "Delete Photo for the navigation property Friends in People", - "operationId": "People.DeleteFriendsPhoto", + "operationId": "People.DeleteFriendsPhoto-12fc", "parameters": [ { "name": "UserName", @@ -21548,7 +21009,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -21684,7 +21144,7 @@ "People.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "People.ListFriends.AsEmployee", + "operationId": "People.ListFriends.AsEmployee-11bf", "parameters": [ { "name": "UserName", @@ -21729,7 +21189,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -21743,7 +21202,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -21757,7 +21215,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -21849,7 +21306,7 @@ "People.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "People.ListFriends.AsManager", + "operationId": "People.ListFriends.AsManager-1cfb", "parameters": [ { "name": "UserName", @@ -21894,7 +21351,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -21908,7 +21364,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -21922,7 +21377,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -22030,7 +21484,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -22044,7 +21497,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -22131,7 +21583,7 @@ "People.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.GetHomeAddress.AsEventLocation", + "operationId": "People.GetHomeAddress.AsEventLocation-d0cf", "parameters": [ { "name": "UserName", @@ -22175,7 +21627,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "People.Person.GetPerson.AsEmployee", + "operationId": "People.Person.GetPerson.AsEmployee-317b", "parameters": [ { "name": "UserName", @@ -22205,7 +21657,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -22219,7 +21670,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -22291,7 +21741,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -22305,7 +21754,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -22319,7 +21767,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -22475,20 +21922,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -22520,7 +21953,7 @@ "People.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.ListAddressInfo.AsEventLocation", + "operationId": "People.ListAddressInfo.AsEventLocation-1342", "parameters": [ { "name": "UserName", @@ -22573,20 +22006,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -22635,7 +22054,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -22649,7 +22067,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -22901,7 +22318,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -22915,7 +22331,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -22929,7 +22344,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -23085,20 +22499,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -23130,7 +22530,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation", + "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation-7cd9", "parameters": [ { "name": "UserName", @@ -23183,20 +22583,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -23243,7 +22629,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -23257,7 +22642,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -23344,7 +22728,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation", + "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation-7db9", "parameters": [ { "name": "UserName", @@ -23388,7 +22772,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "People.GetBestFriend.AsManager", + "operationId": "People.GetBestFriend.AsManager-7b70", "parameters": [ { "name": "UserName", @@ -23404,7 +22788,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -23418,7 +22801,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -23460,7 +22842,7 @@ "People.Person" ], "summary": "Get Photo for the navigation property BestFriend from People", - "operationId": "People.GetBestFriendPhoto", + "operationId": "People.GetBestFriendPhoto-a839", "parameters": [ { "name": "UserName", @@ -23502,7 +22884,7 @@ "People.Person" ], "summary": "Update Photo for the navigation property BestFriend in People", - "operationId": "People.UpdateBestFriendPhoto", + "operationId": "People.UpdateBestFriendPhoto-a839", "parameters": [ { "name": "UserName", @@ -23548,7 +22930,7 @@ "People.Person" ], "summary": "Delete Photo for the navigation property BestFriend in People", - "operationId": "People.DeleteBestFriendPhoto", + "operationId": "People.DeleteBestFriendPhoto-a839", "parameters": [ { "name": "UserName", @@ -23639,7 +23021,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -23653,7 +23034,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -23667,7 +23047,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -23803,7 +23182,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -23817,7 +23195,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -23831,7 +23208,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -24017,20 +23393,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -24062,7 +23424,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.Friends.ListAddressInfo.AsEventLocation", + "operationId": "People.Friends.ListAddressInfo.AsEventLocation-d49e", "parameters": [ { "name": "UserName", @@ -24135,20 +23497,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -24205,7 +23553,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -24219,7 +23566,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -24316,7 +23662,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.Friends.GetHomeAddress.AsEventLocation", + "operationId": "People.Friends.GetHomeAddress.AsEventLocation-d77d", "parameters": [ { "name": "UserName", @@ -24370,7 +23716,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "People.GetFriends.AsManager", + "operationId": "People.GetFriends.AsManager-3e3c", "parameters": [ { "name": "UserName", @@ -24410,7 +23756,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -24424,7 +23769,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -24466,7 +23810,7 @@ "People.Person" ], "summary": "Get Photo for the navigation property Friends from People", - "operationId": "People.GetFriendsPhoto", + "operationId": "People.GetFriendsPhoto-1a66", "parameters": [ { "name": "UserName", @@ -24518,7 +23862,7 @@ "People.Person" ], "summary": "Update Photo for the navigation property Friends in People", - "operationId": "People.UpdateFriendsPhoto", + "operationId": "People.UpdateFriendsPhoto-1a66", "parameters": [ { "name": "UserName", @@ -24574,7 +23918,7 @@ "People.Person" ], "summary": "Delete Photo for the navigation property Friends in People", - "operationId": "People.DeleteFriendsPhoto", + "operationId": "People.DeleteFriendsPhoto-1a66", "parameters": [ { "name": "UserName", @@ -24732,7 +24076,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -24858,7 +24201,7 @@ "People.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "People.ListFriends.AsManager", + "operationId": "People.ListFriends.AsManager-3e3c", "parameters": [ { "name": "UserName", @@ -24903,7 +24246,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -24917,7 +24259,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -24931,7 +24272,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -25038,7 +24378,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -25052,7 +24391,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -25139,7 +24477,7 @@ "People.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.GetHomeAddress.AsEventLocation", + "operationId": "People.GetHomeAddress.AsEventLocation-90e5", "parameters": [ { "name": "UserName", @@ -25214,7 +24552,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -25228,7 +24565,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -25242,7 +24578,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -25374,7 +24709,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -25388,7 +24722,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -25402,7 +24735,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -25588,20 +24920,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -25633,7 +24951,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.Peers.ListAddressInfo.AsEventLocation", + "operationId": "People.Peers.ListAddressInfo.AsEventLocation-b918", "parameters": [ { "name": "UserName", @@ -25706,20 +25024,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -25776,7 +25080,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -25790,7 +25093,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -25887,7 +25189,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.Peers.GetHomeAddress.AsEventLocation", + "operationId": "People.Peers.GetHomeAddress.AsEventLocation-311b", "parameters": [ { "name": "UserName", @@ -25941,7 +25243,7 @@ "People.Person" ], "summary": "Get Photo for the navigation property Peers from People", - "operationId": "People.GetPeersPhoto", + "operationId": "People.GetPeersPhoto-ecda", "parameters": [ { "name": "UserName", @@ -25993,7 +25295,7 @@ "People.Person" ], "summary": "Update Photo for the navigation property Peers in People", - "operationId": "People.UpdatePeersPhoto", + "operationId": "People.UpdatePeersPhoto-ecda", "parameters": [ { "name": "UserName", @@ -26049,7 +25351,7 @@ "People.Person" ], "summary": "Delete Photo for the navigation property Peers in People", - "operationId": "People.DeletePeersPhoto", + "operationId": "People.DeletePeersPhoto-ecda", "parameters": [ { "name": "UserName", @@ -26178,7 +25480,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -26354,7 +25655,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -26368,7 +25668,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -26382,7 +25681,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -26514,7 +25812,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -26528,7 +25825,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -26744,7 +26040,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -26758,7 +26053,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -26772,7 +26066,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -26872,7 +26165,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -26886,7 +26178,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -26900,7 +26191,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -27112,7 +26402,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -27399,7 +26688,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -27413,7 +26701,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -27427,7 +26714,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -27504,7 +26790,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "People.Person.GetPerson.AsManager", + "operationId": "People.Person.GetPerson.AsManager-d051", "parameters": [ { "name": "UserName", @@ -27534,7 +26820,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -27548,7 +26833,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -27620,7 +26904,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -27634,7 +26917,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -27648,7 +26930,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -27804,20 +27085,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -27849,7 +27116,7 @@ "People.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.ListAddressInfo.AsEventLocation", + "operationId": "People.ListAddressInfo.AsEventLocation-7526", "parameters": [ { "name": "UserName", @@ -27902,20 +27169,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -27964,7 +27217,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -27978,7 +27230,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -28230,7 +27481,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -28244,7 +27494,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -28258,7 +27507,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -28414,20 +27662,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -28459,7 +27693,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation", + "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation-897f", "parameters": [ { "name": "UserName", @@ -28512,20 +27746,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, { "$ref": "#/components/parameters/search" }, @@ -28572,7 +27792,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -28586,7 +27805,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -28673,7 +27891,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation", + "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation-545d", "parameters": [ { "name": "UserName", @@ -28717,7 +27935,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "People.GetBestFriend.AsEmployee", + "operationId": "People.GetBestFriend.AsEmployee-0445", "parameters": [ { "name": "UserName", @@ -28733,7 +27951,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -28747,7 +27964,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -28789,7 +28005,7 @@ "People.Person" ], "summary": "Get Photo for the navigation property BestFriend from People", - "operationId": "People.GetBestFriendPhoto", + "operationId": "People.GetBestFriendPhoto-f05d", "parameters": [ { "name": "UserName", @@ -28831,7 +28047,7 @@ "People.Person" ], "summary": "Update Photo for the navigation property BestFriend in People", - "operationId": "People.UpdateBestFriendPhoto", + "operationId": "People.UpdateBestFriendPhoto-f05d", "parameters": [ { "name": "UserName", @@ -28877,7 +28093,7 @@ "People.Person" ], "summary": "Delete Photo for the navigation property BestFriend in People", - "operationId": "People.DeleteBestFriendPhoto", + "operationId": "People.DeleteBestFriendPhoto-f05d", "parameters": [ { "name": "UserName", @@ -28953,7 +28169,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -28967,7 +28182,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -28981,7 +28195,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -29113,7 +28326,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -29127,7 +28339,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -29141,7 +28352,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -29328,19 +28538,109 @@ "x-ms-docs-key-type": "Person" }, { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", + "operationId": "People.DirectReports.ListAddressInfo.AsEventLocation-1252", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, "schema": { "type": "string" }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" + } } } }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "summary": "Get the number of the resource", + "operationId": "People.DirectReports.AddressInfo.GetCount.AsEventLocation-5d49", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, { "$ref": "#/components/parameters/search" }, @@ -29365,268 +28665,148 @@ } } }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "People.AsManager.DirectReports.GetHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Entity result.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + }, + "patch": { + "tags": [ + "People.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "People.AsManager.DirectReports.UpdateHomeAddress", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + } + ], + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { "description": "Casts the previous resource to EventLocation.", "get": { "tags": [ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.DirectReports.ListAddressInfo.AsEventLocation", - "parameters": [ - { - "name": "UserName", - "in": "path", - "description": "The unique identifier of Person", - "required": true, - "schema": { - "type": "string" - }, - "x-ms-docs-key-type": "Person" - }, - { - "name": "UserName1", - "in": "path", - "description": "The unique identifier of Person", - "required": true, - "schema": { - "type": "string" - }, - "x-ms-docs-key-type": "Person" - } - ], - "responses": { - "200": { - "description": "Entity result.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" - } - } - } - }, - "default": { - "$ref": "#/components/responses/error" - } - }, - "deprecated": true, - "x-ms-deprecation": { - "removalDate": "2023-03-15T00:00:00.0000000+00:00", - "date": "2021-08-24T00:00:00.0000000+00:00", - "version": "2021-05/people", - "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." - } - } - }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { - "description": "Provides operations to count the resources in the collection.", - "get": { - "summary": "Get the number of the resource", - "operationId": "People.DirectReports.AddressInfo.GetCount.AsEventLocation-5d49", - "parameters": [ - { - "name": "UserName", - "in": "path", - "description": "The unique identifier of Person", - "required": true, - "schema": { - "type": "string" - }, - "x-ms-docs-key-type": "Person" - }, - { - "name": "UserName1", - "in": "path", - "description": "The unique identifier of Person", - "required": true, - "schema": { - "type": "string" - }, - "x-ms-docs-key-type": "Person" - }, - { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { - "type": "string" - }, - "examples": { - "example-1": { - "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", - "value": "eventual" - } - } - }, - { - "$ref": "#/components/parameters/search" - }, - { - "$ref": "#/components/parameters/filter" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/ODataCountResponse" - }, - "default": { - "$ref": "#/components/responses/error" - } - }, - "deprecated": true, - "x-ms-deprecation": { - "removalDate": "2023-03-15T00:00:00.0000000+00:00", - "date": "2021-08-24T00:00:00.0000000+00:00", - "version": "2021-05/people", - "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." - } - } - }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress": { - "get": { - "tags": [ - "People.Person.Location" - ], - "summary": "Get HomeAddress property value", - "operationId": "People.AsManager.DirectReports.GetHomeAddress", - "parameters": [ - { - "name": "UserName", - "in": "path", - "description": "The unique identifier of Person", - "required": true, - "schema": { - "type": "string" - }, - "x-ms-docs-key-type": "Person" - }, - { - "name": "UserName1", - "in": "path", - "description": "The unique identifier of Person", - "required": true, - "schema": { - "type": "string" - }, - "x-ms-docs-key-type": "Person" - }, - { - "name": "$select", - "in": "query", - "description": "Select properties to be returned", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "name": "$expand", - "in": "query", - "description": "Expand related entities", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "type": "string" - } - } - } - ], - "responses": { - "200": { - "description": "Entity result.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" - } - } - } - }, - "default": { - "$ref": "#/components/responses/error" - } - }, - "deprecated": true, - "x-ms-deprecation": { - "removalDate": "2023-03-15T00:00:00.0000000+00:00", - "date": "2021-08-24T00:00:00.0000000+00:00", - "version": "2021-05/people", - "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." - } - }, - "patch": { - "tags": [ - "People.Person.Location" - ], - "summary": "Update property HomeAddress value.", - "operationId": "People.AsManager.DirectReports.UpdateHomeAddress", - "parameters": [ - { - "name": "UserName", - "in": "path", - "description": "The unique identifier of Person", - "required": true, - "schema": { - "type": "string" - }, - "x-ms-docs-key-type": "Person" - }, - { - "name": "UserName1", - "in": "path", - "description": "The unique identifier of Person", - "required": true, - "schema": { - "type": "string" - }, - "x-ms-docs-key-type": "Person" - } - ], - "requestBody": { - "description": "New property values", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "Success" - }, - "default": { - "$ref": "#/components/responses/error" - } - }, - "deprecated": true, - "x-ms-deprecation": { - "removalDate": "2023-03-15T00:00:00.0000000+00:00", - "date": "2021-08-24T00:00:00.0000000+00:00", - "version": "2021-05/people", - "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." - } - } - }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { - "description": "Casts the previous resource to EventLocation.", - "get": { - "tags": [ - "People.Person.Location" - ], - "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.DirectReports.GetHomeAddress.AsEventLocation", + "operationId": "People.DirectReports.GetHomeAddress.AsEventLocation-cf8d", "parameters": [ { "name": "UserName", @@ -29680,7 +28860,7 @@ "People.Person" ], "summary": "Get Photo for the navigation property DirectReports from People", - "operationId": "People.GetDirectReportsPhoto", + "operationId": "People.GetDirectReportsPhoto-7149", "parameters": [ { "name": "UserName", @@ -29732,7 +28912,7 @@ "People.Person" ], "summary": "Update Photo for the navigation property DirectReports in People", - "operationId": "People.UpdateDirectReportsPhoto", + "operationId": "People.UpdateDirectReportsPhoto-7149", "parameters": [ { "name": "UserName", @@ -29788,7 +28968,7 @@ "People.Person" ], "summary": "Delete Photo for the navigation property DirectReports in People", - "operationId": "People.DeleteDirectReportsPhoto", + "operationId": "People.DeleteDirectReportsPhoto-7149", "parameters": [ { "name": "UserName", @@ -29917,7 +29097,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -30089,7 +29268,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -30103,7 +29281,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -30117,7 +29294,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -30253,7 +29429,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -30267,7 +29442,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -30281,7 +29455,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -30498,7 +29671,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.Friends.ListAddressInfo.AsEventLocation", + "operationId": "People.Friends.ListAddressInfo.AsEventLocation-f8c9", "parameters": [ { "name": "UserName", @@ -30627,7 +29800,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -30641,7 +29813,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -30738,7 +29909,7 @@ "People.Person.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.Friends.GetHomeAddress.AsEventLocation", + "operationId": "People.Friends.GetHomeAddress.AsEventLocation-eb71", "parameters": [ { "name": "UserName", @@ -30792,7 +29963,7 @@ "People.Person" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee", - "operationId": "People.GetFriends.AsEmployee", + "operationId": "People.GetFriends.AsEmployee-161e", "parameters": [ { "name": "UserName", @@ -30832,7 +30003,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -30846,7 +30016,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -30888,7 +30057,7 @@ "People.Person" ], "summary": "Get Photo for the navigation property Friends from People", - "operationId": "People.GetFriendsPhoto", + "operationId": "People.GetFriendsPhoto-b97d", "parameters": [ { "name": "UserName", @@ -30940,7 +30109,7 @@ "People.Person" ], "summary": "Update Photo for the navigation property Friends in People", - "operationId": "People.UpdateFriendsPhoto", + "operationId": "People.UpdateFriendsPhoto-b97d", "parameters": [ { "name": "UserName", @@ -30996,7 +30165,7 @@ "People.Person" ], "summary": "Delete Photo for the navigation property Friends in People", - "operationId": "People.DeleteFriendsPhoto", + "operationId": "People.DeleteFriendsPhoto-b97d", "parameters": [ { "name": "UserName", @@ -31154,7 +30323,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -31280,7 +30448,7 @@ "People.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "People.ListFriends.AsEmployee", + "operationId": "People.ListFriends.AsEmployee-161e", "parameters": [ { "name": "UserName", @@ -31325,7 +30493,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -31339,7 +30506,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -31353,7 +30519,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -31460,7 +30625,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -31474,7 +30638,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -31561,7 +30724,7 @@ "People.Location" ], "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation", - "operationId": "People.GetHomeAddress.AsEventLocation", + "operationId": "People.GetHomeAddress.AsEventLocation-e3dc", "parameters": [ { "name": "UserName", @@ -31718,7 +30881,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -31732,7 +30894,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -31746,7 +30907,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -31878,7 +31038,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -31892,7 +31051,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -32108,7 +31266,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -32122,7 +31279,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -32136,7 +31292,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -32236,7 +31391,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -32250,7 +31404,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -32264,7 +31417,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -32476,7 +31628,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -32779,7 +31930,7 @@ "description": "Find more info here", "url": "https://learn.microsoft.com/graph/api/person-get-photo?view=graph-rest-1.0" }, - "operationId": "People.Person.GetPhoto", + "operationId": "People.Person.GetPhoto-883f", "parameters": [ { "name": "UserName", @@ -32826,7 +31977,7 @@ "description": "Find more info here", "url": "https://learn.microsoft.com/graph/api/person-update-photo?view=graph-rest-1.0" }, - "operationId": "People.Person.UpdatePhoto", + "operationId": "People.Person.UpdatePhoto-883f", "parameters": [ { "name": "UserName", @@ -32877,7 +32028,7 @@ "description": "Find more info here", "url": "https://learn.microsoft.com/graph/api/person-delete-photo?view=graph-rest-1.0" }, - "operationId": "People.Person.DeletePhoto", + "operationId": "People.Person.DeletePhoto-883f", "parameters": [ { "name": "UserName", @@ -32972,7 +32123,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -32986,7 +32136,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -33000,7 +32149,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -33132,7 +32280,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -33146,7 +32293,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -33362,7 +32508,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -33376,7 +32521,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -33390,7 +32534,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -33490,7 +32633,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -33504,7 +32646,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -33518,7 +32659,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -33730,7 +32870,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -33986,7 +33125,7 @@ "People.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "People.Person.ListPerson.AsEmployee", + "operationId": "People.Person.ListPerson.AsEmployee-013a", "parameters": [ { "name": "ConsistencyLevel", @@ -34021,7 +33160,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -34035,7 +33173,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -34049,7 +33186,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -34131,7 +33267,7 @@ "People.Person" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "People.Person.ListPerson.AsManager", + "operationId": "People.Person.ListPerson.AsManager-3e14", "parameters": [ { "name": "ConsistencyLevel", @@ -34166,7 +33302,6 @@ "name": "$orderby", "in": "query", "description": "Order items by property values", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -34180,7 +33315,6 @@ "name": "$select", "in": "query", "description": "Select properties to be returned", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -34194,7 +33328,6 @@ "name": "$expand", "in": "query", "description": "Expand related entities", - "style": "form", "explode": false, "schema": { "uniqueItems": true, @@ -34292,6 +33425,341 @@ }, "components": { "schemas": { + "Edm.Geography": { + "$ref": "#/components/schemas/Edm.Geometry" + }, + "Edm.GeographyPoint": { + "$ref": "#/components/schemas/Edm.GeometryPoint" + }, + "Edm.GeographyLineString": { + "$ref": "#/components/schemas/Edm.GeometryLineString" + }, + "Edm.GeographyPolygon": { + "$ref": "#/components/schemas/Edm.GeometryPolygon" + }, + "Edm.GeographyMultiPoint": { + "$ref": "#/components/schemas/Edm.GeometryMultiPoint" + }, + "Edm.GeographyMultiLineString": { + "$ref": "#/components/schemas/Edm.GeometryMultiLineString" + }, + "Edm.GeographyMultiPolygon": { + "$ref": "#/components/schemas/Edm.GeometryMultiPolygon" + }, + "Edm.GeographyCollection": { + "$ref": "#/components/schemas/Edm.GeometryCollection" + }, + "Edm.Geometry": { + "type": "object", + "oneOf": [ + { + "$ref": "#/components/schemas/Edm.GeometryPoint" + }, + { + "$ref": "#/components/schemas/Edm.GeometryLineString" + }, + { + "$ref": "#/components/schemas/Edm.GeometryPolygon" + }, + { + "$ref": "#/components/schemas/Edm.GeometryMultiPoint" + }, + { + "$ref": "#/components/schemas/Edm.GeometryMultiLineString" + }, + { + "$ref": "#/components/schemas/Edm.GeometryMultiPolygon" + }, + { + "$ref": "#/components/schemas/Edm.GeometryCollection" + } + ] + }, + "Edm.GeometryPoint": { + "required": [ + "type", + "coordinates" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "Point" + ], + "type": "string", + "default": "Point" + }, + "coordinates": { + "$ref": "#/components/schemas/GeoJSON.position" + } + } + }, + "Edm.GeometryLineString": { + "required": [ + "type", + "coordinates" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "LineString" + ] + }, + "coordinates": { + "minItems": 2, + "type": "array", + "items": { + "$ref": "#/components/schemas/GeoJSON.position" + } + } + } + }, + "Edm.GeometryPolygon": { + "required": [ + "type", + "coordinates" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "Polygon" + ] + }, + "coordinates": { + "minItems": 4, + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GeoJSON.position" + } + } + } + } + }, + "Edm.GeometryMultiPoint": { + "required": [ + "type", + "coordinates" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "MultiPoint" + ] + }, + "coordinates": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GeoJSON.position" + } + } + } + }, + "Edm.GeometryMultiLineString": { + "required": [ + "type", + "coordinates" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "MultiLineString" + ] + }, + "coordinates": { + "minItems": 2, + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GeoJSON.position" + } + } + } + } + }, + "Edm.GeometryMultiPolygon": { + "required": [ + "type", + "coordinates" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "MultiPolygon" + ] + }, + "coordinates": { + "minItems": 4, + "type": "array", + "items": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GeoJSON.position" + } + } + } + } + } + }, + "Edm.GeometryCollection": { + "required": [ + "type", + "coordinates" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "GeometryCollection" + ] + }, + "coordinates": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Edm.Geometry" + } + } + } + }, + "GeoJSON.position": { + "minItems": 2, + "type": "array", + "items": { + "type": "number" + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ODataError": { + "required": [ + "error" + ], + "type": "object", + "properties": { + "error": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError" + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string", + "x-ms-primary-error-message": true + }, + "target": { + "type": "string", + "nullable": true + }, + "details": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails" + } + }, + "innerError": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError" + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "target": { + "type": "string", + "nullable": true + } + } + }, + "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError": { + "title": "InnerError", + "type": "object", + "properties": { + "Date": { + "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", + "type": "string", + "format": "date-time", + "nullable": true + }, + "RequestId": { + "type": "string", + "nullable": true + } + } + }, + "ODataCountResponse": { + "type": "number", + "format": "int64" + }, + "StringCollectionResponse": { + "title": "Collection of string", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ReferenceUpdate": { + "type": "object", + "properties": { + "@odata.id": { + "type": "string" + }, + "@odata.type": { + "type": "string", + "nullable": true + } + } + }, + "ReferenceCreate": { + "type": "object", + "properties": { + "@odata.id": { + "type": "string" + } + }, + "additionalProperties": { + "type": "object" + } + }, + "ReferenceNumeric": { + "enum": [ + "-INF", + "INF", + "NaN" + ], + "type": "string", + "nullable": true + }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person": { "title": "Person", "type": "object", @@ -34841,297 +34309,6 @@ "isFlags": true } }, - "Edm.Geography": { - "$ref": "#/components/schemas/Edm.Geometry" - }, - "Edm.GeographyPoint": { - "$ref": "#/components/schemas/Edm.GeometryPoint" - }, - "Edm.GeographyLineString": { - "$ref": "#/components/schemas/Edm.GeometryLineString" - }, - "Edm.GeographyPolygon": { - "$ref": "#/components/schemas/Edm.GeometryPolygon" - }, - "Edm.GeographyMultiPoint": { - "$ref": "#/components/schemas/Edm.GeometryMultiPoint" - }, - "Edm.GeographyMultiLineString": { - "$ref": "#/components/schemas/Edm.GeometryMultiLineString" - }, - "Edm.GeographyMultiPolygon": { - "$ref": "#/components/schemas/Edm.GeometryMultiPolygon" - }, - "Edm.GeographyCollection": { - "$ref": "#/components/schemas/Edm.GeometryCollection" - }, - "Edm.Geometry": { - "type": "object", - "oneOf": [ - { - "$ref": "#/components/schemas/Edm.GeometryPoint" - }, - { - "$ref": "#/components/schemas/Edm.GeometryLineString" - }, - { - "$ref": "#/components/schemas/Edm.GeometryPolygon" - }, - { - "$ref": "#/components/schemas/Edm.GeometryMultiPoint" - }, - { - "$ref": "#/components/schemas/Edm.GeometryMultiLineString" - }, - { - "$ref": "#/components/schemas/Edm.GeometryMultiPolygon" - }, - { - "$ref": "#/components/schemas/Edm.GeometryCollection" - } - ] - }, - "Edm.GeometryPoint": { - "required": [ - "type", - "coordinates" - ], - "type": "object", - "properties": { - "type": { - "enum": [ - "Point" - ], - "type": "string", - "default": "Point" - }, - "coordinates": { - "$ref": "#/components/schemas/GeoJSON.position" - } - } - }, - "Edm.GeometryLineString": { - "required": [ - "type", - "coordinates" - ], - "type": "object", - "properties": { - "type": { - "enum": [ - "LineString" - ] - }, - "coordinates": { - "minItems": 2, - "type": "array", - "items": { - "$ref": "#/components/schemas/GeoJSON.position" - } - } - } - }, - "Edm.GeometryPolygon": { - "required": [ - "type", - "coordinates" - ], - "type": "object", - "properties": { - "type": { - "enum": [ - "Polygon" - ] - }, - "coordinates": { - "minItems": 4, - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GeoJSON.position" - } - } - } - } - }, - "Edm.GeometryMultiPoint": { - "required": [ - "type", - "coordinates" - ], - "type": "object", - "properties": { - "type": { - "enum": [ - "MultiPoint" - ] - }, - "coordinates": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GeoJSON.position" - } - } - } - }, - "Edm.GeometryMultiLineString": { - "required": [ - "type", - "coordinates" - ], - "type": "object", - "properties": { - "type": { - "enum": [ - "MultiLineString" - ] - }, - "coordinates": { - "minItems": 2, - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GeoJSON.position" - } - } - } - } - }, - "Edm.GeometryMultiPolygon": { - "required": [ - "type", - "coordinates" - ], - "type": "object", - "properties": { - "type": { - "enum": [ - "MultiPolygon" - ] - }, - "coordinates": { - "minItems": 4, - "type": "array", - "items": { - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GeoJSON.position" - } - } - } - } - } - }, - "Edm.GeometryCollection": { - "required": [ - "type", - "coordinates" - ], - "type": "object", - "properties": { - "type": { - "enum": [ - "GeometryCollection" - ] - }, - "coordinates": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Edm.Geometry" - } - } - } - }, - "GeoJSON.position": { - "minItems": 2, - "type": "array", - "items": { - "type": "number" - } - }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ODataError": { - "required": [ - "error" - ], - "type": "object", - "properties": { - "error": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError" - } - } - }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError": { - "required": [ - "code", - "message" - ], - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "message": { - "type": "string", - "x-ms-primary-error-message": true - }, - "target": { - "type": "string", - "nullable": true - }, - "details": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails" - } - }, - "innerError": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError" - } - } - }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails": { - "required": [ - "code", - "message" - ], - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "message": { - "type": "string" - }, - "target": { - "type": "string", - "nullable": true - } - } - }, - "Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError": { - "title": "InnerError", - "type": "object", - "properties": { - "Date": { - "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$", - "type": "string", - "format": "date-time", - "nullable": true - }, - "RequestId": { - "type": "string", - "nullable": true - } - } - }, - "ODataCountResponse": { - "type": "integer", - "format": "int32" - }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse": { "title": "Collection of Person", "type": "object", @@ -35263,50 +34440,6 @@ } } } - }, - "StringCollectionResponse": { - "title": "Collection of string", - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ReferenceUpdate": { - "type": "object", - "properties": { - "@odata.id": { - "type": "string" - }, - "@odata.type": { - "type": "string", - "nullable": true - } - } - }, - "ReferenceCreate": { - "type": "object", - "properties": { - "@odata.id": { - "type": "string" - } - }, - "additionalProperties": { - "type": "object" - } - }, - "ReferenceNumeric": { - "enum": [ - "-INF", - "INF", - "NaN" - ], - "type": "string", - "nullable": true } }, "responses": { @@ -35528,11 +34661,11 @@ "name": "$top", "in": "query", "description": "Show only the first n items", - "style": "form", "explode": false, "schema": { "minimum": 0, - "type": "integer" + "type": "number", + "format": "int64" }, "example": 50 }, @@ -35540,18 +34673,17 @@ "name": "$skip", "in": "query", "description": "Skip the first n items", - "style": "form", "explode": false, "schema": { "minimum": 0, - "type": "integer" + "type": "number", + "format": "int64" } }, "count": { "name": "$count", "in": "query", "description": "Include count of items", - "style": "form", "explode": false, "schema": { "type": "boolean" @@ -35561,7 +34693,6 @@ "name": "$filter", "in": "query", "description": "Filter items by property values", - "style": "form", "explode": false, "schema": { "type": "string" @@ -35571,7 +34702,6 @@ "name": "$search", "in": "query", "description": "Search items by search phrases", - "style": "form", "explode": false, "schema": { "type": "string" @@ -35582,23 +34712,30 @@ "Microsoft.OData.Service.Sample.TrippinInMemory.Models.InnerError": { "value": { "Date": "0001-01-01T00:00:00.0000000+00:00", - "RequestId": "String" + "RequestId": "string" } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person": { "value": { + "UserName": "string (identifier)", + "FirstName": "string", + "LastName": "string", + "MiddleName": "string", + "Gender": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender" + }, + "Age": 0, + "Emails": [ + "string" + ], "AddressInfo": [ { "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" } ], - "Age": 0, - "BestFriend": { - "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + "HomeAddress": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" }, - "Emails": [ - "String" - ], "FavoriteFeature": { "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" }, @@ -35607,48 +34744,41 @@ "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" } ], - "FirstName": "String", + "Photo": "string", "Friends": [ { "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" } ], - "Gender": { - "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender" - }, - "HomeAddress": { - "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + "BestFriend": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" }, - "LastName": "String", - "MiddleName": "String", - "Photo": "Stream", "Trips": [ { "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" } - ], - "UserName": "String (identifier)" + ] } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline": { "value": { - "AirlineCode": "String (identifier)", - "Name": "String" + "AirlineCode": "string (identifier)", + "Name": "string" } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport": { "value": { - "IataCode": "String", - "IcaoCode": "String (identifier)", + "Name": "string", + "IcaoCode": "string (identifier)", + "IataCode": "string", "Location": { "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation" - }, - "Name": "String" + } } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location": { "value": { - "Address": "String", + "Address": "string", "City": { "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.City" } @@ -35656,75 +34786,99 @@ }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.City": { "value": { - "CountryRegion": "String", - "Name": "String", - "Region": "String" + "Name": "string", + "CountryRegion": "string", + "Region": "string" } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation": { "value": { + "Address": "string", + "City": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.City" + }, + "Loc": "Edm.GeographyPoint", "EmergencyAuthority": { "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" - }, - "Loc": "GeographyPoint" + } } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { "value": { - "BuildingInfo": "String" + "Address": "string", + "City": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.City" + }, + "BuildingInfo": "string" } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip": { "value": { + "TripId": 0, + "ShareId": "00000000-0000-0000-0000-000000000000", + "Name": "string", "Budget": 0, - "Description": "String", + "Description": "string", + "Tags": [ + "string" + ], + "TripData": { }, "DestinationInfo": [ { } ], + "StartsAt": "0001-01-01T00:00:00.0000000+00:00", "EndsAt": "0001-01-01T00:00:00.0000000+00:00", - "Name": "String", "PlanItems": [ { "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem" } - ], - "ShareId": "00000000-0000-0000-0000-000000000000", - "StartsAt": "0001-01-01T00:00:00.0000000+00:00", - "Tags": [ - "String" - ], - "TripData": { }, - "TripId": 0 + ] } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem": { "value": { - "ConfirmationCode": "String", - "Duration": "Duration", - "EndsAt": "0001-01-01T00:00:00.0000000+00:00", "PlanItemId": 0, - "StartsAt": "0001-01-01T00:00:00.0000000+00:00" + "ConfirmationCode": "string", + "StartsAt": "0001-01-01T00:00:00.0000000+00:00", + "EndsAt": "0001-01-01T00:00:00.0000000+00:00", + "Duration": "string" } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Event": { "value": { - "Description": "String", + "PlanItemId": 0, + "ConfirmationCode": "string", + "StartsAt": "0001-01-01T00:00:00.0000000+00:00", + "EndsAt": "0001-01-01T00:00:00.0000000+00:00", + "Duration": "string", "OccursAt": { "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation" - } + }, + "Description": "string" } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation": { "value": { - "SeatNumber": "String" + "PlanItemId": 0, + "ConfirmationCode": "string", + "StartsAt": "0001-01-01T00:00:00.0000000+00:00", + "EndsAt": "0001-01-01T00:00:00.0000000+00:00", + "Duration": "string", + "SeatNumber": "string" } }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight": { "value": { + "PlanItemId": 0, + "ConfirmationCode": "string", + "StartsAt": "0001-01-01T00:00:00.0000000+00:00", + "EndsAt": "0001-01-01T00:00:00.0000000+00:00", + "Duration": "string", + "SeatNumber": "string", + "FlightNumber": "string", "Airline": { "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline" }, - "FlightNumber": "String", "From": { "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport" }, @@ -35735,6 +34889,47 @@ }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { "value": { + "UserName": "string (identifier)", + "FirstName": "string", + "LastName": "string", + "MiddleName": "string", + "Gender": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender" + }, + "Age": 0, + "Emails": [ + "string" + ], + "AddressInfo": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + ], + "HomeAddress": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + }, + "FavoriteFeature": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" + }, + "Features": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" + } + ], + "Photo": "string", + "Friends": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + ], + "BestFriend": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + "Trips": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + ], "Cost": 0, "Peers": [ { @@ -35745,10 +34940,51 @@ }, "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { "value": { - "BossOffice": { + "UserName": "string (identifier)", + "FirstName": "string", + "LastName": "string", + "MiddleName": "string", + "Gender": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender" + }, + "Age": 0, + "Emails": [ + "string" + ], + "AddressInfo": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + ], + "HomeAddress": { "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" }, + "FavoriteFeature": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" + }, + "Features": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature" + } + ], + "Photo": "string", + "Friends": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + ], + "BestFriend": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + "Trips": [ + { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + ], "Budget": 0, + "BossOffice": { + "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + }, "DirectReports": [ { "@odata.type": "Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.yaml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.yaml index 6773a8b89..1043ced16 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.yaml +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.yaml @@ -2,7 +2,7 @@ openapi: 3.0.4 info: title: OData Service for namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models description: This OData service is located at http://services.odata.org/TrippinRESTierService - version: '1.2.3' + version: 1.0.1 servers: - url: http://services.odata.org/TrippinRESTierService paths: @@ -22,7 +22,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -32,7 +31,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -42,7 +40,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -94,7 +91,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -104,7 +100,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -202,7 +197,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -212,7 +206,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -222,7 +215,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -274,7 +266,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -284,7 +275,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -368,7 +358,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -378,7 +367,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -438,7 +426,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -448,7 +435,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -558,7 +544,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -568,7 +553,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -578,7 +562,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -680,7 +663,7 @@ paths: tags: - Airports.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Airports.EmergencyAuthority.ListAddressInfo.AsEventLocation + operationId: Airports.EmergencyAuthority.ListAddressInfo.AsEventLocation-fbf9 parameters: - name: IcaoCode in: path @@ -735,7 +718,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -745,7 +727,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -792,7 +773,7 @@ paths: tags: - Airports.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Airports.EmergencyAuthority.GetHomeAddress.AsEventLocation + operationId: Airports.EmergencyAuthority.GetHomeAddress.AsEventLocation-0bb9 parameters: - name: IcaoCode in: path @@ -816,7 +797,7 @@ paths: tags: - Airports.Person summary: Get Photo for the navigation property EmergencyAuthority from Airports - operationId: Airports.GetEmergencyAuthorityPhoto + operationId: Airports.GetEmergencyAuthorityPhoto-13fb parameters: - name: IcaoCode in: path @@ -839,7 +820,7 @@ paths: tags: - Airports.Person summary: Update Photo for the navigation property EmergencyAuthority in Airports - operationId: Airports.UpdateEmergencyAuthorityPhoto + operationId: Airports.UpdateEmergencyAuthorityPhoto-13fb parameters: - name: IcaoCode in: path @@ -865,7 +846,7 @@ paths: tags: - Airports.Person summary: Delete Photo for the navigation property EmergencyAuthority in Airports - operationId: Airports.DeleteEmergencyAuthorityPhoto + operationId: Airports.DeleteEmergencyAuthorityPhoto-13fb parameters: - name: IcaoCode in: path @@ -913,8 +894,8 @@ paths: schema: oneOf: - type: number - format: double nullable: true + format: double - type: string nullable: true - $ref: '#/components/schemas/ReferenceNumeric' @@ -924,8 +905,8 @@ paths: schema: oneOf: - type: number - format: double nullable: true + format: double - type: string nullable: true - $ref: '#/components/schemas/ReferenceNumeric' @@ -937,8 +918,8 @@ paths: schema: anyOf: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport' - - type: object - nullable: true + - nullable: true + type: object default: $ref: '#/components/responses/error' x-ms-docs-operation-type: functionImport @@ -958,8 +939,8 @@ paths: schema: anyOf: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' - - type: object - nullable: true + - nullable: true + type: object default: $ref: '#/components/responses/error' x-ms-docs-operation-type: functionImport @@ -975,7 +956,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -985,7 +965,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -1047,7 +1026,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -1057,7 +1035,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -1067,7 +1044,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -1171,7 +1147,7 @@ paths: tags: - Me.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.ListAddressInfo.AsEventLocation + operationId: Me.ListAddressInfo.AsEventLocation-b1a4 responses: '200': description: Entity result. @@ -1218,7 +1194,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -1228,7 +1203,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -1361,7 +1335,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -1371,7 +1344,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -1381,7 +1353,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -1485,7 +1456,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.BestFriend.ListAddressInfo.AsEventLocation + operationId: Me.BestFriend.ListAddressInfo.AsEventLocation-2154 responses: '200': description: Entity result. @@ -1530,7 +1501,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -1540,7 +1510,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -1591,7 +1560,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.BestFriend.GetHomeAddress.AsEventLocation + operationId: Me.BestFriend.GetHomeAddress.AsEventLocation-a28d responses: '200': description: Entity result. @@ -1613,12 +1582,11 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: Me.GetBestFriend.AsEmployee + operationId: Me.GetBestFriend.AsEmployee-dcf6 parameters: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -1628,7 +1596,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -1656,12 +1623,11 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: Me.GetBestFriend.AsManager + operationId: Me.GetBestFriend.AsManager-09a9 parameters: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -1671,7 +1637,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -1699,7 +1664,7 @@ paths: tags: - Me.Person summary: Get Photo for the navigation property BestFriend from Me - operationId: Me.GetBestFriendPhoto + operationId: Me.GetBestFriendPhoto-8333 responses: '200': description: Retrieved media content @@ -1720,7 +1685,7 @@ paths: tags: - Me.Person summary: Update Photo for the navigation property BestFriend in Me - operationId: Me.UpdateBestFriendPhoto + operationId: Me.UpdateBestFriendPhoto-8333 requestBody: description: New media content. content: @@ -1744,7 +1709,7 @@ paths: tags: - Me.Person summary: Delete Photo for the navigation property BestFriend in Me - operationId: Me.DeleteBestFriendPhoto + operationId: Me.DeleteBestFriendPhoto-8333 parameters: - name: If-Match in: header @@ -1788,7 +1753,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -1798,7 +1762,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -1808,7 +1771,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -1884,7 +1846,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -1894,7 +1855,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -1904,7 +1864,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -2030,7 +1989,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.Friends.ListAddressInfo.AsEventLocation + operationId: Me.Friends.ListAddressInfo.AsEventLocation-f440 parameters: - name: UserName in: path @@ -2097,7 +2056,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -2107,7 +2065,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -2166,7 +2123,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.Friends.GetHomeAddress.AsEventLocation + operationId: Me.Friends.GetHomeAddress.AsEventLocation-15cc parameters: - name: UserName in: path @@ -2196,7 +2153,7 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: Me.GetFriends.AsEmployee + operationId: Me.GetFriends.AsEmployee-3dc7 parameters: - name: UserName in: path @@ -2217,7 +2174,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -2227,7 +2183,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -2255,7 +2210,7 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: Me.GetFriends.AsManager + operationId: Me.GetFriends.AsManager-ddec parameters: - name: UserName in: path @@ -2276,7 +2231,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -2286,7 +2240,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -2314,7 +2267,7 @@ paths: tags: - Me.Person summary: Get Photo for the navigation property Friends from Me - operationId: Me.GetFriendsPhoto + operationId: Me.GetFriendsPhoto-287d parameters: - name: UserName in: path @@ -2343,7 +2296,7 @@ paths: tags: - Me.Person summary: Update Photo for the navigation property Friends in Me - operationId: Me.UpdateFriendsPhoto + operationId: Me.UpdateFriendsPhoto-287d parameters: - name: UserName in: path @@ -2375,7 +2328,7 @@ paths: tags: - Me.Person summary: Delete Photo for the navigation property Friends in Me - operationId: Me.DeleteFriendsPhoto + operationId: Me.DeleteFriendsPhoto-287d parameters: - name: UserName in: path @@ -2456,7 +2409,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -2529,7 +2481,7 @@ paths: tags: - Me.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: Me.ListFriends.AsEmployee + operationId: Me.ListFriends.AsEmployee-f4a5 parameters: - name: ConsistencyLevel in: header @@ -2548,7 +2500,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -2558,7 +2509,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -2568,7 +2518,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -2622,7 +2571,7 @@ paths: tags: - Me.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: Me.ListFriends.AsManager + operationId: Me.ListFriends.AsManager-98ae parameters: - name: ConsistencyLevel in: header @@ -2641,7 +2590,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -2651,7 +2599,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -2661,7 +2608,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -2719,7 +2665,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -2729,7 +2674,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -2780,7 +2724,7 @@ paths: tags: - Me.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.GetHomeAddress.AsEventLocation + operationId: Me.GetHomeAddress.AsEventLocation-ba49 responses: '200': description: Entity result. @@ -2802,12 +2746,11 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: Me.Person.GetPerson.AsEmployee + operationId: Me.Person.GetPerson.AsEmployee-bd18 parameters: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -2817,7 +2760,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -2854,7 +2796,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -2864,7 +2805,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -2874,7 +2814,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -2959,15 +2898,6 @@ paths: summary: Get the number of the resource operationId: Me.AsEmployee.AddressInfo.GetCount-8488 parameters: - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -2987,7 +2917,7 @@ paths: tags: - Me.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.ListAddressInfo.AsEventLocation + operationId: Me.ListAddressInfo.AsEventLocation-989f responses: '200': description: Entity result. @@ -3009,15 +2939,6 @@ paths: summary: Get the number of the resource operationId: Me.AddressInfo.GetCount.AsEventLocation-9375 parameters: - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -3043,7 +2964,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -3053,7 +2973,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -3186,7 +3105,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -3196,7 +3114,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -3206,7 +3123,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -3291,15 +3207,6 @@ paths: summary: Get the number of the resource operationId: Me.AsEmployee.BestFriend.AddressInfo.GetCount-81de parameters: - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -3319,7 +3226,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.BestFriend.ListAddressInfo.AsEventLocation + operationId: Me.BestFriend.ListAddressInfo.AsEventLocation-1d72 responses: '200': description: Entity result. @@ -3341,15 +3248,6 @@ paths: summary: Get the number of the resource operationId: Me.BestFriend.AddressInfo.GetCount.AsEventLocation-842c parameters: - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -3373,7 +3271,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -3383,7 +3280,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -3434,7 +3330,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.BestFriend.GetHomeAddress.AsEventLocation + operationId: Me.BestFriend.GetHomeAddress.AsEventLocation-19b8 responses: '200': description: Entity result. @@ -3456,12 +3352,11 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: Me.GetBestFriend.AsManager + operationId: Me.GetBestFriend.AsManager-c104 parameters: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -3471,7 +3366,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -3499,7 +3393,7 @@ paths: tags: - Me.Person summary: Get Photo for the navigation property BestFriend from Me - operationId: Me.GetBestFriendPhoto + operationId: Me.GetBestFriendPhoto-4dc7 responses: '200': description: Retrieved media content @@ -3520,7 +3414,7 @@ paths: tags: - Me.Person summary: Update Photo for the navigation property BestFriend in Me - operationId: Me.UpdateBestFriendPhoto + operationId: Me.UpdateBestFriendPhoto-4dc7 requestBody: description: New media content. content: @@ -3544,7 +3438,7 @@ paths: tags: - Me.Person summary: Delete Photo for the navigation property BestFriend in Me - operationId: Me.DeleteBestFriendPhoto + operationId: Me.DeleteBestFriendPhoto-4dc7 parameters: - name: If-Match in: header @@ -3588,7 +3482,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -3598,7 +3491,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -3608,7 +3500,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -3684,7 +3575,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -3694,7 +3584,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -3704,7 +3593,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -3811,15 +3699,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -3839,7 +3718,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.Friends.ListAddressInfo.AsEventLocation + operationId: Me.Friends.ListAddressInfo.AsEventLocation-7b1e parameters: - name: UserName in: path @@ -3876,15 +3755,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -3915,7 +3785,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -3925,7 +3794,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -3984,7 +3852,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.Friends.GetHomeAddress.AsEventLocation + operationId: Me.Friends.GetHomeAddress.AsEventLocation-600f parameters: - name: UserName in: path @@ -4014,7 +3882,7 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: Me.GetFriends.AsManager + operationId: Me.GetFriends.AsManager-aa0c parameters: - name: UserName in: path @@ -4035,7 +3903,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -4045,7 +3912,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -4073,7 +3939,7 @@ paths: tags: - Me.Person summary: Get Photo for the navigation property Friends from Me - operationId: Me.GetFriendsPhoto + operationId: Me.GetFriendsPhoto-6e41 parameters: - name: UserName in: path @@ -4102,7 +3968,7 @@ paths: tags: - Me.Person summary: Update Photo for the navigation property Friends in Me - operationId: Me.UpdateFriendsPhoto + operationId: Me.UpdateFriendsPhoto-6e41 parameters: - name: UserName in: path @@ -4134,7 +4000,7 @@ paths: tags: - Me.Person summary: Delete Photo for the navigation property Friends in Me - operationId: Me.DeleteFriendsPhoto + operationId: Me.DeleteFriendsPhoto-6e41 parameters: - name: UserName in: path @@ -4215,7 +4081,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -4288,7 +4153,7 @@ paths: tags: - Me.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: Me.ListFriends.AsManager + operationId: Me.ListFriends.AsManager-f993 parameters: - name: ConsistencyLevel in: header @@ -4307,7 +4172,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -4317,7 +4181,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -4327,7 +4190,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -4385,7 +4247,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -4395,7 +4256,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -4446,7 +4306,7 @@ paths: tags: - Me.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.GetHomeAddress.AsEventLocation + operationId: Me.GetHomeAddress.AsEventLocation-6fc5 responses: '200': description: Entity result. @@ -4478,7 +4338,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -4488,7 +4347,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -4498,7 +4356,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -4571,7 +4428,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -4581,7 +4437,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -4591,7 +4446,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -4698,15 +4552,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -4726,7 +4571,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.Peers.ListAddressInfo.AsEventLocation + operationId: Me.Peers.ListAddressInfo.AsEventLocation-1e59 parameters: - name: UserName in: path @@ -4763,15 +4608,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -4802,7 +4638,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -4812,7 +4647,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -4871,7 +4705,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.Peers.GetHomeAddress.AsEventLocation + operationId: Me.Peers.GetHomeAddress.AsEventLocation-dc11 parameters: - name: UserName in: path @@ -4901,7 +4735,7 @@ paths: tags: - Me.Person summary: Get Photo for the navigation property Peers from Me - operationId: Me.GetPeersPhoto + operationId: Me.GetPeersPhoto-4c48 parameters: - name: UserName in: path @@ -4930,7 +4764,7 @@ paths: tags: - Me.Person summary: Update Photo for the navigation property Peers in Me - operationId: Me.UpdatePeersPhoto + operationId: Me.UpdatePeersPhoto-4c48 parameters: - name: UserName in: path @@ -4962,7 +4796,7 @@ paths: tags: - Me.Person summary: Delete Photo for the navigation property Peers in Me - operationId: Me.DeletePeersPhoto + operationId: Me.DeletePeersPhoto-4c48 parameters: - name: UserName in: path @@ -5024,7 +4858,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -5120,7 +4953,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -5130,7 +4962,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -5140,7 +4971,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -5219,7 +5049,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -5229,7 +5058,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -5357,7 +5185,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -5367,7 +5194,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -5377,7 +5203,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -5435,7 +5260,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -5445,7 +5269,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -5455,7 +5278,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -5579,7 +5401,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -5738,7 +5559,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -5748,7 +5568,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -5758,7 +5577,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -5804,12 +5622,11 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: Me.Person.GetPerson.AsManager + operationId: Me.Person.GetPerson.AsManager-16dc parameters: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -5819,7 +5636,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -5856,7 +5672,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -5866,7 +5681,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -5876,7 +5690,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -5961,15 +5774,6 @@ paths: summary: Get the number of the resource operationId: Me.AsManager.AddressInfo.GetCount-75da parameters: - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -5989,7 +5793,7 @@ paths: tags: - Me.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.ListAddressInfo.AsEventLocation + operationId: Me.ListAddressInfo.AsEventLocation-55be responses: '200': description: Entity result. @@ -6011,15 +5815,6 @@ paths: summary: Get the number of the resource operationId: Me.AddressInfo.GetCount.AsEventLocation-f67e parameters: - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -6045,7 +5840,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -6055,7 +5849,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -6188,7 +5981,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -6198,7 +5990,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -6208,7 +5999,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -6293,15 +6083,6 @@ paths: summary: Get the number of the resource operationId: Me.AsManager.BestFriend.AddressInfo.GetCount-6ea6 parameters: - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -6321,7 +6102,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.BestFriend.ListAddressInfo.AsEventLocation + operationId: Me.BestFriend.ListAddressInfo.AsEventLocation-987a responses: '200': description: Entity result. @@ -6343,15 +6124,6 @@ paths: summary: Get the number of the resource operationId: Me.BestFriend.AddressInfo.GetCount.AsEventLocation-692e parameters: - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -6375,7 +6147,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -6385,7 +6156,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -6436,7 +6206,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.BestFriend.GetHomeAddress.AsEventLocation + operationId: Me.BestFriend.GetHomeAddress.AsEventLocation-15c5 responses: '200': description: Entity result. @@ -6458,12 +6228,11 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: Me.GetBestFriend.AsEmployee + operationId: Me.GetBestFriend.AsEmployee-7bbe parameters: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -6473,7 +6242,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -6501,7 +6269,7 @@ paths: tags: - Me.Person summary: Get Photo for the navigation property BestFriend from Me - operationId: Me.GetBestFriendPhoto + operationId: Me.GetBestFriendPhoto-bac8 responses: '200': description: Retrieved media content @@ -6522,7 +6290,7 @@ paths: tags: - Me.Person summary: Update Photo for the navigation property BestFriend in Me - operationId: Me.UpdateBestFriendPhoto + operationId: Me.UpdateBestFriendPhoto-bac8 requestBody: description: New media content. content: @@ -6546,7 +6314,7 @@ paths: tags: - Me.Person summary: Delete Photo for the navigation property BestFriend in Me - operationId: Me.DeleteBestFriendPhoto + operationId: Me.DeleteBestFriendPhoto-bac8 parameters: - name: If-Match in: header @@ -6580,7 +6348,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -6590,7 +6357,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -6600,7 +6366,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -6673,7 +6438,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -6683,7 +6447,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -6693,7 +6456,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -6800,15 +6562,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -6828,7 +6581,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.DirectReports.ListAddressInfo.AsEventLocation + operationId: Me.DirectReports.ListAddressInfo.AsEventLocation-660b parameters: - name: UserName in: path @@ -6865,15 +6618,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -6904,7 +6648,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -6914,7 +6657,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -6973,7 +6715,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.DirectReports.GetHomeAddress.AsEventLocation + operationId: Me.DirectReports.GetHomeAddress.AsEventLocation-5e6e parameters: - name: UserName in: path @@ -7003,7 +6745,7 @@ paths: tags: - Me.Person summary: Get Photo for the navigation property DirectReports from Me - operationId: Me.GetDirectReportsPhoto + operationId: Me.GetDirectReportsPhoto-e60c parameters: - name: UserName in: path @@ -7032,7 +6774,7 @@ paths: tags: - Me.Person summary: Update Photo for the navigation property DirectReports in Me - operationId: Me.UpdateDirectReportsPhoto + operationId: Me.UpdateDirectReportsPhoto-e60c parameters: - name: UserName in: path @@ -7064,7 +6806,7 @@ paths: tags: - Me.Person summary: Delete Photo for the navigation property DirectReports in Me - operationId: Me.DeleteDirectReportsPhoto + operationId: Me.DeleteDirectReportsPhoto-e60c parameters: - name: UserName in: path @@ -7126,7 +6868,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -7219,7 +6960,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -7229,7 +6969,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -7239,7 +6978,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -7315,7 +7053,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -7325,7 +7062,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -7335,7 +7071,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -7461,7 +7196,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.Friends.ListAddressInfo.AsEventLocation + operationId: Me.Friends.ListAddressInfo.AsEventLocation-1ad9 parameters: - name: UserName in: path @@ -7528,7 +7263,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -7538,7 +7272,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -7597,7 +7330,7 @@ paths: tags: - Me.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.Friends.GetHomeAddress.AsEventLocation + operationId: Me.Friends.GetHomeAddress.AsEventLocation-1e07 parameters: - name: UserName in: path @@ -7627,7 +7360,7 @@ paths: tags: - Me.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: Me.GetFriends.AsEmployee + operationId: Me.GetFriends.AsEmployee-5b5f parameters: - name: UserName in: path @@ -7648,7 +7381,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -7658,7 +7390,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -7686,7 +7417,7 @@ paths: tags: - Me.Person summary: Get Photo for the navigation property Friends from Me - operationId: Me.GetFriendsPhoto + operationId: Me.GetFriendsPhoto-64bd parameters: - name: UserName in: path @@ -7715,7 +7446,7 @@ paths: tags: - Me.Person summary: Update Photo for the navigation property Friends in Me - operationId: Me.UpdateFriendsPhoto + operationId: Me.UpdateFriendsPhoto-64bd parameters: - name: UserName in: path @@ -7747,7 +7478,7 @@ paths: tags: - Me.Person summary: Delete Photo for the navigation property Friends in Me - operationId: Me.DeleteFriendsPhoto + operationId: Me.DeleteFriendsPhoto-64bd parameters: - name: UserName in: path @@ -7828,7 +7559,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -7901,7 +7631,7 @@ paths: tags: - Me.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: Me.ListFriends.AsEmployee + operationId: Me.ListFriends.AsEmployee-fe32 parameters: - name: ConsistencyLevel in: header @@ -7920,7 +7650,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -7930,7 +7659,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -7940,7 +7668,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -7998,7 +7725,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -8008,7 +7734,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -8059,7 +7784,7 @@ paths: tags: - Me.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: Me.GetHomeAddress.AsEventLocation + operationId: Me.GetHomeAddress.AsEventLocation-5d95 responses: '200': description: Entity result. @@ -8093,8 +7818,8 @@ paths: hire: anyOf: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' - - type: object - nullable: true + - nullable: true + type: object required: true responses: '204': @@ -8137,7 +7862,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -8147,7 +7871,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -8157,7 +7880,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -8236,7 +7958,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -8246,7 +7967,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -8374,7 +8094,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -8384,7 +8103,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -8394,7 +8112,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -8452,7 +8169,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -8462,7 +8178,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -8472,7 +8187,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -8596,7 +8310,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -8768,7 +8481,7 @@ paths: tags: - Me.Person summary: Get Photo for Person from Me - operationId: Me.Person.GetPhoto + operationId: Me.Person.GetPhoto-ab7e responses: '200': description: Retrieved media content @@ -8789,7 +8502,7 @@ paths: tags: - Me.Person summary: Update Photo for Person in Me - operationId: Me.Person.UpdatePhoto + operationId: Me.Person.UpdatePhoto-ab7e requestBody: description: New media content. content: @@ -8813,7 +8526,7 @@ paths: tags: - Me.Person summary: Delete Photo for Person in Me - operationId: Me.Person.DeletePhoto + operationId: Me.Person.DeletePhoto-ab7e parameters: - name: If-Match in: header @@ -8860,7 +8573,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -8870,7 +8582,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -8880,7 +8591,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -8959,7 +8669,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -8969,7 +8678,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -9097,7 +8805,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -9107,7 +8814,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -9117,7 +8823,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -9175,7 +8880,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -9185,7 +8889,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -9195,7 +8898,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -9319,7 +9021,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -9453,7 +9154,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -9463,7 +9163,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -9473,7 +9172,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -9525,7 +9223,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -9535,7 +9232,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -9624,7 +9320,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -9634,7 +9329,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -9644,7 +9338,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -9733,15 +9426,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -9755,7 +9439,7 @@ paths: tags: - NewComePeople.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: NewComePeople.ListAddressInfo.AsEventLocation + operationId: NewComePeople.ListAddressInfo.AsEventLocation-d026 parameters: - name: UserName in: path @@ -9786,15 +9470,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -9821,7 +9496,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -9831,7 +9505,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -9999,7 +9672,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -10009,7 +9681,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -10019,7 +9690,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -10126,15 +9796,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -10154,7 +9815,7 @@ paths: tags: - NewComePeople.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: NewComePeople.BestFriend.ListAddressInfo.AsEventLocation + operationId: NewComePeople.BestFriend.ListAddressInfo.AsEventLocation-73fa parameters: - name: UserName in: path @@ -10191,15 +9852,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -10230,7 +9882,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -10240,7 +9891,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -10299,7 +9949,7 @@ paths: tags: - NewComePeople.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: NewComePeople.BestFriend.GetHomeAddress.AsEventLocation + operationId: NewComePeople.BestFriend.GetHomeAddress.AsEventLocation-8ebe parameters: - name: UserName in: path @@ -10329,7 +9979,7 @@ paths: tags: - NewComePeople.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: NewComePeople.GetBestFriend.AsEmployee + operationId: NewComePeople.GetBestFriend.AsEmployee-7b75 parameters: - name: UserName in: path @@ -10341,7 +9991,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -10351,7 +10000,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -10379,7 +10027,7 @@ paths: tags: - NewComePeople.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: NewComePeople.GetBestFriend.AsManager + operationId: NewComePeople.GetBestFriend.AsManager-61ce parameters: - name: UserName in: path @@ -10391,7 +10039,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -10401,7 +10048,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -10429,7 +10075,7 @@ paths: tags: - NewComePeople.Person summary: Get Photo for the navigation property BestFriend from NewComePeople - operationId: NewComePeople.GetBestFriendPhoto + operationId: NewComePeople.GetBestFriendPhoto-4f67 parameters: - name: UserName in: path @@ -10458,7 +10104,7 @@ paths: tags: - NewComePeople.Person summary: Update Photo for the navigation property BestFriend in NewComePeople - operationId: NewComePeople.UpdateBestFriendPhoto + operationId: NewComePeople.UpdateBestFriendPhoto-4f67 parameters: - name: UserName in: path @@ -10490,7 +10136,7 @@ paths: tags: - NewComePeople.Person summary: Delete Photo for the navigation property BestFriend in NewComePeople - operationId: NewComePeople.DeleteBestFriendPhoto + operationId: NewComePeople.DeleteBestFriendPhoto-4f67 parameters: - name: UserName in: path @@ -10548,7 +10194,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -10558,7 +10203,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -10568,7 +10212,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -10643,7 +10286,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -10653,7 +10295,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -10663,7 +10304,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -10773,15 +10413,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -10795,7 +10426,7 @@ paths: tags: - NewComePeople.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: NewComePeople.Friends.ListAddressInfo.AsEventLocation + operationId: NewComePeople.Friends.ListAddressInfo.AsEventLocation-eeb4 parameters: - name: UserName in: path @@ -10840,15 +10471,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -10880,7 +10502,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -10890,7 +10511,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -10944,7 +10564,7 @@ paths: tags: - NewComePeople.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: NewComePeople.Friends.GetHomeAddress.AsEventLocation + operationId: NewComePeople.Friends.GetHomeAddress.AsEventLocation-f4d9 parameters: - name: UserName in: path @@ -10975,7 +10595,7 @@ paths: tags: - NewComePeople.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: NewComePeople.GetFriends.AsEmployee + operationId: NewComePeople.GetFriends.AsEmployee-2969 parameters: - name: UserName in: path @@ -11003,7 +10623,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -11013,7 +10632,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -11035,7 +10653,7 @@ paths: tags: - NewComePeople.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: NewComePeople.GetFriends.AsManager + operationId: NewComePeople.GetFriends.AsManager-708f parameters: - name: UserName in: path @@ -11063,7 +10681,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -11073,7 +10690,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -11095,7 +10711,7 @@ paths: tags: - NewComePeople.Person summary: Get Photo for the navigation property Friends from NewComePeople - operationId: NewComePeople.GetFriendsPhoto + operationId: NewComePeople.GetFriendsPhoto-e9fc parameters: - name: UserName in: path @@ -11125,7 +10741,7 @@ paths: tags: - NewComePeople.Person summary: Update Photo for the navigation property Friends in NewComePeople - operationId: NewComePeople.UpdateFriendsPhoto + operationId: NewComePeople.UpdateFriendsPhoto-e9fc parameters: - name: UserName in: path @@ -11158,7 +10774,7 @@ paths: tags: - NewComePeople.Person summary: Delete Photo for the navigation property Friends in NewComePeople - operationId: NewComePeople.DeleteFriendsPhoto + operationId: NewComePeople.DeleteFriendsPhoto-e9fc parameters: - name: UserName in: path @@ -11248,7 +10864,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -11318,7 +10933,7 @@ paths: tags: - NewComePeople.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: NewComePeople.ListFriends.AsEmployee + operationId: NewComePeople.ListFriends.AsEmployee-2969 parameters: - name: UserName in: path @@ -11344,7 +10959,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -11354,7 +10968,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -11364,7 +10977,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -11413,7 +11025,7 @@ paths: tags: - NewComePeople.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: NewComePeople.ListFriends.AsManager + operationId: NewComePeople.ListFriends.AsManager-708f parameters: - name: UserName in: path @@ -11439,7 +11051,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -11449,7 +11060,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -11459,7 +11069,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -11519,7 +11128,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -11529,7 +11137,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -11576,7 +11183,7 @@ paths: tags: - NewComePeople.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: NewComePeople.GetHomeAddress.AsEventLocation + operationId: NewComePeople.GetHomeAddress.AsEventLocation-3fd9 parameters: - name: UserName in: path @@ -11644,7 +11251,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -11654,7 +11260,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -11664,7 +11269,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -11732,8 +11336,8 @@ paths: hire: anyOf: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' - - type: object - nullable: true + - nullable: true + type: object required: true responses: '204': @@ -11798,7 +11402,7 @@ paths: tags: - NewComePeople.Person summary: Get Photo for Person from NewComePeople - operationId: NewComePeople.Person.GetPhoto + operationId: NewComePeople.Person.GetPhoto-74be parameters: - name: UserName in: path @@ -11821,7 +11425,7 @@ paths: tags: - NewComePeople.Person summary: Update Photo for Person in NewComePeople - operationId: NewComePeople.Person.UpdatePhoto + operationId: NewComePeople.Person.UpdatePhoto-74be parameters: - name: UserName in: path @@ -11847,7 +11451,7 @@ paths: tags: - NewComePeople.Person summary: Delete Photo for Person in NewComePeople - operationId: NewComePeople.Person.DeletePhoto + operationId: NewComePeople.Person.DeletePhoto-74be parameters: - name: UserName in: path @@ -11902,7 +11506,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -11912,7 +11515,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -11922,7 +11524,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -12001,7 +11602,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -12011,7 +11611,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -12139,7 +11738,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -12149,7 +11747,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -12159,7 +11756,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -12215,7 +11811,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -12225,7 +11820,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -12235,7 +11829,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -12359,7 +11952,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -12514,7 +12106,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -12524,7 +12115,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -12534,7 +12124,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -12607,7 +12196,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -12617,7 +12205,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -12724,7 +12311,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -12734,7 +12320,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -12744,7 +12329,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -12870,7 +12454,7 @@ paths: tags: - People.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.ListAddressInfo.AsEventLocation + operationId: People.ListAddressInfo.AsEventLocation-e5b8 parameters: - name: UserName in: path @@ -12939,7 +12523,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -12949,7 +12532,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -13120,7 +12702,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -13130,7 +12711,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -13140,7 +12720,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -13266,7 +12845,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.BestFriend.ListAddressInfo.AsEventLocation + operationId: People.BestFriend.ListAddressInfo.AsEventLocation-c332 parameters: - name: UserName in: path @@ -13333,7 +12912,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -13343,7 +12921,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -13402,7 +12979,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.BestFriend.GetHomeAddress.AsEventLocation + operationId: People.BestFriend.GetHomeAddress.AsEventLocation-53c4 parameters: - name: UserName in: path @@ -13432,7 +13009,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: People.GetBestFriend.AsEmployee + operationId: People.GetBestFriend.AsEmployee-7188 parameters: - name: UserName in: path @@ -13444,7 +13021,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -13454,7 +13030,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -13486,7 +13061,7 @@ paths: externalDocs: description: Find more info here url: https://learn.microsoft.com/graph/api/person-get-friend-manager?view=graph-rest-1.0 - operationId: People.GetBestFriend.AsManager + operationId: People.GetBestFriend.AsManager-5f08 parameters: - name: UserName in: path @@ -13498,7 +13073,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -13508,7 +13082,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -13536,7 +13109,7 @@ paths: tags: - People.Person summary: Get Photo for the navigation property BestFriend from People - operationId: People.GetBestFriendPhoto + operationId: People.GetBestFriendPhoto-c3ac parameters: - name: UserName in: path @@ -13565,7 +13138,7 @@ paths: tags: - People.Person summary: Update Photo for the navigation property BestFriend in People - operationId: People.UpdateBestFriendPhoto + operationId: People.UpdateBestFriendPhoto-c3ac parameters: - name: UserName in: path @@ -13597,7 +13170,7 @@ paths: tags: - People.Person summary: Delete Photo for the navigation property BestFriend in People - operationId: People.DeleteBestFriendPhoto + operationId: People.DeleteBestFriendPhoto-c3ac parameters: - name: UserName in: path @@ -13658,7 +13231,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -13668,7 +13240,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -13678,7 +13249,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -13772,7 +13342,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -13782,7 +13351,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -13792,7 +13360,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -13939,7 +13506,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.Friends.ListAddressInfo.AsEventLocation + operationId: People.Friends.ListAddressInfo.AsEventLocation-a5f6 parameters: - name: UserName in: path @@ -14027,7 +13594,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -14037,7 +13603,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -14103,7 +13668,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.Friends.GetHomeAddress.AsEventLocation + operationId: People.Friends.GetHomeAddress.AsEventLocation-da5e parameters: - name: UserName in: path @@ -14140,7 +13705,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: People.GetFriends.AsEmployee + operationId: People.GetFriends.AsEmployee-11bf parameters: - name: UserName in: path @@ -14168,7 +13733,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -14178,7 +13742,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -14206,7 +13769,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: People.GetFriends.AsManager + operationId: People.GetFriends.AsManager-1cfb parameters: - name: UserName in: path @@ -14234,7 +13797,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -14244,7 +13806,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -14272,7 +13833,7 @@ paths: tags: - People.Person summary: Get Photo for the navigation property Friends from People - operationId: People.GetFriendsPhoto + operationId: People.GetFriendsPhoto-12fc parameters: - name: UserName in: path @@ -14308,7 +13869,7 @@ paths: tags: - People.Person summary: Update Photo for the navigation property Friends in People - operationId: People.UpdateFriendsPhoto + operationId: People.UpdateFriendsPhoto-12fc parameters: - name: UserName in: path @@ -14347,7 +13908,7 @@ paths: tags: - People.Person summary: Delete Photo for the navigation property Friends in People - operationId: People.DeleteFriendsPhoto + operationId: People.DeleteFriendsPhoto-12fc parameters: - name: UserName in: path @@ -14452,7 +14013,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -14548,7 +14108,7 @@ paths: tags: - People.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: People.ListFriends.AsEmployee + operationId: People.ListFriends.AsEmployee-11bf parameters: - name: UserName in: path @@ -14574,7 +14134,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -14584,7 +14143,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -14594,7 +14152,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -14655,7 +14212,7 @@ paths: tags: - People.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: People.ListFriends.AsManager + operationId: People.ListFriends.AsManager-1cfb parameters: - name: UserName in: path @@ -14681,7 +14238,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -14691,7 +14247,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -14701,7 +14256,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -14774,7 +14328,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -14784,7 +14337,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -14843,7 +14395,7 @@ paths: tags: - People.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.GetHomeAddress.AsEventLocation + operationId: People.GetHomeAddress.AsEventLocation-d0cf parameters: - name: UserName in: path @@ -14873,7 +14425,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: People.Person.GetPerson.AsEmployee + operationId: People.Person.GetPerson.AsEmployee-317b parameters: - name: UserName in: path @@ -14894,7 +14446,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -14904,7 +14455,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -14948,7 +14498,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -14958,7 +14507,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -14968,7 +14516,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -15075,15 +14622,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -15103,7 +14641,7 @@ paths: tags: - People.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.ListAddressInfo.AsEventLocation + operationId: People.ListAddressInfo.AsEventLocation-1342 parameters: - name: UserName in: path @@ -15140,15 +14678,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -15181,7 +14710,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -15191,7 +14719,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -15362,7 +14889,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -15372,7 +14898,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -15382,7 +14907,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -15489,15 +15013,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -15517,7 +15032,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.BestFriend.ListAddressInfo.AsEventLocation + operationId: People.BestFriend.ListAddressInfo.AsEventLocation-7cd9 parameters: - name: UserName in: path @@ -15554,15 +15069,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -15593,7 +15099,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -15603,7 +15108,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -15662,7 +15166,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.BestFriend.GetHomeAddress.AsEventLocation + operationId: People.BestFriend.GetHomeAddress.AsEventLocation-7db9 parameters: - name: UserName in: path @@ -15692,7 +15196,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: People.GetBestFriend.AsManager + operationId: People.GetBestFriend.AsManager-7b70 parameters: - name: UserName in: path @@ -15704,7 +15208,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -15714,7 +15217,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -15742,7 +15244,7 @@ paths: tags: - People.Person summary: Get Photo for the navigation property BestFriend from People - operationId: People.GetBestFriendPhoto + operationId: People.GetBestFriendPhoto-a839 parameters: - name: UserName in: path @@ -15771,7 +15273,7 @@ paths: tags: - People.Person summary: Update Photo for the navigation property BestFriend in People - operationId: People.UpdateBestFriendPhoto + operationId: People.UpdateBestFriendPhoto-a839 parameters: - name: UserName in: path @@ -15803,7 +15305,7 @@ paths: tags: - People.Person summary: Delete Photo for the navigation property BestFriend in People - operationId: People.DeleteBestFriendPhoto + operationId: People.DeleteBestFriendPhoto-a839 parameters: - name: UserName in: path @@ -15861,7 +15363,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -15871,7 +15372,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -15881,7 +15381,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -15971,7 +15470,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -15981,7 +15479,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -15991,7 +15488,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -16119,15 +15615,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -16147,7 +15634,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.Friends.ListAddressInfo.AsEventLocation + operationId: People.Friends.ListAddressInfo.AsEventLocation-d49e parameters: - name: UserName in: path @@ -16198,15 +15685,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -16244,7 +15722,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -16254,7 +15731,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -16320,7 +15796,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.Friends.GetHomeAddress.AsEventLocation + operationId: People.Friends.GetHomeAddress.AsEventLocation-d77d parameters: - name: UserName in: path @@ -16357,7 +15833,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: People.GetFriends.AsManager + operationId: People.GetFriends.AsManager-3e3c parameters: - name: UserName in: path @@ -16385,7 +15861,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -16395,7 +15870,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -16423,7 +15897,7 @@ paths: tags: - People.Person summary: Get Photo for the navigation property Friends from People - operationId: People.GetFriendsPhoto + operationId: People.GetFriendsPhoto-1a66 parameters: - name: UserName in: path @@ -16459,7 +15933,7 @@ paths: tags: - People.Person summary: Update Photo for the navigation property Friends in People - operationId: People.UpdateFriendsPhoto + operationId: People.UpdateFriendsPhoto-1a66 parameters: - name: UserName in: path @@ -16498,7 +15972,7 @@ paths: tags: - People.Person summary: Delete Photo for the navigation property Friends in People - operationId: People.DeleteFriendsPhoto + operationId: People.DeleteFriendsPhoto-1a66 parameters: - name: UserName in: path @@ -16600,7 +16074,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -16688,7 +16161,7 @@ paths: tags: - People.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: People.ListFriends.AsManager + operationId: People.ListFriends.AsManager-3e3c parameters: - name: UserName in: path @@ -16714,7 +16187,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -16724,7 +16196,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -16734,7 +16205,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -16806,7 +16276,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -16816,7 +16285,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -16875,7 +16343,7 @@ paths: tags: - People.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.GetHomeAddress.AsEventLocation + operationId: People.GetHomeAddress.AsEventLocation-90e5 parameters: - name: UserName in: path @@ -16922,7 +16390,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -16932,7 +16399,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -16942,7 +16408,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -17029,7 +16494,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -17039,7 +16503,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -17049,7 +16512,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -17177,15 +16639,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -17205,7 +16658,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.Peers.ListAddressInfo.AsEventLocation + operationId: People.Peers.ListAddressInfo.AsEventLocation-b918 parameters: - name: UserName in: path @@ -17256,15 +16709,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -17302,7 +16746,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -17312,7 +16755,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -17378,7 +16820,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.Peers.GetHomeAddress.AsEventLocation + operationId: People.Peers.GetHomeAddress.AsEventLocation-311b parameters: - name: UserName in: path @@ -17415,7 +16857,7 @@ paths: tags: - People.Person summary: Get Photo for the navigation property Peers from People - operationId: People.GetPeersPhoto + operationId: People.GetPeersPhoto-ecda parameters: - name: UserName in: path @@ -17451,7 +16893,7 @@ paths: tags: - People.Person summary: Update Photo for the navigation property Peers in People - operationId: People.UpdatePeersPhoto + operationId: People.UpdatePeersPhoto-ecda parameters: - name: UserName in: path @@ -17490,7 +16932,7 @@ paths: tags: - People.Person summary: Delete Photo for the navigation property Peers in People - operationId: People.DeletePeersPhoto + operationId: People.DeletePeersPhoto-ecda parameters: - name: UserName in: path @@ -17573,7 +17015,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -17691,7 +17132,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -17701,7 +17141,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -17711,7 +17150,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -17805,7 +17243,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -17815,7 +17252,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -17964,7 +17400,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -17974,7 +17409,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -17984,7 +17418,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -18049,7 +17482,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -18059,7 +17491,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -18069,7 +17500,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -18214,7 +17644,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -18409,7 +17838,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -18419,7 +17847,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -18429,7 +17856,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -18483,7 +17909,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager - operationId: People.Person.GetPerson.AsManager + operationId: People.Person.GetPerson.AsManager-d051 parameters: - name: UserName in: path @@ -18504,7 +17930,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -18514,7 +17939,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -18558,7 +17982,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -18568,7 +17991,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -18578,7 +18000,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -18685,15 +18106,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -18713,7 +18125,7 @@ paths: tags: - People.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.ListAddressInfo.AsEventLocation + operationId: People.ListAddressInfo.AsEventLocation-7526 parameters: - name: UserName in: path @@ -18750,15 +18162,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -18791,7 +18194,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -18801,7 +18203,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -18972,7 +18373,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -18982,7 +18382,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -18992,7 +18391,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -19099,15 +18497,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -19127,7 +18516,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.BestFriend.ListAddressInfo.AsEventLocation + operationId: People.BestFriend.ListAddressInfo.AsEventLocation-897f parameters: - name: UserName in: path @@ -19164,15 +18553,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -19203,7 +18583,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -19213,7 +18592,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -19272,7 +18650,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.BestFriend.GetHomeAddress.AsEventLocation + operationId: People.BestFriend.GetHomeAddress.AsEventLocation-545d parameters: - name: UserName in: path @@ -19302,7 +18680,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: People.GetBestFriend.AsEmployee + operationId: People.GetBestFriend.AsEmployee-0445 parameters: - name: UserName in: path @@ -19314,7 +18692,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -19324,7 +18701,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -19352,7 +18728,7 @@ paths: tags: - People.Person summary: Get Photo for the navigation property BestFriend from People - operationId: People.GetBestFriendPhoto + operationId: People.GetBestFriendPhoto-f05d parameters: - name: UserName in: path @@ -19381,7 +18757,7 @@ paths: tags: - People.Person summary: Update Photo for the navigation property BestFriend in People - operationId: People.UpdateBestFriendPhoto + operationId: People.UpdateBestFriendPhoto-f05d parameters: - name: UserName in: path @@ -19413,7 +18789,7 @@ paths: tags: - People.Person summary: Delete Photo for the navigation property BestFriend in People - operationId: People.DeleteBestFriendPhoto + operationId: People.DeleteBestFriendPhoto-f05d parameters: - name: UserName in: path @@ -19461,7 +18837,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -19471,7 +18846,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -19481,7 +18855,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -19568,7 +18941,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -19578,7 +18950,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -19588,7 +18959,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -19716,15 +19086,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -19744,7 +19105,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.DirectReports.ListAddressInfo.AsEventLocation + operationId: People.DirectReports.ListAddressInfo.AsEventLocation-1252 parameters: - name: UserName in: path @@ -19795,15 +19156,6 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: ConsistencyLevel - in: header - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' - schema: - type: string - examples: - example-1: - description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'. - value: eventual - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' responses: @@ -19841,7 +19193,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -19851,7 +19202,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -19917,7 +19267,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.DirectReports.GetHomeAddress.AsEventLocation + operationId: People.DirectReports.GetHomeAddress.AsEventLocation-cf8d parameters: - name: UserName in: path @@ -19954,7 +19304,7 @@ paths: tags: - People.Person summary: Get Photo for the navigation property DirectReports from People - operationId: People.GetDirectReportsPhoto + operationId: People.GetDirectReportsPhoto-7149 parameters: - name: UserName in: path @@ -19990,7 +19340,7 @@ paths: tags: - People.Person summary: Update Photo for the navigation property DirectReports in People - operationId: People.UpdateDirectReportsPhoto + operationId: People.UpdateDirectReportsPhoto-7149 parameters: - name: UserName in: path @@ -20029,7 +19379,7 @@ paths: tags: - People.Person summary: Delete Photo for the navigation property DirectReports in People - operationId: People.DeleteDirectReportsPhoto + operationId: People.DeleteDirectReportsPhoto-7149 parameters: - name: UserName in: path @@ -20112,7 +19462,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -20227,7 +19576,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -20237,7 +19585,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -20247,7 +19594,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -20337,7 +19683,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -20347,7 +19692,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -20357,7 +19701,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -20504,7 +19847,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.Friends.ListAddressInfo.AsEventLocation + operationId: People.Friends.ListAddressInfo.AsEventLocation-f8c9 parameters: - name: UserName in: path @@ -20592,7 +19935,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -20602,7 +19944,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -20668,7 +20009,7 @@ paths: tags: - People.Person.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.Friends.GetHomeAddress.AsEventLocation + operationId: People.Friends.GetHomeAddress.AsEventLocation-eb71 parameters: - name: UserName in: path @@ -20705,7 +20046,7 @@ paths: tags: - People.Person summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee - operationId: People.GetFriends.AsEmployee + operationId: People.GetFriends.AsEmployee-161e parameters: - name: UserName in: path @@ -20733,7 +20074,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -20743,7 +20083,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -20771,7 +20110,7 @@ paths: tags: - People.Person summary: Get Photo for the navigation property Friends from People - operationId: People.GetFriendsPhoto + operationId: People.GetFriendsPhoto-b97d parameters: - name: UserName in: path @@ -20807,7 +20146,7 @@ paths: tags: - People.Person summary: Update Photo for the navigation property Friends in People - operationId: People.UpdateFriendsPhoto + operationId: People.UpdateFriendsPhoto-b97d parameters: - name: UserName in: path @@ -20846,7 +20185,7 @@ paths: tags: - People.Person summary: Delete Photo for the navigation property Friends in People - operationId: People.DeleteFriendsPhoto + operationId: People.DeleteFriendsPhoto-b97d parameters: - name: UserName in: path @@ -20948,7 +20287,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -21036,7 +20374,7 @@ paths: tags: - People.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: People.ListFriends.AsEmployee + operationId: People.ListFriends.AsEmployee-161e parameters: - name: UserName in: path @@ -21062,7 +20400,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -21072,7 +20409,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -21082,7 +20418,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -21154,7 +20489,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -21164,7 +20498,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -21223,7 +20556,7 @@ paths: tags: - People.Location summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location as Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation - operationId: People.GetHomeAddress.AsEventLocation + operationId: People.GetHomeAddress.AsEventLocation-e3dc parameters: - name: UserName in: path @@ -21273,8 +20606,8 @@ paths: hire: anyOf: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' - - type: object - nullable: true + - nullable: true + type: object required: true responses: '204': @@ -21324,7 +20657,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -21334,7 +20666,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -21344,7 +20675,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -21438,7 +20768,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -21448,7 +20777,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -21597,7 +20925,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -21607,7 +20934,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -21617,7 +20943,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -21682,7 +21007,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -21692,7 +21016,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -21702,7 +21025,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -21847,7 +21169,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -22059,7 +21380,7 @@ paths: externalDocs: description: Find more info here url: https://learn.microsoft.com/graph/api/person-get-photo?view=graph-rest-1.0 - operationId: People.Person.GetPhoto + operationId: People.Person.GetPhoto-883f parameters: - name: UserName in: path @@ -22092,7 +21413,7 @@ paths: externalDocs: description: Find more info here url: https://learn.microsoft.com/graph/api/person-update-photo?view=graph-rest-1.0 - operationId: People.Person.UpdatePhoto + operationId: People.Person.UpdatePhoto-883f parameters: - name: UserName in: path @@ -22128,7 +21449,7 @@ paths: externalDocs: description: Find more info here url: https://learn.microsoft.com/graph/api/person-delete-photo?view=graph-rest-1.0 - operationId: People.Person.DeletePhoto + operationId: People.Person.DeletePhoto-883f parameters: - name: UserName in: path @@ -22189,7 +21510,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -22199,7 +21519,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -22209,7 +21528,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -22303,7 +21621,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -22313,7 +21630,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -22462,7 +21778,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -22472,7 +21787,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -22482,7 +21796,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -22547,7 +21860,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -22557,7 +21869,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -22567,7 +21878,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -22712,7 +22022,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -22887,7 +22196,7 @@ paths: tags: - People.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: People.Person.ListPerson.AsEmployee + operationId: People.Person.ListPerson.AsEmployee-013a parameters: - name: ConsistencyLevel in: header @@ -22906,7 +22215,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -22916,7 +22224,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -22926,7 +22233,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -22980,7 +22286,7 @@ paths: tags: - People.Person summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection - operationId: People.Person.ListPerson.AsManager + operationId: People.Person.ListPerson.AsManager-3e14 parameters: - name: ConsistencyLevel in: header @@ -22999,7 +22305,6 @@ paths: - name: $orderby in: query description: Order items by property values - style: form explode: false schema: uniqueItems: true @@ -23009,7 +22314,6 @@ paths: - name: $select in: query description: Select properties to be returned - style: form explode: false schema: uniqueItems: true @@ -23019,7 +22323,6 @@ paths: - name: $expand in: query description: Expand related entities - style: form explode: false schema: uniqueItems: true @@ -23083,98 +22386,317 @@ paths: x-ms-docs-operation-type: actionImport components: schemas: - Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person: - title: Person + Edm.Geography: + $ref: '#/components/schemas/Edm.Geometry' + Edm.GeographyPoint: + $ref: '#/components/schemas/Edm.GeometryPoint' + Edm.GeographyLineString: + $ref: '#/components/schemas/Edm.GeometryLineString' + Edm.GeographyPolygon: + $ref: '#/components/schemas/Edm.GeometryPolygon' + Edm.GeographyMultiPoint: + $ref: '#/components/schemas/Edm.GeometryMultiPoint' + Edm.GeographyMultiLineString: + $ref: '#/components/schemas/Edm.GeometryMultiLineString' + Edm.GeographyMultiPolygon: + $ref: '#/components/schemas/Edm.GeometryMultiPolygon' + Edm.GeographyCollection: + $ref: '#/components/schemas/Edm.GeometryCollection' + Edm.Geometry: + type: object + oneOf: + - $ref: '#/components/schemas/Edm.GeometryPoint' + - $ref: '#/components/schemas/Edm.GeometryLineString' + - $ref: '#/components/schemas/Edm.GeometryPolygon' + - $ref: '#/components/schemas/Edm.GeometryMultiPoint' + - $ref: '#/components/schemas/Edm.GeometryMultiLineString' + - $ref: '#/components/schemas/Edm.GeometryMultiPolygon' + - $ref: '#/components/schemas/Edm.GeometryCollection' + Edm.GeometryPoint: + required: + - type + - coordinates type: object properties: - UserName: - type: string - FirstName: - type: string - LastName: - type: string - nullable: true - MiddleName: + type: + enum: + - Point type: string - nullable: true - Gender: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender' - Age: - oneOf: - - type: number - format: int64 - nullable: true - - type: string - nullable: true - Emails: + default: Point + coordinates: + $ref: '#/components/schemas/GeoJSON.position' + Edm.GeometryLineString: + required: + - type + - coordinates + type: object + properties: + type: + enum: + - LineString + coordinates: + minItems: 2 type: array items: - type: string - nullable: true - AddressInfo: + $ref: '#/components/schemas/GeoJSON.position' + Edm.GeometryPolygon: + required: + - type + - coordinates + type: object + properties: + type: + enum: + - Polygon + coordinates: + minItems: 4 type: array items: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' - HomeAddress: - anyOf: - - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' - - type: object - nullable: true - FavoriteFeature: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature' - Features: + type: array + items: + $ref: '#/components/schemas/GeoJSON.position' + Edm.GeometryMultiPoint: + required: + - type + - coordinates + type: object + properties: + type: + enum: + - MultiPoint + coordinates: type: array items: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature' - Photo: - type: string - format: base64url - nullable: true - Friends: + $ref: '#/components/schemas/GeoJSON.position' + Edm.GeometryMultiLineString: + required: + - type + - coordinates + type: object + properties: + type: + enum: + - MultiLineString + coordinates: + minItems: 2 type: array items: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' - description: Friends of person - x-ms-navigationProperty: true - BestFriend: - anyOf: - - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' - - type: object - nullable: true - description: The best friend. - x-ms-navigationProperty: true - Trips: + type: array + items: + $ref: '#/components/schemas/GeoJSON.position' + Edm.GeometryMultiPolygon: + required: + - type + - coordinates + type: object + properties: + type: + enum: + - MultiPolygon + coordinates: + minItems: 4 type: array items: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' - description: Collection of trips. - x-ms-navigationProperty: true - Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline: - title: Airline + type: array + items: + type: array + items: + $ref: '#/components/schemas/GeoJSON.position' + Edm.GeometryCollection: + required: + - type + - coordinates type: object properties: - AirlineCode: - type: string - Name: - type: string - nullable: true - Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport: - title: Airport + type: + enum: + - GeometryCollection + coordinates: + type: array + items: + $ref: '#/components/schemas/Edm.Geometry' + GeoJSON.position: + minItems: 2 + type: array + items: + type: number + Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ODataError: + required: + - error type: object properties: - Name: + error: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError: + required: + - code + - message + type: object + properties: + code: type: string - nullable: true - IcaoCode: + message: type: string - IataCode: + x-ms-primary-error-message: true + target: type: string nullable: true - Location: - anyOf: - - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation' - - type: object - nullable: true + details: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails' + innerError: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError' + Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails: + required: + - code + - message + type: object + properties: + code: + type: string + message: + type: string + target: + type: string + nullable: true + Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError: + title: InnerError + type: object + properties: + Date: + pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' + type: string + nullable: true + format: date-time + RequestId: + type: string + nullable: true + ODataCountResponse: + type: number + format: int64 + StringCollectionResponse: + title: Collection of string + type: object + properties: + value: + type: array + items: + type: string + ReferenceUpdate: + type: object + properties: + '@odata.id': + type: string + '@odata.type': + type: string + nullable: true + ReferenceCreate: + type: object + properties: + '@odata.id': + type: string + additionalProperties: + type: object + ReferenceNumeric: + enum: + - '-INF' + - INF + - NaN + type: string + nullable: true + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person: + title: Person + type: object + properties: + UserName: + type: string + FirstName: + type: string + LastName: + type: string + nullable: true + MiddleName: + type: string + nullable: true + Gender: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender' + Age: + oneOf: + - type: number + nullable: true + format: int64 + - type: string + nullable: true + Emails: + type: array + items: + type: string + nullable: true + AddressInfo: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + HomeAddress: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + - nullable: true + type: object + FavoriteFeature: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature' + Features: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature' + Photo: + type: string + nullable: true + format: base64url + Friends: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + description: Friends of person + x-ms-navigationProperty: true + BestFriend: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + - nullable: true + type: object + description: The best friend. + x-ms-navigationProperty: true + Trips: + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip' + description: Collection of trips. + x-ms-navigationProperty: true + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline: + title: Airline + type: object + properties: + AirlineCode: + type: string + Name: + type: string + nullable: true + Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport: + title: Airport + type: object + properties: + Name: + type: string + nullable: true + IcaoCode: + type: string + IataCode: + type: string + nullable: true + Location: + anyOf: + - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation' + - nullable: true + type: object Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location: title: Location type: object @@ -23185,8 +22707,8 @@ components: City: anyOf: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.City' - - type: object - nullable: true + - nullable: true + type: object Microsoft.OData.Service.Sample.TrippinInMemory.Models.City: title: City type: object @@ -23211,8 +22733,8 @@ components: EmergencyAuthority: anyOf: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' - - type: object - nullable: true + - nullable: true + type: object description: The person to contact in case of a crisis at this location. x-ms-navigationProperty: true Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: @@ -23243,8 +22765,8 @@ components: Budget: oneOf: - type: number - format: float nullable: true + format: float - type: string nullable: true - $ref: '#/components/schemas/ReferenceNumeric' @@ -23306,8 +22828,8 @@ components: OccursAt: anyOf: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation' - - type: object - nullable: true + - nullable: true + type: object Description: type: string nullable: true @@ -23332,20 +22854,20 @@ components: Airline: anyOf: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline' - - type: object - nullable: true + - nullable: true + type: object x-ms-navigationProperty: true From: anyOf: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport' - - type: object - nullable: true + - nullable: true + type: object x-ms-navigationProperty: true To: anyOf: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport' - - type: object - nullable: true + - nullable: true + type: object x-ms-navigationProperty: true Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee: allOf: @@ -23356,8 +22878,8 @@ components: Cost: oneOf: - type: number - format: int64 nullable: true + format: int64 - type: string nullable: true Peers: @@ -23374,15 +22896,15 @@ components: Budget: oneOf: - type: number - format: int64 nullable: true + format: int64 - type: string nullable: true BossOffice: anyOf: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' - - type: object - nullable: true + - nullable: true + type: object DirectReports: type: array items: @@ -23419,195 +22941,6 @@ components: type: string x-ms-enum-flags: isFlags: true - Edm.Geography: - $ref: '#/components/schemas/Edm.Geometry' - Edm.GeographyPoint: - $ref: '#/components/schemas/Edm.GeometryPoint' - Edm.GeographyLineString: - $ref: '#/components/schemas/Edm.GeometryLineString' - Edm.GeographyPolygon: - $ref: '#/components/schemas/Edm.GeometryPolygon' - Edm.GeographyMultiPoint: - $ref: '#/components/schemas/Edm.GeometryMultiPoint' - Edm.GeographyMultiLineString: - $ref: '#/components/schemas/Edm.GeometryMultiLineString' - Edm.GeographyMultiPolygon: - $ref: '#/components/schemas/Edm.GeometryMultiPolygon' - Edm.GeographyCollection: - $ref: '#/components/schemas/Edm.GeometryCollection' - Edm.Geometry: - type: object - oneOf: - - $ref: '#/components/schemas/Edm.GeometryPoint' - - $ref: '#/components/schemas/Edm.GeometryLineString' - - $ref: '#/components/schemas/Edm.GeometryPolygon' - - $ref: '#/components/schemas/Edm.GeometryMultiPoint' - - $ref: '#/components/schemas/Edm.GeometryMultiLineString' - - $ref: '#/components/schemas/Edm.GeometryMultiPolygon' - - $ref: '#/components/schemas/Edm.GeometryCollection' - Edm.GeometryPoint: - required: - - type - - coordinates - type: object - properties: - type: - enum: - - Point - type: string - default: Point - coordinates: - $ref: '#/components/schemas/GeoJSON.position' - Edm.GeometryLineString: - required: - - type - - coordinates - type: object - properties: - type: - enum: - - LineString - coordinates: - minItems: 2 - type: array - items: - $ref: '#/components/schemas/GeoJSON.position' - Edm.GeometryPolygon: - required: - - type - - coordinates - type: object - properties: - type: - enum: - - Polygon - coordinates: - minItems: 4 - type: array - items: - type: array - items: - $ref: '#/components/schemas/GeoJSON.position' - Edm.GeometryMultiPoint: - required: - - type - - coordinates - type: object - properties: - type: - enum: - - MultiPoint - coordinates: - type: array - items: - $ref: '#/components/schemas/GeoJSON.position' - Edm.GeometryMultiLineString: - required: - - type - - coordinates - type: object - properties: - type: - enum: - - MultiLineString - coordinates: - minItems: 2 - type: array - items: - type: array - items: - $ref: '#/components/schemas/GeoJSON.position' - Edm.GeometryMultiPolygon: - required: - - type - - coordinates - type: object - properties: - type: - enum: - - MultiPolygon - coordinates: - minItems: 4 - type: array - items: - type: array - items: - type: array - items: - $ref: '#/components/schemas/GeoJSON.position' - Edm.GeometryCollection: - required: - - type - - coordinates - type: object - properties: - type: - enum: - - GeometryCollection - coordinates: - type: array - items: - $ref: '#/components/schemas/Edm.Geometry' - GeoJSON.position: - minItems: 2 - type: array - items: - type: number - Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ODataError: - required: - - error - type: object - properties: - error: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError' - Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.MainError: - required: - - code - - message - type: object - properties: - code: - type: string - message: - type: string - x-ms-primary-error-message: true - target: - type: string - nullable: true - details: - type: array - items: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails' - innerError: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError' - Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.ErrorDetails: - required: - - code - - message - type: object - properties: - code: - type: string - message: - type: string - target: - type: string - nullable: true - Microsoft.OData.Service.Sample.TrippinInMemory.Models.ODataErrors.InnerError: - title: InnerError - type: object - properties: - Date: - pattern: '^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$' - type: string - format: date-time - nullable: true - RequestId: - type: string - nullable: true - ODataCountResponse: - type: integer - format: int32 Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse: title: Collection of Person type: object @@ -23696,36 +23029,6 @@ components: type: array items: $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' - StringCollectionResponse: - title: Collection of string - type: object - properties: - value: - type: array - items: - type: string - ReferenceUpdate: - type: object - properties: - '@odata.id': - type: string - '@odata.type': - type: string - nullable: true - ReferenceCreate: - type: object - properties: - '@odata.id': - type: string - additionalProperties: - type: object - ReferenceNumeric: - enum: - - '-INF' - - INF - - NaN - type: string - nullable: true responses: error: description: error @@ -23818,8 +23121,8 @@ components: schema: anyOf: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline' - - type: object - nullable: true + - nullable: true + type: object GetFriendsTripsResponse: description: Success content: @@ -23859,26 +23162,25 @@ components: name: $top in: query description: Show only the first n items - style: form explode: false schema: minimum: 0 - type: integer + type: number + format: int64 example: 50 skip: name: $skip in: query description: Skip the first n items - style: form explode: false schema: minimum: 0 - type: integer + type: number + format: int64 count: name: $count in: query description: Include count of items - style: form explode: false schema: type: boolean @@ -23886,7 +23188,6 @@ components: name: $filter in: query description: Filter items by property values - style: form explode: false schema: type: string @@ -23894,7 +23195,6 @@ components: name: $search in: query description: Search items by search phrases - style: form explode: false schema: type: string @@ -23902,112 +23202,182 @@ components: Microsoft.OData.Service.Sample.TrippinInMemory.Models.InnerError: value: Date: '0001-01-01T00:00:00.0000000+00:00' - RequestId: String + RequestId: string Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person: value: - AddressInfo: - - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location + UserName: string (identifier) + FirstName: string + LastName: string + MiddleName: string + Gender: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender Age: 0 - BestFriend: - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person Emails: - - String + - string + AddressInfo: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location + HomeAddress: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location FavoriteFeature: '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature Features: - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature - FirstName: String + Photo: string Friends: - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person - Gender: - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender - HomeAddress: - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location - LastName: String - MiddleName: String - Photo: Stream + BestFriend: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person Trips: - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip - UserName: String (identifier) Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline: value: - AirlineCode: String (identifier) - Name: String + AirlineCode: string (identifier) + Name: string Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport: value: - IataCode: String - IcaoCode: String (identifier) + Name: string + IcaoCode: string (identifier) + IataCode: string Location: '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation - Name: String Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location: value: - Address: String + Address: string City: '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.City Microsoft.OData.Service.Sample.TrippinInMemory.Models.City: value: - CountryRegion: String - Name: String - Region: String + Name: string + CountryRegion: string + Region: string Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation: value: + Address: string + City: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.City + Loc: Edm.GeographyPoint EmergencyAuthority: '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person - Loc: GeographyPoint Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: value: - BuildingInfo: String + Address: string + City: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.City + BuildingInfo: string Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip: value: + TripId: 0 + ShareId: 00000000-0000-0000-0000-000000000000 + Name: string Budget: 0 - Description: String + Description: string + Tags: + - string + TripData: { } DestinationInfo: - { } + StartsAt: '0001-01-01T00:00:00.0000000+00:00' EndsAt: '0001-01-01T00:00:00.0000000+00:00' - Name: String PlanItems: - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem - ShareId: 00000000-0000-0000-0000-000000000000 - StartsAt: '0001-01-01T00:00:00.0000000+00:00' - Tags: - - String - TripData: { } - TripId: 0 Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem: value: - ConfirmationCode: String - Duration: Duration - EndsAt: '0001-01-01T00:00:00.0000000+00:00' PlanItemId: 0 + ConfirmationCode: string StartsAt: '0001-01-01T00:00:00.0000000+00:00' + EndsAt: '0001-01-01T00:00:00.0000000+00:00' + Duration: string Microsoft.OData.Service.Sample.TrippinInMemory.Models.Event: value: - Description: String + PlanItemId: 0 + ConfirmationCode: string + StartsAt: '0001-01-01T00:00:00.0000000+00:00' + EndsAt: '0001-01-01T00:00:00.0000000+00:00' + Duration: string OccursAt: '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation + Description: string Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation: value: - SeatNumber: String + PlanItemId: 0 + ConfirmationCode: string + StartsAt: '0001-01-01T00:00:00.0000000+00:00' + EndsAt: '0001-01-01T00:00:00.0000000+00:00' + Duration: string + SeatNumber: string Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight: value: + PlanItemId: 0 + ConfirmationCode: string + StartsAt: '0001-01-01T00:00:00.0000000+00:00' + EndsAt: '0001-01-01T00:00:00.0000000+00:00' + Duration: string + SeatNumber: string + FlightNumber: string Airline: '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline - FlightNumber: String From: '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport To: '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee: value: + UserName: string (identifier) + FirstName: string + LastName: string + MiddleName: string + Gender: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender + Age: 0 + Emails: + - string + AddressInfo: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location + HomeAddress: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location + FavoriteFeature: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature + Features: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature + Photo: string + Friends: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person + BestFriend: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person + Trips: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip Cost: 0 Peers: - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager: value: - BossOffice: + UserName: string (identifier) + FirstName: string + LastName: string + MiddleName: string + Gender: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender + Age: 0 + Emails: + - string + AddressInfo: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location + HomeAddress: '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location + FavoriteFeature: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature + Features: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature + Photo: string + Friends: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person + BestFriend: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person + Trips: + - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip Budget: 0 + BossOffice: + '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location DirectReports: - '@odata.type': Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person requestBodies: diff --git a/tool/UpdateDocs/Program.cs b/tool/UpdateDocs/Program.cs index 174fdd701..ddfcf2f00 100644 --- a/tool/UpdateDocs/Program.cs +++ b/tool/UpdateDocs/Program.cs @@ -10,27 +10,29 @@ using Microsoft.OData.Edm; using Microsoft.OData.Edm.Csdl; using Microsoft.OpenApi; -using Microsoft.OpenApi.Models; using Microsoft.OpenApi.OData; using Microsoft.OpenApi.Extensions; +using System.Threading.Tasks; namespace UpdateDocs { class Program { - static int Main(string[] args) + static async Task Main(string[] args) { // we assume the path are existed for simplicity. string path = Directory.GetCurrentDirectory(); - string csdl = path + "/../../../../../docs/csdl"; - string oas20 = path + "/../../../../../docs/oas_2_0"; - string oas30 = path + "/../../../../../docs/oas3_0_0"; + string parentPath = Path.Combine(path, "..", "..", "..", "..", ".."); + string csdl = Path.Combine(parentPath, "docs", "csdl"); + string oas20 = Path.Combine(parentPath, "docs", "oas_2_0"); + string oas30 = Path.Combine(parentPath, "docs", "oas3_0_0"); + string oas31 = Path.Combine(parentPath, "docs", "oas3_1_0"); foreach (var filePath in Directory.GetFiles(csdl, "*.xml")) { Console.WriteLine(filePath); - IEdmModel model = LoadEdmModel(filePath); + IEdmModel model = await LoadEdmModelAsync(filePath); if (model == null) { continue; @@ -51,28 +53,17 @@ static int Main(string[] args) settings.ServiceRoot = new Uri("https://graph.microsoft.com/v1.0"); } - OpenApiDocument document = model.ConvertToOpenApi(settings); - - string output;/* = oas20 + "/" + fileName + ".yaml"; - File.WriteAllText(output, document.SerializeAsYaml(OpenApiSpecVersion.OpenApi2_0)); - - output = oas20 + "/" + fileName + ".json"; - File.WriteAllText(output, document.SerializeAsJson(OpenApiSpecVersion.OpenApi2_0)); - - output = oas30 + "/" + fileName + ".yaml"; - File.WriteAllText(output, document.SerializeAsYaml(OpenApiSpecVersion.OpenApi3_0)); - - output = oas30 + "/" + fileName + ".json"; - File.WriteAllText(output, document.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0)); - */ settings.EnableKeyAsSegment = true; settings.EnableUnqualifiedCall = true; - output = oas30 + "/" + fileName + ".json"; - document = model.ConvertToOpenApi(settings); - File.WriteAllText(output, document.SerializeAsJson(OpenApiSpecVersion.OpenApi3_0)); + var output = Path.Combine(oas31, fileName + ".json"); + var document = model.ConvertToOpenApi(settings); + await File.WriteAllTextAsync(output, await document.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_1)); + + output = Path.Combine(oas30, fileName + ".json"); + await File.WriteAllTextAsync(output, await document.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi3_0)); - output = oas20 + "/" + fileName + ".json"; - File.WriteAllText(output, document.SerializeAsJson(OpenApiSpecVersion.OpenApi2_0)); + output = Path.Combine(oas20, fileName + ".json"); + await File.WriteAllTextAsync(output, await document.SerializeAsJsonAsync(OpenApiSpecVersion.OpenApi2_0)); Console.WriteLine("Output [ " + fileName + " ] Successful!"); } @@ -81,11 +72,11 @@ static int Main(string[] args) return 0; } - public static IEdmModel LoadEdmModel(string file) + private static async Task LoadEdmModelAsync(string file) { try { - string csdl = File.ReadAllText(file); + string csdl = await File.ReadAllTextAsync(file); return CsdlReader.Parse(XElement.Parse(csdl).CreateReader()); } catch diff --git a/tool/UpdateDocs/UpdateDocs.csproj b/tool/UpdateDocs/UpdateDocs.csproj index 4355d8f46..7417833d0 100644 --- a/tool/UpdateDocs/UpdateDocs.csproj +++ b/tool/UpdateDocs/UpdateDocs.csproj @@ -13,6 +13,6 @@ - + \ No newline at end of file