diff --git a/src/Microsoft.OpenApi.OData.Reader/Common/EdmModelHelper.cs b/src/Microsoft.OpenApi.OData.Reader/Common/EdmModelHelper.cs index 45e22c69e..467b4b594 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Common/EdmModelHelper.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Common/EdmModelHelper.cs @@ -6,7 +6,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Runtime; using Microsoft.OData.Edm; using Microsoft.OData.Edm.Csdl; using Microsoft.OData.Edm.Vocabularies; @@ -235,13 +234,24 @@ internal static string GenerateNavigationPropertyPathTagName(ODataPath path, ODa internal static string GenerateComplexPropertyPathTagName(ODataPath path, ODataContext context) { Utils.CheckArgumentNull(path, nameof(path)); + Utils.CheckArgumentNull(context, nameof(context)); - // Get the segment before the last complex type segment ODataComplexPropertySegment complexSegment = path.Segments.OfType()?.Last(); Utils.CheckArgumentNull(complexSegment, nameof(complexSegment)); + // Get the segment before the last complex type segment int complexSegmentIndex = path.Segments.IndexOf(complexSegment); ODataSegment preComplexSegment = path.Segments.ElementAt(complexSegmentIndex - 1); + int preComplexSegmentIndex = path.Segments.IndexOf(preComplexSegment); + + while (preComplexSegment is ODataTypeCastSegment) + { + // Skip this segment, + // Tag names don't include OData type cast segment identifiers + preComplexSegmentIndex--; + preComplexSegment = path.Segments.ElementAt(preComplexSegmentIndex); + } + string tagName = null; if (preComplexSegment is ODataNavigationSourceSegment sourceSegment) @@ -254,12 +264,12 @@ internal static string GenerateComplexPropertyPathTagName(ODataPath path, ODataC } else if (preComplexSegment is ODataKeySegment) { - var thirdLastSegment = path.Segments.ElementAt(complexSegmentIndex - 2); - if (thirdLastSegment is ODataNavigationPropertySegment) + var prevKeySegment = path.Segments.ElementAt(preComplexSegmentIndex - 1); + if (prevKeySegment is ODataNavigationPropertySegment) { tagName = GenerateNavigationPropertyPathTagName(path, context); } - else if (thirdLastSegment is ODataNavigationSourceSegment sourceSegment1) + else if (prevKeySegment is ODataNavigationSourceSegment sourceSegment1) { tagName = $"{sourceSegment1.NavigationSource.Name}"; } diff --git a/src/Microsoft.OpenApi.OData.Reader/Edm/ODataPathProvider.cs b/src/Microsoft.OpenApi.OData.Reader/Edm/ODataPathProvider.cs index 8c81f4b30..f4c803260 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Edm/ODataPathProvider.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Edm/ODataPathProvider.cs @@ -687,7 +687,7 @@ bool filter(IEdmStructuredType x) => } else { - if (convertSettings.ExpandDerivedTypesNavigationProperties) + if (convertSettings.GenerateDerivedTypesProperties) { if (annotable is IEdmNavigationProperty navigationProperty && !navigationProperty.ContainsTarget) { @@ -698,6 +698,11 @@ bool filter(IEdmStructuredType x) => { RetrieveNavigationPropertyPaths(declaredNavigationProperty, null, castPath, convertSettings); } + + if (targetType is IEdmEntityType entityType) + { + RetrieveComplexPropertyPaths(entityType, castPath, convertSettings); + } } } } 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 6fbdc5801..07bb68abc 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj +++ b/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj @@ -15,7 +15,7 @@ netstandard2.0 Microsoft.OpenApi.OData true - 1.5.0-preview6 + 1.5.0-preview7 This package contains the codes you need to convert OData CSDL to Open API Document of Model. © Microsoft Corporation. All rights reserved. Microsoft OpenApi OData EDM @@ -27,6 +27,7 @@ - Adds support for `x-ms-enum-flags` extension for flagged enums - Use containment together with RequiresExplicitBinding annotation to check whether to append bound operations to navigation properties #430 - Adds schema to content types of stream properties that have a collection of acceptable media types #435 +- Retrieves complex properties of derived types #437 Microsoft.OpenApi.OData.Reader ..\..\tool\Microsoft.OpenApi.OData.snk diff --git a/src/Microsoft.OpenApi.OData.Reader/OpenApiConvertSettings.cs b/src/Microsoft.OpenApi.OData.Reader/OpenApiConvertSettings.cs index 7f711452d..7445d5e29 100644 --- a/src/Microsoft.OpenApi.OData.Reader/OpenApiConvertSettings.cs +++ b/src/Microsoft.OpenApi.OData.Reader/OpenApiConvertSettings.cs @@ -247,8 +247,18 @@ public string PathPrefix /// /// Gets/Sets a value indicating whether or not to expand derived types to retrieve their declared navigation properties. /// - public bool ExpandDerivedTypesNavigationProperties { get; set; } = true; + [Obsolete("Use RetrieveDerivedTypesProperties to Get or Set the value.")] + public bool ExpandDerivedTypesNavigationProperties + { + get => GenerateDerivedTypesProperties; + set => GenerateDerivedTypesProperties = value; + } + /// + /// Gets/Sets a value indicating whether or not to retrieve complex or navigation properties declared in derived types. + /// + public bool GenerateDerivedTypesProperties { get; set; } = true; + /// /// Gets/sets a value indicating whether or not to set the deprecated tag for the operation when a revision is present as well as the "x-ms-deprecation" extension with additional information. /// @@ -386,7 +396,7 @@ internal OpenApiConvertSettings Clone() ErrorResponsesAsDefault = this.ErrorResponsesAsDefault, InnerErrorComplexTypeName = this.InnerErrorComplexTypeName, RequireRestrictionAnnotationsToGenerateComplexPropertyPaths = this.RequireRestrictionAnnotationsToGenerateComplexPropertyPaths, - ExpandDerivedTypesNavigationProperties = this.ExpandDerivedTypesNavigationProperties, + GenerateDerivedTypesProperties = this.GenerateDerivedTypesProperties, CustomXMLAttributesMapping = this.CustomXMLAttributesMapping, CustomHttpMethodLinkRelMapping = this.CustomHttpMethodLinkRelMapping, AppendBoundOperationsOnDerivedTypeCastSegments = this.AppendBoundOperationsOnDerivedTypeCastSegments, diff --git a/src/Microsoft.OpenApi.OData.Reader/PublicAPI.Unshipped.txt b/src/Microsoft.OpenApi.OData.Reader/PublicAPI.Unshipped.txt index b3e73a615..fa4347450 100644 --- a/src/Microsoft.OpenApi.OData.Reader/PublicAPI.Unshipped.txt +++ b/src/Microsoft.OpenApi.OData.Reader/PublicAPI.Unshipped.txt @@ -37,6 +37,8 @@ Microsoft.OpenApi.OData.OpenApiConvertSettings.ExpandDerivedTypesNavigationPrope Microsoft.OpenApi.OData.OpenApiConvertSettings.ExpandDerivedTypesNavigationProperties.set -> void Microsoft.OpenApi.OData.OpenApiConvertSettings.CustomXMLAttributesMapping.get -> System.Collections.Generic.Dictionary Microsoft.OpenApi.OData.OpenApiConvertSettings.CustomXMLAttributesMapping.set -> void +Microsoft.OpenApi.OData.OpenApiConvertSettings.GenerateDerivedTypesProperties.get -> bool +Microsoft.OpenApi.OData.OpenApiConvertSettings.GenerateDerivedTypesProperties.set -> void Microsoft.OpenApi.OData.OpenApiConvertSettings.IncludeAssemblyInfo.get -> bool Microsoft.OpenApi.OData.OpenApiConvertSettings.IncludeAssemblyInfo.set -> void Microsoft.OpenApi.OData.OpenApiConvertSettings.NamespacePrefixToStripForInMethodPaths.get -> string diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Edm/ODataPathProviderTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Edm/ODataPathProviderTests.cs index bc775f59b..84dc753d6 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Edm/ODataPathProviderTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Edm/ODataPathProviderTests.cs @@ -52,7 +52,7 @@ public void GetPathsForGraphBetaModelReturnsAllPaths() // Assert Assert.NotNull(paths); - Assert.Equal(18264, paths.Count()); + Assert.Equal(18280, paths.Count()); AssertGraphBetaModelPaths(paths); } @@ -83,6 +83,12 @@ private void AssertGraphBetaModelPaths(IEnumerable paths) Assert.NotNull(paths.FirstOrDefault(p => p.GetPathItemName().Equals("/directoryObjects({id})/microsoft.graph.getMemberGroups"))); Assert.NotNull(paths.FirstOrDefault(p => p.GetPathItemName().Equals("/directoryObjects({id})/microsoft.graph.getMemberObjects"))); Assert.Null(paths.FirstOrDefault(p => p.GetPathItemName().Equals("/directoryObjects({id})/microsoft.graph.restore"))); + + // Test that complex and navigation properties on derived types are created + Assert.NotNull(paths.FirstOrDefault(p => p.GetPathItemName().Equals( + "/identity/authenticationEventsFlows({id})/microsoft.graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes"))); + Assert.NotNull(paths.FirstOrDefault(p => p.GetPathItemName().Equals( + "/identity/authenticationEventsFlows({id})/microsoft.graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders"))); } [Fact] @@ -103,7 +109,7 @@ public void GetPathsForGraphBetaModelWithDerivedTypesConstraintReturnsAllPaths() // Assert Assert.NotNull(paths); - Assert.Equal(18915, paths.Count()); + Assert.Equal(18931, paths.Count()); } [Theory] diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiLinkGeneratorTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiLinkGeneratorTests.cs index 94270bf5c..57a128f82 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiLinkGeneratorTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiLinkGeneratorTests.cs @@ -23,7 +23,7 @@ public void CreateLinksForSingleValuedNavigationProperties() OpenApiConvertSettings settings = new() { ShowLinks = true, - ExpandDerivedTypesNavigationProperties = false + GenerateDerivedTypesProperties = false }; ODataContext context = new(model, settings); IEdmSingleton admin = model.EntityContainer.FindSingleton("admin"); @@ -72,7 +72,7 @@ public void CreateLinksForCollectionValuedNavigationProperties() OpenApiConvertSettings settings = new() { ShowLinks = true, - ExpandDerivedTypesNavigationProperties = false + GenerateDerivedTypesProperties = false }; ODataContext context = new(model, settings); IEdmSingleton singleton = model.EntityContainer.FindSingleton("admin"); @@ -140,7 +140,7 @@ public void CreateLinksForSingletons() OpenApiConvertSettings settings = new() { ShowLinks = true, - ExpandDerivedTypesNavigationProperties = false + GenerateDerivedTypesProperties = false }; ODataContext context = new(model, settings); IEdmSingleton singleton = model.EntityContainer.FindSingleton("admin"); @@ -195,7 +195,7 @@ public void CreateLinksForEntities() OpenApiConvertSettings settings = new() { ShowLinks = true, - ExpandDerivedTypesNavigationProperties = false + GenerateDerivedTypesProperties = false }; ODataContext context = new(model, settings); IEdmEntitySet entityset = model.EntityContainer.FindEntitySet("agreements"); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/NavigationPropertyPathItemHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/NavigationPropertyPathItemHandlerTests.cs index d7380dd68..e06ce16d1 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/NavigationPropertyPathItemHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/NavigationPropertyPathItemHandlerTests.cs @@ -506,7 +506,7 @@ public void CreatePathItemForNavigationPropertyWithRestrictionAnnotationsDefined IEdmModel model = EdmModelHelper.GraphBetaModel; OpenApiConvertSettings settings = new() { - ExpandDerivedTypesNavigationProperties = false + GenerateDerivedTypesProperties = false }; ODataContext context = new(model, settings); IEdmSingleton ipSingleton = model.EntityContainer.FindSingleton("informationProtection"); @@ -543,7 +543,7 @@ public void CreatePathItemForNavigationPropertyWithOutOfLineRestrictionAnnotatio IEdmModel model = EdmModelHelper.GraphBetaModel; OpenApiConvertSettings settings = new() { - ExpandDerivedTypesNavigationProperties = false + GenerateDerivedTypesProperties = false }; ODataContext context = new(model, settings); IEdmEntitySet users = model.EntityContainer.FindEntitySet("users"); diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Graph.Beta.OData.xml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Graph.Beta.OData.xml index 1bace6d66..15ad6e53a 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Graph.Beta.OData.xml +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Graph.Beta.OData.xml @@ -61976,6 +61976,34 @@ + + + + + microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp + + + + + + + + + + + + + microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp + + + + + + + + + + @@ -61991,11 +62019,33 @@ + + + + + + + + + + + + + + + + + + microsoft.graph.externalUsersSelfServiceSignUpEventsFlow + + + + @@ -86400,6 +86450,14 @@ + + + + + + + + @@ -112377,9 +112435,9 @@ microsoft.graph.checkMemberGroups - microsoft.graph.checkMemberObjects - microsoft.graph.getMemberGroups - microsoft.graph.getMemberObjects + microsoft.graph.checkMemberObjects + microsoft.graph.getMemberGroups + microsoft.graph.getMemberObjects 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 6fd5f0e6e..92918ed25 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 @@ -3765,6 +3765,259 @@ }, "x-description": "Casts the previous resource to Employee." }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo": { + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "Me.ListAddressInfo", + "parameters": [ + { + "$ref": "#/parameters/top" + }, + { + "$ref": "#/parameters/skip" + }, + { + "$ref": "#/parameters/search" + }, + { + "$ref": "#/parameters/filter" + }, + { + "$ref": "#/parameters/count" + }, + { + "in": "query", + "name": "$orderby", + "description": "Order items by property values", + "type": "array", + "items": { + "enum": [ + "Address", + "Address desc", + "City", + "City desc" + ], + "type": "string" + } + }, + { + "in": "query", + "name": "$select", + "description": "Select properties to be returned", + "type": "array", + "items": { + "enum": [ + "Address", + "City" + ], + "type": "string" + } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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", + "consumes": [ + "application/json" + ], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "New property values", + "required": true, + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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", + "consumes": [ + "application/json" + ], + "parameters": [ + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "New property values", + "required": true, + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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": { + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AddressInfo.GetCount-8488", + "parameters": [ + { + "$ref": "#/parameters/search" + }, + { + "$ref": "#/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Provides operations to count the resources in the collection." + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "Me.ListAddressInfo.AsEventLocation", + "responses": { + "200": { + "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Casts the previous resource to EventLocation." + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "get": { + "summary": "Get the number of the resource", + "operationId": "Me.AddressInfo.GetCount.AsEventLocation-9375", + "parameters": [ + { + "$ref": "#/parameters/search" + }, + { + "$ref": "#/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Provides operations to count the resources in the collection." + }, "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend": { "get": { "tags": [ @@ -5400,17 +5653,135 @@ }, "x-description": "Provides operations to count the resources in the collection." }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers": { + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/HomeAddress": { "get": { "tags": [ - "Me.Person" + "Me.Location" ], - "summary": "Get Peers from Me", - "operationId": "Me.ListPeers", - "parameters": [ - { - "$ref": "#/parameters/top" - }, + "summary": "Get HomeAddress property value", + "operationId": "Me.GetHomeAddress", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "query", + "name": "$select", + "description": "Select properties to be returned", + "type": "array", + "items": { + "enum": [ + "Address", + "City" + ], + "type": "string" + } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Result entities", + "schema": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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", + "consumes": [ + "application/json" + ], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "New property values", + "required": true, + "schema": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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": { + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "Me.GetHomeAddress.AsEventLocation", + "responses": { + "200": { + "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Casts the previous resource to EventLocation." + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers": { + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get Peers from Me", + "operationId": "Me.ListPeers", + "parameters": [ + { + "$ref": "#/parameters/top" + }, { "$ref": "#/parameters/skip" }, @@ -7205,18 +7576,44 @@ }, "x-description": "Casts the previous resource to Manager." }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend": { + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo": { "get": { "tags": [ - "Me.Person" - ], - "summary": "Get BestFriend from Me", - "description": "The best friend.", - "operationId": "Me.GetBestFriend", - "produces": [ - "application/json" + "Me.Location" ], + "summary": "Get AddressInfo property value", + "operationId": "Me.ListAddressInfo", "parameters": [ + { + "$ref": "#/parameters/top" + }, + { + "$ref": "#/parameters/skip" + }, + { + "$ref": "#/parameters/search" + }, + { + "$ref": "#/parameters/filter" + }, + { + "$ref": "#/parameters/count" + }, + { + "in": "query", + "name": "$orderby", + "description": "Order items by property values", + "type": "array", + "items": { + "enum": [ + "Address", + "Address desc", + "City", + "City desc" + ], + "type": "string" + } + }, { "in": "query", "name": "$select", @@ -7224,20 +7621,8 @@ "type": "array", "items": { "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" + "Address", + "City" ], "type": "string" } @@ -7249,10 +7634,7 @@ "type": "array", "items": { "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" + "*" ], "type": "string" } @@ -7260,10 +7642,7 @@ ], "responses": { "200": { - "description": "Retrieved navigation property", - "schema": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" - } + "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" }, "default": { "$ref": "#/responses/error" @@ -7275,16 +7654,14 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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" + "Me.Location" ], - "summary": "Update the best friend.", - "description": "Update an instance of a best friend.", - "operationId": "Me.UpdateBestFriend", + "summary": "Update property AddressInfo value.", + "operationId": "Me.UpdateAddressInfo", "consumes": [ "application/json" ], @@ -7292,10 +7669,13 @@ { "in": "body", "name": "body", - "description": "New navigation property values", + "description": "New property values", "required": true, "schema": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + "type": "array", + "items": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } } } ], @@ -7313,32 +7693,40 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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-description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", - "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": { - "get": { + "post": { "tags": [ - "Me.Person" + "Me.Location" ], - "summary": "Get ref of BestFriend from Me", - "description": "The best friend.", - "operationId": "Me.GetRefBestFriend", - "produces": [ + "summary": "Sets a new value for the collection of Location.", + "operationId": "Me.SetAddressInfo", + "consumes": [ "application/json" ], - "responses": { - "200": { - "description": "Retrieved navigation property link", + "parameters": [ + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "New property values", + "required": true, "schema": { - "type": "string" + "type": "array", + "items": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } } + } + ], + "responses": { + "204": { + "description": "Success" }, "default": { "$ref": "#/responses/error" @@ -7350,9 +7738,257 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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/AddressInfo/$count": { + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get the number of the resource", + "operationId": "Me.AddressInfo.GetCount-75da", + "parameters": [ + { + "in": "header", + "name": "ConsistencyLevel", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "type": "string" + }, + { + "$ref": "#/parameters/search" + }, + { + "$ref": "#/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Provides operations to count the resources in the collection." + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "Me.ListAddressInfo.AsEventLocation", + "responses": { + "200": { + "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Casts the previous resource to EventLocation." + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "get": { + "summary": "Get the number of the resource", + "operationId": "Me.AddressInfo.GetCount.AsEventLocation-f67e", + "parameters": [ + { + "in": "header", + "name": "ConsistencyLevel", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "type": "string" + }, + { + "$ref": "#/parameters/search" + }, + { + "$ref": "#/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Provides operations to count the resources in the collection." + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend": { + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get BestFriend from Me", + "description": "The best friend.", + "operationId": "Me.GetBestFriend", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "query", + "name": "$select", + "description": "Select properties to be returned", + "type": "array", + "items": { + "enum": [ + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Retrieved navigation property", + "schema": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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", + "consumes": [ + "application/json" + ], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "New navigation property values", + "required": true, + "schema": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "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": { + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get ref of BestFriend from Me", + "description": "The best friend.", + "operationId": "Me.GetRefBestFriend", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "Retrieved navigation property link", + "schema": { + "type": "string" + } + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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" @@ -9612,16 +10248,134 @@ }, "x-description": "Provides operations to count the resources in the collection." }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": { - "post": { + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/HomeAddress": { + "get": { "tags": [ - "Me.Actions" + "Me.Location" ], - "summary": "Invoke action Hire", - "description": "Hires someone for the company.", - "operationId": "Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire", - "consumes": [ - "application/json" + "summary": "Get HomeAddress property value", + "operationId": "Me.GetHomeAddress", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "query", + "name": "$select", + "description": "Select properties to be returned", + "type": "array", + "items": { + "enum": [ + "Address", + "City" + ], + "type": "string" + } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Result entities", + "schema": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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", + "consumes": [ + "application/json" + ], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "New property values", + "required": true, + "schema": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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": { + "get": { + "tags": [ + "Me.Location" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "Me.GetHomeAddress.AsEventLocation", + "responses": { + "200": { + "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Casts the previous resource to EventLocation." + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": { + "post": { + "tags": [ + "Me.Actions" + ], + "summary": "Invoke action Hire", + "description": "Hires someone for the company.", + "operationId": "Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire", + "consumes": [ + "application/json" ], "parameters": [ { @@ -18412,17 +19166,13 @@ }, "x-description": "Casts the previous resource to Employee." }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend": { + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo": { "get": { "tags": [ - "People.Person" - ], - "summary": "Get BestFriend from People", - "description": "The best friend.", - "operationId": "People.GetBestFriend", - "produces": [ - "application/json" + "People.Location" ], + "summary": "Get AddressInfo property value", + "operationId": "People.ListAddressInfo", "parameters": [ { "in": "path", @@ -18432,6 +19182,36 @@ "type": "string", "x-ms-docs-key-type": "Person" }, + { + "$ref": "#/parameters/top" + }, + { + "$ref": "#/parameters/skip" + }, + { + "$ref": "#/parameters/search" + }, + { + "$ref": "#/parameters/filter" + }, + { + "$ref": "#/parameters/count" + }, + { + "in": "query", + "name": "$orderby", + "description": "Order items by property values", + "type": "array", + "items": { + "enum": [ + "Address", + "Address desc", + "City", + "City desc" + ], + "type": "string" + } + }, { "in": "query", "name": "$select", @@ -18439,20 +19219,8 @@ "type": "array", "items": { "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" + "Address", + "City" ], "type": "string" } @@ -18464,10 +19232,7 @@ "type": "array", "items": { "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" + "*" ], "type": "string" } @@ -18475,10 +19240,7 @@ ], "responses": { "200": { - "description": "Retrieved navigation property", - "schema": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" - } + "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" }, "default": { "$ref": "#/responses/error" @@ -18490,16 +19252,14 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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" + "People.Location" ], - "summary": "Update the best friend.", - "description": "Update an instance of a best friend.", - "operationId": "People.UpdateBestFriend", + "summary": "Update property AddressInfo value.", + "operationId": "People.UpdateAddressInfo", "consumes": [ "application/json" ], @@ -18515,10 +19275,13 @@ { "in": "body", "name": "body", - "description": "New navigation property values", + "description": "New property values", "required": true, "schema": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + "type": "array", + "items": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } } } ], @@ -18536,24 +19299,15 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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-description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", - "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": { - "get": { + "post": { "tags": [ - "People.Person" + "People.Location" ], - "summary": "Get ref of BestFriend from People", - "description": "The best friend.", - "operationId": "People.GetRefBestFriend", - "produces": [ + "summary": "Sets a new value for the collection of Location.", + "operationId": "People.SetAddressInfo", + "consumes": [ "application/json" ], "parameters": [ @@ -18564,14 +19318,29 @@ "required": true, "type": "string", "x-ms-docs-key-type": "Person" + }, + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "New property values", + "required": true, + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } } ], "responses": { - "200": { - "description": "Retrieved navigation property link", - "schema": { - "type": "string" - } + "204": { + "description": "Success" }, "default": { "$ref": "#/responses/error" @@ -18583,16 +19352,16 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + } + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/$count": { + "get": { "tags": [ - "People.Person" + "People.Location" ], - "summary": "Update the best friend.", - "description": "Update an instance of a best friend.", - "operationId": "People.UpdateRefBestFriend", + "summary": "Get the number of the resource", + "operationId": "People.AddressInfo.GetCount-3d43", "parameters": [ { "in": "path", @@ -18603,12 +19372,15 @@ "x-ms-docs-key-type": "Person" }, { - "$ref": "#/parameters/refPutBody" + "$ref": "#/parameters/search" + }, + { + "$ref": "#/parameters/filter" } ], "responses": { - "204": { - "description": "Success" + "200": { + "$ref": "#/responses/ODataCountResponse" }, "default": { "$ref": "#/responses/error" @@ -18620,15 +19392,17 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + "x-description": "Provides operations to count the resources in the collection." + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "get": { "tags": [ - "People.Person" + "People.Location" ], - "summary": "Delete ref of navigation property BestFriend for People", - "operationId": "People.DeleteRefBestFriend", + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "People.ListAddressInfo.AsEventLocation", "parameters": [ { "in": "path", @@ -18637,17 +19411,11 @@ "required": true, "type": "string", "x-ms-docs-key-type": "Person" - }, - { - "in": "header", - "name": "If-Match", - "description": "ETag", - "type": "string" } ], "responses": { - "204": { - "description": "Success" + "200": { + "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" }, "default": { "$ref": "#/responses/error" @@ -18659,18 +19427,14 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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-description": "Provides operations to manage the collection of Person entities." + "x-description": "Casts the previous resource to EventLocation." }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo": { + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { "get": { - "tags": [ - "People.Person.Location" - ], - "summary": "Get AddressInfo property value", - "operationId": "People.BestFriend.ListAddressInfo", + "summary": "Get the number of the resource", + "operationId": "People.AddressInfo.GetCount.AsEventLocation-ac7d", "parameters": [ { "in": "path", @@ -18680,35 +19444,50 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "$ref": "#/parameters/top" - }, - { - "$ref": "#/parameters/skip" - }, { "$ref": "#/parameters/search" }, { "$ref": "#/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/responses/ODataCountResponse" }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Provides operations to count the resources in the collection." + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend": { + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get BestFriend from People", + "description": "The best friend.", + "operationId": "People.GetBestFriend", + "produces": [ + "application/json" + ], + "parameters": [ { - "$ref": "#/parameters/count" - }, - { - "in": "query", - "name": "$orderby", - "description": "Order items by property values", - "type": "array", - "items": { - "enum": [ - "Address", - "Address desc", - "City", - "City desc" - ], - "type": "string" - } + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" }, { "in": "query", @@ -18717,8 +19496,20 @@ "type": "array", "items": { "enum": [ - "Address", - "City" + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" ], "type": "string" } @@ -18730,7 +19521,10 @@ "type": "array", "items": { "enum": [ - "*" + "*", + "Friends", + "BestFriend", + "Trips" ], "type": "string" } @@ -18738,7 +19532,10 @@ ], "responses": { "200": { - "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + "description": "Retrieved navigation property", + "schema": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + } }, "default": { "$ref": "#/responses/error" @@ -18750,14 +19547,16 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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.Location" + "People.Person" ], - "summary": "Update property AddressInfo value.", - "operationId": "People.BestFriend.UpdateAddressInfo", + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "People.UpdateBestFriend", "consumes": [ "application/json" ], @@ -18773,13 +19572,10 @@ { "in": "body", "name": "body", - "description": "New property values", + "description": "New navigation property values", "required": true, "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" - } + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" } } ], @@ -18797,15 +19593,24 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + "x-description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "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": { + "get": { "tags": [ - "People.Person.Location" + "People.Person" ], - "summary": "Sets a new value for the collection of Location.", - "operationId": "People.BestFriend.SetAddressInfo", - "consumes": [ + "summary": "Get ref of BestFriend from People", + "description": "The best friend.", + "operationId": "People.GetRefBestFriend", + "produces": [ "application/json" ], "parameters": [ @@ -18816,29 +19621,14 @@ "required": true, "type": "string", "x-ms-docs-key-type": "Person" - }, - { - "in": "header", - "name": "If-Match", - "description": "ETag", - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "New property values", - "required": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" - } - } } ], "responses": { - "204": { - "description": "Success" + "200": { + "description": "Retrieved navigation property link", + "schema": { + "type": "string" + } }, "default": { "$ref": "#/responses/error" @@ -18850,16 +19640,16 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { - "get": { + }, + "x-ms-docs-operation-type": "operation" + }, + "put": { "tags": [ - "People.Person.Location" + "People.Person" ], - "summary": "Get the number of the resource", - "operationId": "People.BestFriend.AddressInfo.GetCount-cb8a", + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "People.UpdateRefBestFriend", "parameters": [ { "in": "path", @@ -18870,15 +19660,12 @@ "x-ms-docs-key-type": "Person" }, { - "$ref": "#/parameters/search" - }, - { - "$ref": "#/parameters/filter" + "$ref": "#/parameters/refPutBody" } ], "responses": { - "200": { - "$ref": "#/responses/ODataCountResponse" + "204": { + "description": "Success" }, "default": { "$ref": "#/responses/error" @@ -18890,17 +19677,15 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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-description": "Provides operations to count the resources in the collection." - }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { - "get": { + "delete": { "tags": [ - "People.Person.Location" + "People.Person" ], - "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", - "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation", + "summary": "Delete ref of navigation property BestFriend for People", + "operationId": "People.DeleteRefBestFriend", "parameters": [ { "in": "path", @@ -18909,11 +19694,17 @@ "required": true, "type": "string", "x-ms-docs-key-type": "Person" + }, + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" } ], "responses": { - "200": { - "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + "204": { + "description": "Success" }, "default": { "$ref": "#/responses/error" @@ -18925,14 +19716,18 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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-description": "Casts the previous resource to EventLocation." + "x-description": "Provides operations to manage the collection of Person entities." }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo": { "get": { - "summary": "Get the number of the resource", - "operationId": "People.BestFriend.AddressInfo.GetCount.AsEventLocation-0343", + "tags": [ + "People.Person.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "People.BestFriend.ListAddressInfo", "parameters": [ { "in": "path", @@ -18942,16 +19737,65 @@ "type": "string", "x-ms-docs-key-type": "Person" }, + { + "$ref": "#/parameters/top" + }, + { + "$ref": "#/parameters/skip" + }, { "$ref": "#/parameters/search" }, { "$ref": "#/parameters/filter" + }, + { + "$ref": "#/parameters/count" + }, + { + "in": "query", + "name": "$orderby", + "description": "Order items by property values", + "type": "array", + "items": { + "enum": [ + "Address", + "Address desc", + "City", + "City desc" + ], + "type": "string" + } + }, + { + "in": "query", + "name": "$select", + "description": "Select properties to be returned", + "type": "array", + "items": { + "enum": [ + "Address", + "City" + ], + "type": "string" + } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } } ], "responses": { "200": { - "$ref": "#/responses/ODataCountResponse" + "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" }, "default": { "$ref": "#/responses/error" @@ -18965,16 +19809,13 @@ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." } }, - "x-description": "Provides operations to count the resources in the collection." - }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress": { - "get": { + "patch": { "tags": [ "People.Person.Location" ], - "summary": "Get HomeAddress property value", - "operationId": "People.BestFriend.GetHomeAddress", - "produces": [ + "summary": "Update property AddressInfo value.", + "operationId": "People.BestFriend.UpdateAddressInfo", + "consumes": [ "application/json" ], "parameters": [ @@ -18987,37 +19828,21 @@ "x-ms-docs-key-type": "Person" }, { - "in": "query", - "name": "$select", - "description": "Select properties to be returned", - "type": "array", - "items": { - "enum": [ - "Address", - "City" - ], - "type": "string" - } - }, - { - "in": "query", - "name": "$expand", - "description": "Expand related entities", - "type": "array", - "items": { - "enum": [ - "*" - ], - "type": "string" + "in": "body", + "name": "body", + "description": "New property values", + "required": true, + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } } } ], "responses": { - "200": { - "description": "Result entities", - "schema": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" - } + "204": { + "description": "Success" }, "default": { "$ref": "#/responses/error" @@ -19031,12 +19856,12 @@ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." } }, - "patch": { + "post": { "tags": [ "People.Person.Location" ], - "summary": "Update property HomeAddress value.", - "operationId": "People.BestFriend.UpdateHomeAddress", + "summary": "Sets a new value for the collection of Location.", + "operationId": "People.BestFriend.SetAddressInfo", "consumes": [ "application/json" ], @@ -19049,13 +19874,22 @@ "type": "string", "x-ms-docs-key-type": "Person" }, + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, { "in": "body", "name": "body", "description": "New property values", "required": true, "schema": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + "type": "array", + "items": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } } } ], @@ -19076,13 +19910,54 @@ } } }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/$count": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the number of the resource", + "operationId": "People.BestFriend.AddressInfo.GetCount-cb8a", + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/parameters/search" + }, + { + "$ref": "#/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Provides operations to count the resources in the collection." + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { "get": { "tags": [ "People.Person.Location" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", - "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation", + "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation", "parameters": [ { "in": "path", @@ -19111,13 +19986,51 @@ }, "x-description": "Casts the previous resource to EventLocation." }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "get": { + "summary": "Get the number of the resource", + "operationId": "People.BestFriend.AddressInfo.GetCount.AsEventLocation-0343", + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/parameters/search" + }, + { + "$ref": "#/parameters/filter" + } + ], + "responses": { + "200": { + "$ref": "#/responses/ODataCountResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Provides operations to count the resources in the collection." + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress": { "get": { "tags": [ - "People.Person" + "People.Person.Location" ], - "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", + "summary": "Get HomeAddress property value", + "operationId": "People.BestFriend.GetHomeAddress", "produces": [ "application/json" ], @@ -19137,20 +20050,8 @@ "type": "array", "items": { "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" + "Address", + "City" ], "type": "string" } @@ -19162,10 +20063,7 @@ "type": "array", "items": { "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" + "*" ], "type": "string" } @@ -19175,7 +20073,7 @@ "200": { "description": "Result entities", "schema": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" } }, "default": { @@ -19190,15 +20088,15 @@ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." } }, - "x-description": "Casts the previous resource to Manager." - }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends": { - "get": { + "patch": { "tags": [ - "People.Person" + "People.Person.Location" + ], + "summary": "Update property HomeAddress value.", + "operationId": "People.BestFriend.UpdateHomeAddress", + "consumes": [ + "application/json" ], - "summary": "Get Friends from People", - "operationId": "People.ListFriends", "parameters": [ { "in": "path", @@ -19209,8 +20107,167 @@ "x-ms-docs-key-type": "Person" }, { - "$ref": "#/parameters/top" - }, + "in": "body", + "name": "body", + "description": "New property values", + "required": true, + "schema": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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": { + "get": { + "tags": [ + "People.Person.Location" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation", + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Casts the previous resource to EventLocation." + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.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", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + }, + { + "in": "query", + "name": "$select", + "description": "Select properties to be returned", + "type": "array", + "items": { + "enum": [ + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Result entities", + "schema": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Casts the previous resource to Manager." + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends": { + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get Friends from People", + "operationId": "People.ListFriends", + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/parameters/top" + }, { "$ref": "#/parameters/skip" }, @@ -20309,13 +21366,16 @@ }, "x-description": "Provides operations to count the resources in the collection." }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers": { + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/HomeAddress": { "get": { "tags": [ - "People.Person" + "People.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "People.GetHomeAddress", + "produces": [ + "application/json" ], - "summary": "Get Peers from People", - "operationId": "People.ListPeers", "parameters": [ { "in": "path", @@ -20325,54 +21385,6 @@ "type": "string", "x-ms-docs-key-type": "Person" }, - { - "$ref": "#/parameters/top" - }, - { - "$ref": "#/parameters/skip" - }, - { - "$ref": "#/parameters/search" - }, - { - "$ref": "#/parameters/filter" - }, - { - "$ref": "#/parameters/count" - }, - { - "in": "query", - "name": "$orderby", - "description": "Order items by property values", - "type": "array", - "items": { - "enum": [ - "UserName", - "UserName desc", - "FirstName", - "FirstName desc", - "LastName", - "LastName desc", - "MiddleName", - "MiddleName desc", - "Gender", - "Gender desc", - "Age", - "Age desc", - "Emails", - "Emails desc", - "AddressInfo", - "AddressInfo desc", - "HomeAddress", - "HomeAddress desc", - "FavoriteFeature", - "FavoriteFeature desc", - "Features", - "Features desc" - ], - "type": "string" - } - }, { "in": "query", "name": "$select", @@ -20380,20 +21392,8 @@ "type": "array", "items": { "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" + "Address", + "City" ], "type": "string" } @@ -20405,10 +21405,7 @@ "type": "array", "items": { "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" + "*" ], "type": "string" } @@ -20416,7 +21413,10 @@ ], "responses": { "200": { - "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + "description": "Result entities", + "schema": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } }, "default": { "$ref": "#/responses/error" @@ -20428,17 +21428,218 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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-description": "Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity." - }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/$ref": { - "delete": { + "patch": { "tags": [ - "People.Person" + "People.Location" ], - "summary": "Delete ref of navigation property Peers for People", + "summary": "Update property HomeAddress value.", + "operationId": "People.UpdateHomeAddress", + "consumes": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + }, + { + "in": "body", + "name": "body", + "description": "New property values", + "required": true, + "schema": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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": { + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "People.GetHomeAddress.AsEventLocation", + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Casts the previous resource to EventLocation." + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers": { + "get": { + "tags": [ + "People.Person" + ], + "summary": "Get Peers from People", + "operationId": "People.ListPeers", + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/parameters/top" + }, + { + "$ref": "#/parameters/skip" + }, + { + "$ref": "#/parameters/search" + }, + { + "$ref": "#/parameters/filter" + }, + { + "$ref": "#/parameters/count" + }, + { + "in": "query", + "name": "$orderby", + "description": "Order items by property values", + "type": "array", + "items": { + "enum": [ + "UserName", + "UserName desc", + "FirstName", + "FirstName desc", + "LastName", + "LastName desc", + "MiddleName", + "MiddleName desc", + "Gender", + "Gender desc", + "Age", + "Age desc", + "Emails", + "Emails desc", + "AddressInfo", + "AddressInfo desc", + "HomeAddress", + "HomeAddress desc", + "FavoriteFeature", + "FavoriteFeature desc", + "Features", + "Features desc" + ], + "type": "string" + } + }, + { + "in": "query", + "name": "$select", + "description": "Select properties to be returned", + "type": "array", + "items": { + "enum": [ + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity." + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/$ref": { + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property Peers for People", "operationId": "People.DeleteRefPeers", "parameters": [ { @@ -22190,36 +23391,399 @@ } }, { - "in": "query", - "name": "$orderby", - "description": "Order items by property values", - "type": "array", - "items": { - "enum": [ - "TripId", - "TripId desc", - "ShareId", - "ShareId desc", - "Name", - "Name desc", - "Budget", - "Budget desc", - "Description", - "Description desc", - "Tags", - "Tags desc", - "StartsAt", - "StartsAt desc", - "EndsAt", - "EndsAt desc" - ], - "type": "string" - } + "in": "query", + "name": "$orderby", + "description": "Order items by property values", + "type": "array", + "items": { + "enum": [ + "TripId", + "TripId desc", + "ShareId", + "ShareId desc", + "Name", + "Name desc", + "Budget", + "Budget desc", + "Description", + "Description desc", + "Tags", + "Tags desc", + "StartsAt", + "StartsAt desc", + "EndsAt", + "EndsAt desc" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "$ref": "#/responses/GetFriendsTripsResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Provides operations to call the GetFriendsTrips method." + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": { + "post": { + "tags": [ + "People.Actions" + ], + "summary": "Invoke action GetPeersForTrip", + "operationId": "People.Person.GetPeersForTrip", + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/parameters/GetPeersForTripRequestBody" + } + ], + "responses": { + "200": { + "$ref": "#/responses/GetPeersForTripResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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" + }, + "x-description": "Provides operations to call the GetPeersForTrip method." + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.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", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "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" + }, + { + "in": "query", + "name": "$select", + "description": "Select properties to be returned", + "type": "array", + "items": { + "enum": [ + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Result entities", + "schema": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Casts the previous resource to Manager." + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo": { + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get AddressInfo property value", + "operationId": "People.ListAddressInfo", + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/parameters/top" + }, + { + "$ref": "#/parameters/skip" + }, + { + "$ref": "#/parameters/search" + }, + { + "$ref": "#/parameters/filter" + }, + { + "$ref": "#/parameters/count" + }, + { + "in": "query", + "name": "$orderby", + "description": "Order items by property values", + "type": "array", + "items": { + "enum": [ + "Address", + "Address desc", + "City", + "City desc" + ], + "type": "string" + } + }, + { + "in": "query", + "name": "$select", + "description": "Select properties to be returned", + "type": "array", + "items": { + "enum": [ + "Address", + "City" + ], + "type": "string" + } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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", + "consumes": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + }, + { + "in": "body", + "name": "body", + "description": "New property values", + "required": true, + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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", + "consumes": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + }, + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "body", + "name": "body", + "description": "New property values", + "required": true, + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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": { + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get the number of the resource", + "operationId": "People.AddressInfo.GetCount-f84e", + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "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" + }, + { + "$ref": "#/parameters/search" + }, + { + "$ref": "#/parameters/filter" } ], "responses": { "200": { - "$ref": "#/responses/GetFriendsTripsResponse" + "$ref": "#/responses/ODataCountResponse" }, "default": { "$ref": "#/responses/error" @@ -22231,18 +23795,17 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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-description": "Provides operations to call the GetFriendsTrips method." + "x-description": "Provides operations to count the resources in the collection." }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": { - "post": { + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "get": { "tags": [ - "People.Actions" + "People.Location" ], - "summary": "Invoke action GetPeersForTrip", - "operationId": "People.Person.GetPeersForTrip", + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "People.ListAddressInfo.AsEventLocation", "parameters": [ { "in": "path", @@ -22251,14 +23814,11 @@ "required": true, "type": "string", "x-ms-docs-key-type": "Person" - }, - { - "$ref": "#/parameters/GetPeersForTripRequestBody" } ], "responses": { "200": { - "$ref": "#/responses/GetPeersForTripResponse" + "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" }, "default": { "$ref": "#/responses/error" @@ -22270,21 +23830,14 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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" + } }, - "x-description": "Provides operations to call the GetPeersForTrip method." + "x-description": "Casts the previous resource to EventLocation." }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { "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", - "produces": [ - "application/json" - ], + "summary": "Get the number of the resource", + "operationId": "People.AddressInfo.GetCount.AsEventLocation-3722", "parameters": [ { "in": "path", @@ -22301,52 +23854,15 @@ "type": "string" }, { - "in": "query", - "name": "$select", - "description": "Select properties to be returned", - "type": "array", - "items": { - "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" - } + "$ref": "#/parameters/search" }, { - "in": "query", - "name": "$expand", - "description": "Expand related entities", - "type": "array", - "items": { - "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" - } + "$ref": "#/parameters/filter" } ], "responses": { "200": { - "description": "Result entities", - "schema": { - "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" - } + "$ref": "#/responses/ODataCountResponse" }, "default": { "$ref": "#/responses/error" @@ -22360,7 +23876,7 @@ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." } }, - "x-description": "Casts the previous resource to Manager." + "x-description": "Provides operations to count the resources in the collection." }, "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend": { "get": { @@ -25143,6 +26659,150 @@ }, "x-description": "Provides operations to count the resources in the collection." }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/HomeAddress": { + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get HomeAddress property value", + "operationId": "People.GetHomeAddress", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + }, + { + "in": "query", + "name": "$select", + "description": "Select properties to be returned", + "type": "array", + "items": { + "enum": [ + "Address", + "City" + ], + "type": "string" + } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Result entities", + "schema": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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", + "consumes": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + }, + { + "in": "body", + "name": "body", + "description": "New property values", + "required": true, + "schema": { + "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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": { + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "People.GetHomeAddress.AsEventLocation", + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-description": "Casts the previous resource to EventLocation." + }, "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": { "post": { "tags": [ @@ -28714,4 +30374,4 @@ "x-ms-docs-toc-type": "container" } ] -} \ No newline at end of file +} 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 60a5ae2f7..34cec7417 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 @@ -2603,6 +2603,173 @@ paths: 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-description: Casts the previous resource to Employee. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo: + get: + tags: + - Me.Location + summary: Get AddressInfo property value + operationId: Me.ListAddressInfo + parameters: + - $ref: '#/parameters/top' + - $ref: '#/parameters/skip' + - $ref: '#/parameters/search' + - $ref: '#/parameters/filter' + - $ref: '#/parameters/count' + - in: query + name: $orderby + description: Order items by property values + type: array + items: + enum: + - Address + - Address desc + - City + - City desc + type: string + - in: query + name: $select + description: Select properties to be returned + type: array + items: + enum: + - Address + - City + type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + type: string + responses: + '200': + $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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 + consumes: + - application/json + parameters: + - in: body + name: body + description: New property values + required: true + schema: + type: array + items: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + responses: + '204': + description: Success + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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 + consumes: + - application/json + parameters: + - in: header + name: If-Match + description: ETag + type: string + - in: body + name: body + description: New property values + required: true + schema: + type: array + items: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + responses: + '204': + description: Success + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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: + get: + tags: + - Me.Location + summary: Get the number of the resource + operationId: Me.AddressInfo.GetCount-8488 + parameters: + - $ref: '#/parameters/search' + - $ref: '#/parameters/filter' + responses: + '200': + $ref: '#/responses/ODataCountResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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-description: Provides operations to count the resources in the collection. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + get: + tags: + - Me.Location + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: Me.ListAddressInfo.AsEventLocation + responses: + '200': + $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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-description: Casts the previous resource to EventLocation. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count: + get: + summary: Get the number of the resource + operationId: Me.AddressInfo.GetCount.AsEventLocation-9375 + parameters: + - $ref: '#/parameters/search' + - $ref: '#/parameters/filter' + responses: + '200': + $ref: '#/responses/ODataCountResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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-description: Provides operations to count the resources in the collection. /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend: get: tags: @@ -3749,6 +3916,88 @@ paths: 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-description: Provides operations to count the resources in the collection. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/HomeAddress: + get: + tags: + - Me.Location + summary: Get HomeAddress property value + operationId: Me.GetHomeAddress + produces: + - application/json + parameters: + - in: query + name: $select + description: Select properties to be returned + type: array + items: + enum: + - Address + - City + type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + type: string + responses: + '200': + description: Result entities + schema: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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 + consumes: + - application/json + parameters: + - in: body + name: body + description: New property values + required: true + schema: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + responses: + '204': + description: Success + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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: + get: + tags: + - Me.Location + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: Me.GetHomeAddress.AsEventLocation + responses: + '200': + $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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-description: Casts the previous resource to EventLocation. /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers: get: tags: @@ -5025,15 +5274,190 @@ paths: 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-description: Casts the previous resource to Manager. - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend: + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo: get: tags: - - Me.Person - summary: Get BestFriend from Me - description: The best friend. - operationId: Me.GetBestFriend - produces: - - application/json + - Me.Location + summary: Get AddressInfo property value + operationId: Me.ListAddressInfo + parameters: + - $ref: '#/parameters/top' + - $ref: '#/parameters/skip' + - $ref: '#/parameters/search' + - $ref: '#/parameters/filter' + - $ref: '#/parameters/count' + - in: query + name: $orderby + description: Order items by property values + type: array + items: + enum: + - Address + - Address desc + - City + - City desc + type: string + - in: query + name: $select + description: Select properties to be returned + type: array + items: + enum: + - Address + - City + type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + type: string + responses: + '200': + $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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 + consumes: + - application/json + parameters: + - in: body + name: body + description: New property values + required: true + schema: + type: array + items: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + responses: + '204': + description: Success + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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 + consumes: + - application/json + parameters: + - in: header + name: If-Match + description: ETag + type: string + - in: body + name: body + description: New property values + required: true + schema: + type: array + items: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + responses: + '204': + description: Success + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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: + get: + tags: + - Me.Location + summary: Get the number of the resource + operationId: Me.AddressInfo.GetCount-75da + parameters: + - in: header + name: ConsistencyLevel + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + type: string + - $ref: '#/parameters/search' + - $ref: '#/parameters/filter' + responses: + '200': + $ref: '#/responses/ODataCountResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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-description: Provides operations to count the resources in the collection. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + get: + tags: + - Me.Location + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: Me.ListAddressInfo.AsEventLocation + responses: + '200': + $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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-description: Casts the previous resource to EventLocation. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count: + get: + summary: Get the number of the resource + operationId: Me.AddressInfo.GetCount.AsEventLocation-f67e + parameters: + - in: header + name: ConsistencyLevel + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + type: string + - $ref: '#/parameters/search' + - $ref: '#/parameters/filter' + responses: + '200': + $ref: '#/responses/ODataCountResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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-description: Provides operations to count the resources in the collection. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend: + get: + tags: + - Me.Person + summary: Get BestFriend from Me + description: The best friend. + operationId: Me.GetBestFriend + produces: + - application/json parameters: - in: query name: $select @@ -6706,6 +7130,88 @@ paths: 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-description: Provides operations to count the resources in the collection. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/HomeAddress: + get: + tags: + - Me.Location + summary: Get HomeAddress property value + operationId: Me.GetHomeAddress + produces: + - application/json + parameters: + - in: query + name: $select + description: Select properties to be returned + type: array + items: + enum: + - Address + - City + type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + type: string + responses: + '200': + description: Result entities + schema: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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 + consumes: + - application/json + parameters: + - in: body + name: body + description: New property values + required: true + schema: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + responses: + '204': + description: Success + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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: + get: + tags: + - Me.Location + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: Me.GetHomeAddress.AsEventLocation + responses: + '200': + $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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-description: Casts the previous resource to EventLocation. /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire: post: tags: @@ -12907,16 +13413,220 @@ paths: 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-description: Casts the previous resource to Employee. - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend': + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo': get: tags: - - People.Person - summary: Get BestFriend from People - description: The best friend. - operationId: People.GetBestFriend - produces: - - application/json - parameters: + - People.Location + summary: Get AddressInfo property value + operationId: People.ListAddressInfo + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - $ref: '#/parameters/top' + - $ref: '#/parameters/skip' + - $ref: '#/parameters/search' + - $ref: '#/parameters/filter' + - $ref: '#/parameters/count' + - in: query + name: $orderby + description: Order items by property values + type: array + items: + enum: + - Address + - Address desc + - City + - City desc + type: string + - in: query + name: $select + description: Select properties to be returned + type: array + items: + enum: + - Address + - City + type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + type: string + responses: + '200': + $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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 + consumes: + - application/json + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - in: body + name: body + description: New property values + required: true + schema: + type: array + items: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + responses: + '204': + description: Success + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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 + consumes: + - application/json + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - in: header + name: If-Match + description: ETag + type: string + - in: body + name: body + description: New property values + required: true + schema: + type: array + items: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + responses: + '204': + description: Success + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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': + get: + tags: + - People.Location + summary: Get the number of the resource + operationId: People.AddressInfo.GetCount-3d43 + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - $ref: '#/parameters/search' + - $ref: '#/parameters/filter' + responses: + '200': + $ref: '#/responses/ODataCountResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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-description: Provides operations to count the resources in the collection. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + get: + tags: + - People.Location + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: People.ListAddressInfo.AsEventLocation + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + responses: + '200': + $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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-description: Casts the previous resource to EventLocation. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': + get: + summary: Get the number of the resource + operationId: People.AddressInfo.GetCount.AsEventLocation-ac7d + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - $ref: '#/parameters/search' + - $ref: '#/parameters/filter' + responses: + '200': + $ref: '#/responses/ODataCountResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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-description: Provides operations to count the resources in the collection. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend': + get: + tags: + - People.Person + summary: Get BestFriend from People + description: The best friend. + operationId: People.GetBestFriend + produces: + - application/json + parameters: - in: path name: UserName description: The unique identifier of Person @@ -14248,12 +14958,14 @@ paths: 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-description: Provides operations to count the resources in the collection. - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers': + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/HomeAddress': get: tags: - - People.Person - summary: Get Peers from People - operationId: People.ListPeers + - People.Location + summary: Get HomeAddress property value + operationId: People.GetHomeAddress + produces: + - application/json parameters: - in: path name: UserName @@ -14261,50 +14973,149 @@ paths: required: true type: string x-ms-docs-key-type: Person - - $ref: '#/parameters/top' - - $ref: '#/parameters/skip' - - $ref: '#/parameters/search' - - $ref: '#/parameters/filter' - - $ref: '#/parameters/count' - in: query - name: $orderby - description: Order items by property values + name: $select + description: Select properties to be returned type: array items: enum: - - UserName - - UserName desc - - FirstName - - FirstName desc - - LastName - - LastName desc - - MiddleName - - MiddleName desc - - Gender - - Gender desc - - Age - - Age desc - - Emails - - Emails desc - - AddressInfo - - AddressInfo desc - - HomeAddress - - HomeAddress desc - - FavoriteFeature - - FavoriteFeature desc - - Features - - Features desc + - Address + - City type: string - in: query - name: $select - description: Select properties to be returned + name: $expand + description: Expand related entities type: array items: enum: - - UserName - - FirstName - - LastName - - MiddleName + - '*' + type: string + responses: + '200': + description: Result entities + schema: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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 + consumes: + - application/json + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - in: body + name: body + description: New property values + required: true + schema: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + responses: + '204': + description: Success + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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': + get: + tags: + - People.Location + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: People.GetHomeAddress.AsEventLocation + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + responses: + '200': + $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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-description: Casts the previous resource to EventLocation. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers': + get: + tags: + - People.Person + summary: Get Peers from People + operationId: People.ListPeers + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - $ref: '#/parameters/top' + - $ref: '#/parameters/skip' + - $ref: '#/parameters/search' + - $ref: '#/parameters/filter' + - $ref: '#/parameters/count' + - in: query + name: $orderby + description: Order items by property values + type: array + items: + enum: + - UserName + - UserName desc + - FirstName + - FirstName desc + - LastName + - LastName desc + - MiddleName + - MiddleName desc + - Gender + - Gender desc + - Age + - Age desc + - Emails + - Emails desc + - AddressInfo + - AddressInfo desc + - HomeAddress + - HomeAddress desc + - FavoriteFeature + - FavoriteFeature desc + - Features + - Features desc + type: string + - in: query + name: $select + description: Select properties to be returned + type: array + items: + enum: + - UserName + - FirstName + - LastName + - MiddleName - Gender - Age - Emails @@ -15515,13 +16326,297 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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-description: Provides operations to count the resources in the collection. - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()': - get: + x-description: Provides operations to count the resources in the collection. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()': + get: + tags: + - People.Functions + summary: Invoke function GetFavoriteAirline + operationId: People.Person.GetFavoriteAirline + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + responses: + '200': + $ref: '#/responses/GetFavoriteAirlineResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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-description: Provides operations to call the GetFavoriteAirline method. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')': + get: + tags: + - People.Functions + summary: Invoke function GetFriendsTrips + operationId: People.Person.GetFriendsTrips + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - in: path + name: userName + description: 'Usage: userName=''{userName}''' + required: true + type: string + - $ref: '#/parameters/top' + - $ref: '#/parameters/skip' + - $ref: '#/parameters/search' + - $ref: '#/parameters/filter' + - $ref: '#/parameters/count' + - in: query + name: $select + description: Select properties to be returned + type: array + items: + enum: + - TripId + - ShareId + - Name + - Budget + - Description + - Tags + - StartsAt + - EndsAt + - PlanItems + type: string + - in: query + name: $orderby + description: Order items by property values + type: array + items: + enum: + - TripId + - TripId desc + - ShareId + - ShareId desc + - Name + - Name desc + - Budget + - Budget desc + - Description + - Description desc + - Tags + - Tags desc + - StartsAt + - StartsAt desc + - EndsAt + - EndsAt desc + type: string + responses: + '200': + $ref: '#/responses/GetFriendsTripsResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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-description: Provides operations to call the GetFriendsTrips method. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip': + post: + tags: + - People.Actions + summary: Invoke action GetPeersForTrip + operationId: People.Person.GetPeersForTrip + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - $ref: '#/parameters/GetPeersForTripRequestBody' + responses: + '200': + $ref: '#/responses/GetPeersForTripResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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 + x-description: Provides operations to call the GetPeersForTrip method. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.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 + produces: + - application/json + parameters: + - in: path + name: UserName + description: The unique identifier of Person + 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 + - in: query + name: $select + description: Select properties to be returned + type: array + items: + enum: + - UserName + - FirstName + - LastName + - MiddleName + - Gender + - Age + - Emails + - AddressInfo + - HomeAddress + - FavoriteFeature + - Features + - Friends + - BestFriend + - Trips + type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string + responses: + '200': + description: Result entities + schema: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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-description: Casts the previous resource to Manager. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo': + get: + tags: + - People.Location + summary: Get AddressInfo property value + operationId: People.ListAddressInfo + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - $ref: '#/parameters/top' + - $ref: '#/parameters/skip' + - $ref: '#/parameters/search' + - $ref: '#/parameters/filter' + - $ref: '#/parameters/count' + - in: query + name: $orderby + description: Order items by property values + type: array + items: + enum: + - Address + - Address desc + - City + - City desc + type: string + - in: query + name: $select + description: Select properties to be returned + type: array + items: + enum: + - Address + - City + type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + type: string + responses: + '200': + $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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 + consumes: + - application/json + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - in: body + name: body + description: New property values + required: true + schema: + type: array + items: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + responses: + '204': + description: Success + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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.Functions - summary: Invoke function GetFavoriteAirline - operationId: People.Person.GetFavoriteAirline + - People.Location + summary: Sets a new value for the collection of Location. + operationId: People.SetAddressInfo + consumes: + - application/json parameters: - in: path name: UserName @@ -15529,9 +16624,21 @@ paths: required: true type: string x-ms-docs-key-type: Person + - in: header + name: If-Match + description: ETag + type: string + - in: body + name: body + description: New property values + required: true + schema: + type: array + items: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' responses: - '200': - $ref: '#/responses/GetFavoriteAirlineResponse' + '204': + description: Success default: $ref: '#/responses/error' deprecated: true @@ -15540,14 +16647,12 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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-description: Provides operations to call the GetFavoriteAirline method. - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')': + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/$count': get: tags: - - People.Functions - summary: Invoke function GetFriendsTrips - operationId: People.Person.GetFriendsTrips + - People.Location + summary: Get the number of the resource + operationId: People.AddressInfo.GetCount-f84e parameters: - in: path name: UserName @@ -15555,58 +16660,15 @@ paths: required: true type: string x-ms-docs-key-type: Person - - in: path - name: userName - description: 'Usage: userName=''{userName}''' - required: true + - in: header + name: ConsistencyLevel + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' type: string - - $ref: '#/parameters/top' - - $ref: '#/parameters/skip' - $ref: '#/parameters/search' - $ref: '#/parameters/filter' - - $ref: '#/parameters/count' - - in: query - name: $select - description: Select properties to be returned - type: array - items: - enum: - - TripId - - ShareId - - Name - - Budget - - Description - - Tags - - StartsAt - - EndsAt - - PlanItems - type: string - - in: query - name: $orderby - description: Order items by property values - type: array - items: - enum: - - TripId - - TripId desc - - ShareId - - ShareId desc - - Name - - Name desc - - Budget - - Budget desc - - Description - - Description desc - - Tags - - Tags desc - - StartsAt - - StartsAt desc - - EndsAt - - EndsAt desc - type: string responses: '200': - $ref: '#/responses/GetFriendsTripsResponse' + $ref: '#/responses/ODataCountResponse' default: $ref: '#/responses/error' deprecated: true @@ -15615,14 +16677,13 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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-description: Provides operations to call the GetFriendsTrips method. - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip': - post: + x-description: Provides operations to count the resources in the collection. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation': + get: tags: - - People.Actions - summary: Invoke action GetPeersForTrip - operationId: People.Person.GetPeersForTrip + - People.Location + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: People.ListAddressInfo.AsEventLocation parameters: - in: path name: UserName @@ -15630,10 +16691,9 @@ paths: required: true type: string x-ms-docs-key-type: Person - - $ref: '#/parameters/GetPeersForTripRequestBody' responses: '200': - $ref: '#/responses/GetPeersForTripResponse' + $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' default: $ref: '#/responses/error' deprecated: true @@ -15642,16 +16702,11 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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 - x-description: Provides operations to call the GetPeersForTrip method. - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager': + x-description: Casts the previous resource to EventLocation. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count': 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 - produces: - - application/json + summary: Get the number of the resource + operationId: People.AddressInfo.GetCount.AsEventLocation-3722 parameters: - in: path name: UserName @@ -15663,43 +16718,11 @@ paths: name: ConsistencyLevel description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' type: string - - in: query - name: $select - description: Select properties to be returned - type: array - items: - enum: - - UserName - - FirstName - - LastName - - MiddleName - - Gender - - Age - - Emails - - AddressInfo - - HomeAddress - - FavoriteFeature - - Features - - Friends - - BestFriend - - Trips - type: string - - in: query - name: $expand - description: Expand related entities - type: array - items: - enum: - - '*' - - Friends - - BestFriend - - Trips - type: string + - $ref: '#/parameters/search' + - $ref: '#/parameters/filter' responses: '200': - description: Result entities - schema: - $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' + $ref: '#/responses/ODataCountResponse' default: $ref: '#/responses/error' deprecated: true @@ -15708,7 +16731,7 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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-description: Casts the previous resource to Manager. + x-description: Provides operations to count the resources in the collection. '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend': get: tags: @@ -17669,6 +18692,107 @@ paths: 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-description: Provides operations to count the resources in the collection. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/HomeAddress': + get: + tags: + - People.Location + summary: Get HomeAddress property value + operationId: People.GetHomeAddress + produces: + - application/json + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - in: query + name: $select + description: Select properties to be returned + type: array + items: + enum: + - Address + - City + type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + type: string + responses: + '200': + description: Result entities + schema: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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 + consumes: + - application/json + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - in: body + name: body + description: New property values + required: true + schema: + $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + responses: + '204': + description: Success + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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': + get: + tags: + - People.Location + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: People.GetHomeAddress.AsEventLocation + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + responses: + '200': + $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + default: + $ref: '#/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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-description: Casts the previous resource to EventLocation. '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire': post: tags: @@ -20140,4 +21264,4 @@ tags: - name: People.Actions x-ms-docs-toc-type: container - name: ResetDataSource - x-ms-docs-toc-type: container \ No newline at end of file + x-ms-docs-toc-type: container 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 b20b1dcec..bb3d4266f 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json @@ -4165,232 +4165,13 @@ } } }, - "/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.GetBestFriend", - "parameters": [ - { - "name": "$select", - "in": "query", - "description": "Select properties to be returned", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" - } - } - }, - { - "name": "$expand", - "in": "query", - "description": "Expand related entities", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" - ], - "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/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.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/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo": { + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo": { "get": { "tags": [ - "Me.Person.Location" + "Me.Location" ], "summary": "Get AddressInfo property value", - "operationId": "Me.BestFriend.ListAddressInfo", + "operationId": "Me.ListAddressInfo", "parameters": [ { "$ref": "#/components/parameters/top" @@ -4481,10 +4262,10 @@ }, "patch": { "tags": [ - "Me.Person.Location" + "Me.Location" ], "summary": "Update property AddressInfo value.", - "operationId": "Me.BestFriend.UpdateAddressInfo", + "operationId": "Me.UpdateAddressInfo", "requestBody": { "description": "New property values", "content": { @@ -4517,10 +4298,10 @@ }, "post": { "tags": [ - "Me.Person.Location" + "Me.Location" ], "summary": "Sets a new value for the collection of Location.", - "operationId": "Me.BestFriend.SetAddressInfo", + "operationId": "Me.SetAddressInfo", "parameters": [ { "name": "If-Match", @@ -4562,14 +4343,14 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/$count": { + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/$count": { "description": "Provides operations to count the resources in the collection.", "get": { "tags": [ - "Me.Person.Location" + "Me.Location" ], "summary": "Get the number of the resource", - "operationId": "Me.BestFriend.AddressInfo.GetCount-81de", + "operationId": "Me.AddressInfo.GetCount-8488", "parameters": [ { "$ref": "#/components/parameters/search" @@ -4595,14 +4376,14 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "/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.Person.Location" + "Me.Location" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", - "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation", + "operationId": "Me.ListAddressInfo.AsEventLocation", "responses": { "200": { "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" @@ -4620,11 +4401,11 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "/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.BestFriend.AddressInfo.GetCount.AsEventLocation-842c", + "operationId": "Me.AddressInfo.GetCount.AsEventLocation-9375", "parameters": [ { "$ref": "#/components/parameters/search" @@ -4650,13 +4431,15 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress": { + "/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.Location" + "Me.Person" ], - "summary": "Get HomeAddress property value", - "operationId": "Me.BestFriend.GetHomeAddress", + "summary": "Get BestFriend from Me", + "description": "The best friend.", + "operationId": "Me.GetBestFriend", "parameters": [ { "name": "$select", @@ -4669,9 +4452,21 @@ "type": "array", "items": { "enum": [ - "Address", - "City" - ], + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" + ], "type": "string" } } @@ -4687,7 +4482,10 @@ "type": "array", "items": { "enum": [ - "*" + "*", + "Friends", + "BestFriend", + "Trips" ], "type": "string" } @@ -4696,11 +4494,11 @@ ], "responses": { "200": { - "description": "Result entities", + "description": "Retrieved navigation property", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" } } } @@ -4715,20 +4513,22 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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.Location" + "Me.Person" ], - "summary": "Update property HomeAddress value.", - "operationId": "Me.BestFriend.UpdateHomeAddress", + "summary": "Update the best friend.", + "description": "Update an instance of a best friend.", + "operationId": "Me.UpdateBestFriend", "requestBody": { - "description": "New property values", + "description": "New navigation property values", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" } } }, @@ -4748,20 +4548,33 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { - "description": "Casts the previous resource to EventLocation.", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/$ref": { + "description": "Provides operations to manage the collection of Person entities.", "get": { "tags": [ - "Me.Person.Location" + "Me.Person" ], - "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", - "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation", + "summary": "Get ref of BestFriend from Me", + "description": "The best friend.", + "operationId": "Me.GetRefBestFriend", "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + "description": "Retrieved navigation property link", + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + } }, "default": { "$ref": "#/components/responses/error" @@ -4773,79 +4586,55 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + }, + "x-ms-docs-operation-type": "operation" + }, + "put": { "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", - "parameters": [ - { - "name": "$select", - "in": "query", - "description": "Select properties to be returned", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" - } - } + "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": "$expand", - "in": "query", - "description": "Expand related entities", - "style": "form", - "explode": false, + "name": "If-Match", + "in": "header", + "description": "ETag", "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" - } + "type": "string" } } ], "responses": { - "200": { - "description": "Result entities", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" - } - } - } + "204": { + "description": "Success" }, "default": { "$ref": "#/components/responses/error" @@ -4857,17 +4646,17 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { - "description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo": { "get": { "tags": [ - "Me.Person" + "Me.Person.Location" ], - "summary": "Get Friends from Me", - "operationId": "Me.ListFriends", + "summary": "Get AddressInfo property value", + "operationId": "Me.BestFriend.ListAddressInfo", "parameters": [ { "$ref": "#/components/parameters/top" @@ -4895,28 +4684,10 @@ "type": "array", "items": { "enum": [ - "UserName", - "UserName desc", - "FirstName", - "FirstName desc", - "LastName", - "LastName desc", - "MiddleName", - "MiddleName desc", - "Gender", - "Gender desc", - "Age", - "Age desc", - "Emails", - "Emails desc", - "AddressInfo", - "AddressInfo desc", - "HomeAddress", - "HomeAddress desc", - "FavoriteFeature", - "FavoriteFeature desc", - "Features", - "Features desc" + "Address", + "Address desc", + "City", + "City desc" ], "type": "string" } @@ -4933,20 +4704,8 @@ "type": "array", "items": { "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" + "Address", + "City" ], "type": "string" } @@ -4963,10 +4722,7 @@ "type": "array", "items": { "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" + "*" ], "type": "string" } @@ -4975,7 +4731,7 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -4987,191 +4743,14 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + "patch": { "tags": [ - "Me.Person" - ], - "summary": "Delete ref of navigation property Friends for Me", - "operationId": "Me.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": "Delete Uri", - "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.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", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "Address", - "Address desc", - "City", - "City desc" - ], - "type": "string" - } - } - }, - { - "name": "$select", - "in": "query", - "description": "Select properties to be returned", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "Address", - "City" - ], - "type": "string" - } - } - }, - { - "name": "$expand", - "in": "query", - "description": "Expand related entities", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "*" - ], - "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" + "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" - } - ], + "operationId": "Me.BestFriend.UpdateAddressInfo", "requestBody": { "description": "New property values", "content": { @@ -5207,18 +4786,8 @@ "Me.Person.Location" ], "summary": "Sets a new value for the collection of Location.", - "operationId": "Me.Friends.SetAddressInfo", + "operationId": "Me.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", @@ -5259,25 +4828,15 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/$count": { + "/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.Friends.AddressInfo.GetCount-660e", + "operationId": "Me.BestFriend.AddressInfo.GetCount-81de", "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" }, @@ -5302,26 +4861,14 @@ } } }, - "/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/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { "description": "Casts the previous resource to EventLocation.", "get": { "tags": [ "Me.Person.Location" ], "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", - "operationId": "Me.Friends.ListAddressInfo.AsEventLocation", - "parameters": [ - { - "name": "UserName", - "in": "path", - "description": "The unique identifier of Person", - "required": true, - "schema": { - "type": "string" - }, - "x-ms-docs-key-type": "Person" - } - ], + "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation", "responses": { "200": { "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" @@ -5339,22 +4886,12 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "/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.Friends.AddressInfo.GetCount.AsEventLocation-feb8", + "operationId": "Me.BestFriend.AddressInfo.GetCount.AsEventLocation-842c", "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" }, @@ -5379,24 +4916,14 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress": { + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress": { "get": { "tags": [ "Me.Person.Location" ], "summary": "Get HomeAddress property value", - "operationId": "Me.Friends.GetHomeAddress", + "operationId": "Me.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", @@ -5461,19 +4988,7 @@ "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" - } - ], + "operationId": "Me.BestFriend.UpdateHomeAddress", "requestBody": { "description": "New property values", "content": { @@ -5502,26 +5017,14 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "/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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", - "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" - } - ], + "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation", "responses": { "200": { "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" @@ -5539,25 +5042,15 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "/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.GetFriends.AsManager", + "operationId": "Me.GetBestFriend.AsManager", "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", @@ -5633,47 +5126,14 @@ } } }, - "/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.Friends.GetCount-0cb7", - "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/Friends/$ref": { - "description": "Provides operations to manage the collection of Person entities.", + "/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 ref of Friends from Me", - "operationId": "Me.ListRefFriends", + "summary": "Get Friends from Me", + "operationId": "Me.ListFriends", "parameters": [ { "$ref": "#/components/parameters/top" @@ -5727,11 +5187,61 @@ "type": "string" } } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } } ], "responses": { "200": { - "$ref": "#/components/responses/StringCollectionResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -5746,15 +5256,47 @@ }, "x-ms-docs-operation-type": "operation" }, - "post": { + "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": "Create new navigation property ref to Friends for Me", - "operationId": "Me.CreateRefFriends", - "requestBody": { - "$ref": "#/components/requestBodies/refPostBody" - }, + "summary": "Delete ref of navigation property Friends for Me", + "operationId": "Me.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": "Delete Uri", + "schema": { + "type": "string" + } + } + ], "responses": { "204": { "description": "Success" @@ -5773,15 +5315,24 @@ "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.", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo": { "get": { "tags": [ - "Me.Person" + "Me.Person.Location" ], - "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", + "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" }, @@ -5808,28 +5359,10 @@ "type": "array", "items": { "enum": [ - "UserName", - "UserName desc", - "FirstName", - "FirstName desc", - "LastName", - "LastName desc", - "MiddleName", - "MiddleName desc", - "Gender", - "Gender desc", - "Age", - "Age desc", - "Emails", - "Emails desc", - "AddressInfo", - "AddressInfo desc", - "HomeAddress", - "HomeAddress desc", - "FavoriteFeature", - "FavoriteFeature desc", - "Features", - "Features desc" + "Address", + "Address desc", + "City", + "City desc" ], "type": "string" } @@ -5846,20 +5379,8 @@ "type": "array", "items": { "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" + "Address", + "City" ], "type": "string" } @@ -5876,10 +5397,7 @@ "type": "array", "items": { "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" + "*" ], "type": "string" } @@ -5888,7 +5406,7 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -5901,157 +5419,42 @@ "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": { + }, + "patch": { "tags": [ - "Me.Person" + "Me.Person.Location" ], - "summary": "Get the number of the resource", - "operationId": "Me.Friends.GetCount.AsManager-85ff", + "summary": "Update property AddressInfo value.", + "operationId": "Me.Friends.UpdateAddressInfo", "parameters": [ { - "$ref": "#/components/parameters/search" - }, - { - "$ref": "#/components/parameters/filter" + "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/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": { - "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.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", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "UserName", - "UserName desc", - "FirstName", - "FirstName desc", - "LastName", - "LastName desc", - "MiddleName", - "MiddleName desc", - "Gender", - "Gender desc", - "Age", - "Age desc", - "Emails", - "Emails desc", - "AddressInfo", - "AddressInfo desc", - "HomeAddress", - "HomeAddress desc", - "FavoriteFeature", - "FavoriteFeature desc", - "Features", - "Features desc" - ], - "type": "string" - } - } - }, - { - "name": "$select", - "in": "query", - "description": "Select properties to be returned", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } } } }, - { - "name": "$expand", - "in": "query", - "description": "Expand related entities", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" - } - } - } - ], + "required": true + }, "responses": { - "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + "204": { + "description": "Success" }, "default": { "$ref": "#/components/responses/error" @@ -6063,18 +5466,14 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + } + }, + "post": { "tags": [ - "Me.Person" + "Me.Person.Location" ], - "summary": "Delete ref of navigation property Peers for Me", - "operationId": "Me.DeleteRefPeers", + "summary": "Sets a new value for the collection of Location.", + "operationId": "Me.Friends.SetAddressInfo", "parameters": [ { "name": "UserName", @@ -6093,16 +5492,22 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "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" @@ -6117,17 +5522,17 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + "/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 AddressInfo property value", - "operationId": "Me.Peers.ListAddressInfo", + "summary": "Get the number of the resource", + "operationId": "Me.Friends.AddressInfo.GetCount-660e", "parameters": [ { "name": "UserName", @@ -6139,80 +5544,16 @@ }, "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", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "Address", - "Address desc", - "City", - "City desc" - ], - "type": "string" - } - } - }, - { - "name": "$select", - "in": "query", - "description": "Select properties to be returned", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "Address", - "City" - ], - "type": "string" - } - } - }, - { - "name": "$expand", - "in": "query", - "description": "Expand related entities", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "*" - ], - "type": "string" - } - } } ], "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + "$ref": "#/components/responses/ODataCountResponse" }, "default": { "$ref": "#/components/responses/error" @@ -6225,163 +5566,16 @@ "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.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": "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.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.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": { + } + }, + "/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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", - "operationId": "Me.Peers.ListAddressInfo.AsEventLocation", + "operationId": "Me.Friends.ListAddressInfo.AsEventLocation", "parameters": [ { "name": "UserName", @@ -6411,11 +5605,11 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { + "/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.Peers.AddressInfo.GetCount.AsEventLocation-be1d", + "operationId": "Me.Friends.AddressInfo.GetCount.AsEventLocation-feb8", "parameters": [ { "name": "UserName", @@ -6451,13 +5645,13 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress": { + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress": { "get": { "tags": [ "Me.Person.Location" ], "summary": "Get HomeAddress property value", - "operationId": "Me.Peers.GetHomeAddress", + "operationId": "Me.Friends.GetHomeAddress", "parameters": [ { "name": "UserName", @@ -6533,7 +5727,7 @@ "Me.Person.Location" ], "summary": "Update property HomeAddress value.", - "operationId": "Me.Peers.UpdateHomeAddress", + "operationId": "Me.Friends.UpdateHomeAddress", "parameters": [ { "name": "UserName", @@ -6574,14 +5768,14 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "/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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", - "operationId": "Me.Peers.GetHomeAddress.AsEventLocation", + "operationId": "Me.Friends.GetHomeAddress.AsEventLocation", "parameters": [ { "name": "UserName", @@ -6611,25 +5805,86 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$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": { "tags": [ "Me.Person" ], - "summary": "Get the number of the resource", - "operationId": "Me.Peers.GetCount-9fc2", + "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": [ { - "$ref": "#/components/parameters/search" + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" }, { - "$ref": "#/components/parameters/filter" + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } } ], "responses": { "200": { - "$ref": "#/components/responses/ODataCountResponse" + "description": "Result entities", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } }, "default": { "$ref": "#/components/responses/error" @@ -6644,29 +5899,62 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref": { - "description": "Provides operations to manage the collection of Person entities.", + "/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 ref of Peers from Me", - "operationId": "Me.ListRefPeers", + "summary": "Get the number of the resource", + "operationId": "Me.Friends.GetCount-0cb7", "parameters": [ - { - "$ref": "#/components/parameters/top" - }, - { - "$ref": "#/components/parameters/skip" - }, { "$ref": "#/components/parameters/search" }, { "$ref": "#/components/parameters/filter" - }, - { - "$ref": "#/components/parameters/count" + } + ], + "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", + "operationId": "Me.ListRefFriends", + "parameters": [ + { + "$ref": "#/components/parameters/top" + }, + { + "$ref": "#/components/parameters/skip" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" }, { "name": "$orderby", @@ -6728,8 +6016,8 @@ "tags": [ "Me.Person" ], - "summary": "Create new navigation property ref to Peers for Me", - "operationId": "Me.CreateRefPeers", + "summary": "Create new navigation property ref to Friends for Me", + "operationId": "Me.CreateRefFriends", "requestBody": { "$ref": "#/components/requestBodies/refPostBody" }, @@ -6751,30 +6039,15 @@ "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.", + "/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.Trip" + "Me.Person" ], - "summary": "List trips.", - "description": "Retrieve a list of trips.", - "operationId": "Me.ListTrips", + "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", "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" }, @@ -6801,22 +6074,28 @@ "type": "array", "items": { "enum": [ - "TripId", - "TripId desc", - "ShareId", - "ShareId desc", - "Name", - "Name desc", - "Budget", - "Budget desc", - "Description", - "Description desc", - "Tags", - "Tags desc", - "StartsAt", - "StartsAt desc", - "EndsAt", - "EndsAt desc" + "UserName", + "UserName desc", + "FirstName", + "FirstName desc", + "LastName", + "LastName desc", + "MiddleName", + "MiddleName desc", + "Gender", + "Gender desc", + "Age", + "Age desc", + "Emails", + "Emails desc", + "AddressInfo", + "AddressInfo desc", + "HomeAddress", + "HomeAddress desc", + "FavoriteFeature", + "FavoriteFeature desc", + "Features", + "Features desc" ], "type": "string" } @@ -6833,15 +6112,20 @@ "type": "array", "items": { "enum": [ - "TripId", - "ShareId", - "Name", - "Budget", - "Description", - "Tags", - "StartsAt", - "EndsAt", - "PlanItems" + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" ], "type": "string" } @@ -6859,7 +6143,9 @@ "items": { "enum": [ "*", - "PlanItems" + "Friends", + "BestFriend", + "Trips" ], "type": "string" } @@ -6868,7 +6154,7 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -6880,37 +6166,28 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + } + } + }, + "/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.Trip" + "Me.Person" ], - "summary": "Create a trip.", - "description": "Create a new trip.", - "operationId": "Me.CreateTrips", - "requestBody": { - "description": "New navigation property", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" - } - } + "summary": "Get the number of the resource", + "operationId": "Me.Friends.GetCount.AsManager-85ff", + "parameters": [ + { + "$ref": "#/components/parameters/search" }, - "required": true - }, + { + "$ref": "#/components/parameters/filter" + } + ], "responses": { - "201": { - "description": "Created navigation property.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" - } - } - } + "200": { + "$ref": "#/components/responses/ODataCountResponse" }, "default": { "$ref": "#/components/responses/error" @@ -6922,37 +6199,17 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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.", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/HomeAddress": { "get": { "tags": [ - "Me.Trip" + "Me.Location" ], - "summary": "Get a trip.", - "description": "Retrieve the properties of a trip.", - "operationId": "Me.GetTrips", + "summary": "Get HomeAddress property value", + "operationId": "Me.GetHomeAddress", "parameters": [ - { - "name": "TripId", - "in": "path", - "description": "The unique identifier of Trip", - "required": true, - "schema": { - "maximum": 2147483647, - "minimum": -2147483648, - "type": "integer", - "format": "int32" - }, - "x-ms-docs-key-type": "Trip" - }, { "name": "$select", "in": "query", @@ -6964,15 +6221,8 @@ "type": "array", "items": { "enum": [ - "TripId", - "ShareId", - "Name", - "Budget", - "Description", - "Tags", - "StartsAt", - "EndsAt", - "PlanItems" + "Address", + "City" ], "type": "string" } @@ -6989,8 +6239,7 @@ "type": "array", "items": { "enum": [ - "*", - "PlanItems" + "*" ], "type": "string" } @@ -6999,11 +6248,11 @@ ], "responses": { "200": { - "description": "Retrieved navigation property", + "description": "Result entities", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" } } } @@ -7018,37 +6267,20 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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.", - "operationId": "Me.UpdateTrips", - "parameters": [ - { - "name": "TripId", - "in": "path", - "description": "The unique identifier of Trip", - "required": true, - "schema": { - "maximum": 2147483647, - "minimum": -2147483648, - "type": "integer", - "format": "int32" - }, - "x-ms-docs-key-type": "Trip" - } + "Me.Location" ], - "requestBody": { - "description": "New navigation property values", + "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.Trip" + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" } } }, @@ -7068,42 +6300,20 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + } + } + }, + "/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.Trip" - ], - "summary": "Delete a trip.", - "description": "Delete an instance of a trip.", - "operationId": "Me.DeleteTrips", - "parameters": [ - { - "name": "TripId", - "in": "path", - "description": "The unique identifier of Trip", - "required": true, - "schema": { - "maximum": 2147483647, - "minimum": -2147483648, - "type": "integer", - "format": "int32" - }, - "x-ms-docs-key-type": "Trip" - }, - { - "name": "If-Match", - "in": "header", - "description": "ETag", - "schema": { - "type": "string" - } - } + "Me.Location" ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "Me.GetHomeAddress.AsEventLocation", "responses": { - "204": { - "description": "Success" + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -7115,36 +6325,18 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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.", + "/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.Functions" + "Me.Person" ], - "summary": "Invoke function GetInvolvedPeople", - "operationId": "Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee.Trips.Trip.GetInvolvedPeople", + "summary": "Get Peers from Me", + "operationId": "Me.ListPeers", "parameters": [ - { - "name": "TripId", - "in": "path", - "description": "The unique identifier of Trip", - "required": true, - "schema": { - "maximum": 2147483647, - "minimum": -2147483648, - "type": "integer", - "format": "int32" - }, - "x-ms-docs-key-type": "Trip" - }, { "$ref": "#/components/parameters/top" }, @@ -7161,9 +6353,9 @@ "$ref": "#/components/parameters/count" }, { - "name": "$select", + "name": "$orderby", "in": "query", - "description": "Select properties to be returned", + "description": "Order items by property values", "style": "form", "explode": false, "schema": { @@ -7172,28 +6364,36 @@ "items": { "enum": [ "UserName", + "UserName desc", "FirstName", + "FirstName desc", "LastName", + "LastName desc", "MiddleName", + "MiddleName desc", "Gender", + "Gender desc", "Age", + "Age desc", "Emails", + "Emails desc", "AddressInfo", + "AddressInfo desc", "HomeAddress", + "HomeAddress desc", "FavoriteFeature", + "FavoriteFeature desc", "Features", - "Friends", - "BestFriend", - "Trips" + "Features desc" ], "type": "string" } } }, { - "name": "$orderby", + "name": "$select", "in": "query", - "description": "Order items by property values", + "description": "Select properties to be returned", "style": "form", "explode": false, "schema": { @@ -7202,27 +6402,39 @@ "items": { "enum": [ "UserName", - "UserName desc", "FirstName", - "FirstName desc", "LastName", - "LastName desc", "MiddleName", - "MiddleName desc", "Gender", - "Gender desc", "Age", - "Age desc", "Emails", - "Emails desc", "AddressInfo", - "AddressInfo desc", "HomeAddress", - "HomeAddress desc", "FavoriteFeature", - "FavoriteFeature desc", "Features", - "Features desc" + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" ], "type": "string" } @@ -7231,31 +6443,61 @@ ], "responses": { "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "title": "Collection of Person", - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" - }, - { - "type": "object", - "nullable": true - } - ] - } - } - } - } - } + "$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.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": "Delete Uri", + "schema": { + "type": "string" } + } + ], + "responses": { + "204": { + "description": "Success" }, "default": { "$ref": "#/components/responses/error" @@ -7268,34 +6510,26 @@ "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()" - ] + "x-ms-docs-operation-type": "operation" + } }, - "/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.", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo": { "get": { "tags": [ - "Me.Trips.PlanItem" + "Me.Person.Location" ], - "summary": "Get PlanItems from Me", - "operationId": "Me.Trips.ListPlanItems", + "summary": "Get AddressInfo property value", + "operationId": "Me.Peers.ListAddressInfo", "parameters": [ { - "name": "TripId", + "name": "UserName", "in": "path", - "description": "The unique identifier of Trip", + "description": "The unique identifier of Person", "required": true, "schema": { - "maximum": 2147483647, - "minimum": -2147483648, - "type": "integer", - "format": "int32" + "type": "string" }, - "x-ms-docs-key-type": "Trip" + "x-ms-docs-key-type": "Person" }, { "$ref": "#/components/parameters/top" @@ -7323,18 +6557,12 @@ "type": "array", "items": { "enum": [ - "PlanItemId", - "PlanItemId desc", - "ConfirmationCode", - "ConfirmationCode desc", - "StartsAt", - "StartsAt desc", - "EndsAt", - "EndsAt desc", - "Duration", - "Duration desc" - ], - "type": "string" + "Address", + "Address desc", + "City", + "City desc" + ], + "type": "string" } } }, @@ -7349,11 +6577,8 @@ "type": "array", "items": { "enum": [ - "PlanItemId", - "ConfirmationCode", - "StartsAt", - "EndsAt", - "Duration" + "Address", + "City" ], "type": "string" } @@ -7379,7 +6604,7 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -7391,48 +6616,72 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + "patch": { "tags": [ - "Me.Trips.PlanItem" + "Me.Person.Location" ], - "summary": "Delete ref of navigation property PlanItems for Me", - "operationId": "Me.Trips.DeleteRefPlanItems", + "summary": "Update property AddressInfo value.", + "operationId": "Me.Peers.UpdateAddressInfo", "parameters": [ { - "name": "TripId", + "name": "UserName", "in": "path", - "description": "The unique identifier of Trip", + "description": "The unique identifier of Person", "required": true, "schema": { - "maximum": 2147483647, - "minimum": -2147483648, - "type": "integer", - "format": "int32" + "type": "string" }, - "x-ms-docs-key-type": "Trip" + "x-ms-docs-key-type": "Person" + } + ], + "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." + } + }, + "post": { + "tags": [ + "Me.Person.Location" + ], + "summary": "Sets a new value for the collection of Location.", + "operationId": "Me.Peers.SetAddressInfo", + "parameters": [ { - "name": "PlanItemId", + "name": "UserName", "in": "path", - "description": "The unique identifier of PlanItem", + "description": "The unique identifier of Person", "required": true, "schema": { - "maximum": 2147483647, - "minimum": -2147483648, - "type": "integer", - "format": "int32" + "type": "string" }, - "x-ms-docs-key-type": "PlanItem" + "x-ms-docs-key-type": "Person" }, { "name": "If-Match", @@ -7441,16 +6690,22 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "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" @@ -7465,31 +6720,27 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + "/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.Trips.PlanItem" + "Me.Person.Location" ], "summary": "Get the number of the resource", - "operationId": "Me.Trips.PlanItems.GetCount-a822", + "operationId": "Me.Peers.AddressInfo.GetCount-3e91", "parameters": [ { - "name": "TripId", + "name": "UserName", "in": "path", - "description": "The unique identifier of Trip", + "description": "The unique identifier of Person", "required": true, "schema": { - "maximum": 2147483647, - "minimum": -2147483648, - "type": "integer", - "format": "int32" + "type": "string" }, - "x-ms-docs-key-type": "Trip" + "x-ms-docs-key-type": "Person" }, { "$ref": "#/components/parameters/search" @@ -7515,73 +6766,29 @@ } } }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$ref": { - "description": "Provides operations to manage the collection of Person entities.", + "/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.Trips.PlanItem" + "Me.Person.Location" ], - "summary": "Get ref of PlanItems from Me", - "operationId": "Me.Trips.ListRefPlanItems", + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "Me.Peers.ListAddressInfo.AsEventLocation", "parameters": [ { - "name": "TripId", + "name": "UserName", "in": "path", - "description": "The unique identifier of Trip", + "description": "The unique identifier of Person", "required": true, "schema": { - "maximum": 2147483647, - "minimum": -2147483648, - "type": "integer", - "format": "int32" + "type": "string" }, - "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", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "PlanItemId", - "PlanItemId desc", - "ConfirmationCode", - "ConfirmationCode desc", - "StartsAt", - "StartsAt desc", - "EndsAt", - "EndsAt desc", - "Duration", - "Duration desc" - ], - "type": "string" - } - } + "x-ms-docs-key-type": "Person" } ], "responses": { "200": { - "$ref": "#/components/responses/StringCollectionResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -7593,36 +6800,35 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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", + } + } + }, + "/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": "TripId", + "name": "UserName", "in": "path", - "description": "The unique identifier of Trip", + "description": "The unique identifier of Person", "required": true, "schema": { - "maximum": 2147483647, - "minimum": -2147483648, - "type": "integer", - "format": "int32" + "type": "string" }, - "x-ms-docs-key-type": "Trip" + "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" } ], - "requestBody": { - "$ref": "#/components/requestBodies/refPostBody" - }, "responses": { - "204": { - "description": "Success" + "200": { + "$ref": "#/components/responses/ODataCountResponse" }, "default": { "$ref": "#/components/responses/error" @@ -7634,24 +6840,1210 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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.", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress": { "get": { "tags": [ - "Me.Trip" + "Me.Person.Location" ], - "summary": "Get the number of the resource", - "operationId": "Me.Trips.GetCount-5aa2", + "summary": "Get HomeAddress property value", + "operationId": "Me.Peers.GetHomeAddress", "parameters": [ { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", - "schema": { + "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, + "type": "array", + "items": { + "enum": [ + "Address", + "City" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Result entities", + "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.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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "Me.Peers.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": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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.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.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", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "UserName desc", + "FirstName", + "FirstName desc", + "LastName", + "LastName desc", + "MiddleName", + "MiddleName desc", + "Gender", + "Gender desc", + "Age", + "Age desc", + "Emails", + "Emails desc", + "AddressInfo", + "AddressInfo desc", + "HomeAddress", + "HomeAddress desc", + "FavoriteFeature", + "FavoriteFeature desc", + "Features", + "Features desc" + ], + "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.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" + } + }, + "/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.", + "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", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "TripId", + "TripId desc", + "ShareId", + "ShareId desc", + "Name", + "Name desc", + "Budget", + "Budget desc", + "Description", + "Description desc", + "Tags", + "Tags desc", + "StartsAt", + "StartsAt desc", + "EndsAt", + "EndsAt desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "TripId", + "ShareId", + "Name", + "Budget", + "Description", + "Tags", + "StartsAt", + "EndsAt", + "PlanItems" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "PlanItems" + ], + "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.", + "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.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.", + "operationId": "Me.GetTrips", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "TripId", + "ShareId", + "Name", + "Budget", + "Description", + "Tags", + "StartsAt", + "EndsAt", + "PlanItems" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "PlanItems" + ], + "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.", + "operationId": "Me.UpdateTrips", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "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.", + "operationId": "Me.DeleteTrips", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "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.Functions" + ], + "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": "integer", + "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", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "UserName desc", + "FirstName", + "FirstName desc", + "LastName", + "LastName desc", + "MiddleName", + "MiddleName desc", + "Gender", + "Gender desc", + "Age", + "Age desc", + "Emails", + "Emails desc", + "AddressInfo", + "AddressInfo desc", + "HomeAddress", + "HomeAddress desc", + "FavoriteFeature", + "FavoriteFeature desc", + "Features", + "Features desc" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "title": "Collection of Person", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + { + "type": "object", + "nullable": true + } + ] + } + } + } + } + } + } + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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.Trips.ListPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "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", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "PlanItemId", + "PlanItemId desc", + "ConfirmationCode", + "ConfirmationCode desc", + "StartsAt", + "StartsAt desc", + "EndsAt", + "EndsAt desc", + "Duration", + "Duration desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "PlanItemId", + "ConfirmationCode", + "StartsAt", + "EndsAt", + "Duration" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "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.Trips.DeleteRefPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "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": "integer", + "format": "int32" + }, + "x-ms-docs-key-type": "PlanItem" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "Delete Uri", + "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.Trips.PlanItems.GetCount-a822", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "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.Trips.ListRefPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "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", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "PlanItemId", + "PlanItemId desc", + "ConfirmationCode", + "ConfirmationCode desc", + "StartsAt", + "StartsAt desc", + "EndsAt", + "EndsAt desc", + "Duration", + "Duration desc" + ], + "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": "integer", + "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" + } + }, + "/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.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": { @@ -7670,7 +8062,170 @@ ], "responses": { "200": { - "$ref": "#/components/responses/ODataCountResponse" + "$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.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.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", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "TripId", + "ShareId", + "Name", + "Budget", + "Description", + "Tags", + "StartsAt", + "EndsAt", + "PlanItems" + ], + "type": "string" + } + } + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "TripId", + "TripId desc", + "ShareId", + "ShareId desc", + "Name", + "Name desc", + "Budget", + "Budget desc", + "Description", + "Description desc", + "Tags", + "Tags desc", + "StartsAt", + "StartsAt desc", + "EndsAt", + "EndsAt desc" + ], + "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.Actions" + ], + "summary": "Invoke action GetPeersForTrip", + "operationId": "Me.GetPeersForTrip", + "requestBody": { + "$ref": "#/components/requestBodies/GetPeersForTripRequestBody" + }, + "responses": { + "200": { + "$ref": "#/components/responses/GetPeersForTripResponse" }, "default": { "$ref": "#/components/responses/error" @@ -7682,20 +8237,80 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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.GetFavoriteAirline()": { - "description": "Provides operations to call the GetFavoriteAirline method.", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", "get": { "tags": [ - "Me.Functions" + "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", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } + } ], - "summary": "Invoke function GetFavoriteAirline", - "operationId": "Me.GetFavoriteAirline", "responses": { "200": { - "$ref": "#/components/responses/GetFavoriteAirlineResponse" + "description": "Result entities", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } }, "default": { "$ref": "#/components/responses/error" @@ -7707,28 +8322,17 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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.", + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo": { "get": { "tags": [ - "Me.Functions" + "Me.Location" ], - "summary": "Invoke function GetFriendsTrips", - "operationId": "Me.GetFriendsTrips", + "summary": "Get AddressInfo property value", + "operationId": "Me.ListAddressInfo", "parameters": [ - { - "name": "userName", - "in": "path", - "description": "Usage: userName='{userName}'", - "required": true, - "schema": { - "type": "string" - } - }, { "$ref": "#/components/parameters/top" }, @@ -7744,6 +8348,26 @@ { "$ref": "#/components/parameters/count" }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Address", + "Address desc", + "City", + "City desc" + ], + "type": "string" + } + } + }, { "name": "$select", "in": "query", @@ -7755,24 +8379,17 @@ "type": "array", "items": { "enum": [ - "TripId", - "ShareId", - "Name", - "Budget", - "Description", - "Tags", - "StartsAt", - "EndsAt", - "PlanItems" + "Address", + "City" ], "type": "string" } } }, { - "name": "$orderby", + "name": "$expand", "in": "query", - "description": "Order items by property values", + "description": "Expand related entities", "style": "form", "explode": false, "schema": { @@ -7780,22 +8397,7 @@ "type": "array", "items": { "enum": [ - "TripId", - "TripId desc", - "ShareId", - "ShareId desc", - "Name", - "Name desc", - "Budget", - "Budget desc", - "Description", - "Description desc", - "Tags", - "Tags desc", - "StartsAt", - "StartsAt desc", - "EndsAt", - "EndsAt desc" + "*" ], "type": "string" } @@ -7804,7 +8406,136 @@ ], "responses": { "200": { - "$ref": "#/components/responses/GetFriendsTripsResponse" + "$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": "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/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.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": { + "200": { + "$ref": "#/components/responses/ODataCountResponse" }, "default": { "$ref": "#/components/responses/error" @@ -7816,24 +8547,20 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + "/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.Actions" + "Me.Location" ], - "summary": "Invoke action GetPeersForTrip", - "operationId": "Me.GetPeersForTrip", - "requestBody": { - "$ref": "#/components/requestBodies/GetPeersForTripRequestBody" - }, + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "Me.ListAddressInfo.AsEventLocation", "responses": { "200": { - "$ref": "#/components/responses/GetPeersForTripResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -7845,80 +8572,39 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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.", + "/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": { - "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", + "summary": "Get the number of the resource", + "operationId": "Me.AddressInfo.GetCount.AsEventLocation-f67e", "parameters": [ { - "name": "$select", - "in": "query", - "description": "Select properties to be returned", - "style": "form", - "explode": false, + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" + "type": "string" + }, + "examples": { + "example-1": { + "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", + "value": "eventual" } } }, { - "name": "$expand", - "in": "query", - "description": "Expand related entities", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" - } - } + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" } ], "responses": { "200": { - "description": "Result entities", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" - } - } - } + "$ref": "#/components/responses/ODataCountResponse" }, "default": { "$ref": "#/components/responses/error" @@ -10542,25 +11228,151 @@ } } }, - "/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.", + "/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": [ + { + "$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.GetHomeAddress", + "parameters": [ + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Address", + "City" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Result entities", + "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/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.Person" - ], - "summary": "Get the number of the resource", - "operationId": "Me.Friends.GetCount.AsEmployee-6a35", - "parameters": [ - { - "$ref": "#/components/parameters/search" - }, - { - "$ref": "#/components/parameters/filter" - } + "Me.Location" ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "Me.GetHomeAddress.AsEventLocation", "responses": { "200": { - "$ref": "#/components/responses/ODataCountResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -19172,17 +19984,257 @@ "type": "string" }, "x-ms-docs-key-type": "Person" - }, - { - "$ref": "#/components/parameters/search" - }, - { - "$ref": "#/components/parameters/filter" + }, + { + "$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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "People.Friends.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": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Address", + "City" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Result entities", + "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": { - "200": { - "$ref": "#/components/responses/ODataCountResponse" + "204": { + "description": "Success" }, "default": { "$ref": "#/components/responses/error" @@ -19197,14 +20249,14 @@ } } }, - "/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "/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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", - "operationId": "People.Friends.ListAddressInfo.AsEventLocation", + "operationId": "People.Friends.GetHomeAddress.AsEventLocation", "parameters": [ { "name": "UserName", @@ -19244,11 +20296,14 @@ } } }, - "/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": { - "description": "Provides operations to count the resources in the collection.", + "/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", "get": { - "summary": "Get the number of the resource", - "operationId": "People.Friends.AddressInfo.GetCount.AsEventLocation-2795", + "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", "parameters": [ { "name": "UserName", @@ -19271,15 +20326,66 @@ "x-ms-docs-key-type": "Person" }, { - "$ref": "#/components/parameters/search" + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } }, { - "$ref": "#/components/parameters/filter" + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } } ], "responses": { "200": { - "$ref": "#/components/responses/ODataCountResponse" + "description": "Result entities", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" + } + } + } }, "default": { "$ref": "#/components/responses/error" @@ -19294,13 +20400,14 @@ } } }, - "/People/{UserName}/Friends/{UserName1}/HomeAddress": { + "/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", "get": { "tags": [ - "People.Person.Location" + "People.Person" ], - "summary": "Get HomeAddress property value", - "operationId": "People.Friends.GetHomeAddress", + "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", "parameters": [ { "name": "UserName", @@ -19333,8 +20440,20 @@ "type": "array", "items": { "enum": [ - "Address", - "City" + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" ], "type": "string" } @@ -19351,7 +20470,10 @@ "type": "array", "items": { "enum": [ - "*" + "*", + "Friends", + "BestFriend", + "Trips" ], "type": "string" } @@ -19364,7 +20486,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" } } } @@ -19379,14 +20501,148 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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" + }, + { + "$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": "Get ref of Friends from People", + "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" + }, + { + "$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", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "UserName desc", + "FirstName", + "FirstName desc", + "LastName", + "LastName desc", + "MiddleName", + "MiddleName desc", + "Gender", + "Gender desc", + "Age", + "Age desc", + "Emails", + "Emails desc", + "AddressInfo", + "AddressInfo desc", + "HomeAddress", + "HomeAddress desc", + "FavoriteFeature", + "FavoriteFeature desc", + "Features", + "Features desc" + ], + "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" }, - "patch": { + "post": { "tags": [ - "People.Person.Location" + "People.Person" ], - "summary": "Update property HomeAddress value.", - "operationId": "People.Friends.UpdateHomeAddress", + "summary": "Create new navigation property ref to Friends for People", + "operationId": "People.CreateRefFriends", "parameters": [ { "name": "UserName", @@ -19397,28 +20653,10 @@ "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 + "$ref": "#/components/requestBodies/refPostBody" }, "responses": { "204": { @@ -19434,17 +20672,18 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { - "description": "Casts the previous resource to EventLocation.", + "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", "get": { "tags": [ - "People.Person.Location" + "People.Person" ], - "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", - "operationId": "People.Friends.GetHomeAddress.AsEventLocation", + "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", "parameters": [ { "name": "UserName", @@ -19457,61 +20696,57 @@ "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": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + "$ref": "#/components/parameters/top" }, - "default": { - "$ref": "#/components/responses/error" - } - }, - "deprecated": true, - "x-ms-deprecation": { - "removalDate": "2023-03-15T00:00:00.0000000+00:00", - "date": "2021-08-24T00:00:00.0000000+00:00", - "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", - "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/skip" }, { - "name": "UserName1", - "in": "path", - "description": "The unique identifier of Person", - "required": true, + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" + }, + { + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "style": "form", + "explode": false, "schema": { - "type": "string" - }, - "x-ms-docs-key-type": "Person" + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "UserName desc", + "FirstName", + "FirstName desc", + "LastName", + "LastName desc", + "MiddleName", + "MiddleName desc", + "Gender", + "Gender desc", + "Age", + "Age desc", + "Emails", + "Emails desc", + "AddressInfo", + "AddressInfo desc", + "HomeAddress", + "HomeAddress desc", + "FavoriteFeature", + "FavoriteFeature desc", + "Features", + "Features desc" + ], + "type": "string" + } + } }, { "name": "$select", @@ -19566,14 +20801,7 @@ ], "responses": { "200": { - "description": "Result entities", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" - } - } - } + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -19588,14 +20816,14 @@ } } }, - "/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { - "description": "Casts the previous resource to Manager.", + "/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 item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager", - "operationId": "People.GetFriends.AsManager", + "summary": "Get the number of the resource", + "operationId": "People.Friends.GetCount.AsEmployee-a96c", "parameters": [ { "name": "UserName", @@ -19608,7 +20836,40 @@ "x-ms-docs-key-type": "Person" }, { - "name": "UserName1", + "$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", + "parameters": [ + { + "name": "UserName", "in": "path", "description": "The unique identifier of Person", "required": true, @@ -19617,6 +20878,59 @@ }, "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", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "UserName desc", + "FirstName", + "FirstName desc", + "LastName", + "LastName desc", + "MiddleName", + "MiddleName desc", + "Gender", + "Gender desc", + "Age", + "Age desc", + "Emails", + "Emails desc", + "AddressInfo", + "AddressInfo desc", + "HomeAddress", + "HomeAddress desc", + "FavoriteFeature", + "FavoriteFeature desc", + "Features", + "Features desc" + ], + "type": "string" + } + } + }, { "name": "$select", "in": "query", @@ -19670,14 +20984,7 @@ ], "responses": { "200": { - "description": "Result entities", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" - } - } - } + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -19692,14 +20999,14 @@ } } }, - "/People/{UserName}/Friends/$count": { + "/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-92b9", + "operationId": "People.Friends.GetCount.AsManager-26b3", "parameters": [ { "name": "UserName", @@ -19735,14 +21042,13 @@ } } }, - "/People/{UserName}/Friends/$ref": { - "description": "Provides operations to manage the collection of Person entities.", + "/People/{UserName}/HomeAddress": { "get": { "tags": [ - "People.Person" + "People.Location" ], - "summary": "Get ref of Friends from People", - "operationId": "People.ListRefFriends", + "summary": "Get HomeAddress property value", + "operationId": "People.GetHomeAddress", "parameters": [ { "name": "UserName", @@ -19755,24 +21061,27 @@ "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": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Address", + "City" + ], + "type": "string" + } + } }, { - "name": "$orderby", + "name": "$expand", "in": "query", - "description": "Order items by property values", + "description": "Expand related entities", "style": "form", "explode": false, "schema": { @@ -19780,28 +21089,7 @@ "type": "array", "items": { "enum": [ - "UserName", - "UserName desc", - "FirstName", - "FirstName desc", - "LastName", - "LastName desc", - "MiddleName", - "MiddleName desc", - "Gender", - "Gender desc", - "Age", - "Age desc", - "Emails", - "Emails desc", - "AddressInfo", - "AddressInfo desc", - "HomeAddress", - "HomeAddress desc", - "FavoriteFeature", - "FavoriteFeature desc", - "Features", - "Features desc" + "*" ], "type": "string" } @@ -19810,7 +21098,14 @@ ], "responses": { "200": { - "$ref": "#/components/responses/StringCollectionResponse" + "description": "Result entities", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } }, "default": { "$ref": "#/components/responses/error" @@ -19822,15 +21117,14 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + "patch": { "tags": [ - "People.Person" + "People.Location" ], - "summary": "Create new navigation property ref to Friends for People", - "operationId": "People.CreateRefFriends", + "summary": "Update property HomeAddress value.", + "operationId": "People.UpdateHomeAddress", "parameters": [ { "name": "UserName", @@ -19844,7 +21138,15 @@ } ], "requestBody": { - "$ref": "#/components/requestBodies/refPostBody" + "description": "New property values", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + }, + "required": true }, "responses": { "204": { @@ -19860,18 +21162,17 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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.", + "/People/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "description": "Casts the previous resource to EventLocation.", "get": { "tags": [ - "People.Person" + "People.Location" ], - "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", + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "People.GetHomeAddress.AsEventLocation", "parameters": [ { "name": "UserName", @@ -19882,114 +21183,11 @@ "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", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "UserName", - "UserName desc", - "FirstName", - "FirstName desc", - "LastName", - "LastName desc", - "MiddleName", - "MiddleName desc", - "Gender", - "Gender desc", - "Age", - "Age desc", - "Emails", - "Emails desc", - "AddressInfo", - "AddressInfo desc", - "HomeAddress", - "HomeAddress desc", - "FavoriteFeature", - "FavoriteFeature desc", - "Features", - "Features desc" - ], - "type": "string" - } - } - }, - { - "name": "$select", - "in": "query", - "description": "Select properties to be returned", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" - } - } - }, - { - "name": "$expand", - "in": "query", - "description": "Expand related entities", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" - } - } } ], "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -20004,14 +21202,14 @@ } } }, - "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": { - "description": "Provides operations to count the resources in the collection.", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "description": "Casts the previous resource to Employee.", "get": { "tags": [ "People.Person" ], - "summary": "Get the number of the resource", - "operationId": "People.Friends.GetCount.AsEmployee-a96c", + "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", "parameters": [ { "name": "UserName", @@ -20024,15 +21222,80 @@ "x-ms-docs-key-type": "Person" }, { - "$ref": "#/components/parameters/search" + "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", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } }, { - "$ref": "#/components/parameters/filter" + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } } ], "responses": { "200": { - "$ref": "#/components/responses/ODataCountResponse" + "description": "Result entities", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" + } + } + } }, "default": { "$ref": "#/components/responses/error" @@ -20047,14 +21310,13 @@ } } }, - "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { - "description": "Casts the previous resource to Manager.", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo": { "get": { "tags": [ - "People.Person" + "People.Location" ], - "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", + "summary": "Get AddressInfo property value", + "operationId": "People.ListAddressInfo", "parameters": [ { "name": "UserName", @@ -20092,28 +21354,10 @@ "type": "array", "items": { "enum": [ - "UserName", - "UserName desc", - "FirstName", - "FirstName desc", - "LastName", - "LastName desc", - "MiddleName", - "MiddleName desc", - "Gender", - "Gender desc", - "Age", - "Age desc", - "Emails", - "Emails desc", - "AddressInfo", - "AddressInfo desc", - "HomeAddress", - "HomeAddress desc", - "FavoriteFeature", - "FavoriteFeature desc", - "Features", - "Features desc" + "Address", + "Address desc", + "City", + "City desc" ], "type": "string" } @@ -20130,20 +21374,8 @@ "type": "array", "items": { "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" + "Address", + "City" ], "type": "string" } @@ -20160,10 +21392,7 @@ "type": "array", "items": { "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" + "*" ], "type": "string" } @@ -20172,7 +21401,7 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -20185,16 +21414,13 @@ "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": { + }, + "patch": { "tags": [ - "People.Person" + "People.Location" ], - "summary": "Get the number of the resource", - "operationId": "People.Friends.GetCount.AsManager-26b3", + "summary": "Update property AddressInfo value.", + "operationId": "People.UpdateAddressInfo", "parameters": [ { "name": "UserName", @@ -20205,17 +21431,25 @@ "type": "string" }, "x-ms-docs-key-type": "Person" - }, - { - "$ref": "#/components/parameters/search" - }, - { - "$ref": "#/components/parameters/filter" } ], + "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": { - "200": { - "$ref": "#/components/responses/ODataCountResponse" + "204": { + "description": "Success" }, "default": { "$ref": "#/components/responses/error" @@ -20228,15 +21462,13 @@ "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": { + }, + "post": { "tags": [ "People.Location" ], - "summary": "Get HomeAddress property value", - "operationId": "People.GetHomeAddress", + "summary": "Sets a new value for the collection of Location.", + "operationId": "People.SetAddressInfo", "parameters": [ { "name": "UserName", @@ -20249,52 +21481,32 @@ "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": { - "enum": [ - "Address", - "City" - ], - "type": "string" - } - } - }, - { - "name": "$expand", - "in": "query", - "description": "Expand related entities", - "style": "form", - "explode": false, + "name": "If-Match", + "in": "header", + "description": "ETag", "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "*" - ], - "type": "string" - } + "type": "string" } } ], - "responses": { - "200": { - "description": "Result entities", - "content": { - "application/json": { - "schema": { + "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" } @@ -20306,13 +21518,16 @@ "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": { + } + }, + "/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": "Update property HomeAddress value.", - "operationId": "People.UpdateHomeAddress", + "summary": "Get the number of the resource", + "operationId": "People.AddressInfo.GetCount-3d43", "parameters": [ { "name": "UserName", @@ -20323,22 +21538,17 @@ "type": "string" }, "x-ms-docs-key-type": "Person" + }, + { + "$ref": "#/components/parameters/search" + }, + { + "$ref": "#/components/parameters/filter" } ], - "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" + "200": { + "$ref": "#/components/responses/ODataCountResponse" }, "default": { "$ref": "#/components/responses/error" @@ -20353,14 +21563,14 @@ } } }, - "/People/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { + "/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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", - "operationId": "People.GetHomeAddress.AsEventLocation", + "operationId": "People.ListAddressInfo.AsEventLocation", "parameters": [ { "name": "UserName", @@ -20390,14 +21600,11 @@ } } }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { - "description": "Casts the previous resource to Employee.", + "/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": { - "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", + "summary": "Get the number of the resource", + "operationId": "People.AddressInfo.GetCount.AsEventLocation-ac7d", "parameters": [ { "name": "UserName", @@ -20407,83 +21614,18 @@ "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" - } - } + "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": { - "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" - } - } + "$ref": "#/components/parameters/search" }, { - "name": "$expand", - "in": "query", - "description": "Expand related entities", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" - } - } + "$ref": "#/components/parameters/filter" } ], "responses": { "200": { - "description": "Result entities", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee" - } - } - } + "$ref": "#/components/responses/ODataCountResponse" }, "default": { "$ref": "#/components/responses/error" @@ -21440,20 +22582,208 @@ "type": "array", "items": { "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "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.DeleteRefFriends", + "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" + } + }, + { + "name": "@id", + "in": "query", + "description": "Delete Uri", + "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.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", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Address", + "Address desc", + "City", + "City desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Address", + "City" ], "type": "string" } @@ -21470,10 +22800,7 @@ "type": "array", "items": { "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" + "*" ], "type": "string" } @@ -21482,7 +22809,7 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -21494,22 +22821,72 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } + }, + "required": true }, - "x-ms-docs-operation-type": "operation" + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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-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": { + "post": { "tags": [ - "People.Person" + "People.Person.Location" ], - "summary": "Delete ref of navigation property Friends for People", - "operationId": "People.DeleteRefFriends", + "summary": "Sets a new value for the collection of Location.", + "operationId": "People.Friends.SetAddressInfo", "parameters": [ { "name": "UserName", @@ -21538,19 +22915,78 @@ "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.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": "@id", - "in": "query", - "description": "Delete Uri", + "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": { - "204": { - "description": "Success" + "200": { + "$ref": "#/components/responses/ODataCountResponse" }, "default": { "$ref": "#/components/responses/error" @@ -21562,17 +22998,17 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + "/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 AddressInfo property value", - "operationId": "People.Friends.ListAddressInfo", + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "People.Friends.ListAddressInfo.AsEventLocation", "parameters": [ { "name": "UserName", @@ -21593,41 +23029,102 @@ "type": "string" }, "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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": [ { - "$ref": "#/components/parameters/top" + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" }, { - "$ref": "#/components/parameters/skip" + "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.Friends.GetHomeAddress", + "parameters": [ { - "$ref": "#/components/parameters/count" + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" }, { - "name": "$orderby", - "in": "query", - "description": "Order items by property values", - "style": "form", - "explode": false, + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "Address", - "Address desc", - "City", - "City desc" - ], - "type": "string" - } - } + "type": "string" + }, + "x-ms-docs-key-type": "Person" }, { "name": "$select", @@ -21667,7 +23164,14 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + "description": "Result entities", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } }, "default": { "$ref": "#/components/responses/error" @@ -21685,8 +23189,8 @@ "tags": [ "People.Person.Location" ], - "summary": "Update property AddressInfo value.", - "operationId": "People.Friends.UpdateAddressInfo", + "summary": "Update property HomeAddress value.", + "operationId": "People.Friends.UpdateHomeAddress", "parameters": [ { "name": "UserName", @@ -21714,10 +23218,7 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" - } + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" } } }, @@ -21738,13 +23239,16 @@ "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": { + } + }, + "/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": "Sets a new value for the collection of Location.", - "operationId": "People.Friends.SetAddressInfo", + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "People.Friends.GetHomeAddress.AsEventLocation", "parameters": [ { "name": "UserName", @@ -21765,33 +23269,11 @@ "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" + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -21806,14 +23288,14 @@ } } }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/$count": { - "description": "Provides operations to count the resources in the collection.", + "/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.Location" + "People.Person" ], - "summary": "Get the number of the resource", - "operationId": "People.Friends.AddressInfo.GetCount-1e8b", + "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", "parameters": [ { "name": "UserName", @@ -21836,15 +23318,66 @@ "x-ms-docs-key-type": "Person" }, { - "$ref": "#/components/parameters/search" + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } }, { - "$ref": "#/components/parameters/filter" + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } } ], "responses": { "200": { - "$ref": "#/components/responses/ODataCountResponse" + "description": "Result entities", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } }, "default": { "$ref": "#/components/responses/error" @@ -21859,14 +23392,14 @@ } } }, - "/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.", + "/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.Location" + "People.Person" ], - "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", - "operationId": "People.Friends.ListAddressInfo.AsEventLocation", + "summary": "Get the number of the resource", + "operationId": "People.Friends.GetCount-4db4", "parameters": [ { "name": "UserName", @@ -21879,7 +23412,40 @@ "x-ms-docs-key-type": "Person" }, { - "name": "UserName1", + "$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", + "operationId": "People.ListRefFriends", + "parameters": [ + { + "name": "UserName", "in": "path", "description": "The unique identifier of Person", "required": true, @@ -21887,11 +23453,64 @@ "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", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "UserName desc", + "FirstName", + "FirstName desc", + "LastName", + "LastName desc", + "MiddleName", + "MiddleName desc", + "Gender", + "Gender desc", + "Age", + "Age desc", + "Emails", + "Emails desc", + "AddressInfo", + "AddressInfo desc", + "HomeAddress", + "HomeAddress desc", + "FavoriteFeature", + "FavoriteFeature desc", + "Features", + "Features desc" + ], + "type": "string" + } + } } ], "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + "$ref": "#/components/responses/StringCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -21902,15 +23521,16 @@ "removalDate": "2023-03-15T00:00:00.0000000+00:00", "date": "2021-08-24T00:00:00.0000000+00:00", "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", + "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.CreateRefFriends", "parameters": [ { "name": "UserName", @@ -21921,27 +23541,14 @@ "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" } ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, "responses": { - "200": { - "$ref": "#/components/responses/ODataCountResponse" + "204": { + "description": "Success" }, "default": { "$ref": "#/components/responses/error" @@ -21953,16 +23560,18 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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}/HomeAddress": { + "/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.Location" + "People.Person" ], - "summary": "Get HomeAddress property value", - "operationId": "People.Friends.GetHomeAddress", + "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", "parameters": [ { "name": "UserName", @@ -21975,14 +23584,57 @@ "x-ms-docs-key-type": "Person" }, { - "name": "UserName1", - "in": "path", - "description": "The unique identifier of Person", - "required": true, + "$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", + "style": "form", + "explode": false, "schema": { - "type": "string" - }, - "x-ms-docs-key-type": "Person" + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "UserName desc", + "FirstName", + "FirstName desc", + "LastName", + "LastName desc", + "MiddleName", + "MiddleName desc", + "Gender", + "Gender desc", + "Age", + "Age desc", + "Emails", + "Emails desc", + "AddressInfo", + "AddressInfo desc", + "HomeAddress", + "HomeAddress desc", + "FavoriteFeature", + "FavoriteFeature desc", + "Features", + "Features desc" + ], + "type": "string" + } + } }, { "name": "$select", @@ -21995,8 +23647,20 @@ "type": "array", "items": { "enum": [ - "Address", - "City" + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" ], "type": "string" } @@ -22013,7 +23677,10 @@ "type": "array", "items": { "enum": [ - "*" + "*", + "Friends", + "BestFriend", + "Trips" ], "type": "string" } @@ -22022,69 +23689,7 @@ ], "responses": { "200": { - "description": "Result entities", - "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" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -22099,14 +23704,14 @@ } } }, - "/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.", + "/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.Location" + "People.Person" ], - "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", - "operationId": "People.Friends.GetHomeAddress.AsEventLocation", + "summary": "Get the number of the resource", + "operationId": "People.Friends.GetCount.AsManager-b145", "parameters": [ { "name": "UserName", @@ -22119,19 +23724,15 @@ "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/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + "$ref": "#/components/responses/ODataCountResponse" }, "default": { "$ref": "#/components/responses/error" @@ -22146,14 +23747,13 @@ } } }, - "/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.", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/HomeAddress": { "get": { "tags": [ - "People.Person" + "People.Location" ], - "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", + "summary": "Get HomeAddress property value", + "operationId": "People.GetHomeAddress", "parameters": [ { "name": "UserName", @@ -22163,43 +23763,21 @@ "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": { - "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" + "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": { + "enum": [ + "Address", + "City" ], "type": "string" } @@ -22216,10 +23794,7 @@ "type": "array", "items": { "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" + "*" ], "type": "string" } @@ -22232,7 +23807,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" } } } @@ -22248,16 +23823,13 @@ "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": { + }, + "patch": { "tags": [ - "People.Person" + "People.Location" ], - "summary": "Get the number of the resource", - "operationId": "People.Friends.GetCount-4db4", + "summary": "Update property HomeAddress value.", + "operationId": "People.UpdateHomeAddress", "parameters": [ { "name": "UserName", @@ -22268,17 +23840,59 @@ "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" + } + } }, - { - "$ref": "#/components/parameters/search" + "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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "People.GetHomeAddress.AsEventLocation", + "parameters": [ { - "$ref": "#/components/parameters/filter" + "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/ODataCountResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -22293,14 +23907,14 @@ } } }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$ref": { - "description": "Provides operations to manage the collection of Person entities.", + "/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 ref of Friends from People", - "operationId": "People.ListRefFriends", + "summary": "Get Peers from People", + "operationId": "People.ListPeers", "parameters": [ { "name": "UserName", @@ -22364,11 +23978,61 @@ "type": "string" } } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } } ], "responses": { "200": { - "$ref": "#/components/responses/StringCollectionResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -22382,13 +24046,16 @@ "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": { + } + }, + "/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": "Create new navigation property ref to Friends for People", - "operationId": "People.CreateRefFriends", + "summary": "Delete ref of navigation property Peers for People", + "operationId": "People.DeleteRefPeers", "parameters": [ { "name": "UserName", @@ -22399,11 +24066,34 @@ "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" + } + }, + { + "name": "@id", + "in": "query", + "description": "Delete Uri", + "schema": { + "type": "string" + } } ], - "requestBody": { - "$ref": "#/components/requestBodies/refPostBody" - }, "responses": { "204": { "description": "Success" @@ -22422,14 +24112,13 @@ "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.", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo": { "get": { "tags": [ - "People.Person" + "People.Person.Location" ], - "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", + "summary": "Get AddressInfo property value", + "operationId": "People.Peers.ListAddressInfo", "parameters": [ { "name": "UserName", @@ -22441,6 +24130,16 @@ }, "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" }, @@ -22467,58 +24166,28 @@ "type": "array", "items": { "enum": [ - "UserName", - "UserName desc", - "FirstName", - "FirstName desc", - "LastName", - "LastName desc", - "MiddleName", - "MiddleName desc", - "Gender", - "Gender desc", - "Age", - "Age desc", - "Emails", - "Emails desc", - "AddressInfo", - "AddressInfo desc", - "HomeAddress", - "HomeAddress desc", - "FavoriteFeature", - "FavoriteFeature desc", - "Features", - "Features desc" + "Address", + "Address desc", + "City", + "City desc" ], "type": "string" } - } - }, - { - "name": "$select", - "in": "query", - "description": "Select properties to be returned", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Address", + "City" ], "type": "string" } @@ -22535,10 +24204,7 @@ "type": "array", "items": { "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" + "*" ], "type": "string" } @@ -22547,7 +24213,7 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -22560,16 +24226,13 @@ "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": { + }, + "patch": { "tags": [ - "People.Person" + "People.Person.Location" ], - "summary": "Get the number of the resource", - "operationId": "People.Friends.GetCount.AsManager-b145", + "summary": "Update property AddressInfo value.", + "operationId": "People.Peers.UpdateAddressInfo", "parameters": [ { "name": "UserName", @@ -22582,15 +24245,99 @@ "x-ms-docs-key-type": "Person" }, { - "$ref": "#/components/parameters/search" + "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": "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.Peers.SetAddressInfo", + "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/filter" + "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": { - "200": { - "$ref": "#/components/responses/ODataCountResponse" + "204": { + "description": "Success" }, "default": { "$ref": "#/components/responses/error" @@ -22605,14 +24352,14 @@ } } }, - "/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.", + "/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" + "People.Person.Location" ], - "summary": "Get Peers from People", - "operationId": "People.ListPeers", + "summary": "Get the number of the resource", + "operationId": "People.Peers.AddressInfo.GetCount-755d", "parameters": [ { "name": "UserName", @@ -22625,112 +24372,72 @@ "x-ms-docs-key-type": "Person" }, { - "$ref": "#/components/parameters/top" - }, - { - "$ref": "#/components/parameters/skip" + "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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "People.Peers.ListAddressInfo.AsEventLocation", + "parameters": [ { - "$ref": "#/components/parameters/count" - }, - { - "name": "$orderby", - "in": "query", - "description": "Order items by property values", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "UserName", - "UserName desc", - "FirstName", - "FirstName desc", - "LastName", - "LastName desc", - "MiddleName", - "MiddleName desc", - "Gender", - "Gender desc", - "Age", - "Age desc", - "Emails", - "Emails desc", - "AddressInfo", - "AddressInfo desc", - "HomeAddress", - "HomeAddress desc", - "FavoriteFeature", - "FavoriteFeature desc", - "Features", - "Features desc" - ], - "type": "string" - } - } - }, - { - "name": "$select", - "in": "query", - "description": "Select properties to be returned", - "style": "form", - "explode": false, + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" - } - } - }, - { - "name": "$expand", - "in": "query", - "description": "Expand related entities", - "style": "form", - "explode": false, + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "UserName1", + "in": "path", + "description": "The unique identifier of Person", + "required": true, "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" - } - } + "type": "string" + }, + "x-ms-docs-key-type": "Person" } ], "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -22742,18 +24449,14 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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.DeleteRefPeers", + "/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", @@ -22776,25 +24479,15 @@ "x-ms-docs-key-type": "Person" }, { - "name": "If-Match", - "in": "header", - "description": "ETag", - "schema": { - "type": "string" - } + "$ref": "#/components/parameters/search" }, { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } + "$ref": "#/components/parameters/filter" } ], "responses": { - "204": { - "description": "Success" + "200": { + "$ref": "#/components/responses/ODataCountResponse" }, "default": { "$ref": "#/components/responses/error" @@ -22806,17 +24499,16 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress": { "get": { "tags": [ "People.Person.Location" ], - "summary": "Get AddressInfo property value", - "operationId": "People.Peers.ListAddressInfo", + "summary": "Get HomeAddress property value", + "operationId": "People.Peers.GetHomeAddress", "parameters": [ { "name": "UserName", @@ -22838,41 +24530,6 @@ }, "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", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "Address", - "Address desc", - "City", - "City desc" - ], - "type": "string" - } - } - }, { "name": "$select", "in": "query", @@ -22911,7 +24568,14 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" + "description": "Result entities", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } }, "default": { "$ref": "#/components/responses/error" @@ -22929,8 +24593,8 @@ "tags": [ "People.Person.Location" ], - "summary": "Update property AddressInfo value.", - "operationId": "People.Peers.UpdateAddressInfo", + "summary": "Update property HomeAddress value.", + "operationId": "People.Peers.UpdateHomeAddress", "parameters": [ { "name": "UserName", @@ -22958,10 +24622,7 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" - } + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" } } }, @@ -22982,13 +24643,16 @@ "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": { + } + }, + "/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": "Sets a new value for the collection of Location.", - "operationId": "People.Peers.SetAddressInfo", + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "People.Peers.GetHomeAddress.AsEventLocation", "parameters": [ { "name": "UserName", @@ -23009,33 +24673,144 @@ "type": "string" }, "x-ms-docs-key-type": "Person" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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.Peers.GetCount-44d2", + "parameters": [ { - "name": "If-Match", - "in": "header", - "description": "ETag", + "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.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", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "UserName desc", + "FirstName", + "FirstName desc", + "LastName", + "LastName desc", + "MiddleName", + "MiddleName desc", + "Gender", + "Gender desc", + "Age", + "Age desc", + "Emails", + "Emails desc", + "AddressInfo", + "AddressInfo desc", + "HomeAddress", + "HomeAddress desc", + "FavoriteFeature", + "FavoriteFeature desc", + "Features", + "Features desc" + ], + "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" + "200": { + "$ref": "#/components/responses/StringCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -23047,17 +24822,15 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { "tags": [ - "People.Person.Location" + "People.Person" ], - "summary": "Get the number of the resource", - "operationId": "People.Peers.AddressInfo.GetCount-755d", + "summary": "Create new navigation property ref to Peers for People", + "operationId": "People.CreateRefPeers", "parameters": [ { "name": "UserName", @@ -23068,27 +24841,14 @@ "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" } ], + "requestBody": { + "$ref": "#/components/requestBodies/refPostBody" + }, "responses": { - "200": { - "$ref": "#/components/responses/ODataCountResponse" + "204": { + "description": "Success" }, "default": { "$ref": "#/components/responses/error" @@ -23100,17 +24860,19 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": { - "description": "Casts the previous resource to EventLocation.", + "/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.Person.Location" + "People.Trip" ], - "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", - "operationId": "People.Peers.ListAddressInfo.AsEventLocation", + "summary": "List trips.", + "description": "Retrieve a list of trips.", + "operationId": "People.ListTrips", "parameters": [ { "name": "UserName", @@ -23123,19 +24885,113 @@ "x-ms-docs-key-type": "Person" }, { - "name": "UserName1", - "in": "path", - "description": "The unique identifier of Person", - "required": true, + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", "schema": { "type": "string" }, - "x-ms-docs-key-type": "Person" + "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", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "TripId", + "TripId desc", + "ShareId", + "ShareId desc", + "Name", + "Name desc", + "Budget", + "Budget desc", + "Description", + "Description desc", + "Tags", + "Tags desc", + "StartsAt", + "StartsAt desc", + "EndsAt", + "EndsAt desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "TripId", + "ShareId", + "Name", + "Budget", + "Description", + "Tags", + "StartsAt", + "EndsAt", + "PlanItems" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "PlanItems" + ], + "type": "string" + } + } } ], "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -23147,14 +25003,16 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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", + }, + "x-ms-docs-operation-type": "operation" + }, + "post": { + "tags": [ + "People.Trip" + ], + "summary": "Create a trip.", + "description": "Create a new trip.", + "operationId": "People.CreateTrips", "parameters": [ { "name": "UserName", @@ -23165,27 +25023,29 @@ "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" } ], + "requestBody": { + "description": "New navigation property", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + }, + "required": true + }, "responses": { - "200": { - "$ref": "#/components/responses/ODataCountResponse" + "201": { + "description": "Created navigation property.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" + } + } + } }, "default": { "$ref": "#/components/responses/error" @@ -23197,16 +25057,23 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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/Peers/{UserName1}/HomeAddress": { + "/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.Person.Location" + "People.Trip" ], - "summary": "Get HomeAddress property value", - "operationId": "People.Peers.GetHomeAddress", + "summary": "Get a trip.", + "description": "Retrieve the properties of a trip.", + "operationId": "People.GetTrips", "parameters": [ { "name": "UserName", @@ -23219,14 +25086,17 @@ "x-ms-docs-key-type": "Person" }, { - "name": "UserName1", + "name": "TripId", "in": "path", - "description": "The unique identifier of Person", + "description": "The unique identifier of Trip", "required": true, "schema": { - "type": "string" + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "format": "int32" }, - "x-ms-docs-key-type": "Person" + "x-ms-docs-key-type": "Trip" }, { "name": "$select", @@ -23239,8 +25109,15 @@ "type": "array", "items": { "enum": [ - "Address", - "City" + "TripId", + "ShareId", + "Name", + "Budget", + "Description", + "Tags", + "StartsAt", + "EndsAt", + "PlanItems" ], "type": "string" } @@ -23257,7 +25134,8 @@ "type": "array", "items": { "enum": [ - "*" + "*", + "PlanItems" ], "type": "string" } @@ -23266,11 +25144,11 @@ ], "responses": { "200": { - "description": "Result entities", + "description": "Retrieved navigation property", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" } } } @@ -23285,14 +25163,16 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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.Location" + "People.Trip" ], - "summary": "Update property HomeAddress value.", - "operationId": "People.Peers.UpdateHomeAddress", + "summary": "Update a trip.", + "description": "Update an instance of a trip.", + "operationId": "People.UpdateTrips", "parameters": [ { "name": "UserName", @@ -23305,22 +25185,25 @@ "x-ms-docs-key-type": "Person" }, { - "name": "UserName1", + "name": "TripId", "in": "path", - "description": "The unique identifier of Person", + "description": "The unique identifier of Trip", "required": true, "schema": { - "type": "string" + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "format": "int32" }, - "x-ms-docs-key-type": "Person" + "x-ms-docs-key-type": "Trip" } ], "requestBody": { - "description": "New property values", + "description": "New navigation property values", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" } } }, @@ -23340,17 +25223,16 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + }, + "x-ms-docs-operation-type": "operation" + }, + "delete": { "tags": [ - "People.Person.Location" + "People.Trip" ], - "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", - "operationId": "People.Peers.GetHomeAddress.AsEventLocation", + "summary": "Delete a trip.", + "description": "Delete an instance of a trip.", + "operationId": "People.DeleteTrips", "parameters": [ { "name": "UserName", @@ -23363,19 +25245,30 @@ "x-ms-docs-key-type": "Person" }, { - "name": "UserName1", + "name": "TripId", "in": "path", - "description": "The unique identifier of Person", + "description": "The unique identifier of Trip", "required": true, "schema": { - "type": "string" + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "format": "int32" }, - "x-ms-docs-key-type": "Person" + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } } ], "responses": { - "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + "204": { + "description": "Success" }, "default": { "$ref": "#/components/responses/error" @@ -23387,17 +25280,22 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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/Peers/$count": { - "description": "Provides operations to count the resources in the collection.", + "/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.Person" + "People.Functions" ], - "summary": "Get the number of the resource", - "operationId": "People.Peers.GetCount-44d2", + "summary": "Invoke function GetInvolvedPeople", + "operationId": "People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee.Trips.Trip.GetInvolvedPeople", "parameters": [ { "name": "UserName", @@ -23410,47 +25308,17 @@ "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.ListRefPeers", - "parameters": [ - { - "name": "UserName", + "name": "TripId", "in": "path", - "description": "The unique identifier of Person", + "description": "The unique identifier of Trip", "required": true, "schema": { - "type": "string" + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "format": "int32" }, - "x-ms-docs-key-type": "Person" + "x-ms-docs-key-type": "Trip" }, { "$ref": "#/components/parameters/top" @@ -23467,6 +25335,36 @@ { "$ref": "#/components/parameters/count" }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } + }, { "name": "$orderby", "in": "query", @@ -23508,7 +25406,31 @@ ], "responses": { "200": { - "$ref": "#/components/responses/StringCollectionResponse" + "description": "Success", + "content": { + "application/json": { + "schema": { + "title": "Collection of Person", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" + }, + { + "type": "object", + "nullable": true + } + ] + } + } + } + } + } + } }, "default": { "$ref": "#/components/responses/error" @@ -23521,56 +25443,21 @@ "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-operation-type": "function" }, - "post": { - "tags": [ - "People.Person" - ], - "summary": "Create new navigation property ref to Peers for People", - "operationId": "People.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" - } + "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": { - "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.", + "/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.Trip" + "People.Trips.PlanItem" ], - "summary": "List trips.", - "description": "Retrieve a list of trips.", - "operationId": "People.ListTrips", + "summary": "Get PlanItems from People", + "operationId": "People.Trips.ListPlanItems", "parameters": [ { "name": "UserName", @@ -23583,18 +25470,17 @@ "x-ms-docs-key-type": "Person" }, { - "name": "ConsistencyLevel", - "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, "schema": { - "type": "string" + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "format": "int32" }, - "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": "Trip" }, { "$ref": "#/components/parameters/top" @@ -23622,22 +25508,16 @@ "type": "array", "items": { "enum": [ - "TripId", - "TripId desc", - "ShareId", - "ShareId desc", - "Name", - "Name desc", - "Budget", - "Budget desc", - "Description", - "Description desc", - "Tags", - "Tags desc", + "PlanItemId", + "PlanItemId desc", + "ConfirmationCode", + "ConfirmationCode desc", "StartsAt", "StartsAt desc", "EndsAt", - "EndsAt desc" + "EndsAt desc", + "Duration", + "Duration desc" ], "type": "string" } @@ -23654,15 +25534,11 @@ "type": "array", "items": { "enum": [ - "TripId", - "ShareId", - "Name", - "Budget", - "Description", - "Tags", + "PlanItemId", + "ConfirmationCode", "StartsAt", "EndsAt", - "PlanItems" + "Duration" ], "type": "string" } @@ -23679,8 +25555,7 @@ "type": "array", "items": { "enum": [ - "*", - "PlanItems" + "*" ], "type": "string" } @@ -23689,7 +25564,7 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -23704,13 +25579,19 @@ }, "x-ms-docs-operation-type": "operation" }, - "post": { + "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.Trip" + "People.Trips.PlanItem" ], - "summary": "Create a trip.", - "description": "Create a new trip.", - "operationId": "People.CreateTrips", + "summary": "Delete ref of navigation property PlanItems for People", + "operationId": "People.Trips.DeleteRefPlanItems", "parameters": [ { "name": "UserName", @@ -23721,29 +25602,53 @@ "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" - } + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "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": "integer", + "format": "int32" + }, + "x-ms-docs-key-type": "PlanItem" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" } }, - "required": true - }, - "responses": { - "201": { - "description": "Created navigation property.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" - } - } + { + "name": "@id", + "in": "query", + "description": "Delete Uri", + "schema": { + "type": "string" } + } + ], + "responses": { + "204": { + "description": "Success" }, "default": { "$ref": "#/components/responses/error" @@ -23757,21 +25662,16 @@ "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.", + "/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.Trip" + "People.Trips.PlanItem" ], - "summary": "Get a trip.", - "description": "Retrieve the properties of a trip.", - "operationId": "People.GetTrips", + "summary": "Get the number of the resource", + "operationId": "People.Trips.PlanItems.GetCount-7df9", "parameters": [ { "name": "UserName", @@ -23797,34 +25697,80 @@ "x-ms-docs-key-type": "Trip" }, { - "name": "$select", - "in": "query", - "description": "Select properties to be returned", - "style": "form", - "explode": false, + "$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.Trips.ListRefPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "TripId", - "ShareId", - "Name", - "Budget", - "Description", - "Tags", - "StartsAt", - "EndsAt", - "PlanItems" - ], - "type": "string" - } - } + "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": "integer", + "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": "$expand", + "name": "$orderby", "in": "query", - "description": "Expand related entities", + "description": "Order items by property values", "style": "form", "explode": false, "schema": { @@ -23832,8 +25778,16 @@ "type": "array", "items": { "enum": [ - "*", - "PlanItems" + "PlanItemId", + "PlanItemId desc", + "ConfirmationCode", + "ConfirmationCode desc", + "StartsAt", + "StartsAt desc", + "EndsAt", + "EndsAt desc", + "Duration", + "Duration desc" ], "type": "string" } @@ -23842,14 +25796,7 @@ ], "responses": { "200": { - "description": "Retrieved navigation property", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" - } - } - } + "$ref": "#/components/responses/StringCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -23864,13 +25811,12 @@ }, "x-ms-docs-operation-type": "operation" }, - "patch": { + "post": { "tags": [ - "People.Trip" + "People.Trips.PlanItem" ], - "summary": "Update a trip.", - "description": "Update an instance of a trip.", - "operationId": "People.UpdateTrips", + "summary": "Create new navigation property ref to PlanItems for People", + "operationId": "People.Trips.CreateRefPlanItems", "parameters": [ { "name": "UserName", @@ -23897,15 +25843,7 @@ } ], "requestBody": { - "description": "New navigation property values", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip" - } - } - }, - "required": true + "$ref": "#/components/requestBodies/refPostBody" }, "responses": { "204": { @@ -23923,14 +25861,16 @@ "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": { + } + }, + "/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": "Delete a trip.", - "description": "Delete an instance of a trip.", - "operationId": "People.DeleteTrips", + "summary": "Get the number of the resource", + "operationId": "People.Trips.GetCount-c760", "parameters": [ { "name": "UserName", @@ -23943,30 +25883,29 @@ "x-ms-docs-key-type": "Person" }, { - "name": "TripId", - "in": "path", - "description": "The unique identifier of Trip", - "required": true, - "schema": { - "maximum": 2147483647, - "minimum": -2147483648, - "type": "integer", - "format": "int32" - }, - "x-ms-docs-key-type": "Trip" - }, - { - "name": "If-Match", + "name": "ConsistencyLevel", "in": "header", - "description": "ETag", + "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": { - "204": { - "description": "Success" + "200": { + "$ref": "#/components/responses/ODataCountResponse" }, "default": { "$ref": "#/components/responses/error" @@ -23978,22 +25917,17 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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.", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()": { + "description": "Provides operations to call the GetFavoriteAirline method.", "get": { "tags": [ "People.Functions" ], - "summary": "Invoke function GetInvolvedPeople", - "operationId": "People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee.Trips.Trip.GetInvolvedPeople", + "summary": "Invoke function GetFavoriteAirline", + "operationId": "People.Person.GetFavoriteAirline", "parameters": [ { "name": "UserName", @@ -24004,131 +25938,11 @@ "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": "integer", - "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", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" - } - } - }, - { - "name": "$orderby", - "in": "query", - "description": "Order items by property values", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "UserName", - "UserName desc", - "FirstName", - "FirstName desc", - "LastName", - "LastName desc", - "MiddleName", - "MiddleName desc", - "Gender", - "Gender desc", - "Age", - "Age desc", - "Emails", - "Emails desc", - "AddressInfo", - "AddressInfo desc", - "HomeAddress", - "HomeAddress desc", - "FavoriteFeature", - "FavoriteFeature desc", - "Features", - "Features desc" - ], - "type": "string" - } - } } ], "responses": { "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "title": "Collection of Person", - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person" - }, - { - "type": "object", - "nullable": true - } - ] - } - } - } - } - } - } + "$ref": "#/components/responses/GetFavoriteAirlineResponse" }, "default": { "$ref": "#/components/responses/error" @@ -24142,20 +25956,16 @@ "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.", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName='{userName}')": { + "description": "Provides operations to call the GetFriendsTrips method.", "get": { "tags": [ - "People.Trips.PlanItem" + "People.Functions" ], - "summary": "Get PlanItems from People", - "operationId": "People.Trips.ListPlanItems", + "summary": "Invoke function GetFriendsTrips", + "operationId": "People.Person.GetFriendsTrips", "parameters": [ { "name": "UserName", @@ -24168,17 +25978,13 @@ "x-ms-docs-key-type": "Person" }, { - "name": "TripId", - "in": "path", - "description": "The unique identifier of Trip", - "required": true, - "schema": { - "maximum": 2147483647, - "minimum": -2147483648, - "type": "integer", - "format": "int32" - }, - "x-ms-docs-key-type": "Trip" + "name": "userName", + "in": "path", + "description": "Usage: userName='{userName}'", + "required": true, + "schema": { + "type": "string" + } }, { "$ref": "#/components/parameters/top" @@ -24195,32 +26001,6 @@ { "$ref": "#/components/parameters/count" }, - { - "name": "$orderby", - "in": "query", - "description": "Order items by property values", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "PlanItemId", - "PlanItemId desc", - "ConfirmationCode", - "ConfirmationCode desc", - "StartsAt", - "StartsAt desc", - "EndsAt", - "EndsAt desc", - "Duration", - "Duration desc" - ], - "type": "string" - } - } - }, { "name": "$select", "in": "query", @@ -24232,20 +26012,24 @@ "type": "array", "items": { "enum": [ - "PlanItemId", - "ConfirmationCode", + "TripId", + "ShareId", + "Name", + "Budget", + "Description", + "Tags", "StartsAt", "EndsAt", - "Duration" + "PlanItems" ], "type": "string" } } }, { - "name": "$expand", + "name": "$orderby", "in": "query", - "description": "Expand related entities", + "description": "Order items by property values", "style": "form", "explode": false, "schema": { @@ -24253,7 +26037,22 @@ "type": "array", "items": { "enum": [ - "*" + "TripId", + "TripId desc", + "ShareId", + "ShareId desc", + "Name", + "Name desc", + "Budget", + "Budget desc", + "Description", + "Description desc", + "Tags", + "Tags desc", + "StartsAt", + "StartsAt desc", + "EndsAt", + "EndsAt desc" ], "type": "string" } @@ -24262,7 +26061,7 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse" + "$ref": "#/components/responses/GetFriendsTripsResponse" }, "default": { "$ref": "#/components/responses/error" @@ -24275,21 +26074,17 @@ "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" - ] + "x-ms-docs-operation-type": "function" + } }, - "/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": { + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": { + "description": "Provides operations to call the GetPeersForTrip method.", + "post": { "tags": [ - "People.Trips.PlanItem" + "People.Actions" ], - "summary": "Delete ref of navigation property PlanItems for People", - "operationId": "People.Trips.DeleteRefPlanItems", + "summary": "Invoke action GetPeersForTrip", + "operationId": "People.Person.GetPeersForTrip", "parameters": [ { "name": "UserName", @@ -24300,53 +26095,14 @@ "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": "integer", - "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": "integer", - "format": "int32" - }, - "x-ms-docs-key-type": "PlanItem" - }, - { - "name": "If-Match", - "in": "header", - "description": "ETag", - "schema": { - "type": "string" - } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], + "requestBody": { + "$ref": "#/components/requestBodies/GetPeersForTripRequestBody" + }, "responses": { - "204": { - "description": "Success" + "200": { + "$ref": "#/components/responses/GetPeersForTripResponse" }, "default": { "$ref": "#/components/responses/error" @@ -24359,17 +26115,17 @@ "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-operation-type": "action" } }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$count": { - "description": "Provides operations to count the resources in the collection.", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { + "description": "Casts the previous resource to Manager.", "get": { "tags": [ - "People.Trips.PlanItem" + "People.Person" ], - "summary": "Get the number of the resource", - "operationId": "People.Trips.PlanItems.GetCount-7df9", + "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", "parameters": [ { "name": "UserName", @@ -24382,28 +26138,80 @@ "x-ms-docs-key-type": "Person" }, { - "name": "TripId", - "in": "path", - "description": "The unique identifier of Trip", - "required": true, + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", "schema": { - "maximum": 2147483647, - "minimum": -2147483648, - "type": "integer", - "format": "int32" + "type": "string" }, - "x-ms-docs-key-type": "Trip" + "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" + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "UserName", + "FirstName", + "LastName", + "MiddleName", + "Gender", + "Age", + "Emails", + "AddressInfo", + "HomeAddress", + "FavoriteFeature", + "Features", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } }, { - "$ref": "#/components/parameters/filter" + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } } ], "responses": { "200": { - "$ref": "#/components/responses/ODataCountResponse" + "description": "Result entities", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" + } + } + } }, "default": { "$ref": "#/components/responses/error" @@ -24418,14 +26226,13 @@ } } }, - "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$ref": { - "description": "Provides operations to manage the collection of Person entities.", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo": { "get": { "tags": [ - "People.Trips.PlanItem" + "People.Location" ], - "summary": "Get ref of PlanItems from People", - "operationId": "People.Trips.ListRefPlanItems", + "summary": "Get AddressInfo property value", + "operationId": "People.ListAddressInfo", "parameters": [ { "name": "UserName", @@ -24437,19 +26244,6 @@ }, "x-ms-docs-key-type": "Person" }, - { - "name": "TripId", - "in": "path", - "description": "The unique identifier of Trip", - "required": true, - "schema": { - "maximum": 2147483647, - "minimum": -2147483648, - "type": "integer", - "format": "int32" - }, - "x-ms-docs-key-type": "Trip" - }, { "$ref": "#/components/parameters/top" }, @@ -24463,12 +26257,50 @@ "$ref": "#/components/parameters/filter" }, { - "$ref": "#/components/parameters/count" + "$ref": "#/components/parameters/count" + }, + { + "name": "$orderby", + "in": "query", + "description": "Order items by property values", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Address", + "Address desc", + "City", + "City desc" + ], + "type": "string" + } + } + }, + { + "name": "$select", + "in": "query", + "description": "Select properties to be returned", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Address", + "City" + ], + "type": "string" + } + } }, { - "name": "$orderby", + "name": "$expand", "in": "query", - "description": "Order items by property values", + "description": "Expand related entities", "style": "form", "explode": false, "schema": { @@ -24476,16 +26308,7 @@ "type": "array", "items": { "enum": [ - "PlanItemId", - "PlanItemId desc", - "ConfirmationCode", - "ConfirmationCode desc", - "StartsAt", - "StartsAt desc", - "EndsAt", - "EndsAt desc", - "Duration", - "Duration desc" + "*" ], "type": "string" } @@ -24494,7 +26317,7 @@ ], "responses": { "200": { - "$ref": "#/components/responses/StringCollectionResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -24506,15 +26329,14 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + "patch": { "tags": [ - "People.Trips.PlanItem" + "People.Location" ], - "summary": "Create new navigation property ref to PlanItems for People", - "operationId": "People.Trips.CreateRefPlanItems", + "summary": "Update property AddressInfo value.", + "operationId": "People.UpdateAddressInfo", "parameters": [ { "name": "UserName", @@ -24525,23 +26347,21 @@ "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": "integer", - "format": "int32" - }, - "x-ms-docs-key-type": "Trip" } ], "requestBody": { - "$ref": "#/components/requestBodies/refPostBody" + "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": { @@ -24557,18 +26377,14 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + } + }, + "post": { "tags": [ - "People.Trip" + "People.Location" ], - "summary": "Get the number of the resource", - "operationId": "People.Trips.GetCount-c760", + "summary": "Sets a new value for the collection of Location.", + "operationId": "People.SetAddressInfo", "parameters": [ { "name": "UserName", @@ -24581,66 +26397,31 @@ "x-ms-docs-key-type": "Person" }, { - "name": "ConsistencyLevel", + "name": "If-Match", "in": "header", - "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "description": "ETag", "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" + "requestBody": { + "description": "New property values", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location" + } + } + } }, - "default": { - "$ref": "#/components/responses/error" - } + "required": true }, - "deprecated": true, - "x-ms-deprecation": { - "removalDate": "2023-03-15T00:00:00.0000000+00:00", - "date": "2021-08-24T00:00:00.0000000+00:00", - "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.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" + "204": { + "description": "Success" }, "default": { "$ref": "#/components/responses/error" @@ -24652,18 +26433,17 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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.", + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/$count": { + "description": "Provides operations to count the resources in the collection.", "get": { "tags": [ - "People.Functions" + "People.Location" ], - "summary": "Invoke function GetFriendsTrips", - "operationId": "People.Person.GetFriendsTrips", + "summary": "Get the number of the resource", + "operationId": "People.AddressInfo.GetCount-f84e", "parameters": [ { "name": "UserName", @@ -24676,90 +26456,29 @@ "x-ms-docs-key-type": "Person" }, { - "name": "userName", - "in": "path", - "description": "Usage: userName='{userName}'", - "required": true, + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", "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", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "TripId", - "ShareId", - "Name", - "Budget", - "Description", - "Tags", - "StartsAt", - "EndsAt", - "PlanItems" - ], - "type": "string" - } - } - }, - { - "name": "$orderby", - "in": "query", - "description": "Order items by property values", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "TripId", - "TripId desc", - "ShareId", - "ShareId desc", - "Name", - "Name desc", - "Budget", - "Budget desc", - "Description", - "Description desc", - "Tags", - "Tags desc", - "StartsAt", - "StartsAt desc", - "EndsAt", - "EndsAt desc" - ], - "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/GetFriendsTripsResponse" + "$ref": "#/components/responses/ODataCountResponse" }, "default": { "$ref": "#/components/responses/error" @@ -24771,18 +26490,17 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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": { + "/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.Actions" + "People.Location" ], - "summary": "Invoke action GetPeersForTrip", - "operationId": "People.Person.GetPeersForTrip", + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "People.ListAddressInfo.AsEventLocation", "parameters": [ { "name": "UserName", @@ -24795,12 +26513,9 @@ "x-ms-docs-key-type": "Person" } ], - "requestBody": { - "$ref": "#/components/requestBodies/GetPeersForTripRequestBody" - }, "responses": { "200": { - "$ref": "#/components/responses/GetPeersForTripResponse" + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" }, "default": { "$ref": "#/components/responses/error" @@ -24812,18 +26527,14 @@ "date": "2021-08-24T00:00:00.0000000+00:00", "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.", + "/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": { - "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", + "summary": "Get the number of the resource", + "operationId": "People.AddressInfo.GetCount.AsEventLocation-3722", "parameters": [ { "name": "UserName", @@ -24850,66 +26561,15 @@ } }, { - "name": "$select", - "in": "query", - "description": "Select properties to be returned", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "UserName", - "FirstName", - "LastName", - "MiddleName", - "Gender", - "Age", - "Emails", - "AddressInfo", - "HomeAddress", - "FavoriteFeature", - "Features", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" - } - } + "$ref": "#/components/parameters/search" }, { - "name": "$expand", - "in": "query", - "description": "Expand related entities", - "style": "form", - "explode": false, - "schema": { - "uniqueItems": true, - "type": "array", - "items": { - "enum": [ - "*", - "Friends", - "BestFriend", - "Trips" - ], - "type": "string" - } - } + "$ref": "#/components/parameters/filter" } ], "responses": { "200": { - "description": "Result entities", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager" - } - } - } + "$ref": "#/components/responses/ODataCountResponse" }, "default": { "$ref": "#/components/responses/error" @@ -28044,6 +29704,166 @@ } } }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/HomeAddress": { + "get": { + "tags": [ + "People.Location" + ], + "summary": "Get HomeAddress property value", + "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", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "Address", + "City" + ], + "type": "string" + } + } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*" + ], + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Result entities", + "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}/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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection", + "operationId": "People.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": { + "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "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": { @@ -32411,4 +34231,4 @@ "x-ms-docs-toc-type": "container" } ] -} \ No newline at end of file +} 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 efb0bfaef..a26ae9354 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.yaml +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.yaml @@ -2866,6 +2866,183 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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.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 + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Address + - Address desc + - City + - City desc + type: string + - name: $select + in: query + description: Select properties to be returned + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Address + - City + type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + 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: 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/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.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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: Me.ListAddressInfo.AsEventLocation + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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: @@ -4110,52 +4287,13 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/HomeAddress: get: tags: - - Me.Person - summary: Get Peers from Me - operationId: Me.ListPeers + - Me.Location + summary: Get HomeAddress property value + operationId: Me.GetHomeAddress 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 - style: form - explode: false - schema: - uniqueItems: true - type: array - items: - enum: - - UserName - - UserName desc - - FirstName - - FirstName desc - - LastName - - LastName desc - - MiddleName - - MiddleName desc - - Gender - - Gender desc - - Age - - Age desc - - Emails - - Emails desc - - AddressInfo - - AddressInfo desc - - HomeAddress - - HomeAddress desc - - FavoriteFeature - - FavoriteFeature desc - - Features - - Features desc - type: string - name: $select in: query description: Select properties to be returned @@ -4166,20 +4304,8 @@ paths: type: array items: enum: - - UserName - - FirstName - - LastName - - MiddleName - - Gender - - Age - - Emails - - AddressInfo - - HomeAddress - - FavoriteFeature - - Features - - Friends - - BestFriend - - Trips + - Address + - City type: string - name: $expand in: query @@ -4192,13 +4318,14 @@ paths: items: enum: - '*' - - Friends - - BestFriend - - Trips type: string responses: '200': - $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse' + description: Result entities + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' default: $ref: '#/components/responses/error' deprecated: true @@ -4207,20 +4334,158 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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: + patch: tags: - - Me.Person - summary: Delete ref of navigation property Peers for Me - operationId: Me.DeleteRefPeers - parameters: - - name: UserName - in: path - description: The unique identifier of Person - required: true - schema: + - 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/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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: Me.GetHomeAddress.AsEventLocation + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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.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 + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - UserName + - UserName desc + - FirstName + - FirstName desc + - LastName + - LastName desc + - MiddleName + - MiddleName desc + - Gender + - Gender desc + - Age + - Age desc + - Emails + - Emails desc + - AddressInfo + - AddressInfo desc + - HomeAddress + - HomeAddress desc + - FavoriteFeature + - FavoriteFeature desc + - Features + - Features desc + type: string + - name: $select + in: query + description: Select properties to be returned + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - UserName + - FirstName + - LastName + - MiddleName + - Gender + - Age + - Emails + - AddressInfo + - HomeAddress + - FavoriteFeature + - Features + - Friends + - BestFriend + - Trips + type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + 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.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 @@ -5517,15 +5782,33 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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. + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo: get: tags: - - Me.Person - summary: Get BestFriend from Me - description: The best friend. - operationId: Me.GetBestFriend + - 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 + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Address + - Address desc + - City + - City desc + type: string - name: $select in: query description: Select properties to be returned @@ -5536,20 +5819,8 @@ paths: type: array items: enum: - - UserName - - FirstName - - LastName - - MiddleName - - Gender - - Age - - Emails - - AddressInfo - - HomeAddress - - FavoriteFeature - - Features - - Friends - - BestFriend - - Trips + - Address + - City type: string - name: $expand in: query @@ -5562,17 +5833,10 @@ paths: items: enum: - '*' - - Friends - - BestFriend - - Trips type: string responses: '200': - description: Retrieved navigation property - content: - application/json: - schema: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' default: $ref: '#/components/responses/error' deprecated: true @@ -5581,19 +5845,19 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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 + - Me.Location + summary: Update property AddressInfo value. + operationId: Me.UpdateAddressInfo requestBody: - description: New navigation property values + description: New property values content: application/json: schema: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' required: true responses: '204': @@ -5606,25 +5870,29 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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: + post: tags: - - Me.Person - summary: Get ref of BestFriend from Me - description: The best friend. - operationId: Me.GetRefBestFriend + - 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: - '200': - description: Retrieved navigation property link - content: - application/json: - schema: - type: string + '204': + description: Success default: $ref: '#/components/responses/error' deprecated: true @@ -5633,7 +5901,199 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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/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-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: + '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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: Me.ListAddressInfo.AsEventLocation + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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: + - 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.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.GetBestFriend + parameters: + - name: $select + in: query + description: Select properties to be returned + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - UserName + - FirstName + - LastName + - MiddleName + - Gender + - Age + - Emails + - AddressInfo + - HomeAddress + - FavoriteFeature + - Features + - Friends + - BestFriend + - Trips + type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + 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/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.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 @@ -7362,26 +7822,64 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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: + /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/HomeAddress: + get: tags: - - Me.Actions - summary: Invoke action Hire - description: Hires someone for the company. - operationId: Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire + - Me.Location + summary: Get HomeAddress property value + operationId: Me.GetHomeAddress + parameters: + - name: $select + in: query + description: Select properties to be returned + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Address + - City + type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + type: string + responses: + '200': + description: Result entities + 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: Action parameters + description: New property values content: application/json: schema: - type: object - properties: - hire: - anyOf: - - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' - - type: object - nullable: true + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' required: true responses: '204': @@ -7394,7 +7892,57 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation: + description: Casts the previous resource to EventLocation. + get: + tags: + - Me.Location + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: Me.GetHomeAddress.AsEventLocation + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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.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: object + nullable: true + 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: @@ -14288,14 +14836,12 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo': get: tags: - - People.Person - summary: Get BestFriend from People - description: The best friend. - operationId: People.GetBestFriend + - People.Location + summary: Get AddressInfo property value + operationId: People.ListAddressInfo parameters: - name: UserName in: path @@ -14304,6 +14850,26 @@ paths: 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 + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Address + - Address desc + - City + - City desc + type: string - name: $select in: query description: Select properties to be returned @@ -14314,20 +14880,8 @@ paths: type: array items: enum: - - UserName - - FirstName - - LastName - - MiddleName - - Gender - - Age - - Emails - - AddressInfo - - HomeAddress - - FavoriteFeature - - Features - - Friends - - BestFriend - - Trips + - Address + - City type: string - name: $expand in: query @@ -14340,17 +14894,10 @@ paths: items: enum: - '*' - - Friends - - BestFriend - - Trips type: string responses: '200': - description: Retrieved navigation property - content: - application/json: - schema: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' default: $ref: '#/components/responses/error' deprecated: true @@ -14359,13 +14906,11 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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 + - People.Location + summary: Update property AddressInfo value. + operationId: People.UpdateAddressInfo parameters: - name: UserName in: path @@ -14375,11 +14920,13 @@ paths: type: string x-ms-docs-key-type: Person requestBody: - description: New navigation property values + description: New property values content: application/json: schema: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' required: true responses: '204': @@ -14392,18 +14939,11 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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: + post: tags: - - People.Person - summary: Get ref of BestFriend from People - description: The best friend. - operationId: People.GetRefBestFriend + - People.Location + summary: Sets a new value for the collection of Location. + operationId: People.SetAddressInfo parameters: - name: UserName in: path @@ -14412,13 +14952,23 @@ paths: 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: - '200': - description: Retrieved navigation property link - content: - application/json: - schema: - type: string + '204': + description: Success default: $ref: '#/components/responses/error' deprecated: true @@ -14427,13 +14977,13 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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: + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/AddressInfo/$count': + description: Provides operations to count the resources in the collection. + get: tags: - - People.Person - summary: Update the best friend. - description: Update an instance of a best friend. - operationId: People.UpdateRefBestFriend + - People.Location + summary: Get the number of the resource + operationId: People.AddressInfo.GetCount-3d43 parameters: - name: UserName in: path @@ -14442,11 +14992,11 @@ paths: schema: type: string x-ms-docs-key-type: Person - requestBody: - $ref: '#/components/requestBodies/refPutBody' + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' responses: - '204': - description: Success + '200': + $ref: '#/components/responses/ODataCountResponse' default: $ref: '#/components/responses/error' deprecated: true @@ -14455,12 +15005,13 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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: + '/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.Person - summary: Delete ref of navigation property BestFriend for People - operationId: People.DeleteRefBestFriend + - People.Location + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: People.ListAddressInfo.AsEventLocation parameters: - name: UserName in: path @@ -14469,14 +15020,9 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: If-Match - in: header - description: ETag - schema: - type: string responses: - '204': - description: Success + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' default: $ref: '#/components/responses/error' deprecated: true @@ -14485,13 +15031,11 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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': + '/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: - tags: - - People.Person.Location - summary: Get AddressInfo property value - operationId: People.BestFriend.ListAddressInfo + summary: Get the number of the resource + operationId: People.AddressInfo.GetCount.AsEventLocation-ac7d parameters: - name: UserName in: path @@ -14500,54 +15044,11 @@ paths: 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 - style: form - explode: false - schema: - uniqueItems: true - type: array - items: - enum: - - Address - - Address desc - - City - - City desc - type: string - - name: $select - in: query - description: Select properties to be returned - style: form - explode: false - schema: - uniqueItems: true - type: array - items: - enum: - - Address - - City - type: string - - name: $expand - in: query - description: Expand related entities - style: form - explode: false - schema: - uniqueItems: true - type: array - items: - enum: - - '*' - type: string responses: '200': - $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' + $ref: '#/components/responses/ODataCountResponse' default: $ref: '#/components/responses/error' deprecated: true @@ -14556,11 +15057,14 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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: + '/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.Location - summary: Update property AddressInfo value. - operationId: People.BestFriend.UpdateAddressInfo + - People.Person + summary: Get BestFriend from People + description: The best friend. + operationId: People.GetBestFriend parameters: - name: UserName in: path @@ -14569,18 +15073,53 @@ paths: schema: type: string x-ms-docs-key-type: Person - requestBody: - description: New property values - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' - required: true + - name: $select + in: query + description: Select properties to be returned + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - UserName + - FirstName + - LastName + - MiddleName + - Gender + - Age + - Emails + - AddressInfo + - HomeAddress + - FavoriteFeature + - Features + - Friends + - BestFriend + - Trips + type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string responses: - '204': - description: Success + '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 @@ -14589,11 +15128,13 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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: + x-ms-docs-operation-type: operation + patch: tags: - - People.Person.Location - summary: Sets a new value for the collection of Location. - operationId: People.BestFriend.SetAddressInfo + - People.Person + summary: Update the best friend. + description: Update an instance of a best friend. + operationId: People.UpdateBestFriend parameters: - name: UserName in: path @@ -14602,19 +15143,12 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: If-Match - in: header - description: ETag - schema: - type: string requestBody: - description: New property values + description: New navigation property values content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person' required: true responses: '204': @@ -14627,13 +15161,18 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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. + 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.Location - summary: Get the number of the resource - operationId: People.BestFriend.AddressInfo.GetCount-cb8a + - People.Person + summary: Get ref of BestFriend from People + description: The best friend. + operationId: People.GetRefBestFriend parameters: - name: UserName in: path @@ -14642,11 +15181,13 @@ paths: schema: type: string x-ms-docs-key-type: Person - - $ref: '#/components/parameters/search' - - $ref: '#/components/parameters/filter' responses: '200': - $ref: '#/components/responses/ODataCountResponse' + description: Retrieved navigation property link + content: + application/json: + schema: + type: string default: $ref: '#/components/responses/error' deprecated: true @@ -14655,13 +15196,13 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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: + x-ms-docs-operation-type: operation + put: tags: - - People.Person.Location - summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection - operationId: People.BestFriend.ListAddressInfo.AsEventLocation + - People.Person + summary: Update the best friend. + description: Update an instance of a best friend. + operationId: People.UpdateRefBestFriend parameters: - name: UserName in: path @@ -14670,9 +15211,11 @@ paths: schema: type: string x-ms-docs-key-type: Person + requestBody: + $ref: '#/components/requestBodies/refPutBody' responses: - '200': - $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + '204': + description: Success default: $ref: '#/components/responses/error' deprecated: true @@ -14681,11 +15224,12 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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 + 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 @@ -14694,11 +15238,14 @@ paths: schema: type: string x-ms-docs-key-type: Person - - $ref: '#/components/parameters/search' - - $ref: '#/components/parameters/filter' + - name: If-Match + in: header + description: ETag + schema: + type: string responses: - '200': - $ref: '#/components/responses/ODataCountResponse' + '204': + description: Success default: $ref: '#/components/responses/error' deprecated: true @@ -14707,12 +15254,13 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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': + x-ms-docs-operation-type: operation + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo': get: tags: - People.Person.Location - summary: Get HomeAddress property value - operationId: People.BestFriend.GetHomeAddress + summary: Get AddressInfo property value + operationId: People.BestFriend.ListAddressInfo parameters: - name: UserName in: path @@ -14721,6 +15269,26 @@ paths: 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 + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Address + - Address desc + - City + - City desc + type: string - name: $select in: query description: Select properties to be returned @@ -14748,11 +15316,7 @@ paths: type: string responses: '200': - description: Result entities - content: - application/json: - schema: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse' default: $ref: '#/components/responses/error' deprecated: true @@ -14764,8 +15328,8 @@ paths: patch: tags: - People.Person.Location - summary: Update property HomeAddress value. - operationId: People.BestFriend.UpdateHomeAddress + summary: Update property AddressInfo value. + operationId: People.BestFriend.UpdateAddressInfo parameters: - name: UserName in: path @@ -14779,7 +15343,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' + type: array + items: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' required: true responses: '204': @@ -14792,13 +15358,51 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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. + 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}/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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection - operationId: People.BestFriend.GetHomeAddress.AsEventLocation + summary: Get the number of the resource + operationId: People.BestFriend.AddressInfo.GetCount-cb8a parameters: - name: UserName in: path @@ -14807,9 +15411,11 @@ paths: schema: type: string x-ms-docs-key-type: Person + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' responses: '200': - $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + $ref: '#/components/responses/ODataCountResponse' default: $ref: '#/components/responses/error' deprecated: true @@ -14818,13 +15424,13 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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. + '/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 - 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 + - People.Person.Location + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: People.BestFriend.ListAddressInfo.AsEventLocation parameters: - name: UserName in: path @@ -14833,20 +15439,183 @@ paths: 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: - enum: - - UserName - - FirstName - - LastName - - MiddleName + responses: + '200': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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.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 + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Address + - City + type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + type: string + responses: + '200': + description: Result entities + 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}/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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: People.BestFriend.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': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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 + 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 + type: array + items: + enum: + - UserName + - FirstName + - LastName + - MiddleName - Gender - Age - Emails @@ -15764,13 +16533,12 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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. + '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/HomeAddress': get: tags: - - People.Person - summary: Get Peers from People - operationId: People.ListPeers + - People.Location + summary: Get HomeAddress property value + operationId: People.GetHomeAddress parameters: - name: UserName in: path @@ -15779,44 +16547,6 @@ paths: 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 - style: form - explode: false - schema: - uniqueItems: true - type: array - items: - enum: - - UserName - - UserName desc - - FirstName - - FirstName desc - - LastName - - LastName desc - - MiddleName - - MiddleName desc - - Gender - - Gender desc - - Age - - Age desc - - Emails - - Emails desc - - AddressInfo - - AddressInfo desc - - HomeAddress - - HomeAddress desc - - FavoriteFeature - - FavoriteFeature desc - - Features - - Features desc - type: string - name: $select in: query description: Select properties to be returned @@ -15827,20 +16557,8 @@ paths: type: array items: enum: - - UserName - - FirstName - - LastName - - MiddleName - - Gender - - Age - - Emails - - AddressInfo - - HomeAddress - - FavoriteFeature - - Features - - Friends - - BestFriend - - Trips + - Address + - City type: string - name: $expand in: query @@ -15853,13 +16571,14 @@ paths: items: enum: - '*' - - Friends - - BestFriend - - Trips type: string responses: '200': - $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse' + description: Result entities + content: + application/json: + schema: + $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location' default: $ref: '#/components/responses/error' deprecated: true @@ -15868,14 +16587,175 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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: + patch: tags: - - People.Person - summary: Delete ref of navigation property Peers for People - operationId: People.DeleteRefPeers + - 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}/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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: People.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': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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.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 + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - UserName + - UserName desc + - FirstName + - FirstName desc + - LastName + - LastName desc + - MiddleName + - MiddleName desc + - Gender + - Gender desc + - Age + - Age desc + - Emails + - Emails desc + - AddressInfo + - AddressInfo desc + - HomeAddress + - HomeAddress desc + - FavoriteFeature + - FavoriteFeature desc + - Features + - Features desc + type: string + - name: $select + in: query + description: Select properties to be returned + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - UserName + - FirstName + - LastName + - MiddleName + - Gender + - Age + - Emails + - AddressInfo + - HomeAddress + - FavoriteFeature + - Features + - Friends + - BestFriend + - Trips + type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + 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.DeleteRefPeers parameters: - name: UserName in: path @@ -17200,14 +18080,348 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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. + 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.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 + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - TripId + - ShareId + - Name + - Budget + - Description + - Tags + - StartsAt + - EndsAt + - PlanItems + type: string + - name: $orderby + in: query + description: Order items by property values + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - TripId + - TripId desc + - ShareId + - ShareId desc + - Name + - Name desc + - Budget + - Budget desc + - Description + - Description desc + - Tags + - Tags desc + - StartsAt + - StartsAt desc + - EndsAt + - EndsAt desc + 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.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 + 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 + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - UserName + - FirstName + - LastName + - MiddleName + - Gender + - Age + - Emails + - AddressInfo + - HomeAddress + - FavoriteFeature + - Features + - Friends + - BestFriend + - Trips + type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string + responses: + '200': + description: Result entities + 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.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 + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Address + - Address desc + - City + - City desc + type: string + - name: $select + in: query + description: Select properties to be returned + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - Address + - City + type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + 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: 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}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/AddressInfo/$count': + description: Provides operations to count the resources in the collection. get: tags: - - People.Functions - summary: Invoke function GetFriendsTrips - operationId: People.Person.GetFriendsTrips + - People.Location + summary: Get the number of the resource + operationId: People.AddressInfo.GetCount-f84e parameters: - name: UserName in: path @@ -17216,67 +18430,20 @@ paths: schema: type: string x-ms-docs-key-type: Person - - name: userName - in: path - description: 'Usage: userName=''{userName}''' - required: true + - name: ConsistencyLevel + in: header + description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' schema: type: string - - $ref: '#/components/parameters/top' - - $ref: '#/components/parameters/skip' + 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' - - $ref: '#/components/parameters/count' - - name: $select - in: query - description: Select properties to be returned - style: form - explode: false - schema: - uniqueItems: true - type: array - items: - enum: - - TripId - - ShareId - - Name - - Budget - - Description - - Tags - - StartsAt - - EndsAt - - PlanItems - type: string - - name: $orderby - in: query - description: Order items by property values - style: form - explode: false - schema: - uniqueItems: true - type: array - items: - enum: - - TripId - - TripId desc - - ShareId - - ShareId desc - - Name - - Name desc - - Budget - - Budget desc - - Description - - Description desc - - Tags - - Tags desc - - StartsAt - - StartsAt desc - - EndsAt - - EndsAt desc - type: string responses: '200': - $ref: '#/components/responses/GetFriendsTripsResponse' + $ref: '#/components/responses/ODataCountResponse' default: $ref: '#/components/responses/error' deprecated: true @@ -17285,14 +18452,13 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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: + '/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.Actions - summary: Invoke action GetPeersForTrip - operationId: People.Person.GetPeersForTrip + - People.Location + summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: People.ListAddressInfo.AsEventLocation parameters: - name: UserName in: path @@ -17301,11 +18467,9 @@ paths: schema: type: string x-ms-docs-key-type: Person - requestBody: - $ref: '#/components/requestBodies/GetPeersForTripRequestBody' responses: '200': - $ref: '#/components/responses/GetPeersForTripResponse' + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' default: $ref: '#/components/responses/error' deprecated: true @@ -17314,14 +18478,11 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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. + '/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: - 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 + summary: Get the number of the resource + operationId: People.AddressInfo.GetCount.AsEventLocation-3722 parameters: - name: UserName in: path @@ -17339,53 +18500,11 @@ paths: 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: - enum: - - UserName - - FirstName - - LastName - - MiddleName - - Gender - - Age - - Emails - - AddressInfo - - HomeAddress - - FavoriteFeature - - Features - - Friends - - BestFriend - - Trips - type: string - - name: $expand - in: query - description: Expand related entities - style: form - explode: false - schema: - uniqueItems: true - type: array - items: - enum: - - '*' - - Friends - - BestFriend - - Trips - type: string + - $ref: '#/components/parameters/search' + - $ref: '#/components/parameters/filter' responses: '200': - description: Result entities - content: - application/json: - schema: - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager' + $ref: '#/components/responses/ODataCountResponse' default: $ref: '#/components/responses/error' deprecated: true @@ -19570,6 +20689,117 @@ paths: date: '2021-08-24T00:00:00.0000000+00:00' 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.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 + type: array + items: + enum: + - Address + - City + type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + type: string + responses: + '200': + description: Result entities + 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}/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 items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection + operationId: People.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': + $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse' + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + 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: @@ -22501,4 +23731,4 @@ tags: - name: People.Actions x-ms-docs-toc-type: container - name: ResetDataSource - x-ms-docs-toc-type: container \ No newline at end of file + x-ms-docs-toc-type: container