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 87d60c6f..116d8de2 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.6.0-preview.2 + 1.6.0-preview.3 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 @@ -23,6 +23,7 @@ - Reads annotations on structural properties of stream types for media entity paths #399 - Updates the format of the request body schema of a collection of complex property #423 +- Adds a delete operation and a required @id query parameter to collection-valued navigation property paths with $ref #453 Microsoft.OpenApi.OData.Reader ..\..\tool\Microsoft.OpenApi.OData.snk diff --git a/src/Microsoft.OpenApi.OData.Reader/Operation/RefDeleteOperationHandler.cs b/src/Microsoft.OpenApi.OData.Reader/Operation/RefDeleteOperationHandler.cs index 1b68f1f3..0d8d12cd 100644 --- a/src/Microsoft.OpenApi.OData.Reader/Operation/RefDeleteOperationHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/Operation/RefDeleteOperationHandler.cs @@ -59,22 +59,24 @@ protected override void SetParameters(OpenApiOperation operation) { Type = "string" } - }); - - // for collection, we should have @id in query - if (NavigationProperty.TargetMultiplicity() == EdmMultiplicity.Many) - { - operation.Parameters.Add(new OpenApiParameter - { - Name = "@id", - In = ParameterLocation.Query, - Description = "Delete Uri", - Schema = new OpenApiSchema - { - Type = "string" - } - }); - } + }); + + // for collection, we should have @id in query + if (NavigationProperty.TargetMultiplicity() == EdmMultiplicity.Many && + Path.Segments.Reverse().Skip(1).First() is ODataNavigationPropertySegment) + { + operation.Parameters.Add(new OpenApiParameter + { + Name = "@id", + In = ParameterLocation.Query, + Description = "The delete Uri", + Required = true, + Schema = new OpenApiSchema + { + Type = "string" + } + }); + } } /// diff --git a/src/Microsoft.OpenApi.OData.Reader/PathItem/RefPathItemHandler.cs b/src/Microsoft.OpenApi.OData.Reader/PathItem/RefPathItemHandler.cs index e55c0dd9..68751b4b 100644 --- a/src/Microsoft.OpenApi.OData.Reader/PathItem/RefPathItemHandler.cs +++ b/src/Microsoft.OpenApi.OData.Reader/PathItem/RefPathItemHandler.cs @@ -1,4 +1,4 @@ -// ------------------------------------------------------------ +// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // ------------------------------------------------------------ @@ -65,22 +65,21 @@ protected override void SetOperations(OpenApiPathItem item) } } - // So far, we only consider the non-containment - Debug.Assert(!NavigationProperty.ContainsTarget); - // Create the ref if (NavigationProperty.TargetMultiplicity() == EdmMultiplicity.Many) { ODataSegment penultimateSegment = Path.Segments.Reverse().Skip(1).First(); if (penultimateSegment is ODataKeySegment) { - // Collection-valued: DELETE ~/entityset/{key}/collection-valued-Nav/{key}/$ref + // Collection-valued indexed: DELETE ~/entityset/{key}/collection-valued-Nav/{key}/$ref AddDeleteOperation(item, restriction); } else { AddReadOperation(item, restriction); AddInsertOperation(item, restriction); + // Collection-valued: DELETE ~/entityset/{key}/collection-valued-Nav/$ref?$id='{navKey}' + AddDeleteOperation(item, restriction); } } else diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/RefPathItemHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/RefPathItemHandlerTests.cs index cc395323..025afeb6 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/RefPathItemHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/PathItem/RefPathItemHandlerTests.cs @@ -57,10 +57,10 @@ public void CreatePathItemThrowsForNonNavigationPropertyPath() } [Theory] - [InlineData(true, new OperationType[] { OperationType.Delete})] - [InlineData(true, new OperationType[] { OperationType.Get, OperationType.Post})] + [InlineData(true, new OperationType[] { OperationType.Delete}, true)] + [InlineData(true, new OperationType[] { OperationType.Get, OperationType.Post, OperationType.Delete })] [InlineData(false, new OperationType[] { OperationType.Get, OperationType.Put, OperationType.Delete })] - public void CreateNavigationPropertyRefPathItemReturnsCorrectPathItem(bool collectionNav, OperationType[] expected) + public void CreateNavigationPropertyRefPathItemReturnsCorrectPathItem(bool collectionNav, OperationType[] expected, bool indexedColNav = false) { // Arrange IEdmModel model = GetEdmModel(""); @@ -75,7 +75,7 @@ public void CreateNavigationPropertyRefPathItemReturnsCorrectPathItem(bool colle Assert.NotNull(property); ODataPath path; - if (collectionNav && expected.Contains(OperationType.Delete)) + if (collectionNav && indexedColNav) { // DELETE ~/entityset/{key}/collection-valued-Nav/{key}/$ref path = new ODataPath(new ODataNavigationSourceSegment(entitySet), diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.json index b19a6238..a80a3ecd 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.json +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.json @@ -789,12 +789,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -968,6 +962,48 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "Documents.RevisionDto" + ], + "summary": "Delete ref of navigation property Revisions for Documents", + "operationId": "Documents.DeleteRefRevisions", + "parameters": [ + { + "in": "path", + "name": "Id", + "description": "The unique identifier of DocumentDto", + "required": true, + "type": "integer", + "format": "int32", + "maximum": 2147483647, + "minimum": -2147483648, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, "x-description": "Provides operations to manage the collection of DocumentDto entities." }, "/Documents({Id})/Tags": { @@ -1666,12 +1702,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -2091,6 +2121,48 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "Libraries.DocumentDto" + ], + "summary": "Delete ref of navigation property Documents for Libraries", + "operationId": "Libraries.DeleteRefDocuments", + "parameters": [ + { + "in": "path", + "name": "Id", + "description": "The unique identifier of LibraryDto", + "required": true, + "type": "integer", + "format": "int32", + "maximum": 2147483647, + "minimum": -2147483648, + "x-ms-docs-key-type": "LibraryDto" + }, + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, "x-description": "Provides operations to manage the collection of LibraryDto entities." }, "/Libraries/$count": { @@ -3645,12 +3717,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -3824,6 +3890,48 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "Tasks.RevisionDto" + ], + "summary": "Delete ref of navigation property Revisions for Tasks", + "operationId": "Tasks.DeleteRefRevisions", + "parameters": [ + { + "in": "path", + "name": "Id", + "description": "The unique identifier of DocumentDto", + "required": true, + "type": "integer", + "format": "int32", + "maximum": 2147483647, + "minimum": -2147483648, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, "x-description": "Provides operations to manage the collection of DocumentDto entities." }, "/Tasks({Id})/Tags": { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.yaml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.yaml index 8f83378a..51d94bdf 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.yaml +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.yaml @@ -565,10 +565,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -690,6 +686,36 @@ paths: default: $ref: '#/responses/error' x-ms-docs-operation-type: operation + delete: + tags: + - Documents.RevisionDto + summary: Delete ref of navigation property Revisions for Documents + operationId: Documents.DeleteRefRevisions + parameters: + - in: path + name: Id + description: The unique identifier of DocumentDto + required: true + type: integer + format: int32 + maximum: 2147483647 + minimum: -2147483648 + x-ms-docs-key-type: DocumentDto + - in: header + name: If-Match + description: ETag + type: string + - in: query + name: '@id' + description: The delete Uri + required: true + type: string + responses: + '204': + description: Success + default: + $ref: '#/responses/error' + x-ms-docs-operation-type: operation x-description: Provides operations to manage the collection of DocumentDto entities. '/Documents({Id})/Tags': get: @@ -1183,10 +1209,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -1472,6 +1494,36 @@ paths: default: $ref: '#/responses/error' x-ms-docs-operation-type: operation + delete: + tags: + - Libraries.DocumentDto + summary: Delete ref of navigation property Documents for Libraries + operationId: Libraries.DeleteRefDocuments + parameters: + - in: path + name: Id + description: The unique identifier of LibraryDto + required: true + type: integer + format: int32 + maximum: 2147483647 + minimum: -2147483648 + x-ms-docs-key-type: LibraryDto + - in: header + name: If-Match + description: ETag + type: string + - in: query + name: '@id' + description: The delete Uri + required: true + type: string + responses: + '204': + description: Success + default: + $ref: '#/responses/error' + x-ms-docs-operation-type: operation x-description: Provides operations to manage the collection of LibraryDto entities. /Libraries/$count: get: @@ -2595,10 +2647,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -2720,6 +2768,36 @@ paths: default: $ref: '#/responses/error' x-ms-docs-operation-type: operation + delete: + tags: + - Tasks.RevisionDto + summary: Delete ref of navigation property Revisions for Tasks + operationId: Tasks.DeleteRefRevisions + parameters: + - in: path + name: Id + description: The unique identifier of DocumentDto + required: true + type: integer + format: int32 + maximum: 2147483647 + minimum: -2147483648 + x-ms-docs-key-type: DocumentDto + - in: header + name: If-Match + description: ETag + type: string + - in: query + name: '@id' + description: The delete Uri + required: true + type: string + responses: + '204': + description: Success + default: + $ref: '#/responses/error' + x-ms-docs-operation-type: operation x-description: Provides operations to manage the collection of DocumentDto entities. '/Tasks({Id})/Tags': get: diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.json index a0d6d86b..f895967e 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.json +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.json @@ -886,14 +886,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -1077,6 +1069,54 @@ } }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Documents.RevisionDto" + ], + "summary": "Delete ref of navigation property Revisions for Documents", + "operationId": "Documents.DeleteRefRevisions", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" } }, "/Documents({Id})/Tags": { @@ -1858,14 +1898,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -2326,6 +2358,54 @@ } }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Libraries.DocumentDto" + ], + "summary": "Delete ref of navigation property Documents for Libraries", + "operationId": "Libraries.DeleteRefDocuments", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of LibraryDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "format": "int32" + }, + "x-ms-docs-key-type": "LibraryDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" } }, "/Libraries/$count": { @@ -4083,14 +4163,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -4274,6 +4346,54 @@ } }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Tasks.RevisionDto" + ], + "summary": "Delete ref of navigation property Revisions for Tasks", + "operationId": "Tasks.DeleteRefRevisions", + "parameters": [ + { + "name": "Id", + "in": "path", + "description": "The unique identifier of DocumentDto", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "format": "int32" + }, + "x-ms-docs-key-type": "DocumentDto" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" } }, "/Tasks({Id})/Tags": { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.yaml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.yaml index fd0ea912..18f9bc92 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.yaml +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.yaml @@ -629,11 +629,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -763,6 +758,39 @@ paths: default: $ref: '#/components/responses/error' x-ms-docs-operation-type: operation + delete: + tags: + - Documents.RevisionDto + summary: Delete ref of navigation property Revisions for Documents + operationId: Documents.DeleteRefRevisions + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: integer + format: int32 + x-ms-docs-key-type: DocumentDto + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation '/Documents({Id})/Tags': get: tags: @@ -1311,11 +1339,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -1628,6 +1651,39 @@ paths: default: $ref: '#/components/responses/error' x-ms-docs-operation-type: operation + delete: + tags: + - Libraries.DocumentDto + summary: Delete ref of navigation property Documents for Libraries + operationId: Libraries.DeleteRefDocuments + parameters: + - name: Id + in: path + description: The unique identifier of LibraryDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: integer + format: int32 + x-ms-docs-key-type: LibraryDto + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation /Libraries/$count: description: Provides operations to count the resources in the collection. get: @@ -2884,11 +2940,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -3018,6 +3069,39 @@ paths: default: $ref: '#/components/responses/error' x-ms-docs-operation-type: operation + delete: + tags: + - Tasks.RevisionDto + summary: Delete ref of navigation property Revisions for Tasks + operationId: Tasks.DeleteRefRevisions + parameters: + - name: Id + in: path + description: The unique identifier of DocumentDto + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: integer + format: int32 + x-ms-docs-key-type: DocumentDto + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation '/Tasks({Id})/Tags': get: tags: 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 4f592e5c..614be48e 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 @@ -2520,12 +2520,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -3296,6 +3290,44 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property Friends for Me", + "operationId": "Me.DeleteRefFriends", + "parameters": [ + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "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 collection of Person entities." }, "/Me/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { @@ -4843,12 +4875,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -5538,6 +5564,44 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property Friends for Me", + "operationId": "Me.DeleteRefFriends", + "parameters": [ + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "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 collection of Person entities." }, "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { @@ -5943,12 +6007,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -6557,6 +6615,44 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property Peers for Me", + "operationId": "Me.DeleteRefPeers", + "parameters": [ + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "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 collection of Person entities." }, "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips": { @@ -7165,12 +7261,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -7348,6 +7438,55 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for Me", + "operationId": "Me.Trips.DeleteRefPlanItems", + "parameters": [ + { + "in": "path", + "name": "TripId", + "description": "The unique identifier of Trip", + "required": true, + "type": "integer", + "format": "int32", + "maximum": 2147483647, + "minimum": -2147483648, + "x-ms-docs-key-type": "Trip" + }, + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "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 collection of Person entities." }, "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/$count": { @@ -8694,12 +8833,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -9320,6 +9453,44 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property DirectReports for Me", + "operationId": "Me.DeleteRefDirectReports", + "parameters": [ + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "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 collection of Person entities." }, "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends": { @@ -9463,12 +9634,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -10158,37 +10323,75 @@ }, "x-ms-docs-operation-type": "operation" }, - "x-description": "Provides operations to manage the collection of Person entities." - }, - "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { - "get": { + "delete": { "tags": [ "Me.Person" ], - "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", - "operationId": "Me.ListFriends.AsEmployee", + "summary": "Delete ref of navigation property Friends for Me", + "operationId": "Me.DeleteRefFriends", "parameters": [ { - "$ref": "#/parameters/top" - }, - { - "$ref": "#/parameters/skip" - }, - { - "$ref": "#/parameters/search" - }, - { - "$ref": "#/parameters/filter" - }, - { - "$ref": "#/parameters/count" + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" }, { "in": "query", - "name": "$orderby", - "description": "Order items by property values", - "type": "array", - "items": { + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "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 collection of Person entities." + }, + "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { + "get": { + "tags": [ + "Me.Person" + ], + "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection", + "operationId": "Me.ListFriends.AsEmployee", + "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": [ "UserName", "UserName desc", @@ -11078,12 +11281,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -11261,6 +11458,55 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for Me", + "operationId": "Me.Trips.DeleteRefPlanItems", + "parameters": [ + { + "in": "path", + "name": "TripId", + "description": "The unique identifier of Trip", + "required": true, + "type": "integer", + "format": "int32", + "maximum": 2147483647, + "minimum": -2147483648, + "x-ms-docs-key-type": "Trip" + }, + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "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 collection of Person entities." }, "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count": { @@ -11975,12 +12221,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -12158,6 +12398,55 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for Me", + "operationId": "Me.Trips.DeleteRefPlanItems", + "parameters": [ + { + "in": "path", + "name": "TripId", + "description": "The unique identifier of Trip", + "required": true, + "type": "integer", + "format": "int32", + "maximum": 2147483647, + "minimum": -2147483648, + "x-ms-docs-key-type": "Trip" + }, + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "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 collection of Person entities." }, "/Me/Trips/$count": { @@ -13786,12 +14075,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -14581,6 +14864,45 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Delete ref of navigation property Friends for NewComePeople", + "operationId": "NewComePeople.DeleteRefFriends", + "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": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, "x-description": "Provides operations to manage the collection of Person entities." }, "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { @@ -15893,12 +16215,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -16072,6 +16388,56 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "NewComePeople.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for NewComePeople", + "operationId": "NewComePeople.Trips.DeleteRefPlanItems", + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + }, + { + "in": "path", + "name": "TripId", + "description": "The unique identifier of Trip", + "required": true, + "type": "integer", + "format": "int32", + "maximum": 2147483647, + "minimum": -2147483648, + "x-ms-docs-key-type": "Trip" + }, + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + }, "x-description": "Provides operations to manage the collection of Person entities." }, "/NewComePeople/{UserName}/Trips/$count": { @@ -17807,12 +18173,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -18695,6 +19055,52 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property Friends for People", + "operationId": "People.DeleteRefFriends", + "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": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "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." + }, + "x-ms-docs-operation-type": "operation" + }, "x-description": "Provides operations to manage the collection of Person entities." }, "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { @@ -20506,12 +20912,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -21305,6 +21705,52 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property Friends for People", + "operationId": "People.DeleteRefFriends", + "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": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "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." + }, + "x-ms-docs-operation-type": "operation" + }, "x-description": "Provides operations to manage the collection of Person entities." }, "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { @@ -21768,12 +22214,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -22478,6 +22918,52 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property Peers for People", + "operationId": "People.DeleteRefPeers", + "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": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "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." + }, + "x-ms-docs-operation-type": "operation" + }, "x-description": "Provides operations to manage the collection of Person entities." }, "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips": { @@ -23150,12 +23636,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -23357,6 +23837,63 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for People", + "operationId": "People.Trips.DeleteRefPlanItems", + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + }, + { + "in": "path", + "name": "TripId", + "description": "The unique identifier of Trip", + "required": true, + "type": "integer", + "format": "int32", + "maximum": 2147483647, + "minimum": -2147483648, + "x-ms-docs-key-type": "Trip" + }, + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "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." + }, + "x-ms-docs-operation-type": "operation" + }, "x-description": "Provides operations to manage the collection of Person entities." }, "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/$count": { @@ -24943,12 +25480,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -25665,6 +26196,52 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property DirectReports for People", + "operationId": "People.DeleteRefDirectReports", + "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": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "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." + }, + "x-ms-docs-operation-type": "operation" + }, "x-description": "Provides operations to manage the collection of Person entities." }, "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends": { @@ -25824,12 +26401,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -26623,6 +27194,52 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property Friends for People", + "operationId": "People.DeleteRefFriends", + "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": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "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." + }, + "x-ms-docs-operation-type": "operation" + }, "x-description": "Provides operations to manage the collection of Person entities." }, "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { @@ -27657,12 +28274,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -27864,6 +28475,63 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for People", + "operationId": "People.Trips.DeleteRefPlanItems", + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + }, + { + "in": "path", + "name": "TripId", + "description": "The unique identifier of Trip", + "required": true, + "type": "integer", + "format": "int32", + "maximum": 2147483647, + "minimum": -2147483648, + "x-ms-docs-key-type": "Trip" + }, + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "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." + }, + "x-ms-docs-operation-type": "operation" + }, "x-description": "Provides operations to manage the collection of Person entities." }, "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count": { @@ -28666,12 +29334,6 @@ "name": "If-Match", "description": "ETag", "type": "string" - }, - { - "in": "query", - "name": "@id", - "description": "Delete Uri", - "type": "string" } ], "responses": { @@ -28873,6 +29535,63 @@ }, "x-ms-docs-operation-type": "operation" }, + "delete": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for People", + "operationId": "People.Trips.DeleteRefPlanItems", + "parameters": [ + { + "in": "path", + "name": "UserName", + "description": "The unique identifier of Person", + "required": true, + "type": "string", + "x-ms-docs-key-type": "Person" + }, + { + "in": "path", + "name": "TripId", + "description": "The unique identifier of Trip", + "required": true, + "type": "integer", + "format": "int32", + "maximum": 2147483647, + "minimum": -2147483648, + "x-ms-docs-key-type": "Trip" + }, + { + "in": "header", + "name": "If-Match", + "description": "ETag", + "type": "string" + }, + { + "in": "query", + "name": "@id", + "description": "The delete Uri", + "required": true, + "type": "string" + } + ], + "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." + }, + "x-ms-docs-operation-type": "operation" + }, "x-description": "Provides operations to manage the collection of Person entities." }, "/People/{UserName}/Trips/$count": { 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 80953d52..aaac5390 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 @@ -1725,10 +1725,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -2265,6 +2261,33 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property Friends for Me + operationId: Me.DeleteRefFriends + parameters: + - in: header + name: If-Match + description: ETag + type: string + - in: query + name: '@id' + description: The delete Uri + required: true + type: string + 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 collection of Person entities. /Me/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee: get: @@ -3351,10 +3374,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -3830,6 +3849,33 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property Friends for Me + operationId: Me.DeleteRefFriends + parameters: + - in: header + name: If-Match + description: ETag + type: string + - in: query + name: '@id' + description: The delete Uri + required: true + type: string + 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 collection of Person entities. /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager: get: @@ -4122,10 +4168,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -4540,6 +4582,33 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property Peers for Me + operationId: Me.DeleteRefPeers + parameters: + - in: header + name: If-Match + description: ETag + type: string + - in: query + name: '@id' + description: The delete Uri + required: true + type: string + 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 collection of Person entities. /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips: get: @@ -4983,10 +5052,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -5108,6 +5173,42 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - Me.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for Me + operationId: Me.Trips.DeleteRefPlanItems + parameters: + - in: path + name: TripId + description: The unique identifier of Trip + required: true + type: integer + format: int32 + maximum: 2147483647 + minimum: -2147483648 + x-ms-docs-key-type: Trip + - in: header + name: If-Match + description: ETag + type: string + - in: query + name: '@id' + description: The delete Uri + required: true + type: string + 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 collection of Person entities. /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/$count: get: @@ -6047,10 +6148,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -6473,6 +6570,33 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property DirectReports for Me + operationId: Me.DeleteRefDirectReports + parameters: + - in: header + name: If-Match + description: ETag + type: string + - in: query + name: '@id' + description: The delete Uri + required: true + type: string + 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 collection of Person entities. /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends: get: @@ -6580,10 +6704,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -7059,6 +7179,33 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property Friends for Me + operationId: Me.DeleteRefFriends + parameters: + - in: header + name: If-Match + description: ETag + type: string + - in: query + name: '@id' + description: The delete Uri + required: true + type: string + 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 collection of Person entities. /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee: get: @@ -7722,10 +7869,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -7847,6 +7990,42 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - Me.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for Me + operationId: Me.Trips.DeleteRefPlanItems + parameters: + - in: path + name: TripId + description: The unique identifier of Trip + required: true + type: integer + format: int32 + maximum: 2147483647 + minimum: -2147483648 + x-ms-docs-key-type: Trip + - in: header + name: If-Match + description: ETag + type: string + - in: query + name: '@id' + description: The delete Uri + required: true + type: string + 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 collection of Person entities. /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count: get: @@ -8362,10 +8541,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -8487,24 +8662,60 @@ 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-ms-docs-operation-type: operation - x-description: Provides operations to manage the collection of Person entities. - /Me/Trips/$count: - get: + delete: tags: - - Me.Trip - summary: Get the number of the resource - operationId: Me.Trips.GetCount-7b69 + - Me.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for Me + operationId: Me.Trips.DeleteRefPlanItems parameters: + - in: path + name: TripId + description: The unique identifier of Trip + required: true + type: integer + format: int32 + maximum: 2147483647 + minimum: -2147483648 + x-ms-docs-key-type: Trip - in: header - name: ConsistencyLevel - description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' + name: If-Match + description: ETag + type: string + - in: query + name: '@id' + description: The delete Uri + required: true type: string - - $ref: '#/parameters/search' - - $ref: '#/parameters/filter' responses: - '200': - $ref: '#/responses/ODataCountResponse' - default: + '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 collection of Person entities. + /Me/Trips/$count: + get: + tags: + - Me.Trip + summary: Get the number of the resource + operationId: Me.Trips.GetCount-7b69 + 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: @@ -9627,10 +9838,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -10169,6 +10376,33 @@ paths: default: $ref: '#/responses/error' x-ms-docs-operation-type: operation + delete: + tags: + - NewComePeople.Person + summary: Delete ref of navigation property Friends for NewComePeople + operationId: NewComePeople.DeleteRefFriends + parameters: + - 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: query + name: '@id' + description: The delete Uri + required: true + type: string + responses: + '204': + description: Success + default: + $ref: '#/responses/error' + x-ms-docs-operation-type: operation x-description: Provides operations to manage the collection of Person entities. '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': get: @@ -11096,10 +11330,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -11215,6 +11445,42 @@ paths: default: $ref: '#/responses/error' x-ms-docs-operation-type: operation + delete: + tags: + - NewComePeople.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for NewComePeople + operationId: NewComePeople.Trips.DeleteRefPlanItems + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - in: path + name: TripId + description: The unique identifier of Trip + required: true + type: integer + format: int32 + maximum: 2147483647 + minimum: -2147483648 + x-ms-docs-key-type: Trip + - in: header + name: If-Match + description: ETag + type: string + - in: query + name: '@id' + description: The delete Uri + required: true + type: string + responses: + '204': + description: Success + default: + $ref: '#/responses/error' + x-ms-docs-operation-type: operation x-description: Provides operations to manage the collection of Person entities. '/NewComePeople/{UserName}/Trips/$count': get: @@ -12440,10 +12706,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -13064,6 +13326,39 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete ref of navigation property Friends for People + operationId: People.DeleteRefFriends + 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: query + name: '@id' + description: The delete Uri + required: true + type: string + 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. + x-ms-docs-operation-type: operation x-description: Provides operations to manage the collection of Person entities. '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': get: @@ -14345,10 +14640,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -14902,6 +15193,39 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete ref of navigation property Friends for People + operationId: People.DeleteRefFriends + 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: query + name: '@id' + description: The delete Uri + required: true + type: string + 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. + x-ms-docs-operation-type: operation x-description: Provides operations to manage the collection of Person entities. '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager': get: @@ -15237,10 +15561,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -15727,6 +16047,39 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete ref of navigation property Peers for People + operationId: People.DeleteRefPeers + 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: query + name: '@id' + description: The delete Uri + required: true + type: string + 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. + x-ms-docs-operation-type: operation x-description: Provides operations to manage the collection of Person entities. '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips': get: @@ -16218,10 +16571,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -16361,6 +16710,48 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - People.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for People + operationId: People.Trips.DeleteRefPlanItems + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - in: path + name: TripId + description: The unique identifier of Trip + required: true + type: integer + format: int32 + maximum: 2147483647 + minimum: -2147483648 + x-ms-docs-key-type: Trip + - in: header + name: If-Match + description: ETag + type: string + - in: query + name: '@id' + description: The delete Uri + required: true + type: string + 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. + x-ms-docs-operation-type: operation x-description: Provides operations to manage the collection of Person entities. '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/$count': get: @@ -17477,10 +17868,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -17975,6 +18362,39 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete ref of navigation property DirectReports for People + operationId: People.DeleteRefDirectReports + 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: query + name: '@id' + description: The delete Uri + required: true + type: string + 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. + x-ms-docs-operation-type: operation x-description: Provides operations to manage the collection of Person entities. '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends': get: @@ -18094,10 +18514,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -18651,6 +19067,39 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete ref of navigation property Friends for People + operationId: People.DeleteRefFriends + 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: query + name: '@id' + description: The delete Uri + required: true + type: string + 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. + x-ms-docs-operation-type: operation x-description: Provides operations to manage the collection of Person entities. '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': get: @@ -19399,10 +19848,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -19542,6 +19987,48 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - People.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for People + operationId: People.Trips.DeleteRefPlanItems + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - in: path + name: TripId + description: The unique identifier of Trip + required: true + type: integer + format: int32 + maximum: 2147483647 + minimum: -2147483648 + x-ms-docs-key-type: Trip + - in: header + name: If-Match + description: ETag + type: string + - in: query + name: '@id' + description: The delete Uri + required: true + type: string + 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. + x-ms-docs-operation-type: operation x-description: Provides operations to manage the collection of Person entities. '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count': get: @@ -20123,10 +20610,6 @@ paths: name: If-Match description: ETag type: string - - in: query - name: '@id' - description: Delete Uri - type: string responses: '204': description: Success @@ -20266,6 +20749,48 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - People.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for People + operationId: People.Trips.DeleteRefPlanItems + parameters: + - in: path + name: UserName + description: The unique identifier of Person + required: true + type: string + x-ms-docs-key-type: Person + - in: path + name: TripId + description: The unique identifier of Trip + required: true + type: integer + format: int32 + maximum: 2147483647 + minimum: -2147483648 + x-ms-docs-key-type: Trip + - in: header + name: If-Match + description: ETag + type: string + - in: query + name: '@id' + description: The delete Uri + required: true + type: string + 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. + x-ms-docs-operation-type: operation x-description: Provides operations to manage the collection of Person entities. '/People/{UserName}/Trips/$count': get: 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 c9896025..bcb6914a 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json @@ -2798,14 +2798,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -3647,6 +3639,48 @@ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property Friends for Me", + "operationId": "Me.DeleteRefFriends", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" } }, "/Me/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { @@ -5317,14 +5351,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -6072,6 +6098,48 @@ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property Friends for Me", + "operationId": "Me.DeleteRefFriends", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" } }, "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { @@ -6520,14 +6588,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -7181,6 +7241,48 @@ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property Peers for Me", + "operationId": "Me.DeleteRefPeers", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" } }, "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips": { @@ -7873,14 +7975,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -8068,6 +8162,61 @@ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for Me", + "operationId": "Me.Trips.DeleteRefPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" } }, "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/$count": { @@ -9549,14 +9698,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -10238,6 +10379,48 @@ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property DirectReports for Me", + "operationId": "Me.DeleteRefDirectReports", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" } }, "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends": { @@ -10401,14 +10584,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -11156,6 +11331,48 @@ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Person" + ], + "summary": "Delete ref of navigation property Friends for Me", + "operationId": "Me.DeleteRefFriends", + "parameters": [ + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" } }, "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { @@ -12188,14 +12405,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -12383,6 +12592,61 @@ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for Me", + "operationId": "Me.Trips.DeleteRefPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" } }, "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count": { @@ -13189,14 +13453,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -13384,6 +13640,61 @@ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "Me.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for Me", + "operationId": "Me.Trips.DeleteRefPlanItems", + "parameters": [ + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/me", + "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API." + }, + "x-ms-docs-operation-type": "operation" } }, "/Me/Trips/$count": { @@ -15226,14 +15537,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -16140,6 +16443,51 @@ } }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "NewComePeople.Person" + ], + "summary": "Delete ref of navigation property Friends for NewComePeople", + "operationId": "NewComePeople.DeleteRefFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" } }, "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { @@ -17641,14 +17989,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -17838,16 +18178,13 @@ } }, "x-ms-docs-operation-type": "operation" - } - }, - "/NewComePeople/{UserName}/Trips/$count": { - "description": "Provides operations to count the resources in the collection.", - "get": { + }, + "delete": { "tags": [ - "NewComePeople.Trip" + "NewComePeople.Trips.PlanItem" ], - "summary": "Get the number of the resource", - "operationId": "NewComePeople.Trips.GetCount-d155", + "summary": "Delete ref of navigation property PlanItems for NewComePeople", + "operationId": "NewComePeople.Trips.DeleteRefPlanItems", "parameters": [ { "name": "UserName", @@ -17860,12 +18197,73 @@ "x-ms-docs-key-type": "Person" }, { - "name": "ConsistencyLevel", + "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": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "description": "ETag", "schema": { "type": "string" - }, + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/NewComePeople/{UserName}/Trips/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "NewComePeople.Trip" + ], + "summary": "Get the number of the resource", + "operationId": "NewComePeople.Trips.GetCount-d155", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, "examples": { "example-1": { "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", @@ -19773,14 +20171,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -20764,6 +21154,58 @@ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property Friends for People", + "operationId": "People.DeleteRefFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" } }, "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { @@ -22780,14 +23222,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -23667,6 +24101,58 @@ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property Friends for People", + "operationId": "People.DeleteRefFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" } }, "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": { @@ -24189,14 +24675,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -24972,6 +25450,58 @@ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property Peers for People", + "operationId": "People.DeleteRefPeers", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" } }, "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips": { @@ -25746,14 +26276,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -25971,16 +26493,13 @@ "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": { + }, + "delete": { "tags": [ - "People.Trip" + "People.Trips.PlanItem" ], - "summary": "Get the number of the resource", - "operationId": "People.Trips.GetCount-c760", + "summary": "Delete ref of navigation property PlanItems for People", + "operationId": "People.Trips.DeleteRefPlanItems", "parameters": [ { "name": "UserName", @@ -25993,14 +26512,82 @@ "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": { + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" + } + }, + "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/$count": { + "description": "Provides operations to count the resources in the collection.", + "get": { + "tags": [ + "People.Trip" + ], + "summary": "Get the number of the resource", + "operationId": "People.Trips.GetCount-c760", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "ConsistencyLevel", + "in": "header", + "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries", + "schema": { + "type": "string" + }, + "examples": { + "example-1": { "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.", "value": "eventual" } @@ -27768,14 +28355,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -28579,6 +29158,58 @@ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property DirectReports for People", + "operationId": "People.DeleteRefDirectReports", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" } }, "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends": { @@ -28762,14 +29393,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -29649,6 +30272,58 @@ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Person" + ], + "summary": "Delete ref of navigation property Friends for People", + "operationId": "People.DeleteRefFriends", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" } }, "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": { @@ -30829,14 +31504,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -31054,6 +31721,71 @@ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for People", + "operationId": "People.Trips.DeleteRefPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" } }, "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count": { @@ -31974,14 +32706,6 @@ "schema": { "type": "string" } - }, - { - "name": "@id", - "in": "query", - "description": "Delete Uri", - "schema": { - "type": "string" - } } ], "responses": { @@ -32199,6 +32923,71 @@ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." }, "x-ms-docs-operation-type": "operation" + }, + "delete": { + "tags": [ + "People.Trips.PlanItem" + ], + "summary": "Delete ref of navigation property PlanItems for People", + "operationId": "People.Trips.DeleteRefPlanItems", + "parameters": [ + { + "name": "UserName", + "in": "path", + "description": "The unique identifier of Person", + "required": true, + "schema": { + "type": "string" + }, + "x-ms-docs-key-type": "Person" + }, + { + "name": "TripId", + "in": "path", + "description": "The unique identifier of Trip", + "required": true, + "schema": { + "maximum": 2147483647, + "minimum": -2147483648, + "type": "integer", + "format": "int32" + }, + "x-ms-docs-key-type": "Trip" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag", + "schema": { + "type": "string" + } + }, + { + "name": "@id", + "in": "query", + "description": "The delete Uri", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "default": { + "$ref": "#/components/responses/error" + } + }, + "deprecated": true, + "x-ms-deprecation": { + "removalDate": "2023-03-15T00:00:00.0000000+00:00", + "date": "2021-08-24T00:00:00.0000000+00:00", + "version": "2021-05/people", + "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API." + }, + "x-ms-docs-operation-type": "operation" } }, "/People/{UserName}/Trips/$count": { 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 98263898..ef452516 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.yaml +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.yaml @@ -1901,11 +1901,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -2491,6 +2486,35 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property Friends for Me + operationId: Me.DeleteRefFriends + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation /Me/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee: description: Casts the previous resource to Employee. get: @@ -3670,11 +3694,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -4190,6 +4209,35 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property Friends for Me + operationId: Me.DeleteRefFriends + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager: description: Casts the previous resource to Manager. get: @@ -4514,11 +4562,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -4964,6 +5007,35 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property Peers for Me + operationId: Me.DeleteRefPeers + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips: description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. get: @@ -5461,11 +5533,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -5595,6 +5662,45 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - Me.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for Me + operationId: Me.Trips.DeleteRefPlanItems + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: integer + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/$count: description: Provides operations to count the resources in the collection. get: @@ -6631,11 +6737,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -7099,6 +7200,35 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property DirectReports for Me + operationId: Me.DeleteRefDirectReports + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends: description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. get: @@ -7220,11 +7350,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -7740,6 +7865,35 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - Me.Person + summary: Delete ref of navigation property Friends for Me + operationId: Me.DeleteRefFriends + parameters: + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee: description: Casts the previous resource to Employee. get: @@ -8476,11 +8630,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -8610,6 +8759,45 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - Me.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for Me + operationId: Me.Trips.DeleteRefPlanItems + parameters: + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: integer + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count: description: Provides operations to count the resources in the collection. get: @@ -9185,11 +9373,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -9319,14 +9502,53 @@ 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-ms-docs-operation-type: operation - /Me/Trips/$count: - description: Provides operations to count the resources in the collection. - get: + delete: tags: - - Me.Trip - summary: Get the number of the resource - operationId: Me.Trips.GetCount-7b69 - parameters: + - 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: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/me + description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API. + x-ms-docs-operation-type: operation + /Me/Trips/$count: + description: Provides operations to count the resources in the collection. + get: + tags: + - Me.Trip + summary: Get the number of the resource + operationId: Me.Trips.GetCount-7b69 + parameters: - name: ConsistencyLevel in: header description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries' @@ -10597,11 +10819,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -11214,6 +11431,36 @@ paths: default: $ref: '#/components/responses/error' x-ms-docs-operation-type: operation + delete: + tags: + - NewComePeople.Person + summary: Delete ref of navigation property Friends for NewComePeople + operationId: NewComePeople.DeleteRefFriends + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': description: Casts the previous resource to Employee. get: @@ -12262,11 +12509,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -12393,6 +12635,46 @@ paths: default: $ref: '#/components/responses/error' x-ms-docs-operation-type: operation + delete: + tags: + - NewComePeople.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for NewComePeople + operationId: NewComePeople.Trips.DeleteRefPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: integer + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + x-ms-docs-operation-type: operation '/NewComePeople/{UserName}/Trips/$count': description: Provides operations to count the resources in the collection. get: @@ -13747,11 +14029,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -14436,6 +14713,42 @@ 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-ms-docs-operation-type: operation + 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: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': description: Casts the previous resource to Employee. get: @@ -15852,11 +16165,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -16464,6 +16772,42 @@ 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-ms-docs-operation-type: operation + 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: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager': description: Casts the previous resource to Manager. get: @@ -16839,11 +17183,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -17374,6 +17713,42 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete ref of navigation property Peers for People + operationId: People.DeleteRefPeers + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips': description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. get: @@ -17928,11 +18303,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -18083,6 +18453,52 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - People.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for People + operationId: People.Trips.DeleteRefPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: integer + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/$count': description: Provides operations to count the resources in the collection. get: @@ -19335,11 +19751,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -19888,6 +20299,42 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - People.Person + summary: Delete ref of navigation property DirectReports for People + operationId: People.DeleteRefDirectReports + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends': description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity. get: @@ -20023,11 +20470,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -20635,6 +21077,42 @@ 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-ms-docs-operation-type: operation + 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: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee': description: Casts the previous resource to Employee. get: @@ -21473,11 +21951,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -21628,6 +22101,52 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - People.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for People + operationId: People.Trips.DeleteRefPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: integer + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count': description: Provides operations to count the resources in the collection. get: @@ -22282,11 +22801,6 @@ paths: description: ETag schema: type: string - - name: '@id' - in: query - description: Delete Uri - schema: - type: string responses: '204': description: Success @@ -22437,6 +22951,52 @@ 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-ms-docs-operation-type: operation + delete: + tags: + - People.Trips.PlanItem + summary: Delete ref of navigation property PlanItems for People + operationId: People.Trips.DeleteRefPlanItems + parameters: + - name: UserName + in: path + description: The unique identifier of Person + required: true + schema: + type: string + x-ms-docs-key-type: Person + - name: TripId + in: path + description: The unique identifier of Trip + required: true + schema: + maximum: 2147483647 + minimum: -2147483648 + type: integer + format: int32 + x-ms-docs-key-type: Trip + - name: If-Match + in: header + description: ETag + schema: + type: string + - name: '@id' + in: query + description: The delete Uri + required: true + schema: + type: string + responses: + '204': + description: Success + default: + $ref: '#/components/responses/error' + deprecated: true + x-ms-deprecation: + removalDate: '2023-03-15T00:00:00.0000000+00:00' + date: '2021-08-24T00:00:00.0000000+00:00' + version: 2021-05/people + description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API. + x-ms-docs-operation-type: operation '/People/{UserName}/Trips/$count': description: Provides operations to count the resources in the collection. get: