diff --git a/src/Microsoft.OpenApi.OData.Reader/Edm/ODataPathProvider.cs b/src/Microsoft.OpenApi.OData.Reader/Edm/ODataPathProvider.cs
index a0dc62c0..caa5ec73 100644
--- a/src/Microsoft.OpenApi.OData.Reader/Edm/ODataPathProvider.cs
+++ b/src/Microsoft.OpenApi.OData.Reader/Edm/ODataPathProvider.cs
@@ -274,7 +274,7 @@ private void RetrieveNavigationSourcePaths(IEdmNavigationSource navigationSource
RetrieveComplexPropertyPaths(entityType, path, convertSettings);
// navigation property
- foreach (IEdmNavigationProperty np in entityType.DeclaredNavigationProperties())
+ foreach (IEdmNavigationProperty np in entityType.NavigationProperties())
{
if (CanFilter(np))
{
@@ -553,7 +553,7 @@ private void RetrieveNavigationPropertyPaths(
if (shouldExpand)
{
// expand to sub navigation properties
- foreach (IEdmNavigationProperty subNavProperty in navEntityType.DeclaredNavigationProperties())
+ foreach (IEdmNavigationProperty subNavProperty in navEntityType.NavigationProperties())
{
if (CanFilter(subNavProperty))
{
@@ -693,7 +693,7 @@ bool filter(IEdmStructuredType x) =>
continue;
}
- foreach (var declaredNavigationProperty in targetType.DeclaredNavigationProperties())
+ foreach (var declaredNavigationProperty in targetType.NavigationProperties())
{
RetrieveNavigationPropertyPaths(declaredNavigationProperty, null, castPath, convertSettings);
}
diff --git a/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj b/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj
index 3ebd6692..015998a7 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.4.0-preview5
+ 1.4.0-preview6
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
@@ -25,7 +25,8 @@
- Aliases or strips namespace prefixes from segment names when and where applicable #365
- Adds support for all Org.OData.Core.V1.RevisionKind enum values #372
- Use directly annotated CountRestriction annotations when creating $count segments for collection-valued navigation properties #328
-- Use MediaType annotation to set the content types of operations with Edm.Stream return types #342
+- Use MediaType annotation to set the content types of operations with Edm.Stream return types #342
+- Retrieves navigation properties from base types #371
Microsoft.OpenApi.OData.Reader
..\..\tool\Microsoft.OpenApi.OData.snk
diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Edm/ODataPathProviderTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Edm/ODataPathProviderTests.cs
index f8f6c037..f4c585d5 100644
--- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Edm/ODataPathProviderTests.cs
+++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Edm/ODataPathProviderTests.cs
@@ -52,7 +52,7 @@ public void GetPathsForGraphBetaModelReturnsAllPaths()
// Assert
Assert.NotNull(paths);
- Assert.Equal(18050, paths.Count());
+ Assert.Equal(18409, paths.Count());
AssertGraphBetaModelPaths(paths);
}
@@ -67,6 +67,9 @@ private void AssertGraphBetaModelPaths(IEnumerable paths)
// Test that count restrictions annotations for navigation properties work
Assert.Null(paths.FirstOrDefault(p => p.GetPathItemName().Equals("/me/drives/$count")));
+
+ // Test that navigation properties on base types are created
+ Assert.NotNull(paths.FirstOrDefault(p => p.GetPathItemName().Equals("/print/printers({id})/jobs")));
}
[Fact]
@@ -87,7 +90,7 @@ public void GetPathsForGraphBetaModelWithDerivedTypesConstraintReturnsAllPaths()
// Assert
Assert.NotNull(paths);
- Assert.Equal(18701, paths.Count());
+ Assert.Equal(19060, paths.Count());
}
[Theory]
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 eed09a61..684c0906 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
@@ -1748,7 +1748,11 @@
},
"x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity."
+ "x-description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend"
+ ]
},
"/Me/BestFriend/$ref": {
"get": {
@@ -2474,7 +2478,11 @@
},
"x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity."
+ "x-description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends"
+ ]
},
"/Me/Friends/{UserName}/$ref": {
"delete": {
@@ -3757,62 +3765,18 @@
},
"x-description": "Casts the previous resource to Employee."
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend": {
"get": {
"tags": [
"Me.Person"
],
- "summary": "Get Peers from Me",
- "operationId": "Me.ListPeers",
+ "summary": "Get BestFriend from Me",
+ "description": "The best friend.",
+ "operationId": "Me.GetBestFriend",
+ "produces": [
+ "application/json"
+ ],
"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",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
- ],
- "type": "string"
- }
- },
{
"in": "query",
"name": "$select",
@@ -3856,7 +3820,10 @@
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ "description": "Retrieved navigation property",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
},
"default": {
"$ref": "#/responses/error"
@@ -3871,35 +3838,122 @@
},
"x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity."
- },
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/$ref": {
- "delete": {
+ "patch": {
"tags": [
"Me.Person"
],
- "summary": "Delete ref of navigation property Peers for Me",
- "operationId": "Me.DeleteRefPeers",
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "Me.UpdateBestFriend",
+ "consumes": [
+ "application/json"
+ ],
"parameters": [
{
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
+ "in": "body",
+ "name": "body",
+ "description": "New navigation property values",
"required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/Me/BestFriend",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/$ref": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get ref of BestFriend from Me",
+ "description": "The best friend.",
+ "operationId": "Me.GetRefBestFriend",
+ "produces": [
+ "application/json"
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property link",
+ "schema": {
+ "type": "string"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "put": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "Me.UpdateRefBestFriend",
+ "parameters": [
+ {
+ "$ref": "#/parameters/refPutBody"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
},
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Delete ref of navigation property BestFriend for Me",
+ "operationId": "Me.DeleteRefBestFriend",
+ "parameters": [
{
"in": "header",
"name": "If-Match",
"description": "ETag",
"type": "string"
- },
- {
- "in": "query",
- "name": "@id",
- "description": "Delete Uri",
- "type": "string"
}
],
"responses": {
@@ -3921,22 +3975,14 @@
},
"x-description": "Provides operations to manage the collection of Person entities."
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo": {
"get": {
"tags": [
"Me.Person.Location"
],
"summary": "Get AddressInfo property value",
- "operationId": "Me.Peers.ListAddressInfo",
+ "operationId": "Me.BestFriend.ListAddressInfo",
"parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
{
"$ref": "#/parameters/top"
},
@@ -4014,19 +4060,11 @@
"Me.Person.Location"
],
"summary": "Update property AddressInfo value.",
- "operationId": "Me.Peers.UpdateAddressInfo",
+ "operationId": "Me.BestFriend.UpdateAddressInfo",
"consumes": [
"application/json"
],
"parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
{
"in": "body",
"name": "body",
@@ -4061,19 +4099,11 @@
"Me.Person.Location"
],
"summary": "Sets a new value for the collection of Location.",
- "operationId": "Me.Peers.SetAddressInfo",
+ "operationId": "Me.BestFriend.SetAddressInfo",
"consumes": [
"application/json"
],
"parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
{
"in": "header",
"name": "If-Match",
@@ -4110,22 +4140,14 @@
}
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/$count": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/$count": {
"get": {
"tags": [
"Me.Person.Location"
],
"summary": "Get the number of the resource",
- "operationId": "Me.Peers.AddressInfo.GetCount-3e91",
+ "operationId": "Me.BestFriend.AddressInfo.GetCount-81de",
"parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
{
"$ref": "#/parameters/search"
},
@@ -4151,23 +4173,13 @@
},
"x-description": "Provides operations to count the resources in the collection."
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"get": {
"tags": [
"Me.Person.Location"
],
"summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "Me.Peers.ListAddressInfo.AsEventLocation",
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- }
- ],
+ "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation",
"responses": {
"200": {
"$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
@@ -4186,19 +4198,11 @@
},
"x-description": "Casts the previous resource to EventLocation."
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
"get": {
"summary": "Get the number of the resource",
- "operationId": "Me.Peers.ListAddressInfo.GetCount.AsEventLocation-be1d",
+ "operationId": "Me.BestFriend.ListAddressInfo.GetCount.AsEventLocation-842c",
"parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
{
"$ref": "#/parameters/search"
},
@@ -4224,25 +4228,17 @@
},
"x-description": "Provides operations to count the resources in the collection."
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress": {
"get": {
"tags": [
"Me.Person.Location"
],
"summary": "Get HomeAddress property value",
- "operationId": "Me.Peers.GetHomeAddress",
+ "operationId": "Me.BestFriend.GetHomeAddress",
"produces": [
"application/json"
],
"parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
{
"in": "query",
"name": "$select",
@@ -4293,19 +4289,11 @@
"Me.Person.Location"
],
"summary": "Update property HomeAddress value.",
- "operationId": "Me.Peers.UpdateHomeAddress",
+ "operationId": "Me.BestFriend.UpdateHomeAddress",
"consumes": [
"application/json"
],
"parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
{
"in": "body",
"name": "body",
@@ -4333,23 +4321,13 @@
}
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"get": {
"tags": [
"Me.Person.Location"
],
"summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "Me.Peers.GetHomeAddress.AsEventLocation",
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- }
- ],
+ "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation",
"responses": {
"200": {
"$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
@@ -4368,24 +4346,64 @@
},
"x-description": "Casts the previous resource to EventLocation."
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
"get": {
"tags": [
"Me.Person"
],
- "summary": "Get the number of the resource",
- "operationId": "Me.Peers.GetCount-9fc2",
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "Me.GetBestFriend.AsManager",
+ "produces": [
+ "application/json"
+ ],
"parameters": [
{
- "$ref": "#/parameters/search"
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
},
{
- "$ref": "#/parameters/filter"
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
}
],
"responses": {
"200": {
- "$ref": "#/responses/ODataCountResponse"
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ }
},
"default": {
"$ref": "#/responses/error"
@@ -4399,15 +4417,15 @@
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
}
},
- "x-description": "Provides operations to count the resources in the collection."
+ "x-description": "Casts the previous resource to Manager."
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends": {
"get": {
"tags": [
"Me.Person"
],
- "summary": "Get ref of Peers from Me",
- "operationId": "Me.ListRefPeers",
+ "summary": "Get Friends from Me",
+ "operationId": "Me.ListFriends",
"parameters": [
{
"$ref": "#/parameters/top"
@@ -4456,11 +4474,51 @@
],
"type": "string"
}
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
}
],
"responses": {
"200": {
- "$ref": "#/responses/StringCollectionResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -4475,15 +4533,39 @@
},
"x-ms-docs-operation-type": "operation"
},
- "post": {
+ "x-description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/Me/Friends",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/$ref": {
+ "delete": {
"tags": [
"Me.Person"
],
- "summary": "Create new navigation property ref to Peers for Me",
- "operationId": "Me.CreateRefPeers",
+ "summary": "Delete ref of navigation property Friends for Me",
+ "operationId": "Me.DeleteRefFriends",
"parameters": [
{
- "$ref": "#/parameters/refPostBody"
+ "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": "Delete Uri",
+ "type": "string"
}
],
"responses": {
@@ -4505,46 +4587,21 @@
},
"x-description": "Provides operations to manage the collection of Person entities."
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()": {
- "get": {
- "tags": [
- "Me.Functions"
- ],
- "summary": "Invoke function GetFavoriteAirline",
- "operationId": "Me.GetFavoriteAirline",
- "responses": {
- "200": {
- "$ref": "#/responses/GetFavoriteAirlineResponse"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "function"
- },
- "x-description": "Provides operations to call the GetFavoriteAirline method."
- },
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName='{userName}')": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo": {
"get": {
"tags": [
- "Me.Functions"
+ "Me.Person.Location"
],
- "summary": "Invoke function GetFriendsTrips",
- "operationId": "Me.GetFriendsTrips",
+ "summary": "Get AddressInfo property value",
+ "operationId": "Me.Friends.ListAddressInfo",
"parameters": [
{
"in": "path",
- "name": "userName",
- "description": "Usage: userName='{userName}'",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "string"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/parameters/top"
@@ -4561,6 +4618,21 @@
{
"$ref": "#/parameters/count"
},
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ },
{
"in": "query",
"name": "$select",
@@ -4568,42 +4640,20 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "ShareId",
- "Name",
- "Budget",
- "Description",
- "Tags",
- "StartsAt",
- "EndsAt",
- "PlanItems"
+ "Address",
+ "City"
],
"type": "string"
}
},
{
"in": "query",
- "name": "$orderby",
- "description": "Order items by property values",
+ "name": "$expand",
+ "description": "Expand related entities",
"type": "array",
"items": {
"enum": [
- "TripId",
- "TripId desc",
- "ShareId",
- "ShareId desc",
- "Name",
- "Name desc",
- "Budget",
- "Budget desc",
- "Description",
- "Description desc",
- "Tags",
- "Tags desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc"
+ "*"
],
"type": "string"
}
@@ -4611,7 +4661,7 @@
],
"responses": {
"200": {
- "$ref": "#/responses/GetFriendsTripsResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -4623,53 +4673,10167 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/me",
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "function"
+ }
},
- "x-description": "Provides operations to call the GetFriendsTrips method."
- },
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": {
- "post": {
+ "patch": {
"tags": [
- "Me.Actions"
+ "Me.Person.Location"
],
- "summary": "Invoke action GetPeersForTrip",
- "operationId": "Me.GetPeersForTrip",
- "parameters": [
- {
- "$ref": "#/parameters/GetPeersForTripRequestBody"
- }
+ "summary": "Update property AddressInfo value.",
+ "operationId": "Me.Friends.UpdateAddressInfo",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "post": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "Me.Friends.SetAddressInfo",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/$count": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Friends.AddressInfo.GetCount-660e",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.Friends.ListAddressInfo.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Friends.ListAddressInfo.GetCount.AsEventLocation-feb8",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "Me.Friends.GetHomeAddress",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "Me.Friends.UpdateHomeAddress",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.Friends.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "Me.GetFriends.AsManager",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Casts the previous resource to Manager."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$count": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Friends.GetCount-0cb7",
+ "parameters": [
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$ref": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get ref of Friends from Me",
+ "operationId": "Me.ListRefFriends",
+ "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",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Create new navigation property ref to Friends for Me",
+ "operationId": "Me.CreateRefFriends",
+ "parameters": [
+ {
+ "$ref": "#/parameters/refPostBody"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
+ "operationId": "Me.ListFriends.AsManager",
+ "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",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Casts the previous resource to Manager."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.ListFriends.GetCount.AsManager-85ff",
+ "parameters": [
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get Peers from Me",
+ "operationId": "Me.ListPeers",
+ "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",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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 Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/$ref": {
+ "delete": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Delete ref of navigation property Peers for Me",
+ "operationId": "Me.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": "Delete Uri",
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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/Peers/{UserName}/AddressInfo": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get AddressInfo property value",
+ "operationId": "Me.Peers.ListAddressInfo",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "Me.Peers.UpdateAddressInfo",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "post": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "Me.Peers.SetAddressInfo",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/$count": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Peers.AddressInfo.GetCount-3e91",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.Peers.ListAddressInfo.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Peers.ListAddressInfo.GetCount.AsEventLocation-be1d",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "Me.Peers.GetHomeAddress",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "Me.Peers.UpdateHomeAddress",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.Peers.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Peers.GetCount-9fc2",
+ "parameters": [
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get ref of Peers from Me",
+ "operationId": "Me.ListRefPeers",
+ "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",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Create new navigation property ref to Peers for Me",
+ "operationId": "Me.CreateRefPeers",
+ "parameters": [
+ {
+ "$ref": "#/parameters/refPostBody"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "List trips.",
+ "description": "Retrieve a list of trips.",
+ "operationId": "Me.ListTrips",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Create a trip.",
+ "description": "Create a new trip.",
+ "operationId": "Me.CreateTrips",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New navigation property",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created navigation property.",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips",
+ "/Me/Trips"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}": {
+ "get": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Get a trip.",
+ "description": "Retrieve the properties of a trip.",
+ "operationId": "Me.GetTrips",
+ "produces": [
+ "application/json"
+ ],
+ "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": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Update a trip.",
+ "description": "Update an instance of a trip.",
+ "operationId": "Me.UpdateTrips",
+ "consumes": [
+ "application/json"
+ ],
+ "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": "body",
+ "name": "body",
+ "description": "New navigation property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Delete a trip.",
+ "description": "Delete an instance of a trip.",
+ "operationId": "Me.DeleteTrips",
+ "parameters": [
+ {
+ "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"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}",
+ "/Me/Trips/{TripId}"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
+ "get": {
+ "tags": [
+ "Me.Functions"
+ ],
+ "summary": "Invoke function GetInvolvedPeople",
+ "operationId": "Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee.Trips.Trip.GetInvolvedPeople",
+ "produces": [
+ "application/json"
+ ],
+ "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"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "title": "Collection of Person",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "function"
+ },
+ "x-description": "Provides operations to call the GetInvolvedPeople method.",
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()",
+ "/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems": {
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get PlanItems from Me",
+ "operationId": "Me.Trips.ListPlanItems",
+ "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"
+ },
+ {
+ "$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": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "ConfirmationCode",
+ "StartsAt",
+ "EndsAt",
+ "Duration"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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 PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.",
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems",
+ "/Me/Trips/{TripId}/PlanItems"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
+ "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": "path",
+ "name": "PlanItemId",
+ "description": "The unique identifier of PlanItem",
+ "required": true,
+ "type": "integer",
+ "format": "int32",
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "x-ms-docs-key-type": "PlanItem"
+ },
+ {
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "@id",
+ "description": "Delete Uri",
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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/{TripId}/PlanItems/$count": {
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Trips.PlanItems.GetCount-a822",
+ "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"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$ref": {
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get ref of PlanItems from Me",
+ "operationId": "Me.Trips.ListRefPlanItems",
+ "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"
+ },
+ {
+ "$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": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Create new navigation property ref to PlanItems for Me",
+ "operationId": "Me.Trips.CreateRefPlanItems",
+ "parameters": [
+ {
+ "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"
+ },
+ {
+ "$ref": "#/parameters/refPostBody"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Trips.GetCount-5aa2",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()": {
+ "get": {
+ "tags": [
+ "Me.Functions"
+ ],
+ "summary": "Invoke function GetFavoriteAirline",
+ "operationId": "Me.GetFavoriteAirline",
+ "responses": {
+ "200": {
+ "$ref": "#/responses/GetFavoriteAirlineResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "function"
+ },
+ "x-description": "Provides operations to call the GetFavoriteAirline method."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName='{userName}')": {
+ "get": {
+ "tags": [
+ "Me.Functions"
+ ],
+ "summary": "Invoke function GetFriendsTrips",
+ "operationId": "Me.GetFriendsTrips",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "userName",
+ "description": "Usage: userName='{userName}'",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/GetFriendsTripsResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "function"
+ },
+ "x-description": "Provides operations to call the GetFriendsTrips method."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": {
+ "post": {
+ "tags": [
+ "Me.Actions"
+ ],
+ "summary": "Invoke action GetPeersForTrip",
+ "operationId": "Me.GetPeersForTrip",
+ "parameters": [
+ {
+ "$ref": "#/parameters/GetPeersForTripRequestBody"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/GetPeersForTripResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "action"
+ },
+ "x-description": "Provides operations to call the GetPeersForTrip method."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "Me.Person.GetPerson.AsManager",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Casts the previous resource to Manager."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get BestFriend from Me",
+ "description": "The best friend.",
+ "operationId": "Me.GetBestFriend",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "Me.UpdateBestFriend",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New navigation property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/Me/BestFriend",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/$ref": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get ref of BestFriend from Me",
+ "description": "The best friend.",
+ "operationId": "Me.GetRefBestFriend",
+ "produces": [
+ "application/json"
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property link",
+ "schema": {
+ "type": "string"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "put": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "Me.UpdateRefBestFriend",
+ "parameters": [
+ {
+ "$ref": "#/parameters/refPutBody"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Delete ref of navigation property BestFriend for Me",
+ "operationId": "Me.DeleteRefBestFriend",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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/BestFriend/AddressInfo": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get AddressInfo property value",
+ "operationId": "Me.BestFriend.ListAddressInfo",
+ "parameters": [
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "Me.BestFriend.UpdateAddressInfo",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "post": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "Me.BestFriend.SetAddressInfo",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/$count": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.BestFriend.AddressInfo.GetCount-6ea6",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation",
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "Me.BestFriend.ListAddressInfo.GetCount.AsEventLocation-692e",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "Me.BestFriend.GetHomeAddress",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "Me.BestFriend.UpdateHomeAddress",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation",
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "Me.GetBestFriend.AsEmployee",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Casts the previous resource to Employee."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get DirectReports from Me",
+ "operationId": "Me.ListDirectReports",
+ "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",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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 DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/$ref": {
+ "delete": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Delete ref of navigation property DirectReports for Me",
+ "operationId": "Me.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": "Delete Uri",
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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/DirectReports/{UserName}/AddressInfo": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get AddressInfo property value",
+ "operationId": "Me.DirectReports.ListAddressInfo",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "Me.DirectReports.UpdateAddressInfo",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "post": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "Me.DirectReports.SetAddressInfo",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/$count": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.DirectReports.AddressInfo.GetCount-f650",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.DirectReports.ListAddressInfo.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "Me.DirectReports.ListAddressInfo.GetCount.AsEventLocation-a070",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "Me.DirectReports.GetHomeAddress",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "Me.DirectReports.UpdateHomeAddress",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.DirectReports.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.DirectReports.GetCount-8b92",
+ "parameters": [
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get ref of DirectReports from Me",
+ "operationId": "Me.ListRefDirectReports",
+ "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",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Create new navigation property ref to DirectReports for Me",
+ "operationId": "Me.CreateRefDirectReports",
+ "parameters": [
+ {
+ "$ref": "#/parameters/refPostBody"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get Friends from Me",
+ "operationId": "Me.ListFriends",
+ "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",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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 Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/Me/Friends",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/$ref": {
+ "delete": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Delete ref of navigation property Friends for Me",
+ "operationId": "Me.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": "Delete Uri",
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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/{UserName}/AddressInfo": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get AddressInfo property value",
+ "operationId": "Me.Friends.ListAddressInfo",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "Me.Friends.UpdateAddressInfo",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "post": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "Me.Friends.SetAddressInfo",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/$count": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Friends.AddressInfo.GetCount-b7db",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.Friends.ListAddressInfo.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Friends.ListAddressInfo.GetCount.AsEventLocation-4d69",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/HomeAddress": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "Me.Friends.GetHomeAddress",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "Me.Friends.UpdateHomeAddress",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.Friends.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "Me.GetFriends.AsEmployee",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Casts the previous resource to Employee."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$count": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Friends.GetCount-60a7",
+ "parameters": [
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$ref": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get ref of Friends from Me",
+ "operationId": "Me.ListRefFriends",
+ "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",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Create new navigation property ref to Friends for Me",
+ "operationId": "Me.CreateRefFriends",
+ "parameters": [
+ {
+ "$ref": "#/parameters/refPostBody"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Casts the previous resource to Employee."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": {
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.ListFriends.GetCount.AsEmployee-6a35",
+ "parameters": [
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": {
+ "post": {
+ "tags": [
+ "Me.Actions"
+ ],
+ "summary": "Invoke action Hire",
+ "description": "Hires someone for the company.",
+ "operationId": "Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "body",
+ "description": "Action parameters",
+ "required": true,
+ "schema": {
+ "type": "object",
+ "properties": {
+ "hire": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "action"
+ },
+ "x-description": "Provides operations to call the Hire method."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips": {
+ "get": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "List trips.",
+ "description": "Retrieve a list of trips.",
+ "operationId": "Me.ListTrips",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Create a trip.",
+ "description": "Create a new trip.",
+ "operationId": "Me.CreateTrips",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New navigation property",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created navigation property.",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips",
+ "/Me/Trips"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}": {
+ "get": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Get a trip.",
+ "description": "Retrieve the properties of a trip.",
+ "operationId": "Me.GetTrips",
+ "produces": [
+ "application/json"
+ ],
+ "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": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Update a trip.",
+ "description": "Update an instance of a trip.",
+ "operationId": "Me.UpdateTrips",
+ "consumes": [
+ "application/json"
+ ],
+ "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": "body",
+ "name": "body",
+ "description": "New navigation property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Delete a trip.",
+ "description": "Delete an instance of a trip.",
+ "operationId": "Me.DeleteTrips",
+ "parameters": [
+ {
+ "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"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}",
+ "/Me/Trips/{TripId}"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
+ "get": {
+ "tags": [
+ "Me.Functions"
+ ],
+ "summary": "Invoke function GetInvolvedPeople",
+ "operationId": "Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Trips.Trip.GetInvolvedPeople",
+ "produces": [
+ "application/json"
+ ],
+ "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"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "title": "Collection of Person",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "function"
+ },
+ "x-description": "Provides operations to call the GetInvolvedPeople method.",
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()",
+ "/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems": {
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get PlanItems from Me",
+ "operationId": "Me.Trips.ListPlanItems",
+ "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"
+ },
+ {
+ "$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": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "ConfirmationCode",
+ "StartsAt",
+ "EndsAt",
+ "Duration"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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 PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.",
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems",
+ "/Me/Trips/{TripId}/PlanItems"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
+ "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": "path",
+ "name": "PlanItemId",
+ "description": "The unique identifier of PlanItem",
+ "required": true,
+ "type": "integer",
+ "format": "int32",
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "x-ms-docs-key-type": "PlanItem"
+ },
+ {
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "@id",
+ "description": "Delete Uri",
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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/{TripId}/PlanItems/$count": {
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Trips.PlanItems.GetCount-5ad2",
+ "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"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$ref": {
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get ref of PlanItems from Me",
+ "operationId": "Me.Trips.ListRefPlanItems",
+ "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"
+ },
+ {
+ "$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": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Create new navigation property ref to PlanItems for Me",
+ "operationId": "Me.Trips.CreateRefPlanItems",
+ "parameters": [
+ {
+ "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"
+ },
+ {
+ "$ref": "#/parameters/refPostBody"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Trips.GetCount-f3f4",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip": {
+ "post": {
+ "tags": [
+ "Me.Actions"
+ ],
+ "summary": "Invoke action ShareTrip",
+ "description": "Details of the shared trip.",
+ "operationId": "Me.ShareTrip",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ShareTripRequestBody"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "action"
+ },
+ "x-description": "Provides operations to call the ShareTrip method."
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName='{lastName}')": {
+ "get": {
+ "tags": [
+ "Me.Functions"
+ ],
+ "summary": "Invoke function UpdatePersonLastName",
+ "operationId": "Me.UpdatePersonLastName",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "lastName",
+ "description": "Usage: lastName='{lastName}'",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/UpdatePersonLastNameResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "function"
+ },
+ "x-description": "Provides operations to call the UpdatePersonLastName method."
+ },
+ "/Me/Trips": {
+ "get": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "List trips.",
+ "description": "Retrieve a list of trips.",
+ "operationId": "Me.ListTrips",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Create a trip.",
+ "description": "Create a new trip.",
+ "operationId": "Me.CreateTrips",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New navigation property",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created navigation property.",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips"
+ ]
+ },
+ "/Me/Trips/{TripId}": {
+ "get": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Get a trip.",
+ "description": "Retrieve the properties of a trip.",
+ "operationId": "Me.GetTrips",
+ "produces": [
+ "application/json"
+ ],
+ "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": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Update a trip.",
+ "description": "Update an instance of a trip.",
+ "operationId": "Me.UpdateTrips",
+ "consumes": [
+ "application/json"
+ ],
+ "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": "body",
+ "name": "body",
+ "description": "New navigation property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Delete a trip.",
+ "description": "Delete an instance of a trip.",
+ "operationId": "Me.DeleteTrips",
+ "parameters": [
+ {
+ "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"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}"
+ ]
+ },
+ "/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
+ "get": {
+ "tags": [
+ "Me.Functions"
+ ],
+ "summary": "Invoke function GetInvolvedPeople",
+ "operationId": "Me.Trips.Trip.GetInvolvedPeople",
+ "produces": [
+ "application/json"
+ ],
+ "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"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "title": "Collection of Person",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "function"
+ },
+ "x-description": "Provides operations to call the GetInvolvedPeople method.",
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()"
+ ]
+ },
+ "/Me/Trips/{TripId}/PlanItems": {
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get PlanItems from Me",
+ "operationId": "Me.Trips.ListPlanItems",
+ "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"
+ },
+ {
+ "$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": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "ConfirmationCode",
+ "StartsAt",
+ "EndsAt",
+ "Duration"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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 PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.",
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems"
+ ]
+ },
+ "/Me/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
+ "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": "path",
+ "name": "PlanItemId",
+ "description": "The unique identifier of PlanItem",
+ "required": true,
+ "type": "integer",
+ "format": "int32",
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "x-ms-docs-key-type": "PlanItem"
+ },
+ {
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "@id",
+ "description": "Delete Uri",
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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/{TripId}/PlanItems/$count": {
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Trips.PlanItems.GetCount-c250",
+ "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"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/Me/Trips/{TripId}/PlanItems/$ref": {
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get ref of PlanItems from Me",
+ "operationId": "Me.Trips.ListRefPlanItems",
+ "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"
+ },
+ {
+ "$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": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Create new navigation property ref to PlanItems for Me",
+ "operationId": "Me.Trips.CreateRefPlanItems",
+ "parameters": [
+ {
+ "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"
+ },
+ {
+ "$ref": "#/parameters/refPostBody"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/NewComePeople": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get entities from NewComePeople",
+ "operationId": "NewComePeople.Person.ListPerson",
+ "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",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "post": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Add new entity to NewComePeople",
+ "operationId": "NewComePeople.Person.CreatePerson",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New entity",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created entity",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-description": "Provides operations to manage the collection of Person entities."
+ },
+ "/NewComePeople/{UserName}": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get entity from NewComePeople by key",
+ "operationId": "NewComePeople.Person.GetPerson",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved entity",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Update entity in NewComePeople",
+ "operationId": "NewComePeople.Person.UpdatePerson",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Delete entity from NewComePeople",
+ "operationId": "NewComePeople.Person.DeletePerson",
+ "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"
+ }
+ ],
+ "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}/AddressInfo": {
+ "get": {
+ "tags": [
+ "NewComePeople.Location"
+ ],
+ "summary": "Get AddressInfo property value",
+ "operationId": "NewComePeople.ListAddressInfo",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "NewComePeople.UpdateAddressInfo",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "post": {
+ "tags": [
+ "NewComePeople.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "NewComePeople.SetAddressInfo",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/AddressInfo/$count": {
+ "get": {
+ "tags": [
+ "NewComePeople.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.AddressInfo.GetCount-29d6",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "NewComePeople.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "NewComePeople.ListAddressInfo.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.ListAddressInfo.GetCount.AsEventLocation-29d3",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/NewComePeople/{UserName}/BestFriend": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get BestFriend from NewComePeople",
+ "description": "The best friend.",
+ "operationId": "NewComePeople.GetBestFriend",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "NewComePeople.UpdateBestFriend",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New navigation property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity."
+ },
+ "/NewComePeople/{UserName}/BestFriend/$ref": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get ref of BestFriend from NewComePeople",
+ "description": "The best friend.",
+ "operationId": "NewComePeople.GetRefBestFriend",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property link",
+ "schema": {
+ "type": "string"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "put": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "NewComePeople.UpdateRefBestFriend",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/refPutBody"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Delete ref of navigation property BestFriend for NewComePeople",
+ "operationId": "NewComePeople.DeleteRefBestFriend",
+ "parameters": [
+ {
+ "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"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-description": "Provides operations to manage the collection of Person entities."
+ },
+ "/NewComePeople/{UserName}/BestFriend/AddressInfo": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get AddressInfo property value",
+ "operationId": "NewComePeople.BestFriend.ListAddressInfo",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "NewComePeople.BestFriend.UpdateAddressInfo",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ },
+ "post": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "NewComePeople.BestFriend.SetAddressInfo",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/BestFriend/AddressInfo/$count": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.BestFriend.AddressInfo.GetCount-513c",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "NewComePeople.BestFriend.ListAddressInfo.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.BestFriend.ListAddressInfo.GetCount.AsEventLocation-ba36",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/NewComePeople/{UserName}/BestFriend/HomeAddress": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "NewComePeople.BestFriend.GetHomeAddress",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "NewComePeople.BestFriend.UpdateHomeAddress",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "NewComePeople.BestFriend.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "NewComePeople.GetBestFriend.AsEmployee",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ },
+ "x-description": "Casts the previous resource to Employee."
+ },
+ "/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "NewComePeople.GetBestFriend.AsManager",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ },
+ "x-description": "Casts the previous resource to Manager."
+ },
+ "/NewComePeople/{UserName}/Friends": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get Friends from NewComePeople",
+ "operationId": "NewComePeople.ListFriends",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity."
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/$ref": {
+ "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": "path",
+ "name": "UserName1",
+ "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": "Delete Uri",
+ "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/{UserName1}/AddressInfo": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get AddressInfo property value",
+ "operationId": "NewComePeople.Friends.ListAddressInfo",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "NewComePeople.Friends.UpdateAddressInfo",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "post": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "NewComePeople.Friends.SetAddressInfo",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/$count": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.Friends.AddressInfo.GetCount-9334",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "NewComePeople.Friends.ListAddressInfo.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.Friends.ListAddressInfo.GetCount.AsEventLocation-be92",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "NewComePeople.Friends.GetHomeAddress",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "NewComePeople.Friends.UpdateHomeAddress",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "NewComePeople.Friends.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "NewComePeople.GetFriends.AsEmployee",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "x-description": "Casts the previous resource to Employee."
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "NewComePeople.GetFriends.AsManager",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "x-description": "Casts the previous resource to Manager."
+ },
+ "/NewComePeople/{UserName}/Friends/$count": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.Friends.GetCount-2ec1",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/NewComePeople/{UserName}/Friends/$ref": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get ref of Friends from NewComePeople",
+ "operationId": "NewComePeople.ListRefFriends",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Create new navigation property ref to Friends for NewComePeople",
+ "operationId": "NewComePeople.CreateRefFriends",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/refPostBody"
+ }
+ ],
+ "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": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
+ "operationId": "NewComePeople.ListFriends.AsEmployee",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "x-description": "Casts the previous resource to Employee."
+ },
+ "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.ListFriends.GetCount.AsEmployee-4069",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
+ "operationId": "NewComePeople.ListFriends.AsManager",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "x-description": "Casts the previous resource to Manager."
+ },
+ "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.ListFriends.GetCount.AsManager-d1d3",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/NewComePeople/{UserName}/HomeAddress": {
+ "get": {
+ "tags": [
+ "NewComePeople.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "NewComePeople.GetHomeAddress",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "NewComePeople.UpdateHomeAddress",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "NewComePeople.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "NewComePeople.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()": {
+ "get": {
+ "tags": [
+ "NewComePeople.Functions"
+ ],
+ "summary": "Invoke function GetFavoriteAirline",
+ "operationId": "NewComePeople.Person.GetFavoriteAirline",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/GetFavoriteAirlineResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "function"
+ },
+ "x-description": "Provides operations to call the GetFavoriteAirline method."
+ },
+ "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName='{userName}')": {
+ "get": {
+ "tags": [
+ "NewComePeople.Functions"
+ ],
+ "summary": "Invoke function GetFriendsTrips",
+ "operationId": "NewComePeople.Person.GetFriendsTrips",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "userName",
+ "description": "Usage: userName='{userName}'",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/GetFriendsTripsResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/trips",
+ "description": "The GetFriendsTrips API is deprecated and will stop returning data on March 2023. Please use the new trips API on friends."
+ },
+ "x-ms-docs-operation-type": "function"
+ },
+ "x-description": "Provides operations to call the GetFriendsTrips method."
+ },
+ "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": {
+ "post": {
+ "tags": [
+ "NewComePeople.Actions"
+ ],
+ "summary": "Invoke action GetPeersForTrip",
+ "operationId": "NewComePeople.Person.GetPeersForTrip",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/GetPeersForTripRequestBody"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/GetPeersForTripResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "action"
+ },
+ "x-description": "Provides operations to call the GetPeersForTrip method."
+ },
+ "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": {
+ "post": {
+ "tags": [
+ "NewComePeople.Actions"
+ ],
+ "summary": "Invoke action Hire",
+ "description": "Hires someone for the company.",
+ "operationId": "NewComePeople.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "Action parameters",
+ "required": true,
+ "schema": {
+ "type": "object",
+ "properties": {
+ "hire": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "action"
+ },
+ "x-description": "Provides operations to call the Hire method."
+ },
+ "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip": {
+ "post": {
+ "tags": [
+ "NewComePeople.Actions"
+ ],
+ "summary": "Invoke action ShareTrip",
+ "description": "Details of the shared trip.",
+ "operationId": "NewComePeople.Person.ShareTrip",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/ShareTripRequestBody"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "action"
+ },
+ "x-description": "Provides operations to call the ShareTrip method."
+ },
+ "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName='{lastName}')": {
+ "get": {
+ "tags": [
+ "NewComePeople.Functions"
+ ],
+ "summary": "Invoke function UpdatePersonLastName",
+ "operationId": "NewComePeople.Person.UpdatePersonLastName",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "lastName",
+ "description": "Usage: lastName='{lastName}'",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/UpdatePersonLastNameResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "function"
+ },
+ "x-description": "Provides operations to call the UpdatePersonLastName method."
+ },
+ "/NewComePeople/{UserName}/Trips": {
+ "get": {
+ "tags": [
+ "NewComePeople.Trip"
+ ],
+ "summary": "List trips.",
+ "description": "Retrieve a list of trips.",
+ "operationId": "NewComePeople.ListTrips",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/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": [
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "NewComePeople.Trip"
+ ],
+ "summary": "Create a trip.",
+ "description": "Create a new trip.",
+ "operationId": "NewComePeople.CreateTrips",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New navigation property",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created navigation property.",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity."
+ },
+ "/NewComePeople/{UserName}/Trips/{TripId}": {
+ "get": {
+ "tags": [
+ "NewComePeople.Trip"
+ ],
+ "summary": "Get a trip.",
+ "description": "Retrieve the properties of a trip.",
+ "operationId": "NewComePeople.GetTrips",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "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": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Trip"
+ ],
+ "summary": "Update a trip.",
+ "description": "Update an instance of a trip.",
+ "operationId": "NewComePeople.UpdateTrips",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "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": "body",
+ "name": "body",
+ "description": "New navigation property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
],
"responses": {
- "200": {
- "$ref": "#/responses/GetPeersForTripResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
}
},
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "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": [
+ "NewComePeople.Trip"
+ ],
+ "summary": "Delete a trip.",
+ "description": "Delete an instance of a trip.",
+ "operationId": "NewComePeople.DeleteTrips",
+ "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"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
},
- "x-ms-docs-operation-type": "action"
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to call the GetPeersForTrip method."
+ "x-description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity."
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "/NewComePeople/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
"get": {
"tags": [
- "Me.Person"
+ "NewComePeople.Functions"
],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
- "operationId": "Me.Person.GetPerson.AsManager",
+ "summary": "Invoke function GetInvolvedPeople",
+ "operationId": "NewComePeople.Person.Trips.Trip.GetInvolvedPeople",
"produces": [
"application/json"
],
"parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "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"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
{
"in": "query",
"name": "$select",
@@ -4697,15 +14861,33 @@
},
{
"in": "query",
- "name": "$expand",
- "description": "Expand related entities",
+ "name": "$orderby",
+ "description": "Order items by property values",
"type": "array",
"items": {
"enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
],
"type": "string"
}
@@ -4713,33 +14895,55 @@
],
"responses": {
"200": {
- "description": "Result entities",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ "title": "Collection of Person",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
}
},
"default": {
"$ref": "#/responses/error"
}
},
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- }
+ "x-ms-docs-operation-type": "function"
},
- "x-description": "Casts the previous resource to Manager."
+ "x-description": "Provides operations to call the GetInvolvedPeople method."
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports": {
+ "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems": {
"get": {
"tags": [
- "Me.Person"
+ "NewComePeople.Trips.PlanItem"
],
- "summary": "Get DirectReports from Me",
- "operationId": "Me.ListDirectReports",
+ "summary": "Get PlanItems from NewComePeople",
+ "operationId": "NewComePeople.Trips.ListPlanItems",
"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"
+ },
{
"$ref": "#/parameters/top"
},
@@ -4762,28 +14966,16 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
],
"type": "string"
}
@@ -4791,24 +14983,15 @@
{
"in": "query",
"name": "$select",
- "description": "Select properties to be returned",
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "ConfirmationCode",
+ "StartsAt",
+ "EndsAt",
+ "Duration"
],
"type": "string"
}
@@ -4820,10 +15003,7 @@
"type": "array",
"items": {
"enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
+ "*"
],
"type": "string"
}
@@ -4831,30 +15011,23 @@
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
}
},
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "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 DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity."
+ "x-description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity."
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/$ref": {
+ "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
"delete": {
"tags": [
- "Me.Person"
+ "NewComePeople.Trips.PlanItem"
],
- "summary": "Delete ref of navigation property DirectReports for Me",
- "operationId": "Me.DeleteRefDirectReports",
+ "summary": "Delete ref of navigation property PlanItems for NewComePeople",
+ "operationId": "NewComePeople.Trips.DeleteRefPlanItems",
"parameters": [
{
"in": "path",
@@ -4864,6 +15037,28 @@
"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": "path",
+ "name": "PlanItemId",
+ "description": "The unique identifier of PlanItem",
+ "required": true,
+ "type": "integer",
+ "format": "int32",
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "x-ms-docs-key-type": "PlanItem"
+ },
{
"in": "header",
"name": "If-Match",
@@ -4885,24 +15080,17 @@
"$ref": "#/responses/error"
}
},
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "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/DirectReports/{UserName}/AddressInfo": {
+ "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$count": {
"get": {
"tags": [
- "Me.Person.Location"
+ "NewComePeople.Trips.PlanItem"
],
- "summary": "Get AddressInfo property value",
- "operationId": "Me.DirectReports.ListAddressInfo",
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.Trips.PlanItems.GetCount-841f",
"parameters": [
{
"in": "path",
@@ -4913,86 +15101,41 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/top"
- },
- {
- "$ref": "#/parameters/skip"
+ "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"
},
{
"$ref": "#/parameters/search"
},
{
"$ref": "#/parameters/filter"
- },
- {
- "$ref": "#/parameters/count"
- },
- {
- "in": "query",
- "name": "$orderby",
- "description": "Order items by property values",
- "type": "array",
- "items": {
- "enum": [
- "Address",
- "Address desc",
- "City",
- "City desc"
- ],
- "type": "string"
- }
- },
- {
- "in": "query",
- "name": "$select",
- "description": "Select properties to be returned",
- "type": "array",
- "items": {
- "enum": [
- "Address",
- "City"
- ],
- "type": "string"
- }
- },
- {
- "in": "query",
- "name": "$expand",
- "description": "Expand related entities",
- "type": "array",
- "items": {
- "enum": [
- "*"
- ],
- "type": "string"
- }
}
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
}
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
}
},
- "patch": {
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$ref": {
+ "get": {
"tags": [
- "Me.Person.Location"
- ],
- "summary": "Update property AddressInfo value.",
- "operationId": "Me.DirectReports.UpdateAddressInfo",
- "consumes": [
- "application/json"
+ "NewComePeople.Trips.PlanItem"
],
+ "summary": "Get ref of PlanItems from NewComePeople",
+ "operationId": "NewComePeople.Trips.ListRefPlanItems",
"parameters": [
{
"in": "path",
@@ -5003,43 +15146,69 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "body",
- "name": "body",
- "description": "New property values",
+ "in": "path",
+ "name": "TripId",
+ "description": "The unique identifier of Trip",
"required": true,
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
+ "type": "integer",
+ "format": "int32",
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$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": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
}
}
],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/responses/StringCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
}
},
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- }
+ "x-ms-docs-operation-type": "operation"
},
"post": {
"tags": [
- "Me.Person.Location"
- ],
- "summary": "Sets a new value for the collection of Location.",
- "operationId": "Me.DirectReports.SetAddressInfo",
- "consumes": [
- "application/json"
+ "NewComePeople.Trips.PlanItem"
],
+ "summary": "Create new navigation property ref to PlanItems for NewComePeople",
+ "operationId": "NewComePeople.Trips.CreateRefPlanItems",
"parameters": [
{
"in": "path",
@@ -5050,22 +15219,18 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "header",
- "name": "If-Match",
- "description": "ETag",
- "type": "string"
+ "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": "body",
- "name": "body",
- "description": "New property values",
- "required": true,
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
+ "$ref": "#/parameters/refPostBody"
}
],
"responses": {
@@ -5073,25 +15238,20 @@
"description": "Success"
},
"default": {
- "$ref": "#/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- }
- }
+ "$ref": "#/responses/error"
+ }
+ },
+ "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/DirectReports/{UserName}/AddressInfo/$count": {
+ "/NewComePeople/{UserName}/Trips/$count": {
"get": {
"tags": [
- "Me.Person.Location"
+ "NewComePeople.Trip"
],
"summary": "Get the number of the resource",
- "operationId": "Me.DirectReports.AddressInfo.GetCount-f650",
+ "operationId": "NewComePeople.Trips.GetCount-d155",
"parameters": [
{
"in": "path",
@@ -5101,6 +15261,12 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
{
"$ref": "#/parameters/search"
},
@@ -5115,75 +15281,142 @@
"default": {
"$ref": "#/responses/error"
}
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
}
},
"x-description": "Provides operations to count the resources in the collection."
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "/NewComePeople/$count": {
"get": {
"tags": [
- "Me.Person.Location"
+ "NewComePeople.Person"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "Me.DirectReports.ListAddressInfo.AsEventLocation",
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.GetCount-55d5",
"parameters": [
{
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
}
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
}
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
}
},
- "x-description": "Casts the previous resource to EventLocation."
+ "x-description": "Provides operations to count the resources in the collection."
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "/People": {
"get": {
- "summary": "Get the number of the resource",
- "operationId": "Me.DirectReports.ListAddressInfo.GetCount.AsEventLocation-a070",
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get entities from People",
+ "operationId": "People.Person.ListPerson",
"parameters": [
{
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
},
{
"$ref": "#/parameters/search"
},
{
"$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
}
],
"responses": {
"200": {
- "$ref": "#/responses/ODataCountResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -5193,19 +15426,62 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
- "x-description": "Provides operations to count the resources in the collection."
+ "post": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Add new entity to People",
+ "operationId": "People.Person.CreatePerson",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New entity",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created entity",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "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."
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress": {
+ "/People/{UserName}": {
"get": {
"tags": [
- "Me.Person.Location"
+ "People.Person"
],
- "summary": "Get HomeAddress property value",
- "operationId": "Me.DirectReports.GetHomeAddress",
+ "summary": "Get entity from People by key",
+ "operationId": "People.Person.GetPerson",
"produces": [
"application/json"
],
@@ -5218,6 +15494,12 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
{
"in": "query",
"name": "$select",
@@ -5225,8 +15507,20 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "City"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -5238,7 +15532,10 @@
"type": "array",
"items": {
"enum": [
- "*"
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -5246,9 +15543,9 @@
],
"responses": {
"200": {
- "description": "Result entities",
+ "description": "Retrieved entity",
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
},
"default": {
@@ -5259,16 +15556,17 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- }
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
},
"patch": {
"tags": [
- "Me.Person.Location"
+ "People.Person"
],
- "summary": "Update property HomeAddress value.",
- "operationId": "Me.DirectReports.UpdateHomeAddress",
+ "summary": "Update entity in People",
+ "operationId": "People.Person.UpdatePerson",
"consumes": [
"application/json"
],
@@ -5287,7 +15585,7 @@
"description": "New property values",
"required": true,
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
],
@@ -5303,18 +15601,17 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- }
- }
- },
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "get": {
+ "version": "2021-05/people",
+ "description": "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": [
- "Me.Person.Location"
+ "People.Person"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "Me.DirectReports.GetHomeAddress.AsEventLocation",
+ "summary": "Delete entity from People",
+ "operationId": "People.Person.DeletePerson",
"parameters": [
{
"in": "path",
@@ -5323,44 +15620,17 @@
"required": true,
"type": "string",
"x-ms-docs-key-type": "Person"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- }
- },
- "x-description": "Casts the previous resource to EventLocation."
- },
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count": {
- "get": {
- "tags": [
- "Me.Person"
- ],
- "summary": "Get the number of the resource",
- "operationId": "Me.DirectReports.GetCount-8b92",
- "parameters": [
- {
- "$ref": "#/parameters/search"
},
{
- "$ref": "#/parameters/filter"
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
}
],
"responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
@@ -5370,20 +15640,29 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- }
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to count the resources in the collection."
+ "x-description": "Provides operations to manage the collection of Person entities."
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref": {
+ "/People/{UserName}/AddressInfo": {
"get": {
"tags": [
- "Me.Person"
+ "People.Location"
],
- "summary": "Get ref of DirectReports from Me",
- "operationId": "Me.ListRefDirectReports",
+ "summary": "Get AddressInfo property value",
+ "operationId": "People.ListAddressInfo",
"parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
{
"$ref": "#/parameters/top"
},
@@ -5406,28 +15685,35 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
],
"type": "string"
}
@@ -5435,7 +15721,7 @@
],
"responses": {
"200": {
- "$ref": "#/responses/StringCollectionResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -5445,20 +15731,39 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "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"
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "post": {
+ "patch": {
"tags": [
- "Me.Person"
+ "People.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "People.UpdateAddressInfo",
+ "consumes": [
+ "application/json"
],
- "summary": "Create new navigation property ref to DirectReports for Me",
- "operationId": "Me.CreateRefDirectReports",
"parameters": [
{
- "$ref": "#/parameters/refPostBody"
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
}
],
"responses": {
@@ -5473,36 +15778,43 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "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"
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to manage the collection of Person entities."
- },
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": {
"post": {
"tags": [
- "Me.Actions"
+ "People.Location"
],
- "summary": "Invoke action Hire",
- "description": "Hires someone for the company.",
- "operationId": "Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire",
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "People.SetAddressInfo",
"consumes": [
"application/json"
],
"parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ },
{
"in": "body",
"name": "body",
- "description": "Action parameters",
+ "description": "New property values",
"required": true,
"schema": {
- "type": "object",
- "properties": {
- "hire": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- }
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
}
}
}
@@ -5519,29 +15831,37 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "action"
- },
- "x-description": "Provides operations to call the Hire method."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip": {
- "post": {
+ "/People/{UserName}/AddressInfo/$count": {
+ "get": {
"tags": [
- "Me.Actions"
+ "People.Location"
],
- "summary": "Invoke action ShareTrip",
- "description": "Details of the shared trip.",
- "operationId": "Me.ShareTrip",
+ "summary": "Get the number of the resource",
+ "operationId": "People.AddressInfo.GetCount-ed5a",
"parameters": [
{
- "$ref": "#/parameters/ShareTripRequestBody"
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
}
],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -5551,32 +15871,32 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "action"
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to call the ShareTrip method."
+ "x-description": "Provides operations to count the resources in the collection."
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName='{lastName}')": {
+ "/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"get": {
"tags": [
- "Me.Functions"
+ "People.Location"
],
- "summary": "Invoke function UpdatePersonLastName",
- "operationId": "Me.UpdatePersonLastName",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.ListAddressInfo.AsEventLocation",
"parameters": [
{
"in": "path",
- "name": "lastName",
- "description": "Usage: lastName='{lastName}'",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "string"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
"200": {
- "$ref": "#/responses/UpdatePersonLastNameResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -5586,69 +15906,69 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "function"
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to call the UpdatePersonLastName method."
+ "x-description": "Casts the previous resource to EventLocation."
},
- "/Me/Trips": {
+ "/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
"get": {
- "tags": [
- "Me.Trip"
- ],
- "summary": "List trips.",
- "description": "Retrieve a list of trips.",
- "operationId": "Me.ListTrips",
+ "summary": "Get the number of the resource",
+ "operationId": "People.ListAddressInfo.GetCount.AsEventLocation-4abd",
"parameters": [
{
- "in": "header",
- "name": "ConsistencyLevel",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
- "type": "string"
- },
- {
- "$ref": "#/parameters/top"
- },
- {
- "$ref": "#/parameters/skip"
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/parameters/search"
},
{
"$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
},
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/People/{UserName}/BestFriend": {
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get BestFriend from People",
+ "description": "The best friend.",
+ "operationId": "People.GetBestFriend",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
{
- "$ref": "#/parameters/count"
- },
- {
- "in": "query",
- "name": "$orderby",
- "description": "Order items by property values",
- "type": "array",
- "items": {
- "enum": [
- "TripId",
- "TripId desc",
- "ShareId",
- "ShareId desc",
- "Name",
- "Name desc",
- "Budget",
- "Budget desc",
- "Description",
- "Description desc",
- "Tags",
- "Tags desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc"
- ],
- "type": "string"
- }
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"in": "query",
@@ -5657,15 +15977,20 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "ShareId",
- "Name",
- "Budget",
- "Description",
- "Tags",
- "StartsAt",
- "EndsAt",
- "PlanItems"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -5678,7 +16003,9 @@
"items": {
"enum": [
"*",
- "PlanItems"
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -5686,7 +16013,10 @@
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse"
+ "description": "Retrieved navigation property",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
},
"default": {
"$ref": "#/responses/error"
@@ -5696,41 +16026,43 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
},
"x-ms-docs-operation-type": "operation"
},
- "post": {
+ "patch": {
"tags": [
- "Me.Trip"
+ "People.Person"
],
- "summary": "Create a trip.",
- "description": "Create a new trip.",
- "operationId": "Me.CreateTrips",
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "People.UpdateBestFriend",
"consumes": [
"application/json"
],
- "produces": [
- "application/json"
- ],
"parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
{
"in": "body",
"name": "body",
- "description": "New navigation property",
+ "description": "New navigation property values",
"required": true,
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
],
"responses": {
- "201": {
- "description": "Created navigation property.",
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
- }
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
@@ -5740,75 +16072,43 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ "version": "2021-05/people",
+ "description": "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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity."
+ "x-description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend"
+ ]
},
- "/Me/Trips/{TripId}": {
+ "/People/{UserName}/BestFriend/$ref": {
"get": {
"tags": [
- "Me.Trip"
- ],
- "summary": "Get a trip.",
- "description": "Retrieve the properties of a trip.",
- "operationId": "Me.GetTrips",
- "produces": [
- "application/json"
+ "People.Person"
],
- "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": "query",
- "name": "$select",
- "description": "Select properties to be returned",
- "type": "array",
- "items": {
- "enum": [
- "TripId",
- "ShareId",
- "Name",
- "Budget",
- "Description",
- "Tags",
- "StartsAt",
- "EndsAt",
- "PlanItems"
- ],
- "type": "string"
- }
- },
- {
- "in": "query",
- "name": "$expand",
- "description": "Expand related entities",
- "type": "array",
- "items": {
- "enum": [
- "*",
- "PlanItems"
- ],
- "type": "string"
- }
+ "summary": "Get ref of BestFriend from People",
+ "description": "The best friend.",
+ "operationId": "People.GetRefBestFriend",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
"200": {
- "description": "Retrieved navigation property",
+ "description": "Retrieved navigation property link",
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ "type": "string"
}
},
"default": {
@@ -5819,41 +16119,29 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
},
"x-ms-docs-operation-type": "operation"
},
- "patch": {
+ "put": {
"tags": [
- "Me.Trip"
- ],
- "summary": "Update a trip.",
- "description": "Update an instance of a trip.",
- "operationId": "Me.UpdateTrips",
- "consumes": [
- "application/json"
+ "People.Person"
],
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "People.UpdateRefBestFriend",
"parameters": [
{
"in": "path",
- "name": "TripId",
- "description": "The unique identifier of Trip",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "integer",
- "format": "int32",
- "maximum": 2147483647,
- "minimum": -2147483648,
- "x-ms-docs-key-type": "Trip"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
- "in": "body",
- "name": "body",
- "description": "New navigation property values",
- "required": true,
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
- }
+ "$ref": "#/parameters/refPutBody"
}
],
"responses": {
@@ -5868,29 +16156,25 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ "version": "2021-05/people",
+ "description": "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": [
- "Me.Trip"
+ "People.Person"
],
- "summary": "Delete a trip.",
- "description": "Delete an instance of a trip.",
- "operationId": "Me.DeleteTrips",
+ "summary": "Delete ref of navigation property BestFriend for People",
+ "operationId": "People.DeleteRefBestFriend",
"parameters": [
{
"in": "path",
- "name": "TripId",
- "description": "The unique identifier of Trip",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "integer",
- "format": "int32",
- "maximum": 2147483647,
- "minimum": -2147483648,
- "x-ms-docs-key-type": "Trip"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"in": "header",
@@ -5911,34 +16195,28 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ "version": "2021-05/people",
+ "description": "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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity."
+ "x-description": "Provides operations to manage the collection of Person entities."
},
- "/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
+ "/People/{UserName}/BestFriend/AddressInfo": {
"get": {
"tags": [
- "Me.Functions"
- ],
- "summary": "Invoke function GetInvolvedPeople",
- "operationId": "Me.Trips.Trip.GetInvolvedPeople",
- "produces": [
- "application/json"
+ "People.Person.Location"
],
+ "summary": "Get AddressInfo property value",
+ "operationId": "People.BestFriend.ListAddressInfo",
"parameters": [
{
"in": "path",
- "name": "TripId",
- "description": "The unique identifier of Trip",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "integer",
- "format": "int32",
- "maximum": 2147483647,
- "minimum": -2147483648,
- "x-ms-docs-key-type": "Trip"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/parameters/top"
@@ -5955,6 +16233,21 @@
{
"$ref": "#/parameters/count"
},
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ },
{
"in": "query",
"name": "$select",
@@ -5962,53 +16255,20 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "Address",
+ "City"
],
"type": "string"
}
},
{
"in": "query",
- "name": "$orderby",
- "description": "Order items by property values",
+ "name": "$expand",
+ "description": "Expand related entities",
"type": "array",
"items": {
"enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
+ "*"
],
"type": "string"
}
@@ -6016,19 +16276,7 @@
],
"responses": {
"200": {
- "description": "Success",
- "schema": {
- "title": "Collection of Person",
- "type": "object",
- "properties": {
- "value": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- }
- }
- }
- }
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -6038,100 +16286,44 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "function"
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to call the GetInvolvedPeople method."
- },
- "/Me/Trips/{TripId}/PlanItems": {
- "get": {
+ "patch": {
"tags": [
- "Me.Trips.PlanItem"
+ "People.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "People.BestFriend.UpdateAddressInfo",
+ "consumes": [
+ "application/json"
],
- "summary": "Get PlanItems from Me",
- "operationId": "Me.Trips.ListPlanItems",
"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"
- },
- {
- "$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": [
- "PlanItemId",
- "PlanItemId desc",
- "ConfirmationCode",
- "ConfirmationCode desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc",
- "Duration",
- "Duration desc"
- ],
- "type": "string"
- }
- },
- {
- "in": "query",
- "name": "$select",
- "description": "Select properties to be returned",
- "type": "array",
- "items": {
- "enum": [
- "PlanItemId",
- "ConfirmationCode",
- "StartsAt",
- "EndsAt",
- "Duration"
- ],
- "type": "string"
- }
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
- "in": "query",
- "name": "$expand",
- "description": "Expand related entities",
- "type": "array",
- "items": {
- "enum": [
- "*"
- ],
- "type": "string"
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
}
}
],
"responses": {
- "200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
@@ -6141,42 +16333,27 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "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"
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity."
- },
- "/Me/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
- "delete": {
+ "post": {
"tags": [
- "Me.Trips.PlanItem"
+ "People.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "People.BestFriend.SetAddressInfo",
+ "consumes": [
+ "application/json"
],
- "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": "path",
- "name": "PlanItemId",
- "description": "The unique identifier of PlanItem",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "integer",
- "format": "int32",
- "maximum": 2147483647,
- "minimum": -2147483648,
- "x-ms-docs-key-type": "PlanItem"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"in": "header",
@@ -6185,10 +16362,16 @@
"type": "string"
},
{
- "in": "query",
- "name": "@id",
- "description": "Delete Uri",
- "type": "string"
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
}
],
"responses": {
@@ -6203,31 +16386,26 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "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."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
},
- "/Me/Trips/{TripId}/PlanItems/$count": {
+ "/People/{UserName}/BestFriend/AddressInfo/$count": {
"get": {
"tags": [
- "Me.Trips.PlanItem"
+ "People.Person.Location"
],
"summary": "Get the number of the resource",
- "operationId": "Me.Trips.PlanItems.GetCount-c250",
+ "operationId": "People.BestFriend.AddressInfo.GetCount-16df",
"parameters": [
{
"in": "path",
- "name": "TripId",
- "description": "The unique identifier of Trip",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "integer",
- "format": "int32",
- "maximum": 2147483647,
- "minimum": -2147483648,
- "x-ms-docs-key-type": "Trip"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/parameters/search"
@@ -6248,63 +16426,125 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
"x-description": "Provides operations to count the resources in the collection."
},
- "/Me/Trips/{TripId}/PlanItems/$ref": {
+ "/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"get": {
"tags": [
- "Me.Trips.PlanItem"
+ "People.Person.Location"
],
- "summary": "Get ref of PlanItems from Me",
- "operationId": "Me.Trips.ListRefPlanItems",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation",
"parameters": [
{
"in": "path",
- "name": "TripId",
- "description": "The unique identifier of Trip",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "integer",
- "format": "int32",
- "maximum": 2147483647,
- "minimum": -2147483648,
- "x-ms-docs-key-type": "Trip"
- },
- {
- "$ref": "#/parameters/top"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "People.BestFriend.ListAddressInfo.GetCount.AsEventLocation-fe88",
+ "parameters": [
{
- "$ref": "#/parameters/skip"
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/parameters/search"
},
{
"$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/People/{UserName}/BestFriend/HomeAddress": {
+ "get": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "People.BestFriend.GetHomeAddress",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/count"
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
},
{
"in": "query",
- "name": "$orderby",
- "description": "Order items by property values",
+ "name": "$expand",
+ "description": "Expand related entities",
"type": "array",
"items": {
"enum": [
- "PlanItemId",
- "PlanItemId desc",
- "ConfirmationCode",
- "ConfirmationCode desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc",
- "Duration",
- "Duration desc"
+ "*"
],
"type": "string"
}
@@ -6312,7 +16552,10 @@
],
"responses": {
"200": {
- "$ref": "#/responses/StringCollectionResponse"
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
},
"default": {
"$ref": "#/responses/error"
@@ -6322,31 +16565,36 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "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"
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "post": {
+ "patch": {
"tags": [
- "Me.Trips.PlanItem"
+ "People.Person.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "People.BestFriend.UpdateHomeAddress",
+ "consumes": [
+ "application/json"
],
- "summary": "Create new navigation property ref to PlanItems for Me",
- "operationId": "Me.Trips.CreateRefPlanItems",
"parameters": [
{
"in": "path",
- "name": "TripId",
- "description": "The unique identifier of Trip",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "integer",
- "format": "int32",
- "maximum": 2147483647,
- "minimum": -2147483648,
- "x-ms-docs-key-type": "Trip"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/refPostBody"
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
}
],
"responses": {
@@ -6361,37 +16609,31 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "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."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
},
- "/Me/Trips/$count": {
+ "/People/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"get": {
"tags": [
- "Me.Trip"
+ "People.Person.Location"
],
- "summary": "Get the number of the resource",
- "operationId": "Me.Trips.GetCount-7b69",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation",
"parameters": [
{
- "in": "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"
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
"200": {
- "$ref": "#/responses/ODataCountResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -6401,67 +16643,30 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
- "x-description": "Provides operations to count the resources in the collection."
+ "x-description": "Casts the previous resource to EventLocation."
},
- "/NewComePeople": {
+ "/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "People.GetBestFriend.AsEmployee",
+ "produces": [
+ "application/json"
],
- "summary": "Get entities from NewComePeople",
- "operationId": "NewComePeople.Person.ListPerson",
"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",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
- ],
- "type": "string"
- }
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"in": "query",
@@ -6506,58 +16711,32 @@
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- }
- },
- "post": {
- "tags": [
- "NewComePeople.Person"
- ],
- "summary": "Add new entity to NewComePeople",
- "operationId": "NewComePeople.Person.CreatePerson",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "parameters": [
- {
- "in": "body",
- "name": "body",
- "description": "New entity",
- "required": true,
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- }
- }
- ],
- "responses": {
- "201": {
- "description": "Created entity",
+ "description": "Result entities",
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
}
},
"default": {
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to manage the collection of Person entities."
+ "x-description": "Casts the previous resource to Employee."
},
- "/NewComePeople/{UserName}": {
+ "/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person"
],
- "summary": "Get entity from NewComePeople by key",
- "operationId": "NewComePeople.Person.GetPerson",
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "People.GetBestFriend.AsManager",
"produces": [
"application/json"
],
@@ -6613,96 +16792,32 @@
],
"responses": {
"200": {
- "description": "Retrieved entity",
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- }
- },
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "x-ms-docs-operation-type": "operation"
- },
- "patch": {
- "tags": [
- "NewComePeople.Person"
- ],
- "summary": "Update entity in NewComePeople",
- "operationId": "NewComePeople.Person.UpdatePerson",
- "consumes": [
- "application/json"
- ],
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "in": "body",
- "name": "body",
- "description": "New property values",
- "required": true,
+ "description": "Result entities",
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
}
- }
- ],
- "responses": {
- "204": {
- "description": "Success"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "x-ms-docs-operation-type": "operation"
- },
- "delete": {
- "tags": [
- "NewComePeople.Person"
- ],
- "summary": "Delete entity from NewComePeople",
- "operationId": "NewComePeople.Person.DeletePerson",
- "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"
- }
- ],
- "responses": {
- "204": {
- "description": "Success"
},
"default": {
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to manage the collection of Person entities."
+ "x-description": "Casts the previous resource to Manager."
},
- "/NewComePeople/{UserName}/AddressInfo": {
+ "/People/{UserName}/Friends": {
"get": {
"tags": [
- "NewComePeople.Location"
+ "People.Person"
],
- "summary": "Get AddressInfo property value",
- "operationId": "NewComePeople.ListAddressInfo",
+ "summary": "Get Friends from People",
+ "operationId": "People.ListFriends",
"parameters": [
{
"in": "path",
@@ -6734,10 +16849,28 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "Address desc",
- "City",
- "City desc"
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
],
"type": "string"
}
@@ -6749,8 +16882,20 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "City"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -6762,7 +16907,10 @@
"type": "array",
"items": {
"enum": [
- "*"
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -6770,22 +16918,34 @@
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
}
- }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "patch": {
+ "x-description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends"
+ ]
+ },
+ "/People/{UserName}/Friends/{UserName1}/$ref": {
+ "delete": {
"tags": [
- "NewComePeople.Location"
- ],
- "summary": "Update property AddressInfo value.",
- "operationId": "NewComePeople.UpdateAddressInfo",
- "consumes": [
- "application/json"
+ "People.Person"
],
+ "summary": "Delete ref of navigation property Friends for People",
+ "operationId": "People.DeleteRefFriends",
"parameters": [
{
"in": "path",
@@ -6795,41 +16955,9 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
- {
- "in": "body",
- "name": "body",
- "description": "New property values",
- "required": true,
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- }
- ],
- "responses": {
- "204": {
- "description": "Success"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- }
- },
- "post": {
- "tags": [
- "NewComePeople.Location"
- ],
- "summary": "Sets a new value for the collection of Location.",
- "operationId": "NewComePeople.SetAddressInfo",
- "consumes": [
- "application/json"
- ],
- "parameters": [
{
"in": "path",
- "name": "UserName",
+ "name": "UserName1",
"description": "The unique identifier of Person",
"required": true,
"type": "string",
@@ -6842,16 +16970,10 @@
"type": "string"
},
{
- "in": "body",
- "name": "body",
- "description": "New property values",
- "required": true,
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
+ "in": "query",
+ "name": "@id",
+ "description": "Delete Uri",
+ "type": "string"
}
],
"responses": {
@@ -6861,81 +16983,25 @@
"default": {
"$ref": "#/responses/error"
}
- }
- }
- },
- "/NewComePeople/{UserName}/AddressInfo/$count": {
- "get": {
- "tags": [
- "NewComePeople.Location"
- ],
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.AddressInfo.GetCount-29d6",
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "in": "header",
- "name": "ConsistencyLevel",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
- "type": "string"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to count the resources in the collection."
+ "x-description": "Provides operations to manage the collection of Person entities."
},
- "/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "/People/{UserName}/Friends/{UserName1}/AddressInfo": {
"get": {
"tags": [
- "NewComePeople.Location"
- ],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "NewComePeople.ListAddressInfo.AsEventLocation",
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- }
+ "People.Person.Location"
],
- "responses": {
- "200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- }
- },
- "x-description": "Casts the previous resource to EventLocation."
- },
- "/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
- "get": {
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.ListAddressInfo.GetCount.AsEventLocation-29d3",
+ "summary": "Get AddressInfo property value",
+ "operationId": "People.Friends.ListAddressInfo",
"parameters": [
{
"in": "path",
@@ -6945,50 +17011,44 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
- {
- "in": "header",
- "name": "ConsistencyLevel",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
- "type": "string"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- }
- },
- "x-description": "Provides operations to count the resources in the collection."
- },
- "/NewComePeople/{UserName}/BestFriend": {
- "get": {
- "tags": [
- "NewComePeople.Person"
- ],
- "summary": "Get BestFriend from NewComePeople",
- "description": "The best friend.",
- "operationId": "NewComePeople.GetBestFriend",
- "produces": [
- "application/json"
- ],
- "parameters": [
{
"in": "path",
- "name": "UserName",
+ "name": "UserName1",
"description": "The unique identifier of Person",
"required": true,
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ },
{
"in": "query",
"name": "$select",
@@ -6996,20 +17056,8 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "Address",
+ "City"
],
"type": "string"
}
@@ -7021,10 +17069,7 @@
"type": "array",
"items": {
"enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
+ "*"
],
"type": "string"
}
@@ -7032,10 +17077,7 @@
],
"responses": {
"200": {
- "description": "Retrieved navigation property",
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- }
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -7045,18 +17087,16 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- },
- "x-ms-docs-operation-type": "operation"
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
"patch": {
"tags": [
- "NewComePeople.Person"
+ "People.Person.Location"
],
- "summary": "Update the best friend.",
- "description": "Update an instance of a best friend.",
- "operationId": "NewComePeople.UpdateBestFriend",
+ "summary": "Update property AddressInfo value.",
+ "operationId": "People.Friends.UpdateAddressInfo",
"consumes": [
"application/json"
],
@@ -7069,13 +17109,24 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
{
"in": "body",
"name": "body",
- "description": "New navigation property values",
+ "description": "New property values",
"required": true,
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
}
}
],
@@ -7091,22 +17142,17 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- },
- "x-ms-docs-operation-type": "operation"
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity."
- },
- "/NewComePeople/{UserName}/BestFriend/$ref": {
- "get": {
+ "post": {
"tags": [
- "NewComePeople.Person"
+ "People.Person.Location"
],
- "summary": "Get ref of BestFriend from NewComePeople",
- "description": "The best friend.",
- "operationId": "NewComePeople.GetRefBestFriend",
- "produces": [
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "People.Friends.SetAddressInfo",
+ "consumes": [
"application/json"
],
"parameters": [
@@ -7117,14 +17163,85 @@
"required": true,
"type": "string",
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Friends/{UserName1}/AddressInfo/$count": {
+ "get": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "People.Friends.AddressInfo.GetCount-bdaf",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
}
],
"responses": {
"200": {
- "description": "Retrieved navigation property link",
- "schema": {
- "type": "string"
- }
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -7134,18 +17251,19 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- },
- "x-ms-docs-operation-type": "operation"
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "put": {
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person.Location"
],
- "summary": "Update the best friend.",
- "description": "Update an instance of a best friend.",
- "operationId": "NewComePeople.UpdateRefBestFriend",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.Friends.ListAddressInfo.AsEventLocation",
"parameters": [
{
"in": "path",
@@ -7156,12 +17274,17 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/refPutBody"
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -7171,17 +17294,16 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- },
- "x-ms-docs-operation-type": "operation"
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "delete": {
- "tags": [
- "NewComePeople.Person"
- ],
- "summary": "Delete ref of navigation property BestFriend for NewComePeople",
- "operationId": "NewComePeople.DeleteRefBestFriend",
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "People.Friends.ListAddressInfo.GetCount.AsEventLocation-2795",
"parameters": [
{
"in": "path",
@@ -7192,15 +17314,23 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "header",
- "name": "If-Match",
- "description": "ETag",
- "type": "string"
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
}
],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -7210,20 +17340,22 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- },
- "x-ms-docs-operation-type": "operation"
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to manage the collection of Person entities."
+ "x-description": "Provides operations to count the resources in the collection."
},
- "/NewComePeople/{UserName}/BestFriend/AddressInfo": {
+ "/People/{UserName}/Friends/{UserName1}/HomeAddress": {
"get": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "People.Friends.GetHomeAddress",
+ "produces": [
+ "application/json"
],
- "summary": "Get AddressInfo property value",
- "operationId": "NewComePeople.BestFriend.ListAddressInfo",
"parameters": [
{
"in": "path",
@@ -7234,34 +17366,12 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/top"
- },
- {
- "$ref": "#/parameters/skip"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- },
- {
- "$ref": "#/parameters/count"
- },
- {
- "in": "query",
- "name": "$orderby",
- "description": "Order items by property values",
- "type": "array",
- "items": {
- "enum": [
- "Address",
- "Address desc",
- "City",
- "City desc"
- ],
- "type": "string"
- }
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"in": "query",
@@ -7291,7 +17401,10 @@
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
},
"default": {
"$ref": "#/responses/error"
@@ -7301,16 +17414,16 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
"patch": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person.Location"
],
- "summary": "Update property AddressInfo value.",
- "operationId": "NewComePeople.BestFriend.UpdateAddressInfo",
+ "summary": "Update property HomeAddress value.",
+ "operationId": "People.Friends.UpdateHomeAddress",
"consumes": [
"application/json"
],
@@ -7323,69 +17436,21 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
- {
- "in": "body",
- "name": "body",
- "description": "New property values",
- "required": true,
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- }
- ],
- "responses": {
- "204": {
- "description": "Success"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- }
- },
- "post": {
- "tags": [
- "NewComePeople.Person.Location"
- ],
- "summary": "Sets a new value for the collection of Location.",
- "operationId": "NewComePeople.BestFriend.SetAddressInfo",
- "consumes": [
- "application/json"
- ],
- "parameters": [
{
"in": "path",
- "name": "UserName",
+ "name": "UserName1",
"description": "The unique identifier of Person",
"required": true,
"type": "string",
"x-ms-docs-key-type": "Person"
},
- {
- "in": "header",
- "name": "If-Match",
- "description": "ETag",
- "type": "string"
- },
{
"in": "body",
"name": "body",
"description": "New property values",
"required": true,
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
}
}
],
@@ -7401,18 +17466,18 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/NewComePeople/{UserName}/BestFriend/AddressInfo/$count": {
+ "/People/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"get": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person.Location"
],
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.BestFriend.AddressInfo.GetCount-513c",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.Friends.GetHomeAddress.AsEventLocation",
"parameters": [
{
"in": "path",
@@ -7422,48 +17487,9 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
- {
- "in": "header",
- "name": "ConsistencyLevel",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
- "type": "string"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- }
- },
- "x-description": "Provides operations to count the resources in the collection."
- },
- "/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "get": {
- "tags": [
- "NewComePeople.Person.Location"
- ],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "NewComePeople.BestFriend.ListAddressInfo.AsEventLocation",
- "parameters": [
{
"in": "path",
- "name": "UserName",
+ "name": "UserName1",
"description": "The unique identifier of Person",
"required": true,
"type": "string",
@@ -7482,16 +17508,22 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
"x-description": "Casts the previous resource to EventLocation."
},
- "/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
"get": {
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.BestFriend.ListAddressInfo.GetCount.AsEventLocation-ba36",
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "People.GetFriends.AsEmployee",
+ "produces": [
+ "application/json"
+ ],
"parameters": [
{
"in": "path",
@@ -7502,21 +17534,60 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "header",
- "name": "ConsistencyLevel",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
- "type": "string"
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/search"
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
},
{
- "$ref": "#/parameters/filter"
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
}
],
"responses": {
"200": {
- "$ref": "#/responses/ODataCountResponse"
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ }
},
"default": {
"$ref": "#/responses/error"
@@ -7526,19 +17597,19 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
- "x-description": "Provides operations to count the resources in the collection."
+ "x-description": "Casts the previous resource to Employee."
},
- "/NewComePeople/{UserName}/BestFriend/HomeAddress": {
+ "/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
"get": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person"
],
- "summary": "Get HomeAddress property value",
- "operationId": "NewComePeople.BestFriend.GetHomeAddress",
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "People.GetFriends.AsManager",
"produces": [
"application/json"
],
@@ -7551,6 +17622,14 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
{
"in": "query",
"name": "$select",
@@ -7558,8 +17637,20 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "City"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -7571,7 +17662,10 @@
"type": "array",
"items": {
"enum": [
- "*"
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -7581,7 +17675,7 @@
"200": {
"description": "Result entities",
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
}
},
"default": {
@@ -7592,19 +17686,19 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
- "patch": {
+ "x-description": "Casts the previous resource to Manager."
+ },
+ "/People/{UserName}/Friends/$count": {
+ "get": {
"tags": [
- "NewComePeople.Person.Location"
- ],
- "summary": "Update property HomeAddress value.",
- "operationId": "NewComePeople.BestFriend.UpdateHomeAddress",
- "consumes": [
- "application/json"
+ "People.Person"
],
+ "summary": "Get the number of the resource",
+ "operationId": "People.Friends.GetCount-92b9",
"parameters": [
{
"in": "path",
@@ -7615,52 +17709,15 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "body",
- "name": "body",
- "description": "New property values",
- "required": true,
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- ],
- "responses": {
- "204": {
- "description": "Success"
+ "$ref": "#/parameters/search"
},
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- }
- }
- },
- "/NewComePeople/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "get": {
- "tags": [
- "NewComePeople.Person.Location"
- ],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "NewComePeople.BestFriend.GetHomeAddress.AsEventLocation",
- "parameters": [
{
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "$ref": "#/parameters/filter"
}
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -7670,22 +17727,19 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
- "x-description": "Casts the previous resource to EventLocation."
+ "x-description": "Provides operations to count the resources in the collection."
},
- "/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "/People/{UserName}/Friends/$ref": {
"get": {
"tags": [
- "NewComePeople.Person"
- ],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
- "operationId": "NewComePeople.GetBestFriend.AsEmployee",
- "produces": [
- "application/json"
+ "People.Person"
],
+ "summary": "Get ref of Friends from People",
+ "operationId": "People.ListRefFriends",
"parameters": [
{
"in": "path",
@@ -7695,53 +17749,94 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
{
"in": "query",
- "name": "$select",
- "description": "Select properties to be returned",
+ "name": "$orderby",
+ "description": "Order items by property values",
"type": "array",
"items": {
"enum": [
"UserName",
+ "UserName desc",
"FirstName",
+ "FirstName desc",
"LastName",
+ "LastName desc",
"MiddleName",
+ "MiddleName desc",
"Gender",
+ "Gender desc",
"Age",
+ "Age desc",
"Emails",
+ "Emails desc",
"AddressInfo",
+ "AddressInfo desc",
"HomeAddress",
+ "HomeAddress desc",
"FavoriteFeature",
+ "FavoriteFeature desc",
"Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "Features desc"
],
"type": "string"
}
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Create new navigation property ref to Friends for People",
+ "operationId": "People.CreateRefFriends",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
- "in": "query",
- "name": "$expand",
- "description": "Expand related entities",
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
+ "$ref": "#/parameters/refPostBody"
}
],
"responses": {
- "200": {
- "description": "Result entities",
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
- }
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
@@ -7751,22 +17846,20 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- }
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Casts the previous resource to Employee."
+ "x-description": "Provides operations to manage the collection of Person entities."
},
- "/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
"get": {
"tags": [
- "NewComePeople.Person"
- ],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
- "operationId": "NewComePeople.GetBestFriend.AsManager",
- "produces": [
- "application/json"
+ "People.Person"
],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
+ "operationId": "People.ListFriends.AsEmployee",
"parameters": [
{
"in": "path",
@@ -7776,6 +17869,54 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ },
{
"in": "query",
"name": "$select",
@@ -7819,10 +17960,7 @@
],
"responses": {
"200": {
- "description": "Result entities",
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
- }
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -7832,19 +17970,60 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
- "x-description": "Casts the previous resource to Manager."
+ "x-description": "Casts the previous resource to Employee."
},
- "/NewComePeople/{UserName}/Friends": {
+ "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": {
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person"
],
- "summary": "Get Friends from NewComePeople",
- "operationId": "NewComePeople.ListFriends",
+ "summary": "Get the number of the resource",
+ "operationId": "People.ListFriends.GetCount.AsEmployee-a96c",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
+ "operationId": "People.ListFriends.AsManager",
"parameters": [
{
"in": "path",
@@ -7945,23 +18124,29 @@
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity."
+ "x-description": "Casts the previous resource to Manager."
},
- "/NewComePeople/{UserName}/Friends/{UserName1}/$ref": {
- "delete": {
+ "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": {
+ "get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person"
],
- "summary": "Delete ref of navigation property Friends for NewComePeople",
- "operationId": "NewComePeople.DeleteRefFriends",
+ "summary": "Get the number of the resource",
+ "operationId": "People.ListFriends.GetCount.AsManager-26b3",
"parameters": [
{
"in": "path",
@@ -7971,25 +18156,121 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/People/{UserName}/HomeAddress": {
+ "get": {
+ "tags": [
+ "People.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "People.GetHomeAddress",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
{
"in": "path",
- "name": "UserName1",
+ "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": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
},
{
"in": "query",
- "name": "@id",
- "description": "Delete Uri",
- "type": "string"
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "People.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "People.UpdateHomeAddress",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
}
],
"responses": {
@@ -8000,17 +18281,60 @@
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "People.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to manage the collection of Person entities."
+ "x-description": "Casts the previous resource to EventLocation."
},
- "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
"get": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "People.Person.GetPerson.AsEmployee",
+ "produces": [
+ "application/json"
],
- "summary": "Get AddressInfo property value",
- "operationId": "NewComePeople.Friends.ListAddressInfo",
"parameters": [
{
"in": "path",
@@ -8021,42 +18345,10 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/parameters/top"
- },
- {
- "$ref": "#/parameters/skip"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- },
- {
- "$ref": "#/parameters/count"
- },
- {
- "in": "query",
- "name": "$orderby",
- "description": "Order items by property values",
- "type": "array",
- "items": {
- "enum": [
- "Address",
- "Address desc",
- "City",
- "City desc"
- ],
- "type": "string"
- }
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
},
{
"in": "query",
@@ -8065,8 +18357,20 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "City"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -8078,7 +18382,10 @@
"type": "array",
"items": {
"enum": [
- "*"
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -8086,20 +18393,34 @@
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ }
},
"default": {
"$ref": "#/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
- "patch": {
+ "x-description": "Casts the previous resource to Employee."
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend": {
+ "get": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person"
],
- "summary": "Update property AddressInfo value.",
- "operationId": "NewComePeople.Friends.UpdateAddressInfo",
- "consumes": [
+ "summary": "Get BestFriend from People",
+ "description": "The best friend.",
+ "operationId": "People.GetBestFriend",
+ "produces": [
"application/json"
],
"parameters": [
@@ -8112,41 +18433,73 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
},
{
- "in": "body",
- "name": "body",
- "description": "New property values",
- "required": true,
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
}
}
],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "description": "Retrieved navigation property",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
},
"default": {
"$ref": "#/responses/error"
}
- }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "post": {
+ "patch": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person"
],
- "summary": "Sets a new value for the collection of Location.",
- "operationId": "NewComePeople.Friends.SetAddressInfo",
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "People.UpdateBestFriend",
"consumes": [
"application/json"
],
@@ -8159,30 +18512,13 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "in": "header",
- "name": "If-Match",
- "description": "ETag",
- "type": "string"
- },
{
"in": "body",
"name": "body",
- "description": "New property values",
+ "description": "New navigation property values",
"required": true,
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
],
@@ -8193,16 +18529,33 @@
"default": {
"$ref": "#/responses/error"
}
- }
- }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/BestFriend",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend"
+ ]
},
- "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/$ref": {
"get": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person"
+ ],
+ "summary": "Get ref of BestFriend from People",
+ "description": "The best friend.",
+ "operationId": "People.GetRefBestFriend",
+ "produces": [
+ "application/json"
],
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.Friends.AddressInfo.GetCount-9334",
"parameters": [
{
"in": "path",
@@ -8211,46 +18564,35 @@
"required": true,
"type": "string",
"x-ms-docs-key-type": "Person"
- },
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "in": "header",
- "name": "ConsistencyLevel",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
- "type": "string"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
}
],
"responses": {
"200": {
- "$ref": "#/responses/ODataCountResponse"
+ "description": "Retrieved navigation property link",
+ "schema": {
+ "type": "string"
+ }
},
"default": {
"$ref": "#/responses/error"
}
- }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to count the resources in the collection."
- },
- "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "get": {
+ "put": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "NewComePeople.Friends.ListAddressInfo.AsEventLocation",
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "People.UpdateRefBestFriend",
"parameters": [
{
"in": "path",
@@ -8261,29 +18603,32 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "$ref": "#/parameters/refPutBody"
}
],
"responses": {
- "200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
}
- }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Casts the previous resource to EventLocation."
- },
- "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
- "get": {
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.Friends.ListAddressInfo.GetCount.AsEventLocation-be92",
+ "delete": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Delete ref of navigation property BestFriend for People",
+ "operationId": "People.DeleteRefBestFriend",
"parameters": [
{
"in": "path",
@@ -8293,48 +18638,39 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
{
"in": "header",
- "name": "ConsistencyLevel",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "name": "If-Match",
+ "description": "ETag",
"type": "string"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
}
],
"responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
}
- }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to count the resources in the collection."
+ "x-description": "Provides operations to manage the collection of Person entities."
},
- "/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo": {
"get": {
"tags": [
- "NewComePeople.Person.Location"
- ],
- "summary": "Get HomeAddress property value",
- "operationId": "NewComePeople.Friends.GetHomeAddress",
- "produces": [
- "application/json"
+ "People.Person.Location"
],
+ "summary": "Get AddressInfo property value",
+ "operationId": "People.BestFriend.ListAddressInfo",
"parameters": [
{
"in": "path",
@@ -8345,12 +18681,34 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
},
{
"in": "query",
@@ -8380,22 +18738,26 @@
],
"responses": {
"200": {
- "description": "Result entities",
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
"patch": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person.Location"
],
- "summary": "Update property HomeAddress value.",
- "operationId": "NewComePeople.Friends.UpdateHomeAddress",
+ "summary": "Update property AddressInfo value.",
+ "operationId": "People.BestFriend.UpdateAddressInfo",
"consumes": [
"application/json"
],
@@ -8408,21 +18770,16 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
{
"in": "body",
"name": "body",
"description": "New property values",
"required": true,
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
}
}
],
@@ -8433,16 +18790,24 @@
"default": {
"$ref": "#/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
- }
- },
- "/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "get": {
+ },
+ "post": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "People.BestFriend.SetAddressInfo",
+ "consumes": [
+ "application/json"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "NewComePeople.Friends.GetHomeAddress.AsEventLocation",
"parameters": [
{
"in": "path",
@@ -8453,35 +18818,48 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
"required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
}
],
"responses": {
- "200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
- },
- "x-description": "Casts the previous resource to EventLocation."
+ }
},
- "/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/$count": {
"get": {
"tags": [
- "NewComePeople.Person"
- ],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
- "operationId": "NewComePeople.GetFriends.AsEmployee",
- "produces": [
- "application/json"
+ "People.Person.Location"
],
+ "summary": "Get the number of the resource",
+ "operationId": "People.BestFriend.AddressInfo.GetCount-cb8a",
"parameters": [
{
"in": "path",
@@ -8489,81 +18867,40 @@
"description": "The unique identifier of Person",
"required": true,
"type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "in": "query",
- "name": "$select",
- "description": "Select properties to be returned",
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- },
- {
- "in": "query",
- "name": "$expand",
- "description": "Expand related entities",
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
}
],
"responses": {
"200": {
- "description": "Result entities",
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
- }
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
- "x-description": "Casts the previous resource to Employee."
+ "x-description": "Provides operations to count the resources in the collection."
},
- "/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"get": {
"tags": [
- "NewComePeople.Person"
- ],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
- "operationId": "NewComePeople.GetFriends.AsManager",
- "produces": [
- "application/json"
+ "People.Person.Location"
],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation",
"parameters": [
{
"in": "path",
@@ -8572,77 +18909,30 @@
"required": true,
"type": "string",
"x-ms-docs-key-type": "Person"
- },
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "in": "query",
- "name": "$select",
- "description": "Select properties to be returned",
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- },
- {
- "in": "query",
- "name": "$expand",
- "description": "Expand related entities",
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
}
],
"responses": {
"200": {
- "description": "Result entities",
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
- }
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
- "x-description": "Casts the previous resource to Manager."
+ "x-description": "Casts the previous resource to EventLocation."
},
- "/NewComePeople/{UserName}/Friends/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
"get": {
- "tags": [
- "NewComePeople.Person"
- ],
"summary": "Get the number of the resource",
- "operationId": "NewComePeople.Friends.GetCount-2ec1",
+ "operationId": "People.BestFriend.ListAddressInfo.GetCount.AsEventLocation-0343",
"parameters": [
{
"in": "path",
@@ -8666,17 +18956,27 @@
"default": {
"$ref": "#/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
"x-description": "Provides operations to count the resources in the collection."
},
- "/NewComePeople/{UserName}/Friends/$ref": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress": {
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "People.BestFriend.GetHomeAddress",
+ "produces": [
+ "application/json"
],
- "summary": "Get ref of Friends from NewComePeople",
- "operationId": "NewComePeople.ListRefFriends",
"parameters": [
{
"in": "path",
@@ -8687,49 +18987,26 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/top"
- },
- {
- "$ref": "#/parameters/skip"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- },
- {
- "$ref": "#/parameters/count"
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
},
{
"in": "query",
- "name": "$orderby",
- "description": "Order items by property values",
+ "name": "$expand",
+ "description": "Expand related entities",
"type": "array",
"items": {
"enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
+ "*"
],
"type": "string"
}
@@ -8737,20 +19014,32 @@
],
"responses": {
"200": {
- "$ref": "#/responses/StringCollectionResponse"
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
},
"default": {
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "post": {
+ "patch": {
"tags": [
- "NewComePeople.Person"
+ "People.Person.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "People.BestFriend.UpdateHomeAddress",
+ "consumes": [
+ "application/json"
],
- "summary": "Create new navigation property ref to Friends for NewComePeople",
- "operationId": "NewComePeople.CreateRefFriends",
"parameters": [
{
"in": "path",
@@ -8761,7 +19050,13 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/refPostBody"
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
}
],
"responses": {
@@ -8772,17 +19067,22 @@
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
- },
- "x-description": "Provides operations to manage the collection of Person entities."
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
},
- "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person.Location"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
- "operationId": "NewComePeople.ListFriends.AsEmployee",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation",
"parameters": [
{
"in": "path",
@@ -8791,54 +19091,44 @@
"required": true,
"type": "string",
"x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "People.GetBestFriend.AsManager",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
{
- "$ref": "#/parameters/top"
- },
- {
- "$ref": "#/parameters/skip"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- },
- {
- "$ref": "#/parameters/count"
- },
- {
- "in": "query",
- "name": "$orderby",
- "description": "Order items by property values",
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
- ],
- "type": "string"
- }
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"in": "query",
@@ -8883,56 +19173,32 @@
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- }
- },
- "x-description": "Casts the previous resource to Employee."
- },
- "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": {
- "get": {
- "tags": [
- "NewComePeople.Person"
- ],
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.ListFriends.GetCount.AsEmployee-4069",
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ }
},
"default": {
"$ref": "#/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
- "x-description": "Provides operations to count the resources in the collection."
+ "x-description": "Casts the previous resource to Manager."
},
- "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends": {
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
- "operationId": "NewComePeople.ListFriends.AsManager",
+ "summary": "Get Friends from People",
+ "operationId": "People.ListFriends",
"parameters": [
{
"in": "path",
@@ -9026,186 +19292,41 @@
"Friends",
"BestFriend",
"Trips"
- ],
- "type": "string"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- }
- },
- "x-description": "Casts the previous resource to Manager."
- },
- "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": {
- "get": {
- "tags": [
- "NewComePeople.Person"
- ],
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.ListFriends.GetCount.AsManager-d1d3",
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- }
- },
- "x-description": "Provides operations to count the resources in the collection."
- },
- "/NewComePeople/{UserName}/HomeAddress": {
- "get": {
- "tags": [
- "NewComePeople.Location"
- ],
- "summary": "Get HomeAddress property value",
- "operationId": "NewComePeople.GetHomeAddress",
- "produces": [
- "application/json"
- ],
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "in": "query",
- "name": "$select",
- "description": "Select properties to be returned",
- "type": "array",
- "items": {
- "enum": [
- "Address",
- "City"
- ],
- "type": "string"
- }
- },
- {
- "in": "query",
- "name": "$expand",
- "description": "Expand related entities",
- "type": "array",
- "items": {
- "enum": [
- "*"
- ],
- "type": "string"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Result entities",
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- },
- "default": {
- "$ref": "#/responses/error"
- }
- }
- },
- "patch": {
- "tags": [
- "NewComePeople.Location"
- ],
- "summary": "Update property HomeAddress value.",
- "operationId": "NewComePeople.UpdateHomeAddress",
- "consumes": [
- "application/json"
- ],
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "in": "body",
- "name": "body",
- "description": "New property values",
- "required": true,
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- ],
- "responses": {
- "204": {
- "description": "Success"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- }
- }
- },
- "/NewComePeople/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "get": {
- "tags": [
- "NewComePeople.Location"
- ],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "NewComePeople.GetHomeAddress.AsEventLocation",
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ ],
+ "type": "string"
+ }
}
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
}
- }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Casts the previous resource to EventLocation."
+ "x-description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Friends",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends"
+ ]
},
- "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()": {
- "get": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/$ref": {
+ "delete": {
"tags": [
- "NewComePeople.Functions"
+ "People.Person"
],
- "summary": "Invoke function GetFavoriteAirline",
- "operationId": "NewComePeople.Person.GetFavoriteAirline",
+ "summary": "Delete ref of navigation property Friends for People",
+ "operationId": "People.DeleteRefFriends",
"parameters": [
{
"in": "path",
@@ -9214,27 +19335,54 @@
"required": true,
"type": "string",
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "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": "Delete Uri",
+ "type": "string"
}
],
"responses": {
- "200": {
- "$ref": "#/responses/GetFavoriteAirlineResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "function"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "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 call the GetFavoriteAirline method."
+ "x-description": "Provides operations to manage the collection of Person entities."
},
- "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName='{userName}')": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo": {
"get": {
"tags": [
- "NewComePeople.Functions"
+ "People.Person.Location"
],
- "summary": "Invoke function GetFriendsTrips",
- "operationId": "NewComePeople.Person.GetFriendsTrips",
+ "summary": "Get AddressInfo property value",
+ "operationId": "People.Friends.ListAddressInfo",
"parameters": [
{
"in": "path",
@@ -9246,10 +19394,11 @@
},
{
"in": "path",
- "name": "userName",
- "description": "Usage: userName='{userName}'",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "string"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/parameters/top"
@@ -9266,6 +19415,21 @@
{
"$ref": "#/parameters/count"
},
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ },
{
"in": "query",
"name": "$select",
@@ -9273,42 +19437,20 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "ShareId",
- "Name",
- "Budget",
- "Description",
- "Tags",
- "StartsAt",
- "EndsAt",
- "PlanItems"
+ "Address",
+ "City"
],
"type": "string"
}
},
{
"in": "query",
- "name": "$orderby",
- "description": "Order items by property values",
+ "name": "$expand",
+ "description": "Expand related entities",
"type": "array",
"items": {
"enum": [
- "TripId",
- "TripId desc",
- "ShareId",
- "ShareId desc",
- "Name",
- "Name desc",
- "Budget",
- "Budget desc",
- "Description",
- "Description desc",
- "Tags",
- "Tags desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc"
+ "*"
],
"type": "string"
}
@@ -9316,7 +19458,7 @@
],
"responses": {
"200": {
- "$ref": "#/responses/GetFriendsTripsResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -9326,20 +19468,19 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/trips",
- "description": "The GetFriendsTrips API is deprecated and will stop returning data on March 2023. Please use the new trips API on friends."
- },
- "x-ms-docs-operation-type": "function"
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to call the GetFriendsTrips method."
- },
- "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": {
- "post": {
+ "patch": {
"tags": [
- "NewComePeople.Actions"
+ "People.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "People.Friends.UpdateAddressInfo",
+ "consumes": [
+ "application/json"
],
- "summary": "Invoke action GetPeersForTrip",
- "operationId": "NewComePeople.Person.GetPeersForTrip",
"parameters": [
{
"in": "path",
@@ -9350,29 +19491,48 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/GetPeersForTripRequestBody"
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
}
],
"responses": {
- "200": {
- "$ref": "#/responses/GetPeersForTripResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "action"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to call the GetPeersForTrip method."
- },
- "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": {
"post": {
"tags": [
- "NewComePeople.Actions"
+ "People.Person.Location"
],
- "summary": "Invoke action Hire",
- "description": "Hires someone for the company.",
- "operationId": "NewComePeople.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire",
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "People.Friends.SetAddressInfo",
"consumes": [
"application/json"
],
@@ -9385,41 +19545,106 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ },
{
"in": "body",
"name": "body",
- "description": "Action parameters",
+ "description": "New property values",
"required": true,
"schema": {
- "type": "object",
- "properties": {
- "hire": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- }
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
}
}
}
],
"responses": {
- "204": {
- "description": "Success"
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/$count": {
+ "get": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "People.Friends.AddressInfo.GetCount-1e8b",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "action"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to call the Hire method."
+ "x-description": "Provides operations to count the resources in the collection."
},
- "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip": {
- "post": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
"tags": [
- "NewComePeople.Actions"
+ "People.Person.Location"
],
- "summary": "Invoke action ShareTrip",
- "description": "Details of the shared trip.",
- "operationId": "NewComePeople.Person.ShareTrip",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.Friends.ListAddressInfo.AsEventLocation",
"parameters": [
{
"in": "path",
@@ -9430,28 +19655,36 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/ShareTripRequestBody"
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "action"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to call the ShareTrip method."
+ "x-description": "Casts the previous resource to EventLocation."
},
- "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName='{lastName}')": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
"get": {
- "tags": [
- "NewComePeople.Functions"
- ],
- "summary": "Invoke function UpdatePersonLastName",
- "operationId": "NewComePeople.Person.UpdatePersonLastName",
+ "summary": "Get the number of the resource",
+ "operationId": "People.Friends.ListAddressInfo.GetCount.AsEventLocation-1f2b",
"parameters": [
{
"in": "path",
@@ -9463,32 +19696,47 @@
},
{
"in": "path",
- "name": "lastName",
- "description": "Usage: lastName='{lastName}'",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "string"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
}
],
"responses": {
"200": {
- "$ref": "#/responses/UpdatePersonLastNameResponse"
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "function"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to call the UpdatePersonLastName method."
+ "x-description": "Provides operations to count the resources in the collection."
},
- "/NewComePeople/{UserName}/Trips": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/HomeAddress": {
"get": {
"tags": [
- "NewComePeople.Trip"
+ "People.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "People.Friends.GetHomeAddress",
+ "produces": [
+ "application/json"
],
- "summary": "List trips.",
- "description": "Retrieve a list of trips.",
- "operationId": "NewComePeople.ListTrips",
"parameters": [
{
"in": "path",
@@ -9499,52 +19747,12 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "header",
- "name": "ConsistencyLevel",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
- "type": "string"
- },
- {
- "$ref": "#/parameters/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": [
- "TripId",
- "TripId desc",
- "ShareId",
- "ShareId desc",
- "Name",
- "Name desc",
- "Budget",
- "Budget desc",
- "Description",
- "Description desc",
- "Tags",
- "Tags desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc"
- ],
- "type": "string"
- }
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"in": "query",
@@ -9553,15 +19761,8 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "ShareId",
- "Name",
- "Budget",
- "Description",
- "Tags",
- "StartsAt",
- "EndsAt",
- "PlanItems"
+ "Address",
+ "City"
],
"type": "string"
}
@@ -9573,8 +19774,7 @@
"type": "array",
"items": {
"enum": [
- "*",
- "PlanItems"
+ "*"
],
"type": "string"
}
@@ -9582,27 +19782,32 @@
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse"
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
},
"default": {
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "post": {
+ "patch": {
"tags": [
- "NewComePeople.Trip"
+ "People.Person.Location"
],
- "summary": "Create a trip.",
- "description": "Create a new trip.",
- "operationId": "NewComePeople.CreateTrips",
+ "summary": "Update property HomeAddress value.",
+ "operationId": "People.Friends.UpdateHomeAddress",
"consumes": [
"application/json"
],
- "produces": [
- "application/json"
- ],
"parameters": [
{
"in": "path",
@@ -9612,39 +19817,91 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
{
"in": "body",
"name": "body",
- "description": "New navigation property",
+ "description": "New property values",
"required": true,
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
}
}
],
"responses": {
- "201": {
- "description": "Created navigation property.",
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
- }
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
- },
- "x-description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity."
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
},
- "/NewComePeople/{UserName}/Trips/{TripId}": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"get": {
"tags": [
- "NewComePeople.Trip"
+ "People.Person.Location"
],
- "summary": "Get a trip.",
- "description": "Retrieve the properties of a trip.",
- "operationId": "NewComePeople.GetTrips",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.Friends.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "People.GetFriends.AsManager",
"produces": [
"application/json"
],
@@ -9659,14 +19916,11 @@
},
{
"in": "path",
- "name": "TripId",
- "description": "The unique identifier of Trip",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "integer",
- "format": "int32",
- "maximum": 2147483647,
- "minimum": -2147483648,
- "x-ms-docs-key-type": "Trip"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"in": "query",
@@ -9675,15 +19929,20 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "ShareId",
- "Name",
- "Budget",
- "Description",
- "Tags",
- "StartsAt",
- "EndsAt",
- "PlanItems"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -9696,7 +19955,9 @@
"items": {
"enum": [
"*",
- "PlanItems"
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -9704,27 +19965,32 @@
],
"responses": {
"200": {
- "description": "Retrieved navigation property",
+ "description": "Result entities",
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
}
},
"default": {
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "patch": {
+ "x-description": "Casts the previous resource to Manager."
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$count": {
+ "get": {
"tags": [
- "NewComePeople.Trip"
- ],
- "summary": "Update a trip.",
- "description": "Update an instance of a trip.",
- "operationId": "NewComePeople.UpdateTrips",
- "consumes": [
- "application/json"
+ "People.Person"
],
+ "summary": "Get the number of the resource",
+ "operationId": "People.Friends.GetCount-4db4",
"parameters": [
{
"in": "path",
@@ -9735,43 +20001,37 @@
"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"
+ "$ref": "#/parameters/search"
},
{
- "in": "body",
- "name": "body",
- "description": "New navigation property values",
- "required": true,
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
- }
+ "$ref": "#/parameters/filter"
}
],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "delete": {
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$ref": {
+ "get": {
"tags": [
- "NewComePeople.Trip"
+ "People.Person"
],
- "summary": "Delete a trip.",
- "description": "Delete an instance of a trip.",
- "operationId": "NewComePeople.DeleteTrips",
+ "summary": "Get ref of Friends from People",
+ "operationId": "People.ListRefFriends",
"parameters": [
{
"in": "path",
@@ -9781,22 +20041,89 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Create new navigation property ref to Friends for People",
+ "operationId": "People.CreateRefFriends",
+ "parameters": [
{
"in": "path",
- "name": "TripId",
- "description": "The unique identifier of Trip",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "integer",
- "format": "int32",
- "maximum": 2147483647,
- "minimum": -2147483648,
- "x-ms-docs-key-type": "Trip"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
- "in": "header",
- "name": "If-Match",
- "description": "ETag",
- "type": "string"
+ "$ref": "#/parameters/refPostBody"
}
],
"responses": {
@@ -9807,20 +20134,24 @@
"$ref": "#/responses/error"
}
},
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity."
+ "x-description": "Provides operations to manage the collection of Person entities."
},
- "/NewComePeople/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
"get": {
"tags": [
- "NewComePeople.Functions"
- ],
- "summary": "Invoke function GetInvolvedPeople",
- "operationId": "NewComePeople.Person.Trips.Trip.GetInvolvedPeople",
- "produces": [
- "application/json"
+ "People.Person"
],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
+ "operationId": "People.ListFriends.AsManager",
"parameters": [
{
"in": "path",
@@ -9830,17 +20161,6 @@
"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"
- },
{
"$ref": "#/parameters/top"
},
@@ -9856,6 +20176,39 @@
{
"$ref": "#/parameters/count"
},
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ },
{
"in": "query",
"name": "$select",
@@ -9883,33 +20236,15 @@
},
{
"in": "query",
- "name": "$orderby",
- "description": "Order items by property values",
+ "name": "$expand",
+ "description": "Expand related entities",
"type": "array",
"items": {
"enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -9917,35 +20252,29 @@
],
"responses": {
"200": {
- "description": "Success",
- "schema": {
- "title": "Collection of Person",
- "type": "object",
- "properties": {
- "value": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- }
- }
- }
- }
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "function"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to call the GetInvolvedPeople method."
+ "x-description": "Casts the previous resource to Manager."
},
- "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": {
"get": {
"tags": [
- "NewComePeople.Trips.PlanItem"
+ "People.Person"
],
- "summary": "Get PlanItems from NewComePeople",
- "operationId": "NewComePeople.Trips.ListPlanItems",
+ "summary": "Get the number of the resource",
+ "operationId": "People.ListFriends.GetCount.AsManager-b145",
"parameters": [
{
"in": "path",
@@ -9955,16 +20284,46 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers": {
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get Peers from People",
+ "operationId": "People.ListPeers",
+ "parameters": [
{
"in": "path",
- "name": "TripId",
- "description": "The unique identifier of Trip",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "integer",
- "format": "int32",
- "maximum": 2147483647,
- "minimum": -2147483648,
- "x-ms-docs-key-type": "Trip"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/parameters/top"
@@ -9988,16 +20347,28 @@
"type": "array",
"items": {
"enum": [
- "PlanItemId",
- "PlanItemId desc",
- "ConfirmationCode",
- "ConfirmationCode desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc",
- "Duration",
- "Duration desc"
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
],
"type": "string"
}
@@ -10009,11 +20380,20 @@
"type": "array",
"items": {
"enum": [
- "PlanItemId",
- "ConfirmationCode",
- "StartsAt",
- "EndsAt",
- "Duration"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -10025,7 +20405,10 @@
"type": "array",
"items": {
"enum": [
- "*"
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -10033,23 +20416,30 @@
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
}
},
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "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 PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity."
+ "x-description": "Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity."
},
- "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/$ref": {
"delete": {
"tags": [
- "NewComePeople.Trips.PlanItem"
+ "People.Person"
],
- "summary": "Delete ref of navigation property PlanItems for NewComePeople",
- "operationId": "NewComePeople.Trips.DeleteRefPlanItems",
+ "summary": "Delete ref of navigation property Peers for People",
+ "operationId": "People.DeleteRefPeers",
"parameters": [
{
"in": "path",
@@ -10061,25 +20451,11 @@
},
{
"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": "path",
- "name": "PlanItemId",
- "description": "The unique identifier of PlanItem",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "integer",
- "format": "int32",
- "maximum": 2147483647,
- "minimum": -2147483648,
- "x-ms-docs-key-type": "PlanItem"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"in": "header",
@@ -10102,62 +20478,24 @@
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
- },
- "x-description": "Provides operations to manage the collection of Person entities."
- },
- "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$count": {
- "get": {
- "tags": [
- "NewComePeople.Trips.PlanItem"
- ],
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.Trips.PlanItems.GetCount-841f",
- "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"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- }
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to count the resources in the collection."
+ "x-description": "Provides operations to manage the collection of Person entities."
},
- "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$ref": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo": {
"get": {
"tags": [
- "NewComePeople.Trips.PlanItem"
+ "People.Person.Location"
],
- "summary": "Get ref of PlanItems from NewComePeople",
- "operationId": "NewComePeople.Trips.ListRefPlanItems",
+ "summary": "Get AddressInfo property value",
+ "operationId": "People.Peers.ListAddressInfo",
"parameters": [
{
"in": "path",
@@ -10169,14 +20507,11 @@
},
{
"in": "path",
- "name": "TripId",
- "description": "The unique identifier of Trip",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "integer",
- "format": "int32",
- "maximum": 2147483647,
- "minimum": -2147483648,
- "x-ms-docs-key-type": "Trip"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/parameters/top"
@@ -10200,16 +20535,35 @@
"type": "array",
"items": {
"enum": [
- "PlanItemId",
- "PlanItemId desc",
- "ConfirmationCode",
- "ConfirmationCode desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc",
- "Duration",
- "Duration desc"
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
],
"type": "string"
}
@@ -10217,20 +20571,29 @@
],
"responses": {
"200": {
- "$ref": "#/responses/StringCollectionResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "post": {
+ "patch": {
"tags": [
- "NewComePeople.Trips.PlanItem"
+ "People.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "People.Peers.UpdateAddressInfo",
+ "consumes": [
+ "application/json"
],
- "summary": "Create new navigation property ref to PlanItems for NewComePeople",
- "operationId": "NewComePeople.Trips.CreateRefPlanItems",
"parameters": [
{
"in": "path",
@@ -10242,17 +20605,23 @@
},
{
"in": "path",
- "name": "TripId",
- "description": "The unique identifier of Trip",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "integer",
- "format": "int32",
- "maximum": 2147483647,
- "minimum": -2147483648,
- "x-ms-docs-key-type": "Trip"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/refPostBody"
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
}
],
"responses": {
@@ -10263,17 +20632,23 @@
"$ref": "#/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to manage the collection of Person entities."
- },
- "/NewComePeople/{UserName}/Trips/$count": {
- "get": {
+ "post": {
"tags": [
- "NewComePeople.Trip"
+ "People.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "People.Peers.SetAddressInfo",
+ "consumes": [
+ "application/json"
],
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.Trips.GetCount-d155",
"parameters": [
{
"in": "path",
@@ -10284,161 +20659,83 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "header",
- "name": "ConsistencyLevel",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
- "type": "string"
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/search"
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
},
{
- "$ref": "#/parameters/filter"
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
}
],
"responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
- },
- "x-description": "Provides operations to count the resources in the collection."
+ }
},
- "/NewComePeople/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/$count": {
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person.Location"
],
"summary": "Get the number of the resource",
- "operationId": "NewComePeople.GetCount-55d5",
- "parameters": [
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- }
- },
- "x-description": "Provides operations to count the resources in the collection."
- },
- "/People": {
- "get": {
- "tags": [
- "People.Person"
- ],
- "summary": "Get entities from People",
- "operationId": "People.Person.ListPerson",
+ "operationId": "People.Peers.AddressInfo.GetCount-755d",
"parameters": [
{
- "in": "header",
- "name": "ConsistencyLevel",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
- "type": "string"
- },
- {
- "$ref": "#/parameters/top"
- },
- {
- "$ref": "#/parameters/skip"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- },
- {
- "$ref": "#/parameters/count"
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
- "in": "query",
- "name": "$orderby",
- "description": "Order items by property values",
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
- ],
- "type": "string"
- }
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
- "in": "query",
- "name": "$select",
- "description": "Select properties to be returned",
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
+ "$ref": "#/parameters/search"
},
{
- "in": "query",
- "name": "$expand",
- "description": "Expand related entities",
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
+ "$ref": "#/parameters/filter"
}
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -10452,35 +20749,36 @@
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
- "post": {
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
"tags": [
- "People.Person"
- ],
- "summary": "Add new entity to People",
- "operationId": "People.Person.CreatePerson",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
+ "People.Person.Location"
],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.Peers.ListAddressInfo.AsEventLocation",
"parameters": [
{
- "in": "body",
- "name": "body",
- "description": "New entity",
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
"required": true,
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- }
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
- "201": {
- "description": "Created entity",
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- }
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -10492,18 +20790,63 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "People.Peers.ListAddressInfo.GetCount.AsEventLocation-ef5e",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "x-description": "Provides operations to manage the collection of Person entities."
+ "x-description": "Provides operations to count the resources in the collection."
},
- "/People/{UserName}": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress": {
"get": {
"tags": [
- "People.Person"
+ "People.Person.Location"
],
- "summary": "Get entity from People by key",
- "operationId": "People.Person.GetPerson",
+ "summary": "Get HomeAddress property value",
+ "operationId": "People.Peers.GetHomeAddress",
"produces": [
"application/json"
],
@@ -10517,10 +20860,12 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "header",
- "name": "ConsistencyLevel",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
- "type": "string"
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"in": "query",
@@ -10529,20 +20874,8 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "Address",
+ "City"
],
"type": "string"
}
@@ -10554,10 +20887,7 @@
"type": "array",
"items": {
"enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
+ "*"
],
"type": "string"
}
@@ -10565,9 +20895,9 @@
],
"responses": {
"200": {
- "description": "Retrieved entity",
+ "description": "Result entities",
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
}
},
"default": {
@@ -10580,15 +20910,14 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- },
- "x-ms-docs-operation-type": "operation"
+ }
},
"patch": {
"tags": [
- "People.Person"
+ "People.Person.Location"
],
- "summary": "Update entity in People",
- "operationId": "People.Person.UpdatePerson",
+ "summary": "Update property HomeAddress value.",
+ "operationId": "People.Peers.UpdateHomeAddress",
"consumes": [
"application/json"
],
@@ -10601,13 +20930,21 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
{
"in": "body",
"name": "body",
"description": "New property values",
"required": true,
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
}
}
],
@@ -10625,15 +20962,59 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "get": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.Peers.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "delete": {
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count": {
+ "get": {
"tags": [
"People.Person"
],
- "summary": "Delete entity from People",
- "operationId": "People.Person.DeletePerson",
+ "summary": "Get the number of the resource",
+ "operationId": "People.Peers.GetCount-44d2",
"parameters": [
{
"in": "path",
@@ -10644,15 +21025,15 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "header",
- "name": "If-Match",
- "description": "ETag",
- "type": "string"
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
}
],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -10664,18 +21045,17 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- },
- "x-ms-docs-operation-type": "operation"
+ }
},
- "x-description": "Provides operations to manage the collection of Person entities."
+ "x-description": "Provides operations to count the resources in the collection."
},
- "/People/{UserName}/AddressInfo": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref": {
"get": {
"tags": [
- "People.Location"
+ "People.Person"
],
- "summary": "Get AddressInfo property value",
- "operationId": "People.ListAddressInfo",
+ "summary": "Get ref of Peers from People",
+ "operationId": "People.ListRefPeers",
"parameters": [
{
"in": "path",
@@ -10707,35 +21087,28 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "Address desc",
- "City",
- "City desc"
- ],
- "type": "string"
- }
- },
- {
- "in": "query",
- "name": "$select",
- "description": "Select properties to be returned",
- "type": "array",
- "items": {
- "enum": [
- "Address",
- "City"
- ],
- "type": "string"
- }
- },
- {
- "in": "query",
- "name": "$expand",
- "description": "Expand related entities",
- "type": "array",
- "items": {
- "enum": [
- "*"
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
],
"type": "string"
}
@@ -10743,7 +21116,7 @@
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ "$ref": "#/responses/StringCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -10755,17 +21128,15 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "patch": {
+ "post": {
"tags": [
- "People.Location"
- ],
- "summary": "Update property AddressInfo value.",
- "operationId": "People.UpdateAddressInfo",
- "consumes": [
- "application/json"
+ "People.Person"
],
+ "summary": "Create new navigation property ref to Peers for People",
+ "operationId": "People.CreateRefPeers",
"parameters": [
{
"in": "path",
@@ -10776,16 +21147,7 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "body",
- "name": "body",
- "description": "New property values",
- "required": true,
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
+ "$ref": "#/parameters/refPostBody"
}
],
"responses": {
@@ -10802,17 +21164,19 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "post": {
+ "x-description": "Provides operations to manage the collection of Person entities."
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips": {
+ "get": {
"tags": [
- "People.Location"
- ],
- "summary": "Sets a new value for the collection of Location.",
- "operationId": "People.SetAddressInfo",
- "consumes": [
- "application/json"
+ "People.Trip"
],
+ "summary": "List trips.",
+ "description": "Retrieve a list of trips.",
+ "operationId": "People.ListTrips",
"parameters": [
{
"in": "path",
@@ -10824,101 +21188,89 @@
},
{
"in": "header",
- "name": "If-Match",
- "description": "ETag",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
"type": "string"
},
{
- "in": "body",
- "name": "body",
- "description": "New property values",
- "required": true,
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- }
- ],
- "responses": {
- "204": {
- "description": "Success"
+ "$ref": "#/parameters/top"
},
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
- },
- "/People/{UserName}/AddressInfo/$count": {
- "get": {
- "tags": [
- "People.Location"
- ],
- "summary": "Get the number of the resource",
- "operationId": "People.AddressInfo.GetCount-ed5a",
- "parameters": [
{
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "$ref": "#/parameters/skip"
},
{
"$ref": "#/parameters/search"
},
{
"$ref": "#/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
},
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- },
- "x-description": "Provides operations to count the resources in the collection."
- },
- "/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "get": {
- "tags": [
- "People.Location"
- ],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.ListAddressInfo.AsEventLocation",
- "parameters": [
{
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
}
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -10930,14 +21282,22 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Casts the previous resource to EventLocation."
- },
- "/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
- "get": {
- "summary": "Get the number of the resource",
- "operationId": "People.ListAddressInfo.GetCount.AsEventLocation-4abd",
+ "post": {
+ "tags": [
+ "People.Trip"
+ ],
+ "summary": "Create a trip.",
+ "description": "Create a new trip.",
+ "operationId": "People.CreateTrips",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
"parameters": [
{
"in": "path",
@@ -10948,15 +21308,21 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
+ "in": "body",
+ "name": "body",
+ "description": "New navigation property",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
}
],
"responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
+ "201": {
+ "description": "Created navigation property.",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
},
"default": {
"$ref": "#/responses/error"
@@ -10968,18 +21334,23 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to count the resources in the collection."
+ "x-description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips",
+ "/People/{UserName}/Trips"
+ ]
},
- "/People/{UserName}/BestFriend": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}": {
"get": {
"tags": [
- "People.Person"
+ "People.Trip"
],
- "summary": "Get BestFriend from People",
- "description": "The best friend.",
- "operationId": "People.GetBestFriend",
+ "summary": "Get a trip.",
+ "description": "Retrieve the properties of a trip.",
+ "operationId": "People.GetTrips",
"produces": [
"application/json"
],
@@ -10992,6 +21363,17 @@
"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": "query",
"name": "$select",
@@ -10999,20 +21381,15 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
],
"type": "string"
}
@@ -11025,9 +21402,7 @@
"items": {
"enum": [
"*",
- "Friends",
- "BestFriend",
- "Trips"
+ "PlanItems"
],
"type": "string"
}
@@ -11037,7 +21412,7 @@
"200": {
"description": "Retrieved navigation property",
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
},
"default": {
@@ -11055,11 +21430,11 @@
},
"patch": {
"tags": [
- "People.Person"
+ "People.Trip"
],
- "summary": "Update the best friend.",
- "description": "Update an instance of a best friend.",
- "operationId": "People.UpdateBestFriend",
+ "summary": "Update a trip.",
+ "description": "Update an instance of a trip.",
+ "operationId": "People.UpdateTrips",
"consumes": [
"application/json"
],
@@ -11072,13 +21447,24 @@
"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": "body",
"name": "body",
"description": "New navigation property values",
"required": true,
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
],
@@ -11099,16 +21485,70 @@
},
"x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity."
+ "delete": {
+ "tags": [
+ "People.Trip"
+ ],
+ "summary": "Delete a trip.",
+ "description": "Delete an instance of a trip.",
+ "operationId": "People.DeleteTrips",
+ "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"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}",
+ "/People/{UserName}/Trips/{TripId}"
+ ]
},
- "/People/{UserName}/BestFriend/$ref": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
"get": {
"tags": [
- "People.Person"
+ "People.Functions"
],
- "summary": "Get ref of BestFriend from People",
- "description": "The best friend.",
- "operationId": "People.GetRefBestFriend",
+ "summary": "Invoke function GetInvolvedPeople",
+ "operationId": "People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee.Trips.Trip.GetInvolvedPeople",
"produces": [
"application/json"
],
@@ -11120,13 +21560,106 @@
"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"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "Order items by property values",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
}
],
"responses": {
"200": {
- "description": "Retrieved navigation property link",
+ "description": "Success",
"schema": {
- "type": "string"
+ "title": "Collection of Person",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
}
},
"default": {
@@ -11140,15 +21673,21 @@
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
},
- "x-ms-docs-operation-type": "operation"
+ "x-ms-docs-operation-type": "function"
},
- "put": {
+ "x-description": "Provides operations to call the GetInvolvedPeople method.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()",
+ "/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()"
+ ]
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems": {
+ "get": {
"tags": [
- "People.Person"
+ "People.Trips.PlanItem"
],
- "summary": "Update the best friend.",
- "description": "Update an instance of a best friend.",
- "operationId": "People.UpdateRefBestFriend",
+ "summary": "Get PlanItems from People",
+ "operationId": "People.Trips.ListPlanItems",
"parameters": [
{
"in": "path",
@@ -11159,12 +21698,84 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/refPutBody"
+ "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"
+ },
+ {
+ "$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": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "ConfirmationCode",
+ "StartsAt",
+ "EndsAt",
+ "Duration"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
}
],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -11179,12 +21790,19 @@
},
"x-ms-docs-operation-type": "operation"
},
+ "x-description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems",
+ "/People/{UserName}/Trips/{TripId}/PlanItems"
+ ]
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
"delete": {
"tags": [
- "People.Person"
+ "People.Trips.PlanItem"
],
- "summary": "Delete ref of navigation property BestFriend for People",
- "operationId": "People.DeleteRefBestFriend",
+ "summary": "Delete ref of navigation property PlanItems for People",
+ "operationId": "People.Trips.DeleteRefPlanItems",
"parameters": [
{
"in": "path",
@@ -11194,11 +21812,39 @@
"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": "path",
+ "name": "PlanItemId",
+ "description": "The unique identifier of PlanItem",
+ "required": true,
+ "type": "integer",
+ "format": "int32",
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "x-ms-docs-key-type": "PlanItem"
+ },
{
"in": "header",
"name": "If-Match",
"description": "ETag",
"type": "string"
+ },
+ {
+ "in": "query",
+ "name": "@id",
+ "description": "Delete Uri",
+ "type": "string"
}
],
"responses": {
@@ -11220,13 +21866,13 @@
},
"x-description": "Provides operations to manage the collection of Person entities."
},
- "/People/{UserName}/BestFriend/AddressInfo": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$count": {
"get": {
"tags": [
- "People.Person.Location"
+ "People.Trips.PlanItem"
],
- "summary": "Get AddressInfo property value",
- "operationId": "People.BestFriend.ListAddressInfo",
+ "summary": "Get the number of the resource",
+ "operationId": "People.Trips.PlanItems.GetCount-7df9",
"parameters": [
{
"in": "path",
@@ -11237,64 +21883,26 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/top"
- },
- {
- "$ref": "#/parameters/skip"
+ "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"
},
{
"$ref": "#/parameters/search"
},
{
"$ref": "#/parameters/filter"
- },
- {
- "$ref": "#/parameters/count"
- },
- {
- "in": "query",
- "name": "$orderby",
- "description": "Order items by property values",
- "type": "array",
- "items": {
- "enum": [
- "Address",
- "Address desc",
- "City",
- "City desc"
- ],
- "type": "string"
- }
- },
- {
- "in": "query",
- "name": "$select",
- "description": "Select properties to be returned",
- "type": "array",
- "items": {
- "enum": [
- "Address",
- "City"
- ],
- "type": "string"
- }
- },
- {
- "in": "query",
- "name": "$expand",
- "description": "Expand related entities",
- "type": "array",
- "items": {
- "enum": [
- "*"
- ],
- "type": "string"
- }
}
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -11308,15 +21916,15 @@
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
- "patch": {
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$ref": {
+ "get": {
"tags": [
- "People.Person.Location"
- ],
- "summary": "Update property AddressInfo value.",
- "operationId": "People.BestFriend.UpdateAddressInfo",
- "consumes": [
- "application/json"
+ "People.Trips.PlanItem"
],
+ "summary": "Get ref of PlanItems from People",
+ "operationId": "People.Trips.ListRefPlanItems",
"parameters": [
{
"in": "path",
@@ -11327,21 +21935,56 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "body",
- "name": "body",
- "description": "New property values",
+ "in": "path",
+ "name": "TripId",
+ "description": "The unique identifier of Trip",
"required": true,
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
+ "type": "integer",
+ "format": "int32",
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$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": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
}
}
],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/responses/StringCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -11353,17 +21996,15 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
},
"post": {
"tags": [
- "People.Person.Location"
- ],
- "summary": "Sets a new value for the collection of Location.",
- "operationId": "People.BestFriend.SetAddressInfo",
- "consumes": [
- "application/json"
+ "People.Trips.PlanItem"
],
+ "summary": "Create new navigation property ref to PlanItems for People",
+ "operationId": "People.Trips.CreateRefPlanItems",
"parameters": [
{
"in": "path",
@@ -11374,22 +22015,18 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "header",
- "name": "If-Match",
- "description": "ETag",
- "type": "string"
+ "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": "body",
- "name": "body",
- "description": "New property values",
- "required": true,
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
+ "$ref": "#/parameters/refPostBody"
}
],
"responses": {
@@ -11406,16 +22043,18 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "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}/BestFriend/AddressInfo/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/$count": {
"get": {
"tags": [
- "People.Person.Location"
+ "People.Trip"
],
"summary": "Get the number of the resource",
- "operationId": "People.BestFriend.AddressInfo.GetCount-16df",
+ "operationId": "People.Trips.GetCount-c760",
"parameters": [
{
"in": "path",
@@ -11425,6 +22064,12 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
{
"$ref": "#/parameters/search"
},
@@ -11450,13 +22095,13 @@
},
"x-description": "Provides operations to count the resources in the collection."
},
- "/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()": {
"get": {
"tags": [
- "People.Person.Location"
+ "People.Functions"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation",
+ "summary": "Invoke function GetFavoriteAirline",
+ "operationId": "People.Person.GetFavoriteAirline",
"parameters": [
{
"in": "path",
@@ -11469,7 +22114,7 @@
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "$ref": "#/responses/GetFavoriteAirlineResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -11481,14 +22126,18 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "function"
},
- "x-description": "Casts the previous resource to EventLocation."
+ "x-description": "Provides operations to call the GetFavoriteAirline method."
},
- "/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName='{userName}')": {
"get": {
- "summary": "Get the number of the resource",
- "operationId": "People.BestFriend.ListAddressInfo.GetCount.AsEventLocation-fe88",
+ "tags": [
+ "People.Functions"
+ ],
+ "summary": "Invoke function GetFriendsTrips",
+ "operationId": "People.Person.GetFriendsTrips",
"parameters": [
{
"in": "path",
@@ -11498,49 +22147,27 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "in": "path",
+ "name": "userName",
+ "description": "Usage: userName='{userName}'",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
{
"$ref": "#/parameters/search"
},
{
"$ref": "#/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
},
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- },
- "x-description": "Provides operations to count the resources in the collection."
- },
- "/People/{UserName}/BestFriend/HomeAddress": {
- "get": {
- "tags": [
- "People.Person.Location"
- ],
- "summary": "Get HomeAddress property value",
- "operationId": "People.BestFriend.GetHomeAddress",
- "produces": [
- "application/json"
- ],
- "parameters": [
{
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "$ref": "#/parameters/count"
},
{
"in": "query",
@@ -11549,20 +22176,42 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "City"
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
],
"type": "string"
}
},
{
"in": "query",
- "name": "$expand",
- "description": "Expand related entities",
+ "name": "$orderby",
+ "description": "Order items by property values",
"type": "array",
"items": {
"enum": [
- "*"
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
],
"type": "string"
}
@@ -11570,10 +22219,7 @@
],
"responses": {
"200": {
- "description": "Result entities",
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
+ "$ref": "#/responses/GetFriendsTripsResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -11585,17 +22231,18 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "function"
},
- "patch": {
+ "x-description": "Provides operations to call the GetFriendsTrips method."
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": {
+ "post": {
"tags": [
- "People.Person.Location"
- ],
- "summary": "Update property HomeAddress value.",
- "operationId": "People.BestFriend.UpdateHomeAddress",
- "consumes": [
- "application/json"
+ "People.Actions"
],
+ "summary": "Invoke action GetPeersForTrip",
+ "operationId": "People.Person.GetPeersForTrip",
"parameters": [
{
"in": "path",
@@ -11606,52 +22253,12 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "body",
- "name": "body",
- "description": "New property values",
- "required": true,
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- ],
- "responses": {
- "204": {
- "description": "Success"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
- },
- "/People/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "get": {
- "tags": [
- "People.Person.Location"
- ],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation",
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "$ref": "#/parameters/GetPeersForTripRequestBody"
}
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "$ref": "#/responses/GetPeersForTripResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -11663,17 +22270,18 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "action"
},
- "x-description": "Casts the previous resource to EventLocation."
+ "x-description": "Provides operations to call the GetPeersForTrip method."
},
- "/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
"get": {
"tags": [
"People.Person"
],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
- "operationId": "People.GetBestFriend.AsEmployee",
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "People.Person.GetPerson.AsManager",
"produces": [
"application/json"
],
@@ -11686,6 +22294,12 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
{
"in": "query",
"name": "$select",
@@ -11731,7 +22345,7 @@
"200": {
"description": "Result entities",
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
}
},
"default": {
@@ -11746,15 +22360,16 @@
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
- "x-description": "Casts the previous resource to Employee."
+ "x-description": "Casts the previous resource to Manager."
},
- "/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend": {
"get": {
"tags": [
"People.Person"
],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
- "operationId": "People.GetBestFriend.AsManager",
+ "summary": "Get BestFriend from People",
+ "description": "The best friend.",
+ "operationId": "People.GetBestFriend",
"produces": [
"application/json"
],
@@ -11810,9 +22425,9 @@
],
"responses": {
"200": {
- "description": "Result entities",
+ "description": "Retrieved navigation property",
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
},
"default": {
@@ -11825,17 +22440,19 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Casts the previous resource to Manager."
- },
- "/People/{UserName}/Friends": {
- "get": {
+ "patch": {
"tags": [
"People.Person"
],
- "summary": "Get Friends from People",
- "operationId": "People.ListFriends",
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "People.UpdateBestFriend",
+ "consumes": [
+ "application/json"
+ ],
"parameters": [
{
"in": "path",
@@ -11846,97 +22463,65 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/top"
- },
- {
- "$ref": "#/parameters/skip"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- },
- {
- "$ref": "#/parameters/count"
- },
- {
- "in": "query",
- "name": "$orderby",
- "description": "Order items by property values",
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
- ],
- "type": "string"
- }
- },
- {
- "in": "query",
- "name": "$select",
- "description": "Select properties to be returned",
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
+ "in": "body",
+ "name": "body",
+ "description": "New navigation property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
},
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/BestFriend",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend"
+ ]
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/$ref": {
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get ref of BestFriend from People",
+ "description": "The best friend.",
+ "operationId": "People.GetRefBestFriend",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
{
- "in": "query",
- "name": "$expand",
- "description": "Expand related entities",
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ "description": "Retrieved navigation property link",
+ "schema": {
+ "type": "string"
+ }
},
"default": {
"$ref": "#/responses/error"
@@ -11951,15 +22536,13 @@
},
"x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity."
- },
- "/People/{UserName}/Friends/{UserName1}/$ref": {
- "delete": {
+ "put": {
"tags": [
"People.Person"
],
- "summary": "Delete ref of navigation property Friends for People",
- "operationId": "People.DeleteRefFriends",
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "People.UpdateRefBestFriend",
"parameters": [
{
"in": "path",
@@ -11969,9 +22552,37 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "$ref": "#/parameters/refPutBody"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Delete ref of navigation property BestFriend for People",
+ "operationId": "People.DeleteRefBestFriend",
+ "parameters": [
{
"in": "path",
- "name": "UserName1",
+ "name": "UserName",
"description": "The unique identifier of Person",
"required": true,
"type": "string",
@@ -11982,12 +22593,6 @@
"name": "If-Match",
"description": "ETag",
"type": "string"
- },
- {
- "in": "query",
- "name": "@id",
- "description": "Delete Uri",
- "type": "string"
}
],
"responses": {
@@ -12009,13 +22614,13 @@
},
"x-description": "Provides operations to manage the collection of Person entities."
},
- "/People/{UserName}/Friends/{UserName1}/AddressInfo": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo": {
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get AddressInfo property value",
- "operationId": "People.Friends.ListAddressInfo",
+ "operationId": "People.BestFriend.ListAddressInfo",
"parameters": [
{
"in": "path",
@@ -12025,14 +22630,6 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
{
"$ref": "#/parameters/top"
},
@@ -12110,7 +22707,7 @@
"People.Person.Location"
],
"summary": "Update property AddressInfo value.",
- "operationId": "People.Friends.UpdateAddressInfo",
+ "operationId": "People.BestFriend.UpdateAddressInfo",
"consumes": [
"application/json"
],
@@ -12123,14 +22720,6 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
{
"in": "body",
"name": "body",
@@ -12165,7 +22754,7 @@
"People.Person.Location"
],
"summary": "Sets a new value for the collection of Location.",
- "operationId": "People.Friends.SetAddressInfo",
+ "operationId": "People.BestFriend.SetAddressInfo",
"consumes": [
"application/json"
],
@@ -12178,14 +22767,6 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
{
"in": "header",
"name": "If-Match",
@@ -12222,30 +22803,28 @@
}
}
},
- "/People/{UserName}/Friends/{UserName1}/AddressInfo/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/$count": {
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get the number of the resource",
- "operationId": "People.Friends.AddressInfo.GetCount-bdaf",
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
+ "operationId": "People.BestFriend.AddressInfo.GetCount-5a39",
+ "parameters": [
{
"in": "path",
- "name": "UserName1",
+ "name": "UserName",
"description": "The unique identifier of Person",
"required": true,
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
{
"$ref": "#/parameters/search"
},
@@ -12271,13 +22850,13 @@
},
"x-description": "Provides operations to count the resources in the collection."
},
- "/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.Friends.ListAddressInfo.AsEventLocation",
+ "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation",
"parameters": [
{
"in": "path",
@@ -12286,14 +22865,6 @@
"required": true,
"type": "string",
"x-ms-docs-key-type": "Person"
- },
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
}
],
"responses": {
@@ -12314,10 +22885,10 @@
},
"x-description": "Casts the previous resource to EventLocation."
},
- "/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
"get": {
"summary": "Get the number of the resource",
- "operationId": "People.Friends.ListAddressInfo.GetCount.AsEventLocation-2795",
+ "operationId": "People.BestFriend.ListAddressInfo.GetCount.AsEventLocation-5af3",
"parameters": [
{
"in": "path",
@@ -12328,12 +22899,10 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
},
{
"$ref": "#/parameters/search"
@@ -12360,13 +22929,13 @@
},
"x-description": "Provides operations to count the resources in the collection."
},
- "/People/{UserName}/Friends/{UserName1}/HomeAddress": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress": {
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get HomeAddress property value",
- "operationId": "People.Friends.GetHomeAddress",
+ "operationId": "People.BestFriend.GetHomeAddress",
"produces": [
"application/json"
],
@@ -12379,14 +22948,6 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
{
"in": "query",
"name": "$select",
@@ -12437,7 +22998,7 @@
"People.Person.Location"
],
"summary": "Update property HomeAddress value.",
- "operationId": "People.Friends.UpdateHomeAddress",
+ "operationId": "People.BestFriend.UpdateHomeAddress",
"consumes": [
"application/json"
],
@@ -12450,14 +23011,6 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
{
"in": "body",
"name": "body",
@@ -12485,13 +23038,13 @@
}
}
},
- "/People/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.Friends.GetHomeAddress.AsEventLocation",
+ "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation",
"parameters": [
{
"in": "path",
@@ -12500,14 +23053,6 @@
"required": true,
"type": "string",
"x-ms-docs-key-type": "Person"
- },
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
}
],
"responses": {
@@ -12528,13 +23073,13 @@
},
"x-description": "Casts the previous resource to EventLocation."
},
- "/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
"get": {
"tags": [
"People.Person"
],
"summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
- "operationId": "People.GetFriends.AsEmployee",
+ "operationId": "People.GetBestFriend.AsEmployee",
"produces": [
"application/json"
],
@@ -12547,14 +23092,6 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
{
"in": "query",
"name": "$select",
@@ -12617,143 +23154,13 @@
},
"x-description": "Casts the previous resource to Employee."
},
- "/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
- "get": {
- "tags": [
- "People.Person"
- ],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
- "operationId": "People.GetFriends.AsManager",
- "produces": [
- "application/json"
- ],
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "in": "query",
- "name": "$select",
- "description": "Select properties to be returned",
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- },
- {
- "in": "query",
- "name": "$expand",
- "description": "Expand related entities",
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Result entities",
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
- }
- },
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- },
- "x-description": "Casts the previous resource to Manager."
- },
- "/People/{UserName}/Friends/$count": {
- "get": {
- "tags": [
- "People.Person"
- ],
- "summary": "Get the number of the resource",
- "operationId": "People.Friends.GetCount-92b9",
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- },
- "x-description": "Provides operations to count the resources in the collection."
- },
- "/People/{UserName}/Friends/$ref": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports": {
"get": {
"tags": [
"People.Person"
],
- "summary": "Get ref of Friends from People",
- "operationId": "People.ListRefFriends",
+ "summary": "Get DirectReports from People",
+ "operationId": "People.ListDirectReports",
"parameters": [
{
"in": "path",
@@ -12810,11 +23217,51 @@
],
"type": "string"
}
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
}
],
"responses": {
"200": {
- "$ref": "#/responses/StringCollectionResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -12829,12 +23276,15 @@
},
"x-ms-docs-operation-type": "operation"
},
- "post": {
+ "x-description": "Provides operations to manage the DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity."
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/$ref": {
+ "delete": {
"tags": [
"People.Person"
],
- "summary": "Create new navigation property ref to Friends for People",
- "operationId": "People.CreateRefFriends",
+ "summary": "Delete ref of navigation property DirectReports for People",
+ "operationId": "People.DeleteRefDirectReports",
"parameters": [
{
"in": "path",
@@ -12845,7 +23295,24 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/refPostBody"
+ "in": "path",
+ "name": "UserName1",
+ "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": "Delete Uri",
+ "type": "string"
}
],
"responses": {
@@ -12867,13 +23334,13 @@
},
"x-description": "Provides operations to manage the collection of Person entities."
},
- "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo": {
"get": {
"tags": [
- "People.Person"
+ "People.Person.Location"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
- "operationId": "People.ListFriends.AsEmployee",
+ "summary": "Get AddressInfo property value",
+ "operationId": "People.DirectReports.ListAddressInfo",
"parameters": [
{
"in": "path",
@@ -12883,6 +23350,14 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
{
"$ref": "#/parameters/top"
},
@@ -12905,28 +23380,10 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
],
"type": "string"
}
@@ -12938,20 +23395,8 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "Address",
+ "City"
],
"type": "string"
}
@@ -12963,10 +23408,7 @@
"type": "array",
"items": {
"enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
+ "*"
],
"type": "string"
}
@@ -12974,7 +23416,7 @@
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -12988,15 +23430,15 @@
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
- "x-description": "Casts the previous resource to Employee."
- },
- "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": {
- "get": {
+ "patch": {
"tags": [
- "People.Person"
+ "People.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "People.DirectReports.UpdateAddressInfo",
+ "consumes": [
+ "application/json"
],
- "summary": "Get the number of the resource",
- "operationId": "People.ListFriends.GetCount.AsEmployee-a96c",
"parameters": [
{
"in": "path",
@@ -13007,15 +23449,29 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/search"
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/filter"
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
}
],
"responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
@@ -13029,15 +23485,15 @@
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
- "x-description": "Provides operations to count the resources in the collection."
- },
- "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
- "get": {
+ "post": {
"tags": [
- "People.Person"
+ "People.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "People.DirectReports.SetAddressInfo",
+ "consumes": [
+ "application/json"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
- "operationId": "People.ListFriends.AsManager",
"parameters": [
{
"in": "path",
@@ -13048,97 +23504,89 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/top"
- },
- {
- "$ref": "#/parameters/skip"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
- "$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": {
- "enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
- ],
- "type": "string"
+ "in": "body",
+ "name": "body",
+ "description": "New property values",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
}
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
},
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/$count": {
+ "get": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "People.DirectReports.AddressInfo.GetCount-f46e",
+ "parameters": [
{
- "in": "query",
- "name": "$select",
- "description": "Select properties to be returned",
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
- "in": "query",
- "name": "$expand",
- "description": "Expand related entities",
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
+ "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/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse"
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -13152,15 +23600,55 @@
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
- "x-description": "Casts the previous resource to Manager."
+ "x-description": "Provides operations to count the resources in the collection."
},
- "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"get": {
"tags": [
- "People.Person"
+ "People.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.DirectReports.ListAddressInfo.AsEventLocation",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ }
],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "x-description": "Casts the previous resource to EventLocation."
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "get": {
"summary": "Get the number of the resource",
- "operationId": "People.ListFriends.GetCount.AsManager-26b3",
+ "operationId": "People.DirectReports.ListAddressInfo.GetCount.AsEventLocation-5d49",
"parameters": [
{
"in": "path",
@@ -13170,6 +23658,20 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
{
"$ref": "#/parameters/search"
},
@@ -13195,13 +23697,13 @@
},
"x-description": "Provides operations to count the resources in the collection."
},
- "/People/{UserName}/HomeAddress": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress": {
"get": {
"tags": [
- "People.Location"
+ "People.Person.Location"
],
"summary": "Get HomeAddress property value",
- "operationId": "People.GetHomeAddress",
+ "operationId": "People.DirectReports.GetHomeAddress",
"produces": [
"application/json"
],
@@ -13214,6 +23716,14 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
{
"in": "query",
"name": "$select",
@@ -13261,10 +23771,10 @@
},
"patch": {
"tags": [
- "People.Location"
+ "People.Person.Location"
],
"summary": "Update property HomeAddress value.",
- "operationId": "People.UpdateHomeAddress",
+ "operationId": "People.DirectReports.UpdateHomeAddress",
"consumes": [
"application/json"
],
@@ -13277,6 +23787,14 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
{
"in": "body",
"name": "body",
@@ -13304,13 +23822,13 @@
}
}
},
- "/People/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"get": {
"tags": [
- "People.Location"
+ "People.Person.Location"
],
"summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.GetHomeAddress.AsEventLocation",
+ "operationId": "People.DirectReports.GetHomeAddress.AsEventLocation",
"parameters": [
{
"in": "path",
@@ -13319,6 +23837,14 @@
"required": true,
"type": "string",
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "in": "path",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
@@ -13339,16 +23865,54 @@
},
"x-description": "Casts the previous resource to EventLocation."
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count": {
"get": {
"tags": [
"People.Person"
],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
- "operationId": "People.Person.GetPerson.AsEmployee",
- "produces": [
- "application/json"
+ "summary": "Get the number of the resource",
+ "operationId": "People.DirectReports.GetCount-0ec4",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "x-description": "Provides operations to count the resources in the collection."
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref": {
+ "get": {
+ "tags": [
+ "People.Person"
],
+ "summary": "Get ref of DirectReports from People",
+ "operationId": "People.ListRefDirectReports",
"parameters": [
{
"in": "path",
@@ -13359,58 +23923,93 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "header",
- "name": "ConsistencyLevel",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
- "type": "string"
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
},
{
"in": "query",
- "name": "$select",
- "description": "Select properties to be returned",
+ "name": "$orderby",
+ "description": "Order items by property values",
"type": "array",
"items": {
"enum": [
"UserName",
+ "UserName desc",
"FirstName",
+ "FirstName desc",
"LastName",
+ "LastName desc",
"MiddleName",
+ "MiddleName desc",
"Gender",
+ "Gender desc",
"Age",
+ "Age desc",
"Emails",
+ "Emails desc",
"AddressInfo",
+ "AddressInfo desc",
"HomeAddress",
+ "HomeAddress desc",
"FavoriteFeature",
+ "FavoriteFeature desc",
"Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "Features desc"
],
"type": "string"
}
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/StringCollectionResponse"
},
- {
- "in": "query",
- "name": "$expand",
- "description": "Expand related entities",
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Create new navigation property ref to DirectReports for People",
+ "operationId": "People.CreateRefDirectReports",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/refPostBody"
}
],
"responses": {
- "200": {
- "description": "Result entities",
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
- }
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
@@ -13422,17 +24021,18 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Casts the previous resource to Employee."
+ "x-description": "Provides operations to manage the collection of Person entities."
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends": {
"get": {
"tags": [
"People.Person"
],
- "summary": "Get Peers from People",
- "operationId": "People.ListPeers",
+ "summary": "Get Friends from People",
+ "operationId": "People.ListFriends",
"parameters": [
{
"in": "path",
@@ -13548,15 +24148,19 @@
},
"x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity."
+ "x-description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Friends",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends"
+ ]
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/$ref": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/$ref": {
"delete": {
"tags": [
"People.Person"
],
- "summary": "Delete ref of navigation property Peers for People",
- "operationId": "People.DeleteRefPeers",
+ "summary": "Delete ref of navigation property Friends for People",
+ "operationId": "People.DeleteRefFriends",
"parameters": [
{
"in": "path",
@@ -13606,13 +24210,13 @@
},
"x-description": "Provides operations to manage the collection of Person entities."
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo": {
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get AddressInfo property value",
- "operationId": "People.Peers.ListAddressInfo",
+ "operationId": "People.Friends.ListAddressInfo",
"parameters": [
{
"in": "path",
@@ -13707,7 +24311,7 @@
"People.Person.Location"
],
"summary": "Update property AddressInfo value.",
- "operationId": "People.Peers.UpdateAddressInfo",
+ "operationId": "People.Friends.UpdateAddressInfo",
"consumes": [
"application/json"
],
@@ -13762,7 +24366,7 @@
"People.Person.Location"
],
"summary": "Sets a new value for the collection of Location.",
- "operationId": "People.Peers.SetAddressInfo",
+ "operationId": "People.Friends.SetAddressInfo",
"consumes": [
"application/json"
],
@@ -13819,13 +24423,13 @@
}
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/$count": {
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get the number of the resource",
- "operationId": "People.Peers.AddressInfo.GetCount-755d",
+ "operationId": "People.Friends.AddressInfo.GetCount-f486",
"parameters": [
{
"in": "path",
@@ -13868,13 +24472,13 @@
},
"x-description": "Provides operations to count the resources in the collection."
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.Peers.ListAddressInfo.AsEventLocation",
+ "operationId": "People.Friends.ListAddressInfo.AsEventLocation",
"parameters": [
{
"in": "path",
@@ -13911,10 +24515,10 @@
},
"x-description": "Casts the previous resource to EventLocation."
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
"get": {
"summary": "Get the number of the resource",
- "operationId": "People.Peers.ListAddressInfo.GetCount.AsEventLocation-ef5e",
+ "operationId": "People.Friends.ListAddressInfo.GetCount.AsEventLocation-4480",
"parameters": [
{
"in": "path",
@@ -13957,13 +24561,13 @@
},
"x-description": "Provides operations to count the resources in the collection."
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/HomeAddress": {
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get HomeAddress property value",
- "operationId": "People.Peers.GetHomeAddress",
+ "operationId": "People.Friends.GetHomeAddress",
"produces": [
"application/json"
],
@@ -14034,7 +24638,7 @@
"People.Person.Location"
],
"summary": "Update property HomeAddress value.",
- "operationId": "People.Peers.UpdateHomeAddress",
+ "operationId": "People.Friends.UpdateHomeAddress",
"consumes": [
"application/json"
],
@@ -14082,221 +24686,25 @@
}
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.Peers.GetHomeAddress.AsEventLocation",
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- },
- "x-description": "Casts the previous resource to EventLocation."
- },
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count": {
- "get": {
- "tags": [
- "People.Person"
- ],
- "summary": "Get the number of the resource",
- "operationId": "People.Peers.GetCount-44d2",
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- },
- "x-description": "Provides operations to count the resources in the collection."
- },
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref": {
- "get": {
- "tags": [
- "People.Person"
- ],
- "summary": "Get ref of Peers from People",
- "operationId": "People.ListRefPeers",
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/parameters/top"
- },
- {
- "$ref": "#/parameters/skip"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- },
- {
- "$ref": "#/parameters/count"
- },
- {
- "in": "query",
- "name": "$orderby",
- "description": "Order items by property values",
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
- ],
- "type": "string"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/StringCollectionResponse"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- },
- "x-ms-docs-operation-type": "operation"
- },
- "post": {
- "tags": [
- "People.Person"
- ],
- "summary": "Create new navigation property ref to Peers for People",
- "operationId": "People.CreateRefPeers",
+ "operationId": "People.Friends.GetHomeAddress.AsEventLocation",
"parameters": [
{
"in": "path",
"name": "UserName",
"description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/parameters/refPostBody"
- }
- ],
- "responses": {
- "204": {
- "description": "Success"
- },
- "default": {
- "$ref": "#/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "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.GetFavoriteAirline()": {
- "get": {
- "tags": [
- "People.Functions"
- ],
- "summary": "Invoke function GetFavoriteAirline",
- "operationId": "People.Person.GetFavoriteAirline",
- "parameters": [
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
{
"in": "path",
- "name": "UserName",
+ "name": "UserName1",
"description": "The unique identifier of Person",
"required": true,
"type": "string",
@@ -14305,7 +24713,7 @@
],
"responses": {
"200": {
- "$ref": "#/responses/GetFavoriteAirlineResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -14317,18 +24725,20 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- },
- "x-ms-docs-operation-type": "function"
+ }
},
- "x-description": "Provides operations to call the GetFavoriteAirline method."
+ "x-description": "Casts the previous resource to EventLocation."
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName='{userName}')": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
"get": {
"tags": [
- "People.Functions"
+ "People.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "People.GetFriends.AsEmployee",
+ "produces": [
+ "application/json"
],
- "summary": "Invoke function GetFriendsTrips",
- "operationId": "People.Person.GetFriendsTrips",
"parameters": [
{
"in": "path",
@@ -14340,25 +24750,11 @@
},
{
"in": "path",
- "name": "userName",
- "description": "Usage: userName='{userName}'",
+ "name": "UserName1",
+ "description": "The unique identifier of Person",
"required": true,
- "type": "string"
- },
- {
- "$ref": "#/parameters/top"
- },
- {
- "$ref": "#/parameters/skip"
- },
- {
- "$ref": "#/parameters/search"
- },
- {
- "$ref": "#/parameters/filter"
- },
- {
- "$ref": "#/parameters/count"
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
},
{
"in": "query",
@@ -14367,42 +24763,35 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "ShareId",
- "Name",
- "Budget",
- "Description",
- "Tags",
- "StartsAt",
- "EndsAt",
- "PlanItems"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
},
{
"in": "query",
- "name": "$orderby",
- "description": "Order items by property values",
+ "name": "$expand",
+ "description": "Expand related entities",
"type": "array",
"items": {
"enum": [
- "TripId",
- "TripId desc",
- "ShareId",
- "ShareId desc",
- "Name",
- "Name desc",
- "Budget",
- "Budget desc",
- "Description",
- "Description desc",
- "Tags",
- "Tags desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc"
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -14410,7 +24799,10 @@
],
"responses": {
"200": {
- "$ref": "#/responses/GetFriendsTripsResponse"
+ "description": "Result entities",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ }
},
"default": {
"$ref": "#/responses/error"
@@ -14422,18 +24814,17 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- },
- "x-ms-docs-operation-type": "function"
+ }
},
- "x-description": "Provides operations to call the GetFriendsTrips method."
+ "x-description": "Casts the previous resource to Employee."
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": {
- "post": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$count": {
+ "get": {
"tags": [
- "People.Actions"
+ "People.Person"
],
- "summary": "Invoke action GetPeersForTrip",
- "operationId": "People.Person.GetPeersForTrip",
+ "summary": "Get the number of the resource",
+ "operationId": "People.Friends.GetCount-1c0c",
"parameters": [
{
"in": "path",
@@ -14444,12 +24835,15 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/parameters/GetPeersForTripRequestBody"
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
}
],
"responses": {
"200": {
- "$ref": "#/responses/GetPeersForTripResponse"
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -14461,21 +24855,17 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- },
- "x-ms-docs-operation-type": "action"
+ }
},
- "x-description": "Provides operations to call the GetPeersForTrip method."
+ "x-description": "Provides operations to count the resources in the collection."
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$ref": {
"get": {
"tags": [
"People.Person"
],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
- "operationId": "People.Person.GetPerson.AsManager",
- "produces": [
- "application/json"
- ],
+ "summary": "Get ref of Friends from People",
+ "operationId": "People.ListRefFriends",
"parameters": [
{
"in": "path",
@@ -14486,58 +24876,93 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "header",
- "name": "ConsistencyLevel",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
- "type": "string"
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
},
{
"in": "query",
- "name": "$select",
- "description": "Select properties to be returned",
+ "name": "$orderby",
+ "description": "Order items by property values",
"type": "array",
"items": {
"enum": [
"UserName",
+ "UserName desc",
"FirstName",
+ "FirstName desc",
"LastName",
+ "LastName desc",
"MiddleName",
+ "MiddleName desc",
"Gender",
+ "Gender desc",
"Age",
+ "Age desc",
"Emails",
+ "Emails desc",
"AddressInfo",
+ "AddressInfo desc",
"HomeAddress",
+ "HomeAddress desc",
"FavoriteFeature",
+ "FavoriteFeature desc",
"Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "Features desc"
],
"type": "string"
}
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/StringCollectionResponse"
},
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Create new navigation property ref to Friends for People",
+ "operationId": "People.CreateRefFriends",
+ "parameters": [
{
- "in": "query",
- "name": "$expand",
- "description": "Expand related entities",
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/refPostBody"
}
],
"responses": {
- "200": {
- "description": "Result entities",
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
- }
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
@@ -14549,17 +24974,18 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Casts the previous resource to Manager."
+ "x-description": "Provides operations to manage the collection of Person entities."
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
"get": {
"tags": [
"People.Person"
],
- "summary": "Get DirectReports from People",
- "operationId": "People.ListDirectReports",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
+ "operationId": "People.ListFriends.AsEmployee",
"parameters": [
{
"in": "path",
@@ -14660,7 +25086,48 @@
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "x-description": "Casts the previous resource to Employee."
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": {
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "People.ListFriends.GetCount.AsEmployee-f325",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "UserName",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "type": "string",
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -14672,18 +25139,21 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "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 DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity."
+ "x-description": "Provides operations to count the resources in the collection."
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/$ref": {
- "delete": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": {
+ "post": {
"tags": [
- "People.Person"
+ "People.Actions"
+ ],
+ "summary": "Invoke action Hire",
+ "description": "Hires someone for the company.",
+ "operationId": "People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire",
+ "consumes": [
+ "application/json"
],
- "summary": "Delete ref of navigation property DirectReports for People",
- "operationId": "People.DeleteRefDirectReports",
"parameters": [
{
"in": "path",
@@ -14694,24 +25164,18 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
+ "in": "body",
+ "name": "body",
+ "description": "Action parameters",
"required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "in": "header",
- "name": "If-Match",
- "description": "ETag",
- "type": "string"
- },
- {
- "in": "query",
- "name": "@id",
- "description": "Delete Uri",
- "type": "string"
+ "schema": {
+ "type": "object",
+ "properties": {
+ "hire": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
}
],
"responses": {
@@ -14729,17 +25193,18 @@
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
},
- "x-ms-docs-operation-type": "operation"
+ "x-ms-docs-operation-type": "action"
},
- "x-description": "Provides operations to manage the collection of Person entities."
+ "x-description": "Provides operations to call the Hire method."
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips": {
"get": {
"tags": [
- "People.Person.Location"
+ "People.Trip"
],
- "summary": "Get AddressInfo property value",
- "operationId": "People.DirectReports.ListAddressInfo",
+ "summary": "List trips.",
+ "description": "Retrieve a list of trips.",
+ "operationId": "People.ListTrips",
"parameters": [
{
"in": "path",
@@ -14750,12 +25215,10 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
},
{
"$ref": "#/parameters/top"
@@ -14779,10 +25242,22 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "Address desc",
- "City",
- "City desc"
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
],
"type": "string"
}
@@ -14794,8 +25269,15 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "City"
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
],
"type": "string"
}
@@ -14807,7 +25289,8 @@
"type": "array",
"items": {
"enum": [
- "*"
+ "*",
+ "PlanItems"
],
"type": "string"
}
@@ -14815,7 +25298,7 @@
],
"responses": {
"200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -14827,72 +25310,22 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- },
- "patch": {
- "tags": [
- "People.Person.Location"
- ],
- "summary": "Update property AddressInfo value.",
- "operationId": "People.DirectReports.UpdateAddressInfo",
- "consumes": [
- "application/json"
- ],
- "parameters": [
- {
- "in": "path",
- "name": "UserName",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "in": "body",
- "name": "body",
- "description": "New property values",
- "required": true,
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- }
- ],
- "responses": {
- "204": {
- "description": "Success"
- },
- "default": {
- "$ref": "#/responses/error"
- }
},
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ "x-ms-docs-operation-type": "operation"
},
"post": {
"tags": [
- "People.Person.Location"
+ "People.Trip"
],
- "summary": "Sets a new value for the collection of Location.",
- "operationId": "People.DirectReports.SetAddressInfo",
+ "summary": "Create a trip.",
+ "description": "Create a new trip.",
+ "operationId": "People.CreateTrips",
"consumes": [
"application/json"
],
+ "produces": [
+ "application/json"
+ ],
"parameters": [
{
"in": "path",
@@ -14902,36 +25335,22 @@
"type": "string",
"x-ms-docs-key-type": "Person"
},
- {
- "in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
- "required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "in": "header",
- "name": "If-Match",
- "description": "ETag",
- "type": "string"
- },
{
"in": "body",
"name": "body",
- "description": "New property values",
+ "description": "New navigation property",
"required": true,
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
],
"responses": {
- "204": {
- "description": "Success"
+ "201": {
+ "description": "Created navigation property.",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
},
"default": {
"$ref": "#/responses/error"
@@ -14943,16 +25362,26 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips",
+ "/People/{UserName}/Trips"
+ ]
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}": {
"get": {
"tags": [
- "People.Person.Location"
+ "People.Trip"
+ ],
+ "summary": "Get a trip.",
+ "description": "Retrieve the properties of a trip.",
+ "operationId": "People.GetTrips",
+ "produces": [
+ "application/json"
],
- "summary": "Get the number of the resource",
- "operationId": "People.DirectReports.AddressInfo.GetCount-f46e",
"parameters": [
{
"in": "path",
@@ -14964,22 +25393,55 @@
},
{
"in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
+ "name": "TripId",
+ "description": "The unique identifier of Trip",
"required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "type": "integer",
+ "format": "int32",
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "x-ms-docs-key-type": "Trip"
},
{
- "$ref": "#/parameters/search"
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
},
{
- "$ref": "#/parameters/filter"
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
}
],
"responses": {
"200": {
- "$ref": "#/responses/ODataCountResponse"
+ "description": "Retrieved navigation property",
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
},
"default": {
"$ref": "#/responses/error"
@@ -14991,17 +25453,19 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to count the resources in the collection."
- },
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "get": {
+ "patch": {
"tags": [
- "People.Person.Location"
+ "People.Trip"
+ ],
+ "summary": "Update a trip.",
+ "description": "Update an instance of a trip.",
+ "operationId": "People.UpdateTrips",
+ "consumes": [
+ "application/json"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.DirectReports.ListAddressInfo.AsEventLocation",
"parameters": [
{
"in": "path",
@@ -15013,16 +25477,28 @@
},
{
"in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
+ "name": "TripId",
+ "description": "The unique identifier of Trip",
"required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "type": "integer",
+ "format": "int32",
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "New navigation property values",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
}
],
"responses": {
- "200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
@@ -15034,14 +25510,16 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Casts the previous resource to EventLocation."
- },
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
- "get": {
- "summary": "Get the number of the resource",
- "operationId": "People.DirectReports.ListAddressInfo.GetCount.AsEventLocation-5d49",
+ "delete": {
+ "tags": [
+ "People.Trip"
+ ],
+ "summary": "Delete a trip.",
+ "description": "Delete an instance of a trip.",
+ "operationId": "People.DeleteTrips",
"parameters": [
{
"in": "path",
@@ -15053,22 +25531,25 @@
},
{
"in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
+ "name": "TripId",
+ "description": "The unique identifier of Trip",
"required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/parameters/search"
+ "type": "integer",
+ "format": "int32",
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "x-ms-docs-key-type": "Trip"
},
{
- "$ref": "#/parameters/filter"
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
}
],
"responses": {
- "200": {
- "$ref": "#/responses/ODataCountResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
@@ -15080,17 +25561,22 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to count the resources in the collection."
+ "x-description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}",
+ "/People/{UserName}/Trips/{TripId}"
+ ]
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
"get": {
"tags": [
- "People.Person.Location"
+ "People.Functions"
],
- "summary": "Get HomeAddress property value",
- "operationId": "People.DirectReports.GetHomeAddress",
+ "summary": "Invoke function GetInvolvedPeople",
+ "operationId": "People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Trips.Trip.GetInvolvedPeople",
"produces": [
"application/json"
],
@@ -15105,11 +25591,29 @@
},
{
"in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
+ "name": "TripId",
+ "description": "The unique identifier of Trip",
"required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "type": "integer",
+ "format": "int32",
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/parameters/top"
+ },
+ {
+ "$ref": "#/parameters/skip"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
+ },
+ {
+ "$ref": "#/parameters/count"
},
{
"in": "query",
@@ -15118,20 +25622,53 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "City"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
},
{
"in": "query",
- "name": "$expand",
- "description": "Expand related entities",
+ "name": "$orderby",
+ "description": "Order items by property values",
"type": "array",
"items": {
"enum": [
- "*"
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
],
"type": "string"
}
@@ -15139,9 +25676,18 @@
],
"responses": {
"200": {
- "description": "Result entities",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ "title": "Collection of Person",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
}
},
"default": {
@@ -15154,17 +25700,22 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "function"
},
- "patch": {
+ "x-description": "Provides operations to call the GetInvolvedPeople method.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()",
+ "/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()"
+ ]
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems": {
+ "get": {
"tags": [
- "People.Person.Location"
- ],
- "summary": "Update property HomeAddress value.",
- "operationId": "People.DirectReports.UpdateHomeAddress",
- "consumes": [
- "application/json"
+ "People.Trips.PlanItem"
],
+ "summary": "Get PlanItems from People",
+ "operationId": "People.Trips.ListPlanItems",
"parameters": [
{
"in": "path",
@@ -15175,26 +25726,84 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "path",
- "name": "UserName1",
- "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"
+ },
+ {
+ "$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": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "Select properties to be returned",
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "ConfirmationCode",
+ "StartsAt",
+ "EndsAt",
+ "Duration"
+ ],
+ "type": "string"
+ }
},
{
- "in": "body",
- "name": "body",
- "description": "New property values",
- "required": true,
- "schema": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ "in": "query",
+ "name": "$expand",
+ "description": "Expand related entities",
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
}
}
],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -15206,16 +25815,22 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "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 PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems",
+ "/People/{UserName}/Trips/{TripId}/PlanItems"
+ ]
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "get": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
+ "delete": {
"tags": [
- "People.Person.Location"
+ "People.Trips.PlanItem"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.DirectReports.GetHomeAddress.AsEventLocation",
+ "summary": "Delete ref of navigation property PlanItems for People",
+ "operationId": "People.Trips.DeleteRefPlanItems",
"parameters": [
{
"in": "path",
@@ -15227,16 +25842,42 @@
},
{
"in": "path",
- "name": "UserName1",
- "description": "The unique identifier of Person",
+ "name": "TripId",
+ "description": "The unique identifier of Trip",
"required": true,
- "type": "string",
- "x-ms-docs-key-type": "Person"
+ "type": "integer",
+ "format": "int32",
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "in": "path",
+ "name": "PlanItemId",
+ "description": "The unique identifier of PlanItem",
+ "required": true,
+ "type": "integer",
+ "format": "int32",
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "x-ms-docs-key-type": "PlanItem"
+ },
+ {
+ "in": "header",
+ "name": "If-Match",
+ "description": "ETag",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "@id",
+ "description": "Delete Uri",
+ "type": "string"
}
],
"responses": {
- "200": {
- "$ref": "#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/responses/error"
@@ -15248,17 +25889,18 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "x-description": "Casts the previous resource to EventLocation."
+ "x-description": "Provides operations to manage the collection of Person entities."
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$count": {
"get": {
"tags": [
- "People.Person"
+ "People.Trips.PlanItem"
],
"summary": "Get the number of the resource",
- "operationId": "People.DirectReports.GetCount-0ec4",
+ "operationId": "People.Trips.PlanItems.GetCount-fa08",
"parameters": [
{
"in": "path",
@@ -15268,6 +25910,17 @@
"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"
+ },
{
"$ref": "#/parameters/search"
},
@@ -15293,13 +25946,13 @@
},
"x-description": "Provides operations to count the resources in the collection."
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$ref": {
"get": {
"tags": [
- "People.Person"
+ "People.Trips.PlanItem"
],
- "summary": "Get ref of DirectReports from People",
- "operationId": "People.ListRefDirectReports",
+ "summary": "Get ref of PlanItems from People",
+ "operationId": "People.Trips.ListRefPlanItems",
"parameters": [
{
"in": "path",
@@ -15309,6 +25962,17 @@
"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"
+ },
{
"$ref": "#/parameters/top"
},
@@ -15331,28 +25995,16 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
],
"type": "string"
}
@@ -15377,10 +26029,10 @@
},
"post": {
"tags": [
- "People.Person"
+ "People.Trips.PlanItem"
],
- "summary": "Create new navigation property ref to DirectReports for People",
- "operationId": "People.CreateRefDirectReports",
+ "summary": "Create new navigation property ref to PlanItems for People",
+ "operationId": "People.Trips.CreateRefPlanItems",
"parameters": [
{
"in": "path",
@@ -15390,6 +26042,17 @@
"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"
+ },
{
"$ref": "#/parameters/refPostBody"
}
@@ -15413,17 +26076,13 @@
},
"x-description": "Provides operations to manage the collection of Person entities."
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": {
- "post": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count": {
+ "get": {
"tags": [
- "People.Actions"
- ],
- "summary": "Invoke action Hire",
- "description": "Hires someone for the company.",
- "operationId": "People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire",
- "consumes": [
- "application/json"
+ "People.Trip"
],
+ "summary": "Get the number of the resource",
+ "operationId": "People.Trips.GetCount-1f8c",
"parameters": [
{
"in": "path",
@@ -15434,23 +26093,21 @@
"x-ms-docs-key-type": "Person"
},
{
- "in": "body",
- "name": "body",
- "description": "Action parameters",
- "required": true,
- "schema": {
- "type": "object",
- "properties": {
- "hire": {
- "$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- }
- }
- }
+ "in": "header",
+ "name": "ConsistencyLevel",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/search"
+ },
+ {
+ "$ref": "#/parameters/filter"
}
],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/responses/ODataCountResponse"
},
"default": {
"$ref": "#/responses/error"
@@ -15462,10 +26119,9 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- },
- "x-ms-docs-operation-type": "action"
+ }
},
- "x-description": "Provides operations to call the Hire method."
+ "x-description": "Provides operations to count the resources in the collection."
},
"/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip": {
"post": {
@@ -15718,7 +26374,11 @@
},
"x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity."
+ "x-description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips"
+ ]
},
"/People/{UserName}/Trips/{TripId}": {
"get": {
@@ -15913,7 +26573,11 @@
},
"x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity."
+ "x-description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}"
+ ]
},
"/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
"get": {
@@ -16048,7 +26712,11 @@
},
"x-ms-docs-operation-type": "function"
},
- "x-description": "Provides operations to call the GetInvolvedPeople method."
+ "x-description": "Provides operations to call the GetInvolvedPeople method.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()"
+ ]
},
"/People/{UserName}/Trips/{TripId}/PlanItems": {
"get": {
@@ -16159,7 +26827,11 @@
},
"x-ms-docs-operation-type": "operation"
},
- "x-description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity."
+ "x-description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.",
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems"
+ ]
},
"/People/{UserName}/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
"delete": {
@@ -17962,20 +28634,20 @@
"x-ms-docs-toc-type": "page"
},
{
- "name": "Me.Functions",
- "x-ms-docs-toc-type": "container"
+ "name": "Me.Trip",
+ "x-ms-docs-toc-type": "page"
},
{
- "name": "Me.Actions",
+ "name": "Me.Functions",
"x-ms-docs-toc-type": "container"
},
{
- "name": "Me.Trip",
+ "name": "Me.Trips.PlanItem",
"x-ms-docs-toc-type": "page"
},
{
- "name": "Me.Trips.PlanItem",
- "x-ms-docs-toc-type": "page"
+ "name": "Me.Actions",
+ "x-ms-docs-toc-type": "container"
},
{
"name": "NewComePeople.Person",
@@ -18018,20 +28690,20 @@
"x-ms-docs-toc-type": "page"
},
{
- "name": "People.Functions",
- "x-ms-docs-toc-type": "container"
+ "name": "People.Trip",
+ "x-ms-docs-toc-type": "page"
},
{
- "name": "People.Actions",
+ "name": "People.Functions",
"x-ms-docs-toc-type": "container"
},
{
- "name": "People.Trip",
+ "name": "People.Trips.PlanItem",
"x-ms-docs-toc-type": "page"
},
{
- "name": "People.Trips.PlanItem",
- "x-ms-docs-toc-type": "page"
+ "name": "People.Actions",
+ "x-ms-docs-toc-type": "container"
},
{
"name": "ResetDataSource",
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 7d06ed1d..223ae28a 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
@@ -1182,6 +1182,9 @@ paths:
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-ms-docs-operation-type: operation
x-description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend
/Me/BestFriend/$ref:
get:
tags:
@@ -1693,6 +1696,9 @@ paths:
description: 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 Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends
'/Me/Friends/{UserName}/$ref':
delete:
tags:
@@ -2597,47 +2603,16 @@ paths:
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Casts the previous resource to Employee.
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers:
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend:
get:
tags:
- Me.Person
- summary: Get Peers from Me
- operationId: Me.ListPeers
+ summary: Get BestFriend from Me
+ description: The best friend.
+ operationId: Me.GetBestFriend
+ produces:
+ - application/json
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
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
- in: query
name: $select
description: Select properties to be returned
@@ -2672,7 +2647,9 @@ paths:
type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ description: Retrieved navigation property
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
default:
$ref: '#/responses/error'
deprecated: true
@@ -2682,28 +2659,90 @@ 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 Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/$ref':
- delete:
+ patch:
tags:
- Me.Person
- summary: Delete ref of navigation property Peers for Me
- operationId: Me.DeleteRefPeers
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: Me.UpdateBestFriend
+ consumes:
+ - application/json
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
+ - in: body
+ name: body
+ description: New navigation property values
required: true
- type: string
- x-ms-docs-key-type: Person
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - /Me/BestFriend
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/$ref:
+ get:
+ tags:
+ - Me.Person
+ summary: Get ref of BestFriend from Me
+ description: The best friend.
+ operationId: Me.GetRefBestFriend
+ produces:
+ - application/json
+ responses:
+ '200':
+ description: Retrieved navigation property link
+ schema:
+ type: string
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ put:
+ tags:
+ - Me.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: Me.UpdateRefBestFriend
+ parameters:
+ - $ref: '#/parameters/refPutBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - Me.Person
+ summary: Delete ref of navigation property BestFriend for Me
+ operationId: Me.DeleteRefBestFriend
+ parameters:
- in: header
name: If-Match
description: ETag
type: string
- - in: query
- name: '@id'
- description: Delete Uri
- type: string
responses:
'204':
description: Success
@@ -2717,19 +2756,13 @@ paths:
description: 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/Peers/{UserName}/AddressInfo':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo:
get:
tags:
- Me.Person.Location
summary: Get AddressInfo property value
- operationId: Me.Peers.ListAddressInfo
+ operationId: Me.BestFriend.ListAddressInfo
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- $ref: '#/parameters/top'
- $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
@@ -2778,16 +2811,10 @@ paths:
tags:
- Me.Person.Location
summary: Update property AddressInfo value.
- operationId: Me.Peers.UpdateAddressInfo
+ operationId: Me.BestFriend.UpdateAddressInfo
consumes:
- application/json
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: body
name: body
description: New property values
@@ -2811,16 +2838,10 @@ paths:
tags:
- Me.Person.Location
summary: Sets a new value for the collection of Location.
- operationId: Me.Peers.SetAddressInfo
+ operationId: Me.BestFriend.SetAddressInfo
consumes:
- application/json
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: header
name: If-Match
description: ETag
@@ -2844,19 +2865,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/$count':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/$count:
get:
tags:
- Me.Person.Location
summary: Get the number of the resource
- operationId: Me.Peers.AddressInfo.GetCount-3e91
+ operationId: Me.BestFriend.AddressInfo.GetCount-81de
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
responses:
@@ -2871,19 +2886,12 @@ paths:
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Provides operations to count the resources in the collection.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation:
get:
tags:
- Me.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: Me.Peers.ListAddressInfo.AsEventLocation
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
+ operationId: Me.BestFriend.ListAddressInfo.AsEventLocation
responses:
'200':
$ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
@@ -2896,17 +2904,11 @@ paths:
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Casts the previous resource to EventLocation.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count:
get:
summary: Get the number of the resource
- operationId: Me.Peers.ListAddressInfo.GetCount.AsEventLocation-be1d
+ operationId: Me.BestFriend.ListAddressInfo.GetCount.AsEventLocation-842c
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
responses:
@@ -2921,21 +2923,15 @@ paths:
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Provides operations to count the resources in the collection.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress:
get:
tags:
- Me.Person.Location
summary: Get HomeAddress property value
- operationId: Me.Peers.GetHomeAddress
+ operationId: Me.BestFriend.GetHomeAddress
produces:
- application/json
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: query
name: $select
description: Select properties to be returned
@@ -2970,16 +2966,10 @@ paths:
tags:
- Me.Person.Location
summary: Update property HomeAddress value.
- operationId: Me.Peers.UpdateHomeAddress
+ operationId: Me.BestFriend.UpdateHomeAddress
consumes:
- application/json
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: body
name: body
description: New property values
@@ -2997,19 +2987,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation:
get:
tags:
- Me.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: Me.Peers.GetHomeAddress.AsEventLocation
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
+ operationId: Me.BestFriend.GetHomeAddress.AsEventLocation
responses:
'200':
$ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
@@ -3022,221 +3005,18 @@ paths:
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Casts the previous resource to EventLocation.
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count:
- get:
- tags:
- - Me.Person
- summary: Get the number of the resource
- operationId: Me.Peers.GetCount-9fc2
- parameters:
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- responses:
- '200':
- $ref: '#/responses/ODataCountResponse'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-description: Provides operations to count the resources in the collection.
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref:
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager:
get:
tags:
- Me.Person
- summary: Get ref of Peers from Me
- operationId: Me.ListRefPeers
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: Me.GetBestFriend.AsManager
+ produces:
+ - application/json
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
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
- responses:
- '200':
- $ref: '#/responses/StringCollectionResponse'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: operation
- post:
- tags:
- - Me.Person
- summary: Create new navigation property ref to Peers for Me
- operationId: Me.CreateRefPeers
- parameters:
- - $ref: '#/parameters/refPostBody'
- responses:
- '204':
- description: Success
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: 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.GetFavoriteAirline():
- get:
- tags:
- - Me.Functions
- summary: Invoke function GetFavoriteAirline
- operationId: Me.GetFavoriteAirline
- responses:
- '200':
- $ref: '#/responses/GetFavoriteAirlineResponse'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: function
- x-description: Provides operations to call the GetFavoriteAirline method.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')':
- get:
- tags:
- - Me.Functions
- summary: Invoke function GetFriendsTrips
- operationId: Me.GetFriendsTrips
- parameters:
- - in: path
- name: userName
- description: 'Usage: userName=''{userName}'''
- required: true
- type: string
- - $ref: '#/parameters/top'
- - $ref: '#/parameters/skip'
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- - $ref: '#/parameters/count'
- - in: query
- name: $select
- description: Select properties to be returned
- type: array
- items:
- enum:
- - TripId
- - ShareId
- - Name
- - Budget
- - Description
- - Tags
- - StartsAt
- - EndsAt
- - PlanItems
- type: string
- - in: query
- name: $orderby
- description: Order items by property values
- type: array
- items:
- enum:
- - TripId
- - TripId desc
- - ShareId
- - ShareId desc
- - Name
- - Name desc
- - Budget
- - Budget desc
- - Description
- - Description desc
- - Tags
- - Tags desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
- type: string
- responses:
- '200':
- $ref: '#/responses/GetFriendsTripsResponse'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: function
- x-description: Provides operations to call the GetFriendsTrips method.
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip:
- post:
- tags:
- - Me.Actions
- summary: Invoke action GetPeersForTrip
- operationId: Me.GetPeersForTrip
- parameters:
- - $ref: '#/parameters/GetPeersForTripRequestBody'
- responses:
- '200':
- $ref: '#/responses/GetPeersForTripResponse'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: action
- x-description: Provides operations to call the GetPeersForTrip method.
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager:
- get:
- tags:
- - Me.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
- operationId: Me.Person.GetPerson.AsManager
- produces:
- - application/json
- parameters:
- - in: query
- name: $select
- description: Select properties to be returned
+ name: $select
+ description: Select properties to be returned
type: array
items:
enum:
@@ -3280,12 +3060,12 @@ paths:
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Casts the previous resource to Manager.
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports:
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends:
get:
tags:
- Me.Person
- summary: Get DirectReports from Me
- operationId: Me.ListDirectReports
+ summary: Get Friends from Me
+ operationId: Me.ListFriends
parameters:
- $ref: '#/parameters/top'
- $ref: '#/parameters/skip'
@@ -3365,13 +3145,16 @@ 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 DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/$ref':
+ x-description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - /Me/Friends
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/$ref':
delete:
tags:
- Me.Person
- summary: Delete ref of navigation property DirectReports for Me
- operationId: Me.DeleteRefDirectReports
+ summary: Delete ref of navigation property Friends for Me
+ operationId: Me.DeleteRefFriends
parameters:
- in: path
name: UserName
@@ -3400,12 +3183,12 @@ paths:
description: 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/DirectReports/{UserName}/AddressInfo':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo':
get:
tags:
- Me.Person.Location
summary: Get AddressInfo property value
- operationId: Me.DirectReports.ListAddressInfo
+ operationId: Me.Friends.ListAddressInfo
parameters:
- in: path
name: UserName
@@ -3461,7 +3244,7 @@ paths:
tags:
- Me.Person.Location
summary: Update property AddressInfo value.
- operationId: Me.DirectReports.UpdateAddressInfo
+ operationId: Me.Friends.UpdateAddressInfo
consumes:
- application/json
parameters:
@@ -3494,7 +3277,7 @@ paths:
tags:
- Me.Person.Location
summary: Sets a new value for the collection of Location.
- operationId: Me.DirectReports.SetAddressInfo
+ operationId: Me.Friends.SetAddressInfo
consumes:
- application/json
parameters:
@@ -3527,12 +3310,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/$count':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/$count':
get:
tags:
- Me.Person.Location
summary: Get the number of the resource
- operationId: Me.DirectReports.AddressInfo.GetCount-f650
+ operationId: Me.Friends.AddressInfo.GetCount-660e
parameters:
- in: path
name: UserName
@@ -3554,12 +3337,12 @@ paths:
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Provides operations to count the resources in the collection.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
get:
tags:
- Me.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: Me.DirectReports.ListAddressInfo.AsEventLocation
+ operationId: Me.Friends.ListAddressInfo.AsEventLocation
parameters:
- in: path
name: UserName
@@ -3579,10 +3362,10 @@ paths:
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Casts the previous resource to EventLocation.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
get:
summary: Get the number of the resource
- operationId: Me.DirectReports.ListAddressInfo.GetCount.AsEventLocation-a070
+ operationId: Me.Friends.ListAddressInfo.GetCount.AsEventLocation-feb8
parameters:
- in: path
name: UserName
@@ -3604,12 +3387,12 @@ paths:
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Provides operations to count the resources in the collection.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress':
get:
tags:
- Me.Person.Location
summary: Get HomeAddress property value
- operationId: Me.DirectReports.GetHomeAddress
+ operationId: Me.Friends.GetHomeAddress
produces:
- application/json
parameters:
@@ -3653,7 +3436,7 @@ paths:
tags:
- Me.Person.Location
summary: Update property HomeAddress value.
- operationId: Me.DirectReports.UpdateHomeAddress
+ operationId: Me.Friends.UpdateHomeAddress
consumes:
- application/json
parameters:
@@ -3680,12 +3463,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
get:
tags:
- Me.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: Me.DirectReports.GetHomeAddress.AsEventLocation
+ operationId: Me.Friends.GetHomeAddress.AsEventLocation
parameters:
- in: path
name: UserName
@@ -3705,71 +3488,58 @@ paths:
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Casts the previous resource to EventLocation.
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count:
- get:
- tags:
- - Me.Person
- summary: Get the number of the resource
- operationId: Me.DirectReports.GetCount-8b92
- parameters:
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- responses:
- '200':
- $ref: '#/responses/ODataCountResponse'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-description: Provides operations to count the resources in the collection.
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref:
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
get:
tags:
- Me.Person
- summary: Get ref of DirectReports from Me
- operationId: Me.ListRefDirectReports
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: Me.GetFriends.AsManager
+ produces:
+ - application/json
parameters:
- - $ref: '#/parameters/top'
- - $ref: '#/parameters/skip'
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- - $ref: '#/parameters/count'
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
- in: query
- name: $orderby
- description: Order items by property values
+ name: $select
+ description: Select properties to be returned
type: array
items:
enum:
- UserName
- - UserName desc
- FirstName
- - FirstName desc
- LastName
- - LastName desc
- MiddleName
- - MiddleName desc
- Gender
- - Gender desc
- Age
- - Age desc
- Emails
- - Emails desc
- AddressInfo
- - AddressInfo desc
- HomeAddress
- - HomeAddress desc
- FavoriteFeature
- - FavoriteFeature desc
- Features
- - Features desc
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
type: string
responses:
'200':
- $ref: '#/responses/StringCollectionResponse'
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
default:
$ref: '#/responses/error'
deprecated: true
@@ -3778,17 +3548,19 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: operation
- post:
+ x-description: Casts the previous resource to Manager.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$count:
+ get:
tags:
- Me.Person
- summary: Create new navigation property ref to DirectReports for Me
- operationId: Me.CreateRefDirectReports
+ summary: Get the number of the resource
+ operationId: Me.Friends.GetCount-0cb7
parameters:
- - $ref: '#/parameters/refPostBody'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/responses/ODataCountResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -3797,30 +3569,51 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: 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/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire:
- post:
+ x-description: Provides operations to count the resources in the collection.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$ref:
+ get:
tags:
- - Me.Actions
- summary: Invoke action Hire
- description: Hires someone for the company.
- operationId: Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire
- consumes:
- - application/json
+ - Me.Person
+ summary: Get ref of Friends from Me
+ operationId: Me.ListRefFriends
parameters:
- - in: body
- name: body
- description: Action parameters
- required: true
- schema:
- type: object
- properties:
- hire:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/responses/StringCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -3829,17 +3622,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: action
- x-description: Provides operations to call the Hire method.
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip:
+ x-ms-docs-operation-type: operation
post:
tags:
- - Me.Actions
- summary: Invoke action ShareTrip
- description: Details of the shared trip.
- operationId: Me.ShareTrip
+ - Me.Person
+ summary: Create new navigation property ref to Friends for Me
+ operationId: Me.CreateRefFriends
parameters:
- - $ref: '#/parameters/ShareTripRequestBody'
+ - $ref: '#/parameters/refPostBody'
responses:
'204':
description: Success
@@ -3851,45 +3641,15 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: action
- x-description: Provides operations to call the ShareTrip method.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName=''{lastName}'')':
- get:
- tags:
- - Me.Functions
- summary: Invoke function UpdatePersonLastName
- operationId: Me.UpdatePersonLastName
- parameters:
- - in: path
- name: lastName
- description: 'Usage: lastName=''{lastName}'''
- required: true
- type: string
- responses:
- '200':
- $ref: '#/responses/UpdatePersonLastNameResponse'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: function
- x-description: Provides operations to call the UpdatePersonLastName method.
- /Me/Trips:
+ 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:
tags:
- - Me.Trip
- summary: List trips.
- description: Retrieve a list of trips.
- operationId: Me.ListTrips
+ - Me.Person
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
+ operationId: Me.ListFriends.AsManager
parameters:
- - in: header
- name: ConsistencyLevel
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
- type: string
- $ref: '#/parameters/top'
- $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
@@ -3901,22 +3661,28 @@ paths:
type: array
items:
enum:
- - TripId
- - TripId desc
- - ShareId
- - ShareId desc
- - Name
- - Name desc
- - Budget
- - Budget desc
- - Description
- - Description desc
- - Tags
- - Tags desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
type: string
- in: query
name: $select
@@ -3924,15 +3690,20 @@ paths:
type: array
items:
enum:
- - TripId
- - ShareId
- - Name
- - Budget
- - Description
- - Tags
- - StartsAt
- - EndsAt
- - PlanItems
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
type: string
- in: query
name: $expand
@@ -3941,11 +3712,13 @@ paths:
items:
enum:
- '*'
- - PlanItems
+ - Friends
+ - BestFriend
+ - Trips
type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -3954,29 +3727,19 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: operation
- post:
+ x-description: Casts the previous resource to Manager.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count:
+ get:
tags:
- - Me.Trip
- summary: Create a trip.
- description: Create a new trip.
- operationId: Me.CreateTrips
- consumes:
- - application/json
- produces:
- - application/json
+ - Me.Person
+ summary: Get the number of the resource
+ operationId: Me.ListFriends.GetCount.AsManager-85ff
parameters:
- - in: body
- name: body
- description: New navigation property
- required: true
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
responses:
- '201':
- description: Created navigation property.
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ '200':
+ $ref: '#/responses/ODataCountResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -3985,42 +3748,68 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: 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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
- '/Me/Trips/{TripId}':
+ x-description: Provides operations to count the resources in the collection.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers:
get:
tags:
- - Me.Trip
- summary: Get a trip.
- description: Retrieve the properties of a trip.
- operationId: Me.GetTrips
- produces:
- - application/json
+ - Me.Person
+ summary: Get Peers from Me
+ operationId: Me.ListPeers
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
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
- in: query
name: $select
description: Select properties to be returned
type: array
items:
enum:
- - TripId
- - ShareId
- - Name
- - Budget
- - Description
- - Tags
- - StartsAt
- - EndsAt
- - PlanItems
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
type: string
- in: query
name: $expand
@@ -4029,49 +3818,13 @@ paths:
items:
enum:
- '*'
- - PlanItems
+ - Friends
+ - BestFriend
+ - Trips
type: string
responses:
'200':
- description: Retrieved navigation property
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: operation
- patch:
- tags:
- - Me.Trip
- summary: Update a trip.
- description: Update an instance of a trip.
- operationId: Me.UpdateTrips
- consumes:
- - application/json
- 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: body
- name: body
- description: New navigation property values
- required: true
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
- responses:
- '204':
- description: Success
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -4081,26 +3834,28 @@ 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 Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/$ref':
delete:
tags:
- - Me.Trip
- summary: Delete a trip.
- description: Delete an instance of a trip.
- operationId: Me.DeleteTrips
+ - Me.Person
+ summary: Delete ref of navigation property Peers for Me
+ operationId: Me.DeleteRefPeers
parameters:
- in: path
- name: TripId
- description: The unique identifier of Trip
+ name: UserName
+ description: The unique identifier of Person
required: true
- type: integer
- format: int32
- maximum: 2147483647
- minimum: -2147483648
- x-ms-docs-key-type: Trip
+ type: string
+ x-ms-docs-key-type: Person
- in: header
name: If-Match
description: ETag
type: string
+ - in: query
+ name: '@id'
+ description: Delete Uri
+ type: string
responses:
'204':
description: Success
@@ -4113,91 +3868,56 @@ 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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
- '/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
+ x-description: Provides operations to manage the collection of Person entities.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo':
get:
tags:
- - Me.Functions
- summary: Invoke function GetInvolvedPeople
- operationId: Me.Trips.Trip.GetInvolvedPeople
- produces:
- - application/json
+ - Me.Person.Location
+ summary: Get AddressInfo property value
+ operationId: Me.Peers.ListAddressInfo
parameters:
- in: path
- name: TripId
- description: The unique identifier of Trip
+ name: UserName
+ description: The unique identifier of Person
required: true
- type: integer
- format: int32
- maximum: 2147483647
- minimum: -2147483648
- x-ms-docs-key-type: Trip
+ type: string
+ x-ms-docs-key-type: Person
- $ref: '#/parameters/top'
- $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
- $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
- in: query
name: $select
description: Select properties to be returned
type: array
items:
enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
+ - Address
+ - City
type: string
- in: query
- name: $orderby
- description: Order items by property values
+ name: $expand
+ description: Expand related entities
type: array
items:
enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
+ - '*'
type: string
responses:
'200':
- description: Success
- schema:
- title: Collection of Person
- type: object
- properties:
- value:
- type: array
- items:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -4206,69 +3926,31 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: function
- x-description: Provides operations to call the GetInvolvedPeople method.
- '/Me/Trips/{TripId}/PlanItems':
- get:
+ patch:
tags:
- - Me.Trips.PlanItem
- summary: Get PlanItems from Me
- operationId: Me.Trips.ListPlanItems
+ - Me.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: Me.Peers.UpdateAddressInfo
+ consumes:
+ - application/json
parameters:
- in: path
- name: TripId
- description: The unique identifier of Trip
+ name: UserName
+ description: The unique identifier of Person
required: true
- type: integer
- format: int32
- maximum: 2147483647
- minimum: -2147483648
- x-ms-docs-key-type: Trip
- - $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:
- - PlanItemId
- - PlanItemId desc
- - ConfirmationCode
- - ConfirmationCode desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
- - Duration
- - Duration desc
- type: string
- - in: query
- name: $select
- description: Select properties to be returned
- type: array
- items:
- enum:
- - PlanItemId
- - ConfirmationCode
- - StartsAt
- - EndsAt
- - Duration
- type: string
- - in: query
- name: $expand
- description: Expand related entities
- type: array
- items:
- enum:
- - '*'
- type: string
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
- '200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse'
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
deprecated: true
@@ -4277,41 +3959,32 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: 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 PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
- '/Me/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
- delete:
+ post:
tags:
- - Me.Trips.PlanItem
- summary: Delete ref of navigation property PlanItems for Me
- operationId: Me.Trips.DeleteRefPlanItems
+ - Me.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: Me.Peers.SetAddressInfo
+ consumes:
+ - application/json
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: path
- name: PlanItemId
- description: The unique identifier of PlanItem
+ name: UserName
+ description: The unique identifier of Person
required: true
- type: integer
- format: int32
- maximum: 2147483647
- minimum: -2147483648
- x-ms-docs-key-type: PlanItem
+ type: string
+ x-ms-docs-key-type: Person
- in: header
name: If-Match
description: ETag
type: string
- - in: query
- name: '@id'
- description: Delete Uri
- type: string
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
'204':
description: Success
@@ -4323,24 +3996,19 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: 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/{TripId}/PlanItems/$count':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/$count':
get:
tags:
- - Me.Trips.PlanItem
+ - Me.Person.Location
summary: Get the number of the resource
- operationId: Me.Trips.PlanItems.GetCount-c250
+ operationId: Me.Peers.AddressInfo.GetCount-3e91
parameters:
- in: path
- name: TripId
- description: The unique identifier of Trip
+ name: UserName
+ description: The unique identifier of Person
required: true
- type: integer
- format: int32
- maximum: 2147483647
- minimum: -2147483648
- x-ms-docs-key-type: Trip
+ type: string
+ x-ms-docs-key-type: Person
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
responses:
@@ -4355,75 +4023,22 @@ paths:
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Provides operations to count the resources in the collection.
- '/Me/Trips/{TripId}/PlanItems/$ref':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
get:
tags:
- - Me.Trips.PlanItem
- summary: Get ref of PlanItems from Me
- operationId: Me.Trips.ListRefPlanItems
+ - Me.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: Me.Peers.ListAddressInfo.AsEventLocation
parameters:
- in: path
- name: TripId
- description: The unique identifier of Trip
+ name: UserName
+ description: The unique identifier of Person
required: true
- type: integer
- format: int32
- maximum: 2147483647
- minimum: -2147483648
- x-ms-docs-key-type: Trip
- - $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:
- - PlanItemId
- - PlanItemId desc
- - ConfirmationCode
- - ConfirmationCode desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
- - Duration
- - Duration desc
- type: string
+ type: string
+ x-ms-docs-key-type: Person
responses:
'200':
- $ref: '#/responses/StringCollectionResponse'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: operation
- post:
- tags:
- - Me.Trips.PlanItem
- summary: Create new navigation property ref to PlanItems for Me
- operationId: Me.Trips.CreateRefPlanItems
- parameters:
- - 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
- - $ref: '#/parameters/refPostBody'
- responses:
- '204':
- description: Success
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -4432,19 +4047,18 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: 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:
+ x-description: Casts the previous resource to EventLocation.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
get:
- tags:
- - Me.Trip
summary: Get the number of the resource
- operationId: Me.Trips.GetCount-7b69
+ operationId: Me.Peers.ListAddressInfo.GetCount.AsEventLocation-be1d
parameters:
- - in: header
- name: ConsistencyLevel
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
type: string
+ x-ms-docs-key-type: Person
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
responses:
@@ -4459,117 +4073,88 @@ paths:
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Provides operations to count the resources in the collection.
- /NewComePeople:
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress':
get:
tags:
- - NewComePeople.Person
- summary: Get entities from NewComePeople
- operationId: NewComePeople.Person.ListPerson
+ - Me.Person.Location
+ summary: Get HomeAddress property value
+ operationId: Me.Peers.GetHomeAddress
+ produces:
+ - application/json
parameters:
- - $ref: '#/parameters/top'
- - $ref: '#/parameters/skip'
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- - $ref: '#/parameters/count'
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
- in: query
- name: $orderby
- description: Order items by property values
+ name: $select
+ description: Select properties to be returned
type: array
items:
enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
+ - Address
+ - City
type: string
- in: query
- name: $select
- description: Select properties to be returned
- type: array
- items:
- enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - in: query
- name: $expand
- description: Expand related entities
+ name: $expand
+ description: Expand related entities
type: array
items:
enum:
- '*'
- - Friends
- - BestFriend
- - Trips
type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
default:
$ref: '#/responses/error'
- post:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ patch:
tags:
- - NewComePeople.Person
- summary: Add new entity to NewComePeople
- operationId: NewComePeople.Person.CreatePerson
+ - Me.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: Me.Peers.UpdateHomeAddress
consumes:
- application/json
- produces:
- - application/json
parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
- in: body
name: body
- description: New entity
+ description: New property values
required: true
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
- '201':
- description: Created entity
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ '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}':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
get:
tags:
- - NewComePeople.Person
- summary: Get entity from NewComePeople by key
- operationId: NewComePeople.Person.GetPerson
- produces:
- - application/json
+ - Me.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: Me.Peers.GetHomeAddress.AsEventLocation
parameters:
- in: path
name: UserName
@@ -4577,108 +4162,124 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Casts the previous resource to EventLocation.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count:
+ get:
+ tags:
+ - Me.Person
+ summary: Get the number of the resource
+ operationId: Me.Peers.GetCount-9fc2
+ parameters:
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Provides operations to count the resources in the collection.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref:
+ get:
+ tags:
+ - Me.Person
+ summary: Get ref of Peers from Me
+ operationId: Me.ListRefPeers
+ parameters:
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
- in: query
- name: $select
- description: Select properties to be returned
+ name: $orderby
+ description: Order items by property values
type: array
items:
enum:
- UserName
+ - UserName desc
- FirstName
+ - FirstName desc
- LastName
+ - LastName desc
- MiddleName
+ - MiddleName desc
- Gender
+ - Gender desc
- Age
+ - Age desc
- Emails
+ - Emails desc
- AddressInfo
+ - AddressInfo desc
- HomeAddress
+ - HomeAddress desc
- FavoriteFeature
+ - FavoriteFeature desc
- Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - in: query
- name: $expand
- description: Expand related entities
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
+ - Features desc
type: string
responses:
'200':
- description: Retrieved entity
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
- default:
- $ref: '#/responses/error'
- x-ms-docs-operation-type: operation
- patch:
- tags:
- - NewComePeople.Person
- summary: Update entity in NewComePeople
- operationId: NewComePeople.Person.UpdatePerson
- consumes:
- - application/json
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: body
- name: body
- description: New property values
- required: true
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
- responses:
- '204':
- description: Success
+ $ref: '#/responses/StringCollectionResponse'
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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:
+ post:
tags:
- - NewComePeople.Person
- summary: Delete entity from NewComePeople
- operationId: NewComePeople.Person.DeletePerson
+ - Me.Person
+ summary: Create new navigation property ref to Peers for Me
+ operationId: Me.CreateRefPeers
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
+ - $ref: '#/parameters/refPostBody'
responses:
'204':
description: Success
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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.
- '/NewComePeople/{UserName}/AddressInfo':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips:
get:
tags:
- - NewComePeople.Location
- summary: Get AddressInfo property value
- operationId: NewComePeople.ListAddressInfo
+ - Me.Trip
+ summary: List trips.
+ description: Retrieve a list of trips.
+ operationId: Me.ListTrips
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
type: string
- x-ms-docs-key-type: Person
- $ref: '#/parameters/top'
- $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
@@ -4690,10 +4291,22 @@ paths:
type: array
items:
enum:
- - Address
- - Address desc
- - City
- - City desc
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
type: string
- in: query
name: $select
@@ -4701,8 +4314,15 @@ paths:
type: array
items:
enum:
- - Address
- - City
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
type: string
- in: query
name: $expand
@@ -4711,173 +4331,89 @@ paths:
items:
enum:
- '*'
+ - PlanItems
type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
- default:
- $ref: '#/responses/error'
- patch:
- tags:
- - NewComePeople.Location
- summary: Update property AddressInfo value.
- operationId: NewComePeople.UpdateAddressInfo
- consumes:
- - application/json
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: body
- name: body
- description: New property values
- required: true
- schema:
- type: array
- items:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- responses:
- '204':
- description: Success
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse'
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
post:
tags:
- - NewComePeople.Location
- summary: Sets a new value for the collection of Location.
- operationId: NewComePeople.SetAddressInfo
+ - Me.Trip
+ summary: Create a trip.
+ description: Create a new trip.
+ operationId: Me.CreateTrips
consumes:
- application/json
+ produces:
+ - application/json
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: header
- name: If-Match
- description: ETag
- type: string
- in: body
name: body
- description: New property values
+ description: New navigation property
required: true
schema:
- type: array
- items:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- responses:
- '204':
- description: Success
- default:
- $ref: '#/responses/error'
- '/NewComePeople/{UserName}/AddressInfo/$count':
- get:
- tags:
- - NewComePeople.Location
- summary: Get the number of the resource
- operationId: NewComePeople.AddressInfo.GetCount-29d6
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: header
- name: ConsistencyLevel
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
- type: string
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- responses:
- '200':
- $ref: '#/responses/ODataCountResponse'
- default:
- $ref: '#/responses/error'
- x-description: Provides operations to count the resources in the collection.
- '/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- get:
- tags:
- - NewComePeople.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: NewComePeople.ListAddressInfo.AsEventLocation
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- responses:
- '200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
- default:
- $ref: '#/responses/error'
- x-description: Casts the previous resource to EventLocation.
- '/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
- get:
- summary: Get the number of the resource
- operationId: NewComePeople.ListAddressInfo.GetCount.AsEventLocation-29d3
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: header
- name: ConsistencyLevel
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
- type: string
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
responses:
- '200':
- $ref: '#/responses/ODataCountResponse'
+ '201':
+ description: Created navigation property.
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/responses/error'
- x-description: Provides operations to count the resources in the collection.
- '/NewComePeople/{UserName}/BestFriend':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips
+ - /Me/Trips
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}':
get:
tags:
- - NewComePeople.Person
- summary: Get BestFriend from NewComePeople
- description: The best friend.
- operationId: NewComePeople.GetBestFriend
+ - Me.Trip
+ summary: Get a trip.
+ description: Retrieve the properties of a trip.
+ operationId: Me.GetTrips
produces:
- application/json
parameters:
- in: path
- name: UserName
- description: The unique identifier of Person
+ name: TripId
+ description: The unique identifier of Trip
required: true
- type: string
- x-ms-docs-key-type: Person
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: Trip
- in: query
name: $select
description: Select properties to be returned
type: array
items:
enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
type: string
- in: query
name: $expand
@@ -4886,45 +4422,46 @@ paths:
items:
enum:
- '*'
- - Friends
- - BestFriend
- - Trips
+ - PlanItems
type: string
responses:
'200':
description: Retrieved navigation property
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-ms-docs-operation-type: operation
patch:
tags:
- - NewComePeople.Person
- summary: Update the best friend.
- description: Update an instance of a best friend.
- operationId: NewComePeople.UpdateBestFriend
+ - Me.Trip
+ summary: Update a trip.
+ description: Update an instance of a trip.
+ operationId: Me.UpdateTrips
consumes:
- application/json
parameters:
- in: path
- name: UserName
- description: The unique identifier of Person
+ name: TripId
+ description: The unique identifier of Trip
required: true
- type: string
- x-ms-docs-key-type: Person
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: Trip
- in: body
name: body
description: New navigation property values
required: true
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
responses:
'204':
description: Success
@@ -4934,108 +4471,158 @@ paths:
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-ms-docs-operation-type: operation
- x-description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
- '/NewComePeople/{UserName}/BestFriend/$ref':
- get:
+ delete:
tags:
- - NewComePeople.Person
- summary: Get ref of BestFriend from NewComePeople
- description: The best friend.
- operationId: NewComePeople.GetRefBestFriend
- produces:
- - application/json
+ - Me.Trip
+ summary: Delete a trip.
+ description: Delete an instance of a trip.
+ operationId: Me.DeleteTrips
parameters:
- in: path
- name: UserName
- description: The unique identifier of Person
+ 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
- x-ms-docs-key-type: Person
responses:
- '200':
- description: Retrieved navigation property link
- schema:
- type: string
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- x-ms-docs-operation-type: operation
- put:
- tags:
- - NewComePeople.Person
- summary: Update the best friend.
- description: Update an instance of a best friend.
- operationId: NewComePeople.UpdateRefBestFriend
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - $ref: '#/parameters/refPutBody'
- responses:
- '204':
- description: Success
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ version: 2021-05/me
+ description: 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:
+ x-description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}'
+ - '/Me/Trips/{TripId}'
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
+ get:
tags:
- - NewComePeople.Person
- summary: Delete ref of navigation property BestFriend for NewComePeople
- operationId: NewComePeople.DeleteRefBestFriend
+ - Me.Functions
+ summary: Invoke function GetInvolvedPeople
+ operationId: Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee.Trips.Trip.GetInvolvedPeople
+ produces:
+ - application/json
parameters:
- in: path
- name: UserName
- description: The unique identifier of Person
+ name: TripId
+ description: The unique identifier of Trip
required: true
- type: string
- x-ms-docs-key-type: Person
- - in: header
- name: If-Match
- description: ETag
- type: string
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: Trip
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
responses:
- '204':
+ '200':
description: Success
+ schema:
+ title: Collection of Person
+ type: object
+ properties:
+ value:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
default:
$ref: '#/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- x-ms-docs-operation-type: operation
- x-description: Provides operations to manage the collection of Person entities.
- '/NewComePeople/{UserName}/BestFriend/AddressInfo':
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: function
+ x-description: Provides operations to call the GetInvolvedPeople method.
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ - '/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems':
get:
tags:
- - NewComePeople.Person.Location
- summary: Get AddressInfo property value
- operationId: NewComePeople.BestFriend.ListAddressInfo
+ - Me.Trips.PlanItem
+ summary: Get PlanItems from Me
+ operationId: Me.Trips.ListPlanItems
parameters:
- in: path
- name: UserName
- description: The unique identifier of Person
+ name: TripId
+ description: The unique identifier of Trip
required: true
- type: string
- x-ms-docs-key-type: Person
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: Trip
- $ref: '#/parameters/top'
- $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
@@ -5047,10 +4634,16 @@ paths:
type: array
items:
enum:
- - Address
- - Address desc
- - City
- - City desc
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
type: string
- in: query
name: $select
@@ -5058,8 +4651,11 @@ paths:
type: array
items:
enum:
- - Address
- - City
+ - PlanItemId
+ - ConfirmationCode
+ - StartsAt
+ - EndsAt
+ - Duration
type: string
- in: query
name: $expand
@@ -5071,74 +4667,53 @@ paths:
type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- patch:
+ version: 2021-05/me
+ description: 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 PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems'
+ - '/Me/Trips/{TripId}/PlanItems'
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
+ delete:
tags:
- - NewComePeople.Person.Location
- summary: Update property AddressInfo value.
- operationId: NewComePeople.BestFriend.UpdateAddressInfo
- consumes:
- - application/json
+ - Me.Trips.PlanItem
+ summary: Delete ref of navigation property PlanItems for Me
+ operationId: Me.Trips.DeleteRefPlanItems
parameters:
- in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: body
- name: body
- description: New property values
+ name: TripId
+ description: The unique identifier of Trip
required: true
- schema:
- type: array
- items:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- responses:
- '204':
- description: Success
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- post:
- tags:
- - NewComePeople.Person.Location
- summary: Sets a new value for the collection of Location.
- operationId: NewComePeople.BestFriend.SetAddressInfo
- consumes:
- - application/json
- parameters:
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: Trip
- in: path
- name: UserName
- description: The unique identifier of Person
+ name: PlanItemId
+ description: The unique identifier of PlanItem
required: true
- type: string
- x-ms-docs-key-type: Person
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: PlanItem
- in: header
name: If-Match
description: ETag
type: string
- - in: body
- name: body
- description: New property values
- required: true
- schema:
- type: array
- items:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ - in: query
+ name: '@id'
+ description: Delete Uri
+ type: string
responses:
'204':
description: Success
@@ -5148,25 +4723,26 @@ paths:
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- '/NewComePeople/{UserName}/BestFriend/AddressInfo/$count':
+ version: 2021-05/me
+ description: 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/{TripId}/PlanItems/$count':
get:
tags:
- - NewComePeople.Person.Location
+ - Me.Trips.PlanItem
summary: Get the number of the resource
- operationId: NewComePeople.BestFriend.AddressInfo.GetCount-513c
+ operationId: Me.Trips.PlanItems.GetCount-a822
parameters:
- in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: header
- name: ConsistencyLevel
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
- type: string
+ name: TripId
+ description: The unique identifier of Trip
+ required: true
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: Trip
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
responses:
@@ -5178,45 +4754,95 @@ paths:
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Provides operations to count the resources in the collection.
- '/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$ref':
get:
tags:
- - NewComePeople.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: NewComePeople.BestFriend.ListAddressInfo.AsEventLocation
+ - Me.Trips.PlanItem
+ summary: Get ref of PlanItems from Me
+ operationId: Me.Trips.ListRefPlanItems
parameters:
- in: path
- name: UserName
- description: The unique identifier of Person
+ name: TripId
+ description: The unique identifier of Trip
required: true
- type: string
- x-ms-docs-key-type: Person
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: Trip
+ - $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:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ $ref: '#/responses/StringCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- x-description: Casts the previous resource to EventLocation.
- '/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
- get:
- summary: Get the number of the resource
- operationId: NewComePeople.BestFriend.ListAddressInfo.GetCount.AsEventLocation-ba36
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Create new navigation property ref to PlanItems for Me
+ operationId: Me.Trips.CreateRefPlanItems
parameters:
- in: path
- name: UserName
- description: The unique identifier of Person
+ name: TripId
+ description: The unique identifier of Trip
required: true
- type: string
- x-ms-docs-key-type: Person
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: Trip
+ - $ref: '#/parameters/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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:
+ tags:
+ - Me.Trip
+ summary: Get the number of the resource
+ operationId: Me.Trips.GetCount-5aa2
+ parameters:
- in: header
name: ConsistencyLevel
description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
@@ -5232,125 +4858,127 @@ paths:
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Provides operations to count the resources in the collection.
- '/NewComePeople/{UserName}/BestFriend/HomeAddress':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline():
get:
tags:
- - NewComePeople.Person.Location
- summary: Get HomeAddress property value
- operationId: NewComePeople.BestFriend.GetHomeAddress
- produces:
- - application/json
+ - Me.Functions
+ summary: Invoke function GetFavoriteAirline
+ operationId: Me.GetFavoriteAirline
+ responses:
+ '200':
+ $ref: '#/responses/GetFavoriteAirlineResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: function
+ x-description: Provides operations to call the GetFavoriteAirline method.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')':
+ get:
+ tags:
+ - Me.Functions
+ summary: Invoke function GetFriendsTrips
+ operationId: Me.GetFriendsTrips
parameters:
- in: path
- name: UserName
- description: The unique identifier of Person
+ name: userName
+ description: 'Usage: userName=''{userName}'''
required: true
type: string
- x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
- in: query
name: $select
description: Select properties to be returned
type: array
items:
enum:
- - Address
- - City
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
type: string
- in: query
- name: $expand
- description: Expand related entities
+ name: $orderby
+ description: Order items by property values
type: array
items:
enum:
- - '*'
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
type: string
responses:
'200':
- description: Result entities
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- patch:
- tags:
- - NewComePeople.Person.Location
- summary: Update property HomeAddress value.
- operationId: NewComePeople.BestFriend.UpdateHomeAddress
- consumes:
- - application/json
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: body
- name: body
- description: New property values
- required: true
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- responses:
- '204':
- description: Success
+ $ref: '#/responses/GetFriendsTripsResponse'
default:
$ref: '#/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- '/NewComePeople/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- get:
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: function
+ x-description: Provides operations to call the GetFriendsTrips method.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip:
+ post:
tags:
- - NewComePeople.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: NewComePeople.BestFriend.GetHomeAddress.AsEventLocation
+ - Me.Actions
+ summary: Invoke action GetPeersForTrip
+ operationId: Me.GetPeersForTrip
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
+ - $ref: '#/parameters/GetPeersForTripRequestBody'
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ $ref: '#/responses/GetPeersForTripResponse'
default:
$ref: '#/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- x-description: Casts the previous resource to EventLocation.
- '/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: action
+ x-description: Provides operations to call the GetPeersForTrip method.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager:
get:
tags:
- - NewComePeople.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
- operationId: NewComePeople.GetBestFriend.AsEmployee
+ - Me.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: Me.Person.GetPerson.AsManager
produces:
- application/json
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: query
name: $select
description: Select properties to be returned
@@ -5387,31 +5015,26 @@ paths:
'200':
description: Result entities
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
default:
$ref: '#/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- x-description: Casts the previous resource to Employee.
- '/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Casts the previous resource to Manager.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend:
get:
tags:
- - NewComePeople.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
- operationId: NewComePeople.GetBestFriend.AsManager
+ - Me.Person
+ summary: Get BestFriend from Me
+ description: The best friend.
+ operationId: Me.GetBestFriend
produces:
- application/json
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: query
name: $select
description: Select properties to be returned
@@ -5446,157 +5069,122 @@ paths:
type: string
responses:
'200':
- description: Result entities
+ description: Retrieved navigation property
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
default:
$ref: '#/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- x-description: Casts the previous resource to Manager.
- '/NewComePeople/{UserName}/Friends':
- get:
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ patch:
tags:
- - NewComePeople.Person
- summary: Get Friends from NewComePeople
- operationId: NewComePeople.ListFriends
+ - Me.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: Me.UpdateBestFriend
+ consumes:
+ - application/json
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
+ - in: body
+ name: body
+ description: New navigation property values
required: true
- type: string
- x-ms-docs-key-type: Person
- - $ref: '#/parameters/top'
- - $ref: '#/parameters/skip'
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- - $ref: '#/parameters/count'
- - in: query
- name: $orderby
- description: Order items by property values
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
- - in: query
- name: $select
- description: Select properties to be returned
- type: array
- items:
- enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - in: query
- name: $expand
- description: Expand related entities
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
- type: string
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - /Me/BestFriend
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/$ref:
+ get:
+ tags:
+ - Me.Person
+ summary: Get ref of BestFriend from Me
+ description: The best friend.
+ operationId: Me.GetRefBestFriend
+ produces:
+ - application/json
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ description: Retrieved navigation property link
+ schema:
+ type: string
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ put:
+ tags:
+ - Me.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: Me.UpdateRefBestFriend
+ parameters:
+ - $ref: '#/parameters/refPutBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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 Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
- '/NewComePeople/{UserName}/Friends/{UserName1}/$ref':
delete:
tags:
- - NewComePeople.Person
- summary: Delete ref of navigation property Friends for NewComePeople
- operationId: NewComePeople.DeleteRefFriends
+ - Me.Person
+ summary: Delete ref of navigation property BestFriend for Me
+ operationId: Me.DeleteRefBestFriend
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- 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: Delete Uri
- type: string
responses:
'204':
description: Success
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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.
- '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo:
get:
tags:
- - NewComePeople.Person.Location
+ - Me.Person.Location
summary: Get AddressInfo property value
- operationId: NewComePeople.Friends.ListAddressInfo
+ operationId: Me.BestFriend.ListAddressInfo
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- $ref: '#/parameters/top'
- $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
@@ -5635,26 +5223,20 @@ paths:
$ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
patch:
tags:
- - NewComePeople.Person.Location
+ - Me.Person.Location
summary: Update property AddressInfo value.
- operationId: NewComePeople.Friends.UpdateAddressInfo
+ operationId: Me.BestFriend.UpdateAddressInfo
consumes:
- application/json
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: body
name: body
description: New property values
@@ -5668,26 +5250,20 @@ paths:
description: Success
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
post:
tags:
- - NewComePeople.Person.Location
+ - Me.Person.Location
summary: Sets a new value for the collection of Location.
- operationId: NewComePeople.Friends.SetAddressInfo
+ operationId: Me.BestFriend.SetAddressInfo
consumes:
- application/json
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: header
name: If-Match
description: ETag
@@ -5705,25 +5281,19 @@ paths:
description: Success
default:
$ref: '#/responses/error'
- '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/$count':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/$count:
get:
tags:
- - NewComePeople.Person.Location
+ - Me.Person.Location
summary: Get the number of the resource
- operationId: NewComePeople.Friends.AddressInfo.GetCount-9334
+ operationId: Me.BestFriend.AddressInfo.GetCount-6ea6
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: header
name: ConsistencyLevel
description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
@@ -5735,49 +5305,36 @@ paths:
$ref: '#/responses/ODataCountResponse'
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Provides operations to count the resources in the collection.
- '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation:
get:
tags:
- - NewComePeople.Person.Location
+ - Me.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: NewComePeople.Friends.ListAddressInfo.AsEventLocation
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
+ operationId: Me.BestFriend.ListAddressInfo.AsEventLocation
responses:
'200':
$ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Casts the previous resource to EventLocation.
- '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count:
get:
summary: Get the number of the resource
- operationId: NewComePeople.Friends.ListAddressInfo.GetCount.AsEventLocation-be92
+ operationId: Me.BestFriend.ListAddressInfo.GetCount.AsEventLocation-692e
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: header
name: ConsistencyLevel
description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
@@ -5789,28 +5346,22 @@ paths:
$ref: '#/responses/ODataCountResponse'
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Provides operations to count the resources in the collection.
- '/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress:
get:
tags:
- - NewComePeople.Person.Location
+ - Me.Person.Location
summary: Get HomeAddress property value
- operationId: NewComePeople.Friends.GetHomeAddress
+ operationId: Me.BestFriend.GetHomeAddress
produces:
- application/json
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: query
name: $select
description: Select properties to be returned
@@ -5835,26 +5386,20 @@ paths:
$ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
patch:
tags:
- - NewComePeople.Person.Location
+ - Me.Person.Location
summary: Update property HomeAddress value.
- operationId: NewComePeople.Friends.UpdateHomeAddress
+ operationId: Me.BestFriend.UpdateHomeAddress
consumes:
- application/json
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: body
name: body
description: New property values
@@ -5866,52 +5411,39 @@ paths:
description: Success
default:
$ref: '#/responses/error'
- '/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation:
get:
tags:
- - NewComePeople.Person.Location
+ - Me.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: NewComePeople.Friends.GetHomeAddress.AsEventLocation
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
+ operationId: Me.BestFriend.GetHomeAddress.AsEventLocation
responses:
'200':
$ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Casts the previous resource to EventLocation.
- '/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee:
get:
tags:
- - NewComePeople.Person
+ - Me.Person
summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
- operationId: NewComePeople.GetFriends.AsEmployee
+ operationId: Me.GetBestFriend.AsEmployee
produces:
- application/json
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: query
name: $select
description: Select properties to be returned
@@ -5951,28 +5483,54 @@ paths:
$ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Casts the previous resource to Employee.
- '/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports:
get:
tags:
- - NewComePeople.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
- operationId: NewComePeople.GetFriends.AsManager
- produces:
- - application/json
+ - Me.Person
+ summary: Get DirectReports from Me
+ operationId: Me.ListDirectReports
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
- in: query
name: $select
description: Select properties to be returned
@@ -6007,18 +5565,23 @@ paths:
type: string
responses:
'200':
- description: Result entities
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
default:
$ref: '#/responses/error'
- x-description: Casts the previous resource to Manager.
- '/NewComePeople/{UserName}/Friends/$count':
- get:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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 DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/$ref':
+ delete:
tags:
- - NewComePeople.Person
- summary: Get the number of the resource
- operationId: NewComePeople.Friends.GetCount-2ec1
+ - Me.Person
+ summary: Delete ref of navigation property DirectReports for Me
+ operationId: Me.DeleteRefDirectReports
parameters:
- in: path
name: UserName
@@ -6026,20 +5589,33 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: query
+ name: '@id'
+ description: Delete Uri
+ type: string
responses:
- '200':
- $ref: '#/responses/ODataCountResponse'
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
- x-description: Provides operations to count the resources in the collection.
- '/NewComePeople/{UserName}/Friends/$ref':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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/DirectReports/{UserName}/AddressInfo':
get:
tags:
- - NewComePeople.Person
- summary: Get ref of Friends from NewComePeople
- operationId: NewComePeople.ListRefFriends
+ - Me.Person.Location
+ summary: Get AddressInfo property value
+ operationId: Me.DirectReports.ListAddressInfo
parameters:
- in: path
name: UserName
@@ -6058,40 +5634,46 @@ paths:
type: array
items:
enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
type: string
responses:
'200':
- $ref: '#/responses/StringCollectionResponse'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
default:
$ref: '#/responses/error'
- x-ms-docs-operation-type: operation
- post:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ patch:
tags:
- - NewComePeople.Person
- summary: Create new navigation property ref to Friends for NewComePeople
- operationId: NewComePeople.CreateRefFriends
+ - Me.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: Me.DirectReports.UpdateAddressInfo
+ consumes:
+ - application/json
parameters:
- in: path
name: UserName
@@ -6099,20 +5681,32 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - $ref: '#/parameters/refPostBody'
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
'204':
description: Success
default:
$ref: '#/responses/error'
- 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:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ post:
tags:
- - NewComePeople.Person
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
- operationId: NewComePeople.ListFriends.AsEmployee
+ - Me.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: Me.DirectReports.SetAddressInfo
+ consumes:
+ - application/json
parameters:
- in: path
name: UserName
@@ -6120,84 +5714,35 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - $ref: '#/parameters/top'
- - $ref: '#/parameters/skip'
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- - $ref: '#/parameters/count'
- - in: query
- name: $orderby
- description: Order items by property values
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
- - in: query
- name: $select
- description: Select properties to be returned
- type: array
- items:
- enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - in: query
- name: $expand
- description: Expand related entities
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
- type: string
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
- '200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse'
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
- x-description: Casts the previous resource to Employee.
- '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/$count':
get:
tags:
- - NewComePeople.Person
+ - Me.Person.Location
summary: Get the number of the resource
- operationId: NewComePeople.ListFriends.GetCount.AsEmployee-4069
+ operationId: Me.DirectReports.AddressInfo.GetCount-f650
parameters:
- in: path
name: UserName
@@ -6205,6 +5750,10 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
responses:
@@ -6212,13 +5761,19 @@ paths:
$ref: '#/responses/ODataCountResponse'
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Provides operations to count the resources in the collection.
- '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
get:
tags:
- - NewComePeople.Person
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
- operationId: NewComePeople.ListFriends.AsManager
+ - Me.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: Me.DirectReports.ListAddressInfo.AsEventLocation
parameters:
- in: path
name: UserName
@@ -6226,84 +5781,22 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - $ref: '#/parameters/top'
- - $ref: '#/parameters/skip'
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- - $ref: '#/parameters/count'
- - in: query
- name: $orderby
- description: Order items by property values
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
- - in: query
- name: $select
- description: Select properties to be returned
- type: array
- items:
- enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - in: query
- name: $expand
- description: Expand related entities
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
- type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/responses/error'
- x-description: Casts the previous resource to Manager.
- '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Casts the previous resource to EventLocation.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
get:
- tags:
- - NewComePeople.Person
summary: Get the number of the resource
- operationId: NewComePeople.ListFriends.GetCount.AsManager-d1d3
+ operationId: Me.DirectReports.ListAddressInfo.GetCount.AsEventLocation-a070
parameters:
- in: path
name: UserName
@@ -6311,6 +5804,10 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
responses:
@@ -6318,13 +5815,19 @@ paths:
$ref: '#/responses/ODataCountResponse'
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Provides operations to count the resources in the collection.
- '/NewComePeople/{UserName}/HomeAddress':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress':
get:
tags:
- - NewComePeople.Location
+ - Me.Person.Location
summary: Get HomeAddress property value
- operationId: NewComePeople.GetHomeAddress
+ operationId: Me.DirectReports.GetHomeAddress
produces:
- application/json
parameters:
@@ -6358,11 +5861,17 @@ paths:
$ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
patch:
tags:
- - NewComePeople.Location
+ - Me.Person.Location
summary: Update property HomeAddress value.
- operationId: NewComePeople.UpdateHomeAddress
+ operationId: Me.DirectReports.UpdateHomeAddress
consumes:
- application/json
parameters:
@@ -6383,12 +5892,18 @@ paths:
description: Success
default:
$ref: '#/responses/error'
- '/NewComePeople/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
get:
tags:
- - NewComePeople.Location
+ - Me.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: NewComePeople.GetHomeAddress.AsEventLocation
+ operationId: Me.DirectReports.GetHomeAddress.AsEventLocation
parameters:
- in: path
name: UserName
@@ -6401,162 +5916,202 @@ paths:
$ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-description: Casts the previous resource to EventLocation.
- '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count:
get:
tags:
- - NewComePeople.Functions
- summary: Invoke function GetFavoriteAirline
- operationId: NewComePeople.Person.GetFavoriteAirline
+ - Me.Person
+ summary: Get the number of the resource
+ operationId: Me.DirectReports.GetCount-8b92
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
responses:
'200':
- $ref: '#/responses/GetFavoriteAirlineResponse'
+ $ref: '#/responses/ODataCountResponse'
default:
$ref: '#/responses/error'
- x-ms-docs-operation-type: function
- x-description: Provides operations to call the GetFavoriteAirline method.
- '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Provides operations to count the resources in the collection.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref:
get:
tags:
- - NewComePeople.Functions
- summary: Invoke function GetFriendsTrips
- operationId: NewComePeople.Person.GetFriendsTrips
+ - Me.Person
+ summary: Get ref of DirectReports from Me
+ operationId: Me.ListRefDirectReports
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: userName
- description: 'Usage: userName=''{userName}'''
- required: true
- type: string
- $ref: '#/parameters/top'
- $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
- $ref: '#/parameters/count'
- - in: query
- name: $select
- description: Select properties to be returned
- type: array
- items:
- enum:
- - TripId
- - ShareId
- - Name
- - Budget
- - Description
- - Tags
- - StartsAt
- - EndsAt
- - PlanItems
- type: string
- in: query
name: $orderby
description: Order items by property values
type: array
items:
enum:
- - TripId
- - TripId desc
- - ShareId
- - ShareId desc
- - Name
- - Name desc
- - Budget
- - Budget desc
- - Description
- - Description desc
- - Tags
- - Tags desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
type: string
responses:
'200':
- $ref: '#/responses/GetFriendsTripsResponse'
+ $ref: '#/responses/StringCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/trips
- description: The GetFriendsTrips API is deprecated and will stop returning data on March 2023. Please use the new trips API on friends.
- x-ms-docs-operation-type: function
- x-description: Provides operations to call the GetFriendsTrips method.
- '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip':
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
post:
tags:
- - NewComePeople.Actions
- summary: Invoke action GetPeersForTrip
- operationId: NewComePeople.Person.GetPeersForTrip
+ - Me.Person
+ summary: Create new navigation property ref to DirectReports for Me
+ operationId: Me.CreateRefDirectReports
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - $ref: '#/parameters/GetPeersForTripRequestBody'
+ - $ref: '#/parameters/refPostBody'
responses:
- '200':
- $ref: '#/responses/GetPeersForTripResponse'
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
- x-ms-docs-operation-type: action
- x-description: Provides operations to call the GetPeersForTrip method.
- '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire':
- post:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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:
tags:
- - NewComePeople.Actions
- summary: Invoke action Hire
- description: Hires someone for the company.
- operationId: NewComePeople.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire
- consumes:
- - application/json
+ - Me.Person
+ summary: Get Friends from Me
+ operationId: Me.ListFriends
parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: body
- name: body
- description: Action parameters
- required: true
- schema:
- type: object
- properties:
- hire:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
default:
$ref: '#/responses/error'
- x-ms-docs-operation-type: action
- x-description: Provides operations to call the Hire method.
- '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip':
- post:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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 Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - /Me/Friends
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/$ref':
+ delete:
tags:
- - NewComePeople.Actions
- summary: Invoke action ShareTrip
- description: Details of the shared trip.
- operationId: NewComePeople.Person.ShareTrip
+ - Me.Person
+ summary: Delete ref of navigation property Friends for Me
+ operationId: Me.DeleteRefFriends
parameters:
- in: path
name: UserName
@@ -6564,46 +6119,33 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - $ref: '#/parameters/ShareTripRequestBody'
- responses:
- '204':
- description: Success
- default:
- $ref: '#/responses/error'
- x-ms-docs-operation-type: action
- x-description: Provides operations to call the ShareTrip method.
- '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName=''{lastName}'')':
- get:
- tags:
- - NewComePeople.Functions
- summary: Invoke function UpdatePersonLastName
- operationId: NewComePeople.Person.UpdatePersonLastName
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
+ - in: header
+ name: If-Match
+ description: ETag
type: string
- x-ms-docs-key-type: Person
- - in: path
- name: lastName
- description: 'Usage: lastName=''{lastName}'''
- required: true
+ - in: query
+ name: '@id'
+ description: Delete Uri
type: string
responses:
- '200':
- $ref: '#/responses/UpdatePersonLastNameResponse'
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
- x-ms-docs-operation-type: function
- x-description: Provides operations to call the UpdatePersonLastName method.
- '/NewComePeople/{UserName}/Trips':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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/{UserName}/AddressInfo':
get:
tags:
- - NewComePeople.Trip
- summary: List trips.
- description: Retrieve a list of trips.
- operationId: NewComePeople.ListTrips
+ - Me.Person.Location
+ summary: Get AddressInfo property value
+ operationId: Me.Friends.ListAddressInfo
parameters:
- in: path
name: UserName
@@ -6611,10 +6153,6 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: header
- name: ConsistencyLevel
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
- type: string
- $ref: '#/parameters/top'
- $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
@@ -6626,22 +6164,10 @@ paths:
type: array
items:
enum:
- - TripId
- - TripId desc
- - ShareId
- - ShareId desc
- - Name
- - Name desc
- - Budget
- - Budget desc
- - Description
- - Description desc
- - Tags
- - Tags desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
+ - Address
+ - Address desc
+ - City
+ - City desc
type: string
- in: query
name: $select
@@ -6649,15 +6175,8 @@ paths:
type: array
items:
enum:
- - TripId
- - ShareId
- - Name
- - Budget
- - Description
- - Tags
- - StartsAt
- - EndsAt
- - PlanItems
+ - Address
+ - City
type: string
- in: query
name: $expand
@@ -6666,24 +6185,25 @@ paths:
items:
enum:
- '*'
- - PlanItems
type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
default:
$ref: '#/responses/error'
- x-ms-docs-operation-type: operation
- post:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ patch:
tags:
- - NewComePeople.Trip
- summary: Create a trip.
- description: Create a new trip.
- operationId: NewComePeople.CreateTrips
+ - Me.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: Me.Friends.UpdateAddressInfo
consumes:
- application/json
- produces:
- - application/json
parameters:
- in: path
name: UserName
@@ -6693,27 +6213,29 @@ paths:
x-ms-docs-key-type: Person
- in: body
name: body
- description: New navigation property
+ description: New property values
required: true
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
- '201':
- description: Created navigation property.
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
- x-ms-docs-operation-type: operation
- x-description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
- '/NewComePeople/{UserName}/Trips/{TripId}':
- get:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ post:
tags:
- - NewComePeople.Trip
- summary: Get a trip.
- description: Retrieve the properties of a trip.
- operationId: NewComePeople.GetTrips
- produces:
+ - Me.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: Me.Friends.SetAddressInfo
+ consumes:
- application/json
parameters:
- in: path
@@ -6722,30 +6244,129 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: path
- name: TripId
- description: The unique identifier of Trip
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: body
+ name: body
+ description: New property values
required: true
- type: integer
- format: int32
- maximum: 2147483647
- minimum: -2147483648
- x-ms-docs-key-type: Trip
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/$count':
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get the number of the resource
+ operationId: Me.Friends.AddressInfo.GetCount-b7db
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Provides operations to count the resources in the collection.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: Me.Friends.ListAddressInfo.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Casts the previous resource to EventLocation.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ get:
+ summary: Get the number of the resource
+ operationId: Me.Friends.ListAddressInfo.GetCount.AsEventLocation-4d69
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Provides operations to count the resources in the collection.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/HomeAddress':
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get HomeAddress property value
+ operationId: Me.Friends.GetHomeAddress
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
- in: query
name: $select
description: Select properties to be returned
type: array
items:
enum:
- - TripId
- - ShareId
- - Name
- - Budget
- - Description
- - Tags
- - StartsAt
- - EndsAt
- - PlanItems
+ - Address
+ - City
type: string
- in: query
name: $expand
@@ -6754,22 +6375,25 @@ paths:
items:
enum:
- '*'
- - PlanItems
type: string
responses:
'200':
- description: Retrieved navigation property
+ description: Result entities
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
default:
$ref: '#/responses/error'
- x-ms-docs-operation-type: operation
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
patch:
tags:
- - NewComePeople.Trip
- summary: Update a trip.
- description: Update an instance of a trip.
- operationId: NewComePeople.UpdateTrips
+ - Me.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: Me.Friends.UpdateHomeAddress
consumes:
- application/json
parameters:
@@ -6779,33 +6403,29 @@ paths:
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: body
name: body
- description: New navigation property values
+ description: New property values
required: true
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
'204':
description: Success
default:
$ref: '#/responses/error'
- x-ms-docs-operation-type: operation
- delete:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
tags:
- - NewComePeople.Trip
- summary: Delete a trip.
- description: Delete an instance of a trip.
- operationId: NewComePeople.DeleteTrips
+ - Me.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: Me.Friends.GetHomeAddress.AsEventLocation
parameters:
- in: path
name: UserName
@@ -6813,32 +6433,24 @@ paths:
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
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/responses/error'
- x-ms-docs-operation-type: operation
- x-description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
- '/NewComePeople/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Casts the previous resource to EventLocation.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
get:
tags:
- - NewComePeople.Functions
- summary: Invoke function GetInvolvedPeople
- operationId: NewComePeople.Person.Trips.Trip.GetInvolvedPeople
+ - Me.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
+ operationId: Me.GetFriends.AsEmployee
produces:
- application/json
parameters:
@@ -6848,20 +6460,6 @@ paths:
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
- - $ref: '#/parameters/top'
- - $ref: '#/parameters/skip'
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- - $ref: '#/parameters/count'
- in: query
name: $select
description: Select properties to be returned
@@ -6884,71 +6482,7785 @@ paths:
- Trips
type: string
- in: query
- name: $orderby
- description: Order items by property values
+ name: $expand
+ description: Expand related entities
type: array
items:
enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
type: string
responses:
'200':
- description: Success
+ description: Result entities
schema:
- title: Collection of Person
- type: object
- properties:
- value:
- type: array
- items:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
default:
$ref: '#/responses/error'
- x-ms-docs-operation-type: function
- x-description: Provides operations to call the GetInvolvedPeople method.
- '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems':
- get:
- tags:
- - NewComePeople.Trips.PlanItem
- summary: Get PlanItems from NewComePeople
- operationId: NewComePeople.Trips.ListPlanItems
- parameters:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Casts the previous resource to Employee.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$count:
+ get:
+ tags:
+ - Me.Person
+ summary: Get the number of the resource
+ operationId: Me.Friends.GetCount-60a7
+ parameters:
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Provides operations to count the resources in the collection.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$ref:
+ get:
+ tags:
+ - Me.Person
+ summary: Get ref of Friends from Me
+ operationId: Me.ListRefFriends
+ 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
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/StringCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - Me.Person
+ summary: Create new navigation property ref to Friends for Me
+ operationId: Me.CreateRefFriends
+ parameters:
+ - $ref: '#/parameters/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Casts the previous resource to Employee.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count:
+ get:
+ tags:
+ - Me.Person
+ summary: Get the number of the resource
+ operationId: Me.ListFriends.GetCount.AsEmployee-6a35
+ parameters:
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Provides operations to count the resources in the collection.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire:
+ post:
+ tags:
+ - Me.Actions
+ summary: Invoke action Hire
+ description: Hires someone for the company.
+ operationId: Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire
+ consumes:
+ - application/json
+ parameters:
+ - in: body
+ name: body
+ description: Action parameters
+ required: true
+ schema:
+ type: object
+ properties:
+ hire:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: action
+ x-description: Provides operations to call the Hire method.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips:
+ get:
+ tags:
+ - Me.Trip
+ summary: List trips.
+ description: Retrieve a list of trips.
+ operationId: Me.ListTrips
+ parameters:
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - PlanItems
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - Me.Trip
+ summary: Create a trip.
+ description: Create a new trip.
+ operationId: Me.CreateTrips
+ consumes:
+ - application/json
+ produces:
+ - application/json
+ parameters:
+ - in: body
+ name: body
+ description: New navigation property
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ responses:
+ '201':
+ description: Created navigation property.
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips
+ - /Me/Trips
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}':
+ get:
+ tags:
+ - Me.Trip
+ summary: Get a trip.
+ description: Retrieve the properties of a trip.
+ operationId: Me.GetTrips
+ produces:
+ - application/json
+ 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: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - PlanItems
+ type: string
+ responses:
+ '200':
+ description: Retrieved navigation property
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - Me.Trip
+ summary: Update a trip.
+ description: Update an instance of a trip.
+ operationId: Me.UpdateTrips
+ consumes:
+ - application/json
+ 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: body
+ name: body
+ description: New navigation property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - Me.Trip
+ summary: Delete a trip.
+ description: Delete an instance of a trip.
+ operationId: Me.DeleteTrips
+ parameters:
+ - 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
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}'
+ - '/Me/Trips/{TripId}'
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
+ get:
+ tags:
+ - Me.Functions
+ summary: Invoke function GetInvolvedPeople
+ operationId: Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Trips.Trip.GetInvolvedPeople
+ produces:
+ - application/json
+ 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
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ responses:
+ '200':
+ description: Success
+ schema:
+ title: Collection of Person
+ type: object
+ properties:
+ value:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: function
+ x-description: Provides operations to call the GetInvolvedPeople method.
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ - '/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems':
+ get:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Get PlanItems from Me
+ operationId: Me.Trips.ListPlanItems
+ 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
+ - $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:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - ConfirmationCode
+ - StartsAt
+ - EndsAt
+ - Duration
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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 PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems'
+ - '/Me/Trips/{TripId}/PlanItems'
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
+ 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: path
+ name: PlanItemId
+ description: The unique identifier of PlanItem
+ required: true
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: PlanItem
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: query
+ name: '@id'
+ description: Delete Uri
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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/{TripId}/PlanItems/$count':
+ get:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Get the number of the resource
+ operationId: Me.Trips.PlanItems.GetCount-5ad2
+ 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
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Provides operations to count the resources in the collection.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$ref':
+ get:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Get ref of PlanItems from Me
+ operationId: Me.Trips.ListRefPlanItems
+ 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
+ - $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:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/StringCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Create new navigation property ref to PlanItems for Me
+ operationId: Me.Trips.CreateRefPlanItems
+ parameters:
+ - 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
+ - $ref: '#/parameters/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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:
+ tags:
+ - Me.Trip
+ summary: Get the number of the resource
+ operationId: Me.Trips.GetCount-f3f4
+ parameters:
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Provides operations to count the resources in the collection.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip:
+ post:
+ tags:
+ - Me.Actions
+ summary: Invoke action ShareTrip
+ description: Details of the shared trip.
+ operationId: Me.ShareTrip
+ parameters:
+ - $ref: '#/parameters/ShareTripRequestBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: action
+ x-description: Provides operations to call the ShareTrip method.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName=''{lastName}'')':
+ get:
+ tags:
+ - Me.Functions
+ summary: Invoke function UpdatePersonLastName
+ operationId: Me.UpdatePersonLastName
+ parameters:
+ - in: path
+ name: lastName
+ description: 'Usage: lastName=''{lastName}'''
+ required: true
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/UpdatePersonLastNameResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: function
+ x-description: Provides operations to call the UpdatePersonLastName method.
+ /Me/Trips:
+ get:
+ tags:
+ - Me.Trip
+ summary: List trips.
+ description: Retrieve a list of trips.
+ operationId: Me.ListTrips
+ parameters:
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - PlanItems
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - Me.Trip
+ summary: Create a trip.
+ description: Create a new trip.
+ operationId: Me.CreateTrips
+ consumes:
+ - application/json
+ produces:
+ - application/json
+ parameters:
+ - in: body
+ name: body
+ description: New navigation property
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ responses:
+ '201':
+ description: Created navigation property.
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips
+ '/Me/Trips/{TripId}':
+ get:
+ tags:
+ - Me.Trip
+ summary: Get a trip.
+ description: Retrieve the properties of a trip.
+ operationId: Me.GetTrips
+ produces:
+ - application/json
+ 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: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - PlanItems
+ type: string
+ responses:
+ '200':
+ description: Retrieved navigation property
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - Me.Trip
+ summary: Update a trip.
+ description: Update an instance of a trip.
+ operationId: Me.UpdateTrips
+ consumes:
+ - application/json
+ 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: body
+ name: body
+ description: New navigation property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - Me.Trip
+ summary: Delete a trip.
+ description: Delete an instance of a trip.
+ operationId: Me.DeleteTrips
+ parameters:
+ - 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
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}'
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}'
+ '/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
+ get:
+ tags:
+ - Me.Functions
+ summary: Invoke function GetInvolvedPeople
+ operationId: Me.Trips.Trip.GetInvolvedPeople
+ produces:
+ - application/json
+ 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
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ responses:
+ '200':
+ description: Success
+ schema:
+ title: Collection of Person
+ type: object
+ properties:
+ value:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: function
+ x-description: Provides operations to call the GetInvolvedPeople method.
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ '/Me/Trips/{TripId}/PlanItems':
+ get:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Get PlanItems from Me
+ operationId: Me.Trips.ListPlanItems
+ 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
+ - $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:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - ConfirmationCode
+ - StartsAt
+ - EndsAt
+ - Duration
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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 PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems'
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems'
+ '/Me/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
+ 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: path
+ name: PlanItemId
+ description: The unique identifier of PlanItem
+ required: true
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: PlanItem
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: query
+ name: '@id'
+ description: Delete Uri
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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/{TripId}/PlanItems/$count':
+ get:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Get the number of the resource
+ operationId: Me.Trips.PlanItems.GetCount-c250
+ 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
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Provides operations to count the resources in the collection.
+ '/Me/Trips/{TripId}/PlanItems/$ref':
+ get:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Get ref of PlanItems from Me
+ operationId: Me.Trips.ListRefPlanItems
+ 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
+ - $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:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/StringCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Create new navigation property ref to PlanItems for Me
+ operationId: Me.Trips.CreateRefPlanItems
+ parameters:
+ - 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
+ - $ref: '#/parameters/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-description: Provides operations to count the resources in the collection.
+ /NewComePeople:
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get entities from NewComePeople
+ operationId: NewComePeople.Person.ListPerson
+ 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
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ post:
+ tags:
+ - NewComePeople.Person
+ summary: Add new entity to NewComePeople
+ operationId: NewComePeople.Person.CreatePerson
+ consumes:
+ - application/json
+ produces:
+ - application/json
+ parameters:
+ - in: body
+ name: body
+ description: New entity
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ responses:
+ '201':
+ description: Created entity
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the collection of Person entities.
+ '/NewComePeople/{UserName}':
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get entity from NewComePeople by key
+ operationId: NewComePeople.Person.GetPerson
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Retrieved entity
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - NewComePeople.Person
+ summary: Update entity in NewComePeople
+ operationId: NewComePeople.Person.UpdatePerson
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - NewComePeople.Person
+ summary: Delete entity from NewComePeople
+ operationId: NewComePeople.Person.DeletePerson
+ 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
+ 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}/AddressInfo':
+ get:
+ tags:
+ - NewComePeople.Location
+ summary: Get AddressInfo property value
+ operationId: NewComePeople.ListAddressInfo
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ patch:
+ tags:
+ - NewComePeople.Location
+ summary: Update property AddressInfo value.
+ operationId: NewComePeople.UpdateAddressInfo
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ post:
+ tags:
+ - NewComePeople.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: NewComePeople.SetAddressInfo
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ '/NewComePeople/{UserName}/AddressInfo/$count':
+ get:
+ tags:
+ - NewComePeople.Location
+ summary: Get the number of the resource
+ operationId: NewComePeople.AddressInfo.GetCount-29d6
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ x-description: Provides operations to count the resources in the collection.
+ '/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - NewComePeople.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: NewComePeople.ListAddressInfo.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ x-description: Casts the previous resource to EventLocation.
+ '/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ get:
+ summary: Get the number of the resource
+ operationId: NewComePeople.ListAddressInfo.GetCount.AsEventLocation-29d3
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ x-description: Provides operations to count the resources in the collection.
+ '/NewComePeople/{UserName}/BestFriend':
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get BestFriend from NewComePeople
+ description: The best friend.
+ operationId: NewComePeople.GetBestFriend
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Retrieved navigation property
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - NewComePeople.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: NewComePeople.UpdateBestFriend
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New navigation property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ '/NewComePeople/{UserName}/BestFriend/$ref':
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get ref of BestFriend from NewComePeople
+ description: The best friend.
+ operationId: NewComePeople.GetRefBestFriend
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ description: Retrieved navigation property link
+ schema:
+ type: string
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ x-ms-docs-operation-type: operation
+ put:
+ tags:
+ - NewComePeople.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: NewComePeople.UpdateRefBestFriend
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/refPutBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - NewComePeople.Person
+ summary: Delete ref of navigation property BestFriend for NewComePeople
+ operationId: NewComePeople.DeleteRefBestFriend
+ parameters:
+ - 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
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the collection of Person entities.
+ '/NewComePeople/{UserName}/BestFriend/AddressInfo':
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get AddressInfo property value
+ operationId: NewComePeople.BestFriend.ListAddressInfo
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ patch:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: NewComePeople.BestFriend.UpdateAddressInfo
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ post:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: NewComePeople.BestFriend.SetAddressInfo
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ '/NewComePeople/{UserName}/BestFriend/AddressInfo/$count':
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get the number of the resource
+ operationId: NewComePeople.BestFriend.AddressInfo.GetCount-513c
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ x-description: Provides operations to count the resources in the collection.
+ '/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: NewComePeople.BestFriend.ListAddressInfo.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ x-description: Casts the previous resource to EventLocation.
+ '/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ get:
+ summary: Get the number of the resource
+ operationId: NewComePeople.BestFriend.ListAddressInfo.GetCount.AsEventLocation-ba36
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ x-description: Provides operations to count the resources in the collection.
+ '/NewComePeople/{UserName}/BestFriend/HomeAddress':
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get HomeAddress property value
+ operationId: NewComePeople.BestFriend.GetHomeAddress
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ patch:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: NewComePeople.BestFriend.UpdateHomeAddress
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ '/NewComePeople/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: NewComePeople.BestFriend.GetHomeAddress.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ x-description: Casts the previous resource to EventLocation.
+ '/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
+ operationId: NewComePeople.GetBestFriend.AsEmployee
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ x-description: Casts the previous resource to Employee.
+ '/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: NewComePeople.GetBestFriend.AsManager
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ x-description: Casts the previous resource to Manager.
+ '/NewComePeople/{UserName}/Friends':
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get Friends from NewComePeople
+ operationId: NewComePeople.ListFriends
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ '/NewComePeople/{UserName}/Friends/{UserName1}/$ref':
+ 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: path
+ name: UserName1
+ 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: Delete Uri
+ 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/{UserName1}/AddressInfo':
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get AddressInfo property value
+ operationId: NewComePeople.Friends.ListAddressInfo
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ patch:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: NewComePeople.Friends.UpdateAddressInfo
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ post:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: NewComePeople.Friends.SetAddressInfo
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/$count':
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get the number of the resource
+ operationId: NewComePeople.Friends.AddressInfo.GetCount-9334
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ x-description: Provides operations to count the resources in the collection.
+ '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: NewComePeople.Friends.ListAddressInfo.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ x-description: Casts the previous resource to EventLocation.
+ '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ get:
+ summary: Get the number of the resource
+ operationId: NewComePeople.Friends.ListAddressInfo.GetCount.AsEventLocation-be92
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ x-description: Provides operations to count the resources in the collection.
+ '/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress':
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get HomeAddress property value
+ operationId: NewComePeople.Friends.GetHomeAddress
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/responses/error'
+ patch:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: NewComePeople.Friends.UpdateHomeAddress
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ '/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: NewComePeople.Friends.GetHomeAddress.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ x-description: Casts the previous resource to EventLocation.
+ '/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
+ operationId: NewComePeople.GetFriends.AsEmployee
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ default:
+ $ref: '#/responses/error'
+ x-description: Casts the previous resource to Employee.
+ '/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: NewComePeople.GetFriends.AsManager
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ default:
+ $ref: '#/responses/error'
+ x-description: Casts the previous resource to Manager.
+ '/NewComePeople/{UserName}/Friends/$count':
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the number of the resource
+ operationId: NewComePeople.Friends.GetCount-2ec1
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ x-description: Provides operations to count the resources in the collection.
+ '/NewComePeople/{UserName}/Friends/$ref':
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get ref of Friends from NewComePeople
+ operationId: NewComePeople.ListRefFriends
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/StringCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - NewComePeople.Person
+ summary: Create new navigation property ref to Friends for NewComePeople
+ operationId: NewComePeople.CreateRefFriends
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/refPostBody'
+ 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:
+ tags:
+ - NewComePeople.Person
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
+ operationId: NewComePeople.ListFriends.AsEmployee
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ x-description: Casts the previous resource to Employee.
+ '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count':
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the number of the resource
+ operationId: NewComePeople.ListFriends.GetCount.AsEmployee-4069
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ x-description: Provides operations to count the resources in the collection.
+ '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
+ operationId: NewComePeople.ListFriends.AsManager
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ x-description: Casts the previous resource to Manager.
+ '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count':
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the number of the resource
+ operationId: NewComePeople.ListFriends.GetCount.AsManager-d1d3
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ x-description: Provides operations to count the resources in the collection.
+ '/NewComePeople/{UserName}/HomeAddress':
+ get:
+ tags:
+ - NewComePeople.Location
+ summary: Get HomeAddress property value
+ operationId: NewComePeople.GetHomeAddress
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/responses/error'
+ patch:
+ tags:
+ - NewComePeople.Location
+ summary: Update property HomeAddress value.
+ operationId: NewComePeople.UpdateHomeAddress
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ '/NewComePeople/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - NewComePeople.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: NewComePeople.GetHomeAddress.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ x-description: Casts the previous resource to EventLocation.
+ '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()':
+ get:
+ tags:
+ - NewComePeople.Functions
+ summary: Invoke function GetFavoriteAirline
+ operationId: NewComePeople.Person.GetFavoriteAirline
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/GetFavoriteAirlineResponse'
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: function
+ x-description: Provides operations to call the GetFavoriteAirline method.
+ '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')':
+ get:
+ tags:
+ - NewComePeople.Functions
+ summary: Invoke function GetFriendsTrips
+ operationId: NewComePeople.Person.GetFriendsTrips
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: userName
+ description: 'Usage: userName=''{userName}'''
+ required: true
+ type: string
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/GetFriendsTripsResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/trips
+ description: The GetFriendsTrips API is deprecated and will stop returning data on March 2023. Please use the new trips API on friends.
+ x-ms-docs-operation-type: function
+ x-description: Provides operations to call the GetFriendsTrips method.
+ '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip':
+ post:
+ tags:
+ - NewComePeople.Actions
+ summary: Invoke action GetPeersForTrip
+ operationId: NewComePeople.Person.GetPeersForTrip
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/GetPeersForTripRequestBody'
+ responses:
+ '200':
+ $ref: '#/responses/GetPeersForTripResponse'
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: action
+ x-description: Provides operations to call the GetPeersForTrip method.
+ '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire':
+ post:
+ tags:
+ - NewComePeople.Actions
+ summary: Invoke action Hire
+ description: Hires someone for the company.
+ operationId: NewComePeople.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: Action parameters
+ required: true
+ schema:
+ type: object
+ properties:
+ hire:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: action
+ x-description: Provides operations to call the Hire method.
+ '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip':
+ post:
+ tags:
+ - NewComePeople.Actions
+ summary: Invoke action ShareTrip
+ description: Details of the shared trip.
+ operationId: NewComePeople.Person.ShareTrip
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/ShareTripRequestBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: action
+ x-description: Provides operations to call the ShareTrip method.
+ '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName=''{lastName}'')':
+ get:
+ tags:
+ - NewComePeople.Functions
+ summary: Invoke function UpdatePersonLastName
+ operationId: NewComePeople.Person.UpdatePersonLastName
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: lastName
+ description: 'Usage: lastName=''{lastName}'''
+ required: true
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/UpdatePersonLastNameResponse'
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: function
+ x-description: Provides operations to call the UpdatePersonLastName method.
+ '/NewComePeople/{UserName}/Trips':
+ get:
+ tags:
+ - NewComePeople.Trip
+ summary: List trips.
+ description: Retrieve a list of trips.
+ operationId: NewComePeople.ListTrips
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - $ref: '#/parameters/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:
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - PlanItems
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - NewComePeople.Trip
+ summary: Create a trip.
+ description: Create a new trip.
+ operationId: NewComePeople.CreateTrips
+ consumes:
+ - application/json
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New navigation property
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ responses:
+ '201':
+ description: Created navigation property.
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ '/NewComePeople/{UserName}/Trips/{TripId}':
+ get:
+ tags:
+ - NewComePeople.Trip
+ summary: Get a trip.
+ description: Retrieve the properties of a trip.
+ operationId: NewComePeople.GetTrips
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: 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: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - PlanItems
+ type: string
+ responses:
+ '200':
+ description: Retrieved navigation property
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - NewComePeople.Trip
+ summary: Update a trip.
+ description: Update an instance of a trip.
+ operationId: NewComePeople.UpdateTrips
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: 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: body
+ name: body
+ description: New navigation property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - NewComePeople.Trip
+ summary: Delete a trip.
+ description: Delete an instance of a trip.
+ operationId: NewComePeople.DeleteTrips
+ 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
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ '/NewComePeople/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
+ get:
+ tags:
+ - NewComePeople.Functions
+ summary: Invoke function GetInvolvedPeople
+ operationId: NewComePeople.Person.Trips.Trip.GetInvolvedPeople
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: 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
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ responses:
+ '200':
+ description: Success
+ schema:
+ title: Collection of Person
+ type: object
+ properties:
+ value:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: function
+ x-description: Provides operations to call the GetInvolvedPeople method.
+ '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems':
+ get:
+ tags:
+ - NewComePeople.Trips.PlanItem
+ summary: Get PlanItems from NewComePeople
+ operationId: NewComePeople.Trips.ListPlanItems
+ 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
+ - $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:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - ConfirmationCode
+ - StartsAt
+ - EndsAt
+ - Duration
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
+ '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
+ 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: path
+ name: PlanItemId
+ description: The unique identifier of PlanItem
+ required: true
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: PlanItem
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: query
+ name: '@id'
+ description: Delete Uri
+ 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/{TripId}/PlanItems/$count':
+ get:
+ tags:
+ - NewComePeople.Trips.PlanItem
+ summary: Get the number of the resource
+ operationId: NewComePeople.Trips.PlanItems.GetCount-841f
+ 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
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ x-description: Provides operations to count the resources in the collection.
+ '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$ref':
+ get:
+ tags:
+ - NewComePeople.Trips.PlanItem
+ summary: Get ref of PlanItems from NewComePeople
+ operationId: NewComePeople.Trips.ListRefPlanItems
+ 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
+ - $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:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/StringCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - NewComePeople.Trips.PlanItem
+ summary: Create new navigation property ref to PlanItems for NewComePeople
+ operationId: NewComePeople.Trips.CreateRefPlanItems
+ parameters:
+ - 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
+ - $ref: '#/parameters/refPostBody'
+ 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:
+ tags:
+ - NewComePeople.Trip
+ summary: Get the number of the resource
+ operationId: NewComePeople.Trips.GetCount-d155
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ x-description: Provides operations to count the resources in the collection.
+ /NewComePeople/$count:
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the number of the resource
+ operationId: NewComePeople.GetCount-55d5
+ parameters:
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ x-description: Provides operations to count the resources in the collection.
+ /People:
+ get:
+ tags:
+ - People.Person
+ summary: Get entities from People
+ operationId: People.Person.ListPerson
+ parameters:
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ post:
+ tags:
+ - People.Person
+ summary: Add new entity to People
+ operationId: People.Person.CreatePerson
+ consumes:
+ - application/json
+ produces:
+ - application/json
+ parameters:
+ - in: body
+ name: body
+ description: New entity
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ responses:
+ '201':
+ description: Created entity
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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}':
+ get:
+ tags:
+ - People.Person
+ summary: Get entity from People by key
+ operationId: People.Person.GetPerson
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Retrieved entity
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - People.Person
+ summary: Update entity in People
+ operationId: People.Person.UpdatePerson
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - People.Person
+ summary: Delete entity from People
+ operationId: People.Person.DeletePerson
+ parameters:
+ - 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
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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}/AddressInfo':
+ get:
+ tags:
+ - People.Location
+ summary: Get AddressInfo property value
+ operationId: People.ListAddressInfo
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Location
+ summary: Update property AddressInfo value.
+ operationId: People.UpdateAddressInfo
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ post:
+ tags:
+ - People.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: People.SetAddressInfo
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/AddressInfo/$count':
+ get:
+ tags:
+ - People.Location
+ summary: Get the number of the resource
+ operationId: People.AddressInfo.GetCount-ed5a
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - People.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.ListAddressInfo.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ get:
+ summary: Get the number of the resource
+ operationId: People.ListAddressInfo.GetCount.AsEventLocation-4abd
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/BestFriend':
+ get:
+ tags:
+ - People.Person
+ summary: Get BestFriend from People
+ description: The best friend.
+ operationId: People.GetBestFriend
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Retrieved navigation property
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - People.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: People.UpdateBestFriend
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New navigation property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend'
+ '/People/{UserName}/BestFriend/$ref':
+ get:
+ tags:
+ - People.Person
+ summary: Get ref of BestFriend from People
+ description: The best friend.
+ operationId: People.GetRefBestFriend
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ description: Retrieved navigation property link
+ schema:
+ type: string
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ put:
+ tags:
+ - People.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: People.UpdateRefBestFriend
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/refPutBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - People.Person
+ summary: Delete ref of navigation property BestFriend for People
+ operationId: People.DeleteRefBestFriend
+ parameters:
+ - 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
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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}/BestFriend/AddressInfo':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get AddressInfo property value
+ operationId: People.BestFriend.ListAddressInfo
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: People.BestFriend.UpdateAddressInfo
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ post:
+ tags:
+ - People.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: People.BestFriend.SetAddressInfo
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/BestFriend/AddressInfo/$count':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the number of the resource
+ operationId: People.BestFriend.AddressInfo.GetCount-16df
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.BestFriend.ListAddressInfo.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ get:
+ summary: Get the number of the resource
+ operationId: People.BestFriend.ListAddressInfo.GetCount.AsEventLocation-fe88
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/BestFriend/HomeAddress':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get HomeAddress property value
+ operationId: People.BestFriend.GetHomeAddress
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: People.BestFriend.UpdateHomeAddress
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.BestFriend.GetHomeAddress.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ get:
+ tags:
+ - People.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
+ operationId: People.GetBestFriend.AsEmployee
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to Employee.
+ '/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ get:
+ tags:
+ - People.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: People.GetBestFriend.AsManager
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to Manager.
+ '/People/{UserName}/Friends':
+ get:
+ tags:
+ - People.Person
+ summary: Get Friends from People
+ operationId: People.ListFriends
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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 Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends'
+ '/People/{UserName}/Friends/{UserName1}/$ref':
+ 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: path
+ name: UserName1
+ 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: Delete Uri
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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/{UserName1}/AddressInfo':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get AddressInfo property value
+ operationId: People.Friends.ListAddressInfo
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: People.Friends.UpdateAddressInfo
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ post:
+ tags:
+ - People.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: People.Friends.SetAddressInfo
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Friends/{UserName1}/AddressInfo/$count':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the number of the resource
+ operationId: People.Friends.AddressInfo.GetCount-bdaf
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.Friends.ListAddressInfo.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ get:
+ summary: Get the number of the resource
+ operationId: People.Friends.ListAddressInfo.GetCount.AsEventLocation-2795
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Friends/{UserName1}/HomeAddress':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get HomeAddress property value
+ operationId: People.Friends.GetHomeAddress
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: People.Friends.UpdateHomeAddress
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.Friends.GetHomeAddress.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ get:
+ tags:
+ - People.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
+ operationId: People.GetFriends.AsEmployee
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to Employee.
+ '/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ get:
+ tags:
+ - People.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: People.GetFriends.AsManager
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to Manager.
+ '/People/{UserName}/Friends/$count':
+ get:
+ tags:
+ - People.Person
+ summary: Get the number of the resource
+ operationId: People.Friends.GetCount-92b9
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Friends/$ref':
+ get:
+ tags:
+ - People.Person
+ summary: Get ref of Friends from People
+ operationId: People.ListRefFriends
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/StringCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - People.Person
+ summary: Create new navigation property ref to Friends for People
+ operationId: People.CreateRefFriends
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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:
+ tags:
+ - People.Person
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
+ operationId: People.ListFriends.AsEmployee
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to Employee.
+ '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count':
+ get:
+ tags:
+ - People.Person
+ summary: Get the number of the resource
+ operationId: People.ListFriends.GetCount.AsEmployee-a96c
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ get:
+ tags:
+ - People.Person
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
+ operationId: People.ListFriends.AsManager
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to Manager.
+ '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count':
+ get:
+ tags:
+ - People.Person
+ summary: Get the number of the resource
+ operationId: People.ListFriends.GetCount.AsManager-26b3
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/HomeAddress':
+ get:
+ tags:
+ - People.Location
+ summary: Get HomeAddress property value
+ operationId: People.GetHomeAddress
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Location
+ summary: Update property HomeAddress value.
+ operationId: People.UpdateHomeAddress
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - People.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.GetHomeAddress.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ get:
+ tags:
+ - People.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
+ operationId: People.Person.GetPerson.AsEmployee
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to Employee.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend':
+ get:
+ tags:
+ - People.Person
+ summary: Get BestFriend from People
+ description: The best friend.
+ operationId: People.GetBestFriend
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Retrieved navigation property
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - People.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: People.UpdateBestFriend
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New navigation property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/BestFriend'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/$ref':
+ get:
+ tags:
+ - People.Person
+ summary: Get ref of BestFriend from People
+ description: The best friend.
+ operationId: People.GetRefBestFriend
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ description: Retrieved navigation property link
+ schema:
+ type: string
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ put:
+ tags:
+ - People.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: People.UpdateRefBestFriend
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/refPutBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - People.Person
+ summary: Delete ref of navigation property BestFriend for People
+ operationId: People.DeleteRefBestFriend
+ parameters:
+ - 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
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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/BestFriend/AddressInfo':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get AddressInfo property value
+ operationId: People.BestFriend.ListAddressInfo
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: People.BestFriend.UpdateAddressInfo
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ post:
+ tags:
+ - People.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: People.BestFriend.SetAddressInfo
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/$count':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the number of the resource
+ operationId: People.BestFriend.AddressInfo.GetCount-cb8a
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.BestFriend.ListAddressInfo.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ get:
+ summary: Get the number of the resource
+ operationId: People.BestFriend.ListAddressInfo.GetCount.AsEventLocation-0343
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get HomeAddress property value
+ operationId: People.BestFriend.GetHomeAddress
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: People.BestFriend.UpdateHomeAddress
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.BestFriend.GetHomeAddress.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ get:
+ tags:
+ - People.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: People.GetBestFriend.AsManager
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to Manager.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends':
+ get:
+ tags:
+ - People.Person
+ summary: Get Friends from People
+ operationId: People.ListFriends
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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 Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Friends'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/$ref':
+ 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: path
+ name: UserName1
+ 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: Delete Uri
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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/{UserName1}/AddressInfo':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get AddressInfo property value
+ operationId: People.Friends.ListAddressInfo
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: People.Friends.UpdateAddressInfo
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ post:
+ tags:
+ - People.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: People.Friends.SetAddressInfo
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/$count':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the number of the resource
+ operationId: People.Friends.AddressInfo.GetCount-1e8b
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.Friends.ListAddressInfo.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ get:
+ summary: Get the number of the resource
+ operationId: People.Friends.ListAddressInfo.GetCount.AsEventLocation-1f2b
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/HomeAddress':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get HomeAddress property value
+ operationId: People.Friends.GetHomeAddress
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: People.Friends.UpdateHomeAddress
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.Friends.GetHomeAddress.AsEventLocation
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ get:
+ tags:
+ - People.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: People.GetFriends.AsManager
+ produces:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to Manager.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$count':
+ get:
+ tags:
+ - People.Person
+ summary: Get the number of the resource
+ operationId: People.Friends.GetCount-4db4
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$ref':
+ get:
+ tags:
+ - People.Person
+ summary: Get ref of Friends from People
+ operationId: People.ListRefFriends
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/StringCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - People.Person
+ summary: Create new navigation property ref to Friends for People
+ operationId: People.CreateRefFriends
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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:
+ tags:
+ - People.Person
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
+ operationId: People.ListFriends.AsManager
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Casts the previous resource to Manager.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count':
+ get:
+ tags:
+ - People.Person
+ summary: Get the number of the resource
+ operationId: People.ListFriends.GetCount.AsManager-b145
+ parameters:
- in: path
name: UserName
description: The unique identifier of Person
required: true
type: string
x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers':
+ get:
+ tags:
+ - People.Person
+ summary: Get Peers from People
+ operationId: People.ListPeers
+ parameters:
- in: path
- name: TripId
- description: The unique identifier of Trip
+ name: UserName
+ description: The unique identifier of Person
required: true
- type: integer
- format: int32
- maximum: 2147483647
- minimum: -2147483648
- x-ms-docs-key-type: Trip
+ type: string
+ x-ms-docs-key-type: Person
- $ref: '#/parameters/top'
- $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
@@ -6960,16 +14272,28 @@ paths:
type: array
items:
enum:
- - PlanItemId
- - PlanItemId desc
- - ConfirmationCode
- - ConfirmationCode desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
- - Duration
- - Duration desc
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
type: string
- in: query
name: $select
@@ -6977,11 +14301,20 @@ paths:
type: array
items:
enum:
- - PlanItemId
- - ConfirmationCode
- - StartsAt
- - EndsAt
- - Duration
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
type: string
- in: query
name: $expand
@@ -6990,20 +14323,29 @@ paths:
items:
enum:
- '*'
+ - Friends
+ - BestFriend
+ - Trips
type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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 PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
- '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
+ x-description: Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/$ref':
delete:
tags:
- - NewComePeople.Trips.PlanItem
- summary: Delete ref of navigation property PlanItems for NewComePeople
- operationId: NewComePeople.Trips.DeleteRefPlanItems
+ - People.Person
+ summary: Delete ref of navigation property Peers for People
+ operationId: People.DeleteRefPeers
parameters:
- in: path
name: UserName
@@ -7012,23 +14354,11 @@ paths:
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: path
- name: PlanItemId
- description: The unique identifier of PlanItem
+ name: UserName1
+ description: The unique identifier of Person
required: true
- type: integer
- format: int32
- maximum: 2147483647
- minimum: -2147483648
- x-ms-docs-key-type: PlanItem
+ type: string
+ x-ms-docs-key-type: Person
- in: header
name: If-Match
description: ETag
@@ -7042,14 +14372,20 @@ paths:
description: Success
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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.
- '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$count':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo':
get:
tags:
- - NewComePeople.Trips.PlanItem
- summary: Get the number of the resource
- operationId: NewComePeople.Trips.PlanItems.GetCount-841f
+ - People.Person.Location
+ summary: Get AddressInfo property value
+ operationId: People.Peers.ListAddressInfo
parameters:
- in: path
name: UserName
@@ -7058,77 +14394,62 @@ paths:
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
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- responses:
- '200':
- $ref: '#/responses/ODataCountResponse'
- default:
- $ref: '#/responses/error'
- x-description: Provides operations to count the resources in the collection.
- '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$ref':
- get:
- tags:
- - NewComePeople.Trips.PlanItem
- summary: Get ref of PlanItems from NewComePeople
- operationId: NewComePeople.Trips.ListRefPlanItems
- parameters:
- - in: path
- name: UserName
+ name: UserName1
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
- $ref: '#/parameters/top'
- $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
- $ref: '#/parameters/count'
- in: query
- name: $orderby
- description: Order items by property values
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
type: array
items:
enum:
- - PlanItemId
- - PlanItemId desc
- - ConfirmationCode
- - ConfirmationCode desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
- - Duration
- - Duration desc
+ - Address
+ - City
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
type: string
responses:
'200':
- $ref: '#/responses/StringCollectionResponse'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
default:
$ref: '#/responses/error'
- x-ms-docs-operation-type: operation
- post:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
tags:
- - NewComePeople.Trips.PlanItem
- summary: Create new navigation property ref to PlanItems for NewComePeople
- operationId: NewComePeople.Trips.CreateRefPlanItems
+ - People.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: People.Peers.UpdateAddressInfo
+ consumes:
+ - application/json
parameters:
- in: path
name: UserName
@@ -7137,28 +14458,37 @@ paths:
type: string
x-ms-docs-key-type: Person
- in: path
- name: TripId
- description: The unique identifier of Trip
+ name: UserName1
+ description: The unique identifier of Person
required: true
- type: integer
- format: int32
- maximum: 2147483647
- minimum: -2147483648
- x-ms-docs-key-type: Trip
- - $ref: '#/parameters/refPostBody'
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
'204':
description: Success
default:
$ref: '#/responses/error'
- x-ms-docs-operation-type: operation
- x-description: Provides operations to manage the collection of Person entities.
- '/NewComePeople/{UserName}/Trips/$count':
- get:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ post:
tags:
- - NewComePeople.Trip
- summary: Get the number of the resource
- operationId: NewComePeople.Trips.GetCount-d155
+ - People.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: People.Peers.SetAddressInfo
+ consumes:
+ - application/json
parameters:
- in: path
name: UserName
@@ -7166,25 +14496,54 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
- in: header
- name: ConsistencyLevel
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ name: If-Match
+ description: ETag
type: string
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
- '200':
- $ref: '#/responses/ODataCountResponse'
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
- x-description: Provides operations to count the resources in the collection.
- /NewComePeople/$count:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/$count':
get:
tags:
- - NewComePeople.Person
+ - People.Person.Location
summary: Get the number of the resource
- operationId: NewComePeople.GetCount-55d5
+ operationId: People.Peers.AddressInfo.GetCount-755d
parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
responses:
@@ -7192,87 +14551,35 @@ paths:
$ref: '#/responses/ODataCountResponse'
default:
$ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
x-description: Provides operations to count the resources in the collection.
- /People:
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
get:
tags:
- - People.Person
- summary: Get entities from People
- operationId: People.Person.ListPerson
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.Peers.ListAddressInfo.AsEventLocation
parameters:
- - in: header
- name: ConsistencyLevel
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
type: string
- - $ref: '#/parameters/top'
- - $ref: '#/parameters/skip'
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- - $ref: '#/parameters/count'
- - in: query
- name: $orderby
- description: Order items by property values
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
- - in: query
- name: $select
- description: Select properties to be returned
- type: array
- items:
- enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - in: query
- name: $expand
- description: Expand related entities
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
- type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -7281,27 +14588,29 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- post:
- tags:
- - People.Person
- summary: Add new entity to People
- operationId: People.Person.CreatePerson
- consumes:
- - application/json
- produces:
- - application/json
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ get:
+ summary: Get the number of the resource
+ operationId: People.Peers.ListAddressInfo.GetCount.AsEventLocation-ef5e
parameters:
- - in: body
- name: body
- description: New entity
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
required: true
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
responses:
- '201':
- description: Created entity
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ '200':
+ $ref: '#/responses/ODataCountResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -7310,14 +14619,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: 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}':
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress':
get:
tags:
- - People.Person
- summary: Get entity from People by key
- operationId: People.Person.GetPerson
+ - People.Person.Location
+ summary: Get HomeAddress property value
+ operationId: People.Peers.GetHomeAddress
produces:
- application/json
parameters:
@@ -7327,30 +14635,20 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: header
- name: ConsistencyLevel
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
type: string
+ x-ms-docs-key-type: Person
- in: query
name: $select
description: Select properties to be returned
type: array
items:
enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
+ - Address
+ - City
type: string
- in: query
name: $expand
@@ -7359,15 +14657,12 @@ paths:
items:
enum:
- '*'
- - Friends
- - BestFriend
- - Trips
type: string
responses:
'200':
- description: Retrieved entity
+ description: Result entities
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
default:
$ref: '#/responses/error'
deprecated: true
@@ -7376,12 +14671,11 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: operation
patch:
tags:
- - People.Person
- summary: Update entity in People
- operationId: People.Person.UpdatePerson
+ - People.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: People.Peers.UpdateHomeAddress
consumes:
- application/json
parameters:
@@ -7391,12 +14685,18 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
- in: body
name: body
description: New property values
required: true
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
'204':
description: Success
@@ -7408,12 +14708,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: operation
- delete:
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
tags:
- - People.Person
- summary: Delete entity from People
- operationId: People.Person.DeletePerson
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.Peers.GetHomeAddress.AsEventLocation
parameters:
- in: path
name: UserName
@@ -7421,13 +14721,15 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: header
- name: If-Match
- description: ETag
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
type: string
+ x-ms-docs-key-type: Person
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -7436,14 +14738,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: 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}/AddressInfo':
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count':
get:
tags:
- - People.Location
- summary: Get AddressInfo property value
- operationId: People.ListAddressInfo
+ - People.Person
+ summary: Get the number of the resource
+ operationId: People.Peers.GetCount-44d2
parameters:
- in: path
name: UserName
@@ -7451,42 +14752,11 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - $ref: '#/parameters/top'
- - $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
- - $ref: '#/parameters/count'
- - in: query
- name: $orderby
- description: Order items by property values
- type: array
- items:
- enum:
- - Address
- - Address desc
- - City
- - City desc
- type: string
- - in: query
- name: $select
- description: Select properties to be returned
- type: array
- items:
- enum:
- - Address
- - City
- type: string
- - in: query
- name: $expand
- description: Expand related entities
- type: array
- items:
- enum:
- - '*'
- type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ $ref: '#/responses/ODataCountResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -7495,13 +14765,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- patch:
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref':
+ get:
tags:
- - People.Location
- summary: Update property AddressInfo value.
- operationId: People.UpdateAddressInfo
- consumes:
- - application/json
+ - People.Person
+ summary: Get ref of Peers from People
+ operationId: People.ListRefPeers
parameters:
- in: path
name: UserName
@@ -7509,17 +14779,43 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: body
- name: body
- description: New property values
- required: true
- schema:
- type: array
- items:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/responses/StringCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -7528,13 +14824,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
post:
tags:
- - People.Location
- summary: Sets a new value for the collection of Location.
- operationId: People.SetAddressInfo
- consumes:
- - application/json
+ - People.Person
+ summary: Create new navigation property ref to Peers for People
+ operationId: People.CreateRefPeers
parameters:
- in: path
name: UserName
@@ -7542,18 +14837,7 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: header
- name: If-Match
- description: ETag
- type: string
- - in: body
- name: body
- description: New property values
- required: true
- schema:
- type: array
- items:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ - $ref: '#/parameters/refPostBody'
responses:
'204':
description: Success
@@ -7565,12 +14849,15 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/AddressInfo/$count':
+ 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:
tags:
- - People.Location
- summary: Get the number of the resource
- operationId: People.AddressInfo.GetCount-ed5a
+ - People.Trip
+ summary: List trips.
+ description: Retrieve a list of trips.
+ operationId: People.ListTrips
parameters:
- in: path
name: UserName
@@ -7578,11 +14865,66 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - $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:
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - PlanItems
+ type: string
responses:
'200':
- $ref: '#/responses/ODataCountResponse'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -7591,13 +14933,17 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Provides operations to count the resources in the collection.
- '/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- get:
+ x-ms-docs-operation-type: operation
+ post:
tags:
- - People.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.ListAddressInfo.AsEventLocation
+ - People.Trip
+ summary: Create a trip.
+ description: Create a new trip.
+ operationId: People.CreateTrips
+ consumes:
+ - application/json
+ produces:
+ - application/json
parameters:
- in: path
name: UserName
@@ -7605,34 +14951,17 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- responses:
- '200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Casts the previous resource to EventLocation.
- '/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
- get:
- summary: Get the number of the resource
- operationId: People.ListAddressInfo.GetCount.AsEventLocation-4abd
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
+ - in: body
+ name: body
+ description: New navigation property
required: true
- type: string
- x-ms-docs-key-type: Person
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
responses:
- '200':
- $ref: '#/responses/ODataCountResponse'
+ '201':
+ description: Created navigation property.
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/responses/error'
deprecated: true
@@ -7641,14 +14970,18 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Provides operations to count the resources in the collection.
- '/People/{UserName}/BestFriend':
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips'
+ - '/People/{UserName}/Trips'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}':
get:
tags:
- - People.Person
- summary: Get BestFriend from People
- description: The best friend.
- operationId: People.GetBestFriend
+ - People.Trip
+ summary: Get a trip.
+ description: Retrieve the properties of a trip.
+ operationId: People.GetTrips
produces:
- application/json
parameters:
@@ -7658,26 +14991,30 @@ paths:
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: query
name: $select
description: Select properties to be returned
type: array
items:
enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
type: string
- in: query
name: $expand
@@ -7686,15 +15023,13 @@ paths:
items:
enum:
- '*'
- - Friends
- - BestFriend
- - Trips
+ - PlanItems
type: string
responses:
'200':
description: Retrieved navigation property
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/responses/error'
deprecated: true
@@ -7706,10 +15041,10 @@ paths:
x-ms-docs-operation-type: operation
patch:
tags:
- - People.Person
- summary: Update the best friend.
- description: Update an instance of a best friend.
- operationId: People.UpdateBestFriend
+ - People.Trip
+ summary: Update a trip.
+ description: Update an instance of a trip.
+ operationId: People.UpdateTrips
consumes:
- application/json
parameters:
@@ -7719,12 +15054,21 @@ paths:
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: body
name: body
description: New navigation property values
required: true
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
responses:
'204':
description: Success
@@ -7737,16 +15081,12 @@ 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
- x-description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
- '/People/{UserName}/BestFriend/$ref':
- get:
+ delete:
tags:
- - People.Person
- summary: Get ref of BestFriend from People
- description: The best friend.
- operationId: People.GetRefBestFriend
- produces:
- - application/json
+ - People.Trip
+ summary: Delete a trip.
+ description: Delete an instance of a trip.
+ operationId: People.DeleteTrips
parameters:
- in: path
name: UserName
@@ -7754,34 +15094,19 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- responses:
- '200':
- description: Retrieved navigation property link
- schema:
- type: string
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: operation
- put:
- tags:
- - People.Person
- summary: Update the best friend.
- description: Update an instance of a best friend.
- operationId: People.UpdateRefBestFriend
- parameters:
- in: path
- name: UserName
- description: The unique identifier of Person
+ 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
- x-ms-docs-key-type: Person
- - $ref: '#/parameters/refPutBody'
responses:
'204':
description: Success
@@ -7794,11 +15119,18 @@ 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:
+ x-description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}'
+ - '/People/{UserName}/Trips/{TripId}'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
+ get:
tags:
- - People.Person
- summary: Delete ref of navigation property BestFriend for People
- operationId: People.DeleteRefBestFriend
+ - People.Functions
+ summary: Invoke function GetInvolvedPeople
+ operationId: People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee.Trips.Trip.GetInvolvedPeople
+ produces:
+ - application/json
parameters:
- in: path
name: UserName
@@ -7806,13 +15138,81 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: header
- name: If-Match
- description: ETag
- type: string
+ - 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
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
responses:
- '204':
+ '200':
description: Success
+ schema:
+ title: Collection of Person
+ type: object
+ properties:
+ value:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
default:
$ref: '#/responses/error'
deprecated: true
@@ -7821,14 +15221,17 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: 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}/BestFriend/AddressInfo':
+ x-ms-docs-operation-type: function
+ x-description: Provides operations to call the GetInvolvedPeople method.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ - '/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems':
get:
tags:
- - People.Person.Location
- summary: Get AddressInfo property value
- operationId: People.BestFriend.ListAddressInfo
+ - People.Trips.PlanItem
+ summary: Get PlanItems from People
+ operationId: People.Trips.ListPlanItems
parameters:
- in: path
name: UserName
@@ -7836,6 +15239,15 @@ paths:
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
- $ref: '#/parameters/top'
- $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
@@ -7847,10 +15259,16 @@ paths:
type: array
items:
enum:
- - Address
- - Address desc
- - City
- - City desc
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
type: string
- in: query
name: $select
@@ -7858,8 +15276,11 @@ paths:
type: array
items:
enum:
- - Address
- - City
+ - PlanItemId
+ - ConfirmationCode
+ - StartsAt
+ - EndsAt
+ - Duration
type: string
- in: query
name: $expand
@@ -7871,7 +15292,7 @@ paths:
type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -7880,13 +15301,17 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- patch:
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems'
+ - '/People/{UserName}/Trips/{TripId}/PlanItems'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
+ delete:
tags:
- - People.Person.Location
- summary: Update property AddressInfo value.
- operationId: People.BestFriend.UpdateAddressInfo
- consumes:
- - application/json
+ - People.Trips.PlanItem
+ summary: Delete ref of navigation property PlanItems for People
+ operationId: People.Trips.DeleteRefPlanItems
parameters:
- in: path
name: UserName
@@ -7894,14 +15319,32 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: body
- name: body
- description: New property values
+ - in: path
+ name: TripId
+ description: The unique identifier of Trip
required: true
- schema:
- type: array
- items:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: Trip
+ - in: path
+ name: PlanItemId
+ description: The unique identifier of PlanItem
+ required: true
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: PlanItem
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: query
+ name: '@id'
+ description: Delete Uri
+ type: string
responses:
'204':
description: Success
@@ -7913,13 +15356,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- post:
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the collection of Person entities.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$count':
+ get:
tags:
- - People.Person.Location
- summary: Sets a new value for the collection of Location.
- operationId: People.BestFriend.SetAddressInfo
- consumes:
- - application/json
+ - People.Trips.PlanItem
+ summary: Get the number of the resource
+ operationId: People.Trips.PlanItems.GetCount-7df9
parameters:
- in: path
name: UserName
@@ -7927,21 +15371,20 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: header
- name: If-Match
- description: ETag
- type: string
- - in: body
- name: body
- description: New property values
+ - in: path
+ name: TripId
+ description: The unique identifier of Trip
required: true
- schema:
- type: array
- items:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: Trip
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/responses/ODataCountResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -7950,12 +15393,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/BestFriend/AddressInfo/$count':
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$ref':
get:
tags:
- - People.Person.Location
- summary: Get the number of the resource
- operationId: People.BestFriend.AddressInfo.GetCount-16df
+ - People.Trips.PlanItem
+ summary: Get ref of PlanItems from People
+ operationId: People.Trips.ListRefPlanItems
parameters:
- in: path
name: UserName
@@ -7963,11 +15407,40 @@ paths:
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
+ - $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:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
responses:
'200':
- $ref: '#/responses/ODataCountResponse'
+ $ref: '#/responses/StringCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -7976,13 +15449,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Provides operations to count the resources in the collection.
- '/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- get:
+ x-ms-docs-operation-type: operation
+ post:
tags:
- - People.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.BestFriend.ListAddressInfo.AsEventLocation
+ - People.Trips.PlanItem
+ summary: Create new navigation property ref to PlanItems for People
+ operationId: People.Trips.CreateRefPlanItems
parameters:
- in: path
name: UserName
@@ -7990,9 +15462,19 @@ paths:
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
+ - $ref: '#/parameters/refPostBody'
responses:
- '200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
deprecated: true
@@ -8001,11 +15483,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Casts the previous resource to EventLocation.
- '/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ 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:
+ tags:
+ - People.Trip
summary: Get the number of the resource
- operationId: People.BestFriend.ListAddressInfo.GetCount.AsEventLocation-fe88
+ operationId: People.Trips.GetCount-c760
parameters:
- in: path
name: UserName
@@ -8013,6 +15498,10 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
responses:
@@ -8027,43 +15516,22 @@ paths:
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
x-description: Provides operations to count the resources in the collection.
- '/People/{UserName}/BestFriend/HomeAddress':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()':
get:
tags:
- - People.Person.Location
- summary: Get HomeAddress property value
- operationId: People.BestFriend.GetHomeAddress
- produces:
- - application/json
+ - People.Functions
+ summary: Invoke function GetFavoriteAirline
+ operationId: People.Person.GetFavoriteAirline
parameters:
- in: path
name: UserName
description: The unique identifier of Person
required: true
type: string
- x-ms-docs-key-type: Person
- - in: query
- name: $select
- description: Select properties to be returned
- type: array
- items:
- enum:
- - Address
- - City
- type: string
- - in: query
- name: $expand
- description: Expand related entities
- type: array
- items:
- enum:
- - '*'
- type: string
+ x-ms-docs-key-type: Person
responses:
'200':
- description: Result entities
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ $ref: '#/responses/GetFavoriteAirlineResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -8072,13 +15540,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- patch:
+ x-ms-docs-operation-type: function
+ x-description: Provides operations to call the GetFavoriteAirline method.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')':
+ get:
tags:
- - People.Person.Location
- summary: Update property HomeAddress value.
- operationId: People.BestFriend.UpdateHomeAddress
- consumes:
- - application/json
+ - People.Functions
+ summary: Invoke function GetFriendsTrips
+ operationId: People.Person.GetFriendsTrips
parameters:
- in: path
name: UserName
@@ -8086,15 +15555,58 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: body
- name: body
- description: New property values
+ - in: path
+ name: userName
+ description: 'Usage: userName=''{userName}'''
required: true
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ type: string
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ type: string
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/responses/GetFriendsTripsResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -8103,12 +15615,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- get:
+ x-ms-docs-operation-type: function
+ x-description: Provides operations to call the GetFriendsTrips method.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip':
+ post:
tags:
- - People.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.BestFriend.GetHomeAddress.AsEventLocation
+ - People.Actions
+ summary: Invoke action GetPeersForTrip
+ operationId: People.Person.GetPeersForTrip
parameters:
- in: path
name: UserName
@@ -8116,9 +15630,10 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - $ref: '#/parameters/GetPeersForTripRequestBody'
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ $ref: '#/responses/GetPeersForTripResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -8127,13 +15642,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Casts the previous resource to EventLocation.
- '/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ x-ms-docs-operation-type: action
+ x-description: Provides operations to call the GetPeersForTrip method.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
get:
tags:
- People.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
- operationId: People.GetBestFriend.AsEmployee
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: People.Person.GetPerson.AsManager
produces:
- application/json
parameters:
@@ -8143,6 +15659,10 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
- in: query
name: $select
description: Select properties to be returned
@@ -8179,7 +15699,7 @@ paths:
'200':
description: Result entities
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
default:
$ref: '#/responses/error'
deprecated: true
@@ -8188,13 +15708,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Casts the previous resource to Employee.
- '/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ x-description: Casts the previous resource to Manager.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend':
get:
tags:
- People.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
- operationId: People.GetBestFriend.AsManager
+ summary: Get BestFriend from People
+ description: The best friend.
+ operationId: People.GetBestFriend
produces:
- application/json
parameters:
@@ -8238,9 +15759,9 @@ paths:
type: string
responses:
'200':
- description: Result entities
+ description: Retrieved navigation property
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
default:
$ref: '#/responses/error'
deprecated: true
@@ -8249,13 +15770,53 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Casts the previous resource to Manager.
- '/People/{UserName}/Friends':
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - People.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: People.UpdateBestFriend
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New navigation property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/BestFriend'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/$ref':
get:
tags:
- People.Person
- summary: Get Friends from People
- operationId: People.ListFriends
+ summary: Get ref of BestFriend from People
+ description: The best friend.
+ operationId: People.GetRefBestFriend
+ produces:
+ - application/json
parameters:
- in: path
name: UserName
@@ -8263,75 +15824,11 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - $ref: '#/parameters/top'
- - $ref: '#/parameters/skip'
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- - $ref: '#/parameters/count'
- - in: query
- name: $orderby
- description: Order items by property values
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
- - in: query
- name: $select
- description: Select properties to be returned
- type: array
- items:
- enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - in: query
- name: $expand
- description: Expand related entities
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
- type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ description: Retrieved navigation property link
+ schema:
+ type: string
default:
$ref: '#/responses/error'
deprecated: true
@@ -8341,13 +15838,12 @@ 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
- x-description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
- '/People/{UserName}/Friends/{UserName1}/$ref':
- delete:
+ put:
tags:
- People.Person
- summary: Delete ref of navigation property Friends for People
- operationId: People.DeleteRefFriends
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: People.UpdateRefBestFriend
parameters:
- in: path
name: UserName
@@ -8355,8 +15851,27 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - $ref: '#/parameters/refPutBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - People.Person
+ summary: Delete ref of navigation property BestFriend for People
+ operationId: People.DeleteRefBestFriend
+ parameters:
- in: path
- name: UserName1
+ name: UserName
description: The unique identifier of Person
required: true
type: string
@@ -8365,10 +15880,6 @@ paths:
name: If-Match
description: ETag
type: string
- - in: query
- name: '@id'
- description: Delete Uri
- type: string
responses:
'204':
description: Success
@@ -8382,12 +15893,12 @@ paths:
description: 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/{UserName1}/AddressInfo':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo':
get:
tags:
- People.Person.Location
summary: Get AddressInfo property value
- operationId: People.Friends.ListAddressInfo
+ operationId: People.BestFriend.ListAddressInfo
parameters:
- in: path
name: UserName
@@ -8395,12 +15906,6 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- $ref: '#/parameters/top'
- $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
@@ -8449,7 +15954,7 @@ paths:
tags:
- People.Person.Location
summary: Update property AddressInfo value.
- operationId: People.Friends.UpdateAddressInfo
+ operationId: People.BestFriend.UpdateAddressInfo
consumes:
- application/json
parameters:
@@ -8459,12 +15964,6 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: body
name: body
description: New property values
@@ -8488,7 +15987,7 @@ paths:
tags:
- People.Person.Location
summary: Sets a new value for the collection of Location.
- operationId: People.Friends.SetAddressInfo
+ operationId: People.BestFriend.SetAddressInfo
consumes:
- application/json
parameters:
@@ -8498,12 +15997,6 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: header
name: If-Match
description: ETag
@@ -8527,74 +16020,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Friends/{UserName1}/AddressInfo/$count':
- get:
- tags:
- - People.Person.Location
- summary: Get the number of the resource
- operationId: People.Friends.AddressInfo.GetCount-bdaf
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- responses:
- '200':
- $ref: '#/responses/ODataCountResponse'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Provides operations to count the resources in the collection.
- '/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/$count':
get:
tags:
- People.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.Friends.ListAddressInfo.AsEventLocation
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- responses:
- '200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Casts the previous resource to EventLocation.
- '/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
- get:
summary: Get the number of the resource
- operationId: People.Friends.ListAddressInfo.GetCount.AsEventLocation-2795
+ operationId: People.BestFriend.AddressInfo.GetCount-5a39
parameters:
- in: path
name: UserName
@@ -8602,12 +16033,10 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
type: string
- x-ms-docs-key-type: Person
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
responses:
@@ -8622,100 +16051,12 @@ paths:
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
x-description: Provides operations to count the resources in the collection.
- '/People/{UserName}/Friends/{UserName1}/HomeAddress':
- get:
- tags:
- - People.Person.Location
- summary: Get HomeAddress property value
- operationId: People.Friends.GetHomeAddress
- produces:
- - application/json
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: query
- name: $select
- description: Select properties to be returned
- type: array
- items:
- enum:
- - Address
- - City
- type: string
- - in: query
- name: $expand
- description: Expand related entities
- type: array
- items:
- enum:
- - '*'
- type: string
- responses:
- '200':
- description: Result entities
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- patch:
- tags:
- - People.Person.Location
- summary: Update property HomeAddress value.
- operationId: People.Friends.UpdateHomeAddress
- consumes:
- - application/json
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: body
- name: body
- description: New property values
- required: true
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- responses:
- '204':
- description: Success
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
get:
tags:
- People.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.Friends.GetHomeAddress.AsEventLocation
+ operationId: People.BestFriend.ListAddressInfo.AsEventLocation
parameters:
- in: path
name: UserName
@@ -8723,12 +16064,6 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
responses:
'200':
$ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
@@ -8741,64 +16076,26 @@ paths:
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
x-description: Casts the previous resource to EventLocation.
- '/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
- get:
- tags:
- - People.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
- operationId: People.GetFriends.AsEmployee
- produces:
- - application/json
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: query
- name: $select
- description: Select properties to be returned
- type: array
- items:
- enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - in: query
- name: $expand
- description: Expand related entities
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
- type: string
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ get:
+ summary: Get the number of the resource
+ operationId: People.BestFriend.ListAddressInfo.GetCount.AsEventLocation-5af3
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
responses:
'200':
- description: Result entities
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ $ref: '#/responses/ODataCountResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -8807,13 +16104,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Casts the previous resource to Employee.
- '/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress':
get:
tags:
- - People.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
- operationId: People.GetFriends.AsManager
+ - People.Person.Location
+ summary: Get HomeAddress property value
+ operationId: People.BestFriend.GetHomeAddress
produces:
- application/json
parameters:
@@ -8823,32 +16120,14 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: query
name: $select
description: Select properties to be returned
type: array
items:
enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
+ - Address
+ - City
type: string
- in: query
name: $expand
@@ -8857,15 +16136,12 @@ paths:
items:
enum:
- '*'
- - Friends
- - BestFriend
- - Trips
type: string
responses:
'200':
description: Result entities
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
default:
$ref: '#/responses/error'
deprecated: true
@@ -8874,13 +16150,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Casts the previous resource to Manager.
- '/People/{UserName}/Friends/$count':
- get:
+ patch:
tags:
- - People.Person
- summary: Get the number of the resource
- operationId: People.Friends.GetCount-92b9
+ - People.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: People.BestFriend.UpdateHomeAddress
+ consumes:
+ - application/json
parameters:
- in: path
name: UserName
@@ -8888,11 +16164,15 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
- '200':
- $ref: '#/responses/ODataCountResponse'
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
deprecated: true
@@ -8901,13 +16181,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Provides operations to count the resources in the collection.
- '/People/{UserName}/Friends/$ref':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
get:
tags:
- - People.Person
- summary: Get ref of Friends from People
- operationId: People.ListRefFriends
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.BestFriend.GetHomeAddress.AsEventLocation
parameters:
- in: path
name: UserName
@@ -8915,68 +16194,9 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - $ref: '#/parameters/top'
- - $ref: '#/parameters/skip'
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- - $ref: '#/parameters/count'
- - in: query
- name: $orderby
- description: Order items by property values
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
responses:
'200':
- $ref: '#/responses/StringCollectionResponse'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: operation
- post:
- tags:
- - People.Person
- summary: Create new navigation property ref to Friends for People
- operationId: People.CreateRefFriends
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - $ref: '#/parameters/refPostBody'
- responses:
- '204':
- description: Success
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -8985,14 +16205,15 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: 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':
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
get:
tags:
- People.Person
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
- operationId: People.ListFriends.AsEmployee
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
+ operationId: People.GetBestFriend.AsEmployee
+ produces:
+ - application/json
parameters:
- in: path
name: UserName
@@ -9000,40 +16221,6 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - $ref: '#/parameters/top'
- - $ref: '#/parameters/skip'
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- - $ref: '#/parameters/count'
- - in: query
- name: $orderby
- description: Order items by property values
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
- in: query
name: $select
description: Select properties to be returned
@@ -9068,7 +16255,9 @@ paths:
type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse'
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
default:
$ref: '#/responses/error'
deprecated: true
@@ -9078,39 +16267,12 @@ paths:
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
x-description: Casts the previous resource to Employee.
- '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count':
- get:
- tags:
- - People.Person
- summary: Get the number of the resource
- operationId: People.ListFriends.GetCount.AsEmployee-a96c
- parameters:
- - in: path
- name: UserName
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- responses:
- '200':
- $ref: '#/responses/ODataCountResponse'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Provides operations to count the resources in the collection.
- '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports':
get:
tags:
- People.Person
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
- operationId: People.ListFriends.AsManager
+ summary: Get DirectReports from People
+ operationId: People.ListDirectReports
parameters:
- in: path
name: UserName
@@ -9186,7 +16348,7 @@ paths:
type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -9195,25 +16357,38 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Casts the previous resource to Manager.
- '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count':
- get:
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/$ref':
+ delete:
tags:
- People.Person
- summary: Get the number of the resource
- operationId: People.ListFriends.GetCount.AsManager-26b3
+ 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
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ 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: Delete Uri
+ type: string
responses:
- '200':
- $ref: '#/responses/ODataCountResponse'
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
deprecated: true
@@ -9222,15 +16397,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Provides operations to count the resources in the collection.
- '/People/{UserName}/HomeAddress':
+ 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/DirectReports/{UserName1}/AddressInfo':
get:
tags:
- - People.Location
- summary: Get HomeAddress property value
- operationId: People.GetHomeAddress
- produces:
- - application/json
+ - People.Person.Location
+ summary: Get AddressInfo property value
+ operationId: People.DirectReports.ListAddressInfo
parameters:
- in: path
name: UserName
@@ -9238,6 +16412,28 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
- in: query
name: $select
description: Select properties to be returned
@@ -9257,9 +16453,7 @@ paths:
type: string
responses:
'200':
- description: Result entities
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -9270,9 +16464,9 @@ paths:
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
patch:
tags:
- - People.Location
- summary: Update property HomeAddress value.
- operationId: People.UpdateHomeAddress
+ - People.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: People.DirectReports.UpdateAddressInfo
consumes:
- application/json
parameters:
@@ -9282,12 +16476,20 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
- in: body
name: body
description: New property values
required: true
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
'204':
description: Success
@@ -9299,12 +16501,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- get:
+ post:
tags:
- - People.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.GetHomeAddress.AsEventLocation
+ - People.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: People.DirectReports.SetAddressInfo
+ consumes:
+ - application/json
parameters:
- in: path
name: UserName
@@ -9312,9 +16515,27 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
- '200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
deprecated: true
@@ -9323,15 +16544,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Casts the previous resource to EventLocation.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/$count':
get:
tags:
- - People.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
- operationId: People.Person.GetPerson.AsEmployee
- produces:
- - application/json
+ - People.Person.Location
+ summary: Get the number of the resource
+ operationId: People.DirectReports.AddressInfo.GetCount-f46e
parameters:
- in: path
name: UserName
@@ -9339,47 +16557,21 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
- in: header
name: ConsistencyLevel
description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
type: string
- - in: query
- name: $select
- description: Select properties to be returned
- type: array
- items:
- enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - in: query
- name: $expand
- description: Expand related entities
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
- type: string
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
responses:
'200':
- description: Result entities
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ $ref: '#/responses/ODataCountResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -9388,13 +16580,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Casts the previous resource to Employee.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers':
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
get:
tags:
- - People.Person
- summary: Get Peers from People
- operationId: People.ListPeers
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.DirectReports.ListAddressInfo.AsEventLocation
parameters:
- in: path
name: UserName
@@ -9402,75 +16594,15 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - $ref: '#/parameters/top'
- - $ref: '#/parameters/skip'
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- - $ref: '#/parameters/count'
- - in: query
- name: $orderby
- description: Order items by property values
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
- - in: query
- name: $select
- description: Select properties to be returned
- type: array
- items:
- enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - in: query
- name: $expand
- description: Expand related entities
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
- type: string
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -9479,14 +16611,11 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: operation
- x-description: Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/$ref':
- delete:
- tags:
- - People.Person
- summary: Delete ref of navigation property Peers for People
- operationId: People.DeleteRefPeers
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ get:
+ summary: Get the number of the resource
+ operationId: People.DirectReports.ListAddressInfo.GetCount.AsEventLocation-5d49
parameters:
- in: path
name: UserName
@@ -9501,16 +16630,14 @@ paths:
type: string
x-ms-docs-key-type: Person
- in: header
- name: If-Match
- description: ETag
- type: string
- - in: query
- name: '@id'
- description: Delete Uri
+ 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:
- '204':
- description: Success
+ '200':
+ $ref: '#/responses/ODataCountResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -9519,14 +16646,15 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: 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/Peers/{UserName1}/AddressInfo':
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress':
get:
tags:
- People.Person.Location
- summary: Get AddressInfo property value
- operationId: People.Peers.ListAddressInfo
+ summary: Get HomeAddress property value
+ operationId: People.DirectReports.GetHomeAddress
+ produces:
+ - application/json
parameters:
- in: path
name: UserName
@@ -9540,22 +16668,6 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - $ref: '#/parameters/top'
- - $ref: '#/parameters/skip'
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- - $ref: '#/parameters/count'
- - in: query
- name: $orderby
- description: Order items by property values
- type: array
- items:
- enum:
- - Address
- - Address desc
- - City
- - City desc
- type: string
- in: query
name: $select
description: Select properties to be returned
@@ -9575,7 +16687,9 @@ paths:
type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
default:
$ref: '#/responses/error'
deprecated: true
@@ -9587,8 +16701,8 @@ paths:
patch:
tags:
- People.Person.Location
- summary: Update property AddressInfo value.
- operationId: People.Peers.UpdateAddressInfo
+ summary: Update property HomeAddress value.
+ operationId: People.DirectReports.UpdateHomeAddress
consumes:
- application/json
parameters:
@@ -9609,9 +16723,7 @@ paths:
description: New property values
required: true
schema:
- type: array
- items:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
'204':
description: Success
@@ -9623,13 +16735,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- post:
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
tags:
- People.Person.Location
- summary: Sets a new value for the collection of Location.
- operationId: People.Peers.SetAddressInfo
- consumes:
- - application/json
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.DirectReports.GetHomeAddress.AsEventLocation
parameters:
- in: path
name: UserName
@@ -9643,21 +16754,9 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: header
- name: If-Match
- description: ETag
- type: string
- - in: body
- name: body
- description: New property values
- required: true
- schema:
- type: array
- items:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -9666,12 +16765,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/$count':
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count':
get:
tags:
- - People.Person.Location
+ - People.Person
summary: Get the number of the resource
- operationId: People.Peers.AddressInfo.GetCount-755d
+ operationId: People.DirectReports.GetCount-0ec4
parameters:
- in: path
name: UserName
@@ -9679,17 +16779,70 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref':
+ get:
+ tags:
+ - People.Person
+ summary: Get ref of DirectReports from People
+ operationId: People.ListRefDirectReports
+ parameters:
- in: path
- name: UserName1
+ name: UserName
description: The unique identifier of Person
required: true
type: string
x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
responses:
'200':
- $ref: '#/responses/ODataCountResponse'
+ $ref: '#/responses/StringCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -9698,13 +16851,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Provides operations to count the resources in the collection.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- get:
+ x-ms-docs-operation-type: operation
+ post:
tags:
- - People.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.Peers.ListAddressInfo.AsEventLocation
+ - People.Person
+ summary: Create new navigation property ref to DirectReports for People
+ operationId: People.CreateRefDirectReports
parameters:
- in: path
name: UserName
@@ -9712,15 +16864,102 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - $ref: '#/parameters/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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:
+ tags:
+ - People.Person
+ summary: Get Friends from People
+ operationId: People.ListFriends
+ parameters:
- in: path
- name: UserName1
+ name: UserName
description: The unique identifier of Person
required: true
type: string
x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -9729,11 +16968,17 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Casts the previous resource to EventLocation.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
- get:
- summary: Get the number of the resource
- operationId: People.Peers.ListAddressInfo.GetCount.AsEventLocation-ef5e
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Friends'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/$ref':
+ delete:
+ tags:
+ - People.Person
+ summary: Delete ref of navigation property Friends for People
+ operationId: People.DeleteRefFriends
parameters:
- in: path
name: UserName
@@ -9747,11 +16992,17 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: query
+ name: '@id'
+ description: Delete Uri
+ type: string
responses:
- '200':
- $ref: '#/responses/ODataCountResponse'
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
deprecated: true
@@ -9760,15 +17011,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Provides operations to count the resources in the collection.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress':
+ 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/{UserName1}/AddressInfo':
get:
tags:
- People.Person.Location
- summary: Get HomeAddress property value
- operationId: People.Peers.GetHomeAddress
- produces:
- - application/json
+ summary: Get AddressInfo property value
+ operationId: People.Friends.ListAddressInfo
parameters:
- in: path
name: UserName
@@ -9782,6 +17032,22 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
- in: query
name: $select
description: Select properties to be returned
@@ -9801,9 +17067,7 @@ paths:
type: string
responses:
'200':
- description: Result entities
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -9815,8 +17079,8 @@ paths:
patch:
tags:
- People.Person.Location
- summary: Update property HomeAddress value.
- operationId: People.Peers.UpdateHomeAddress
+ summary: Update property AddressInfo value.
+ operationId: People.Friends.UpdateAddressInfo
consumes:
- application/json
parameters:
@@ -9837,7 +17101,9 @@ paths:
description: New property values
required: true
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
'204':
description: Success
@@ -9849,12 +17115,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- get:
+ post:
tags:
- People.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.Peers.GetHomeAddress.AsEventLocation
+ summary: Sets a new value for the collection of Location.
+ operationId: People.Friends.SetAddressInfo
+ consumes:
+ - application/json
parameters:
- in: path
name: UserName
@@ -9868,9 +17135,21 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - in: header
+ name: If-Match
+ description: ETag
+ type: string
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
responses:
- '200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
deprecated: true
@@ -9879,13 +17158,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Casts the previous resource to EventLocation.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/$count':
get:
tags:
- - People.Person
+ - People.Person.Location
summary: Get the number of the resource
- operationId: People.Peers.GetCount-44d2
+ operationId: People.Friends.AddressInfo.GetCount-f486
parameters:
- in: path
name: UserName
@@ -9893,6 +17171,12 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
responses:
@@ -9907,12 +17191,12 @@ paths:
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
x-description: Provides operations to count the resources in the collection.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
get:
tags:
- - People.Person
- summary: Get ref of Peers from People
- operationId: People.ListRefPeers
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.Friends.ListAddressInfo.AsEventLocation
parameters:
- in: path
name: UserName
@@ -9920,68 +17204,15 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - $ref: '#/parameters/top'
- - $ref: '#/parameters/skip'
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- - $ref: '#/parameters/count'
- - in: query
- name: $orderby
- description: Order items by property values
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
- responses:
- '200':
- $ref: '#/responses/StringCollectionResponse'
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: operation
- post:
- tags:
- - People.Person
- summary: Create new navigation property ref to Peers for People
- operationId: People.CreateRefPeers
- parameters:
- in: path
- name: UserName
+ name: UserName1
description: The unique identifier of Person
required: true
type: string
x-ms-docs-key-type: Person
- - $ref: '#/parameters/refPostBody'
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -9990,14 +17221,11 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: 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.GetFavoriteAirline()':
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
get:
- tags:
- - People.Functions
- summary: Invoke function GetFavoriteAirline
- operationId: People.Person.GetFavoriteAirline
+ summary: Get the number of the resource
+ operationId: People.Friends.ListAddressInfo.GetCount.AsEventLocation-4480
parameters:
- in: path
name: UserName
@@ -10005,9 +17233,17 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
responses:
'200':
- $ref: '#/responses/GetFavoriteAirlineResponse'
+ $ref: '#/responses/ODataCountResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -10016,14 +17252,15 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: function
- x-description: Provides operations to call the GetFavoriteAirline method.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')':
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/HomeAddress':
get:
tags:
- - People.Functions
- summary: Invoke function GetFriendsTrips
- operationId: People.Person.GetFriendsTrips
+ - People.Person.Location
+ summary: Get HomeAddress property value
+ operationId: People.Friends.GetHomeAddress
+ produces:
+ - application/json
parameters:
- in: path
name: UserName
@@ -10032,57 +17269,70 @@ paths:
type: string
x-ms-docs-key-type: Person
- in: path
- name: userName
- description: 'Usage: userName=''{userName}'''
+ name: UserName1
+ description: The unique identifier of Person
required: true
type: string
- - $ref: '#/parameters/top'
- - $ref: '#/parameters/skip'
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
- - $ref: '#/parameters/count'
+ x-ms-docs-key-type: Person
- in: query
name: $select
description: Select properties to be returned
type: array
items:
enum:
- - TripId
- - ShareId
- - Name
- - Budget
- - Description
- - Tags
- - StartsAt
- - EndsAt
- - PlanItems
+ - Address
+ - City
type: string
- in: query
- name: $orderby
- description: Order items by property values
+ name: $expand
+ description: Expand related entities
type: array
items:
enum:
- - TripId
- - TripId desc
- - ShareId
- - ShareId desc
- - Name
- - Name desc
- - Budget
- - Budget desc
- - Description
- - Description desc
- - Tags
- - Tags desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
+ - '*'
type: string
responses:
'200':
- $ref: '#/responses/GetFriendsTripsResponse'
+ description: Result entities
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: People.Friends.UpdateHomeAddress
+ consumes:
+ - application/json
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - in: body
+ name: body
+ description: New property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ responses:
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
deprecated: true
@@ -10091,14 +17341,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: function
- x-description: Provides operations to call the GetFriendsTrips method.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip':
- post:
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ get:
tags:
- - People.Actions
- summary: Invoke action GetPeersForTrip
- operationId: People.Person.GetPeersForTrip
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.Friends.GetHomeAddress.AsEventLocation
parameters:
- in: path
name: UserName
@@ -10106,10 +17354,15 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - $ref: '#/parameters/GetPeersForTripRequestBody'
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
responses:
'200':
- $ref: '#/responses/GetPeersForTripResponse'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -10118,14 +17371,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: action
- x-description: Provides operations to call the GetPeersForTrip method.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ x-description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
get:
tags:
- People.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
- operationId: People.Person.GetPerson.AsManager
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
+ operationId: People.GetFriends.AsEmployee
produces:
- application/json
parameters:
@@ -10135,10 +17387,12 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: header
- name: ConsistencyLevel
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ - in: path
+ name: UserName1
+ description: The unique identifier of Person
+ required: true
type: string
+ x-ms-docs-key-type: Person
- in: query
name: $select
description: Select properties to be returned
@@ -10175,7 +17429,7 @@ paths:
'200':
description: Result entities
schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
default:
$ref: '#/responses/error'
deprecated: true
@@ -10184,13 +17438,125 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Casts the previous resource to Manager.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports':
+ x-description: Casts the previous resource to Employee.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$count':
get:
tags:
- People.Person
- summary: Get DirectReports from People
- operationId: People.ListDirectReports
+ summary: Get the number of the resource
+ operationId: People.Friends.GetCount-1c0c
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$ref':
+ get:
+ tags:
+ - People.Person
+ summary: Get ref of Friends from People
+ operationId: People.ListRefFriends
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/responses/StringCollectionResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - People.Person
+ summary: Create new navigation property ref to Friends for People
+ operationId: People.CreateRefFriends
+ parameters:
+ - in: path
+ name: UserName
+ description: The unique identifier of Person
+ required: true
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/parameters/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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:
+ tags:
+ - People.Person
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
+ operationId: People.ListFriends.AsEmployee
parameters:
- in: path
name: UserName
@@ -10266,7 +17632,7 @@ paths:
type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -10275,14 +17641,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: 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 DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/$ref':
- delete:
+ x-description: Casts the previous resource to Employee.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count':
+ get:
tags:
- People.Person
- summary: Delete ref of navigation property DirectReports for People
- operationId: People.DeleteRefDirectReports
+ summary: Get the number of the resource
+ operationId: People.ListFriends.GetCount.AsEmployee-f325
parameters:
- in: path
name: UserName
@@ -10290,20 +17655,45 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/responses/ODataCountResponse'
+ default:
+ $ref: '#/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire':
+ post:
+ tags:
+ - People.Actions
+ summary: Invoke action Hire
+ description: Hires someone for the company.
+ operationId: People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire
+ consumes:
+ - application/json
+ parameters:
- in: path
- name: UserName1
+ 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: Delete Uri
- type: string
+ - in: body
+ name: body
+ description: Action parameters
+ required: true
+ schema:
+ type: object
+ properties:
+ hire:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
responses:
'204':
description: Success
@@ -10315,14 +17705,15 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: 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/DirectReports/{UserName1}/AddressInfo':
+ x-ms-docs-operation-type: action
+ x-description: Provides operations to call the Hire method.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips':
get:
tags:
- - People.Person.Location
- summary: Get AddressInfo property value
- operationId: People.DirectReports.ListAddressInfo
+ - People.Trip
+ summary: List trips.
+ description: Retrieve a list of trips.
+ operationId: People.ListTrips
parameters:
- in: path
name: UserName
@@ -10330,12 +17721,10 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
type: string
- x-ms-docs-key-type: Person
- $ref: '#/parameters/top'
- $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
@@ -10347,10 +17736,22 @@ paths:
type: array
items:
enum:
- - Address
- - Address desc
- - City
- - City desc
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
type: string
- in: query
name: $select
@@ -10358,8 +17759,15 @@ paths:
type: array
items:
enum:
- - Address
- - City
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
type: string
- in: query
name: $expand
@@ -10368,10 +17776,11 @@ paths:
items:
enum:
- '*'
+ - PlanItems
type: string
responses:
'200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -10380,13 +17789,17 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- patch:
+ x-ms-docs-operation-type: operation
+ post:
tags:
- - People.Person.Location
- summary: Update property AddressInfo value.
- operationId: People.DirectReports.UpdateAddressInfo
+ - People.Trip
+ summary: Create a trip.
+ description: Create a new trip.
+ operationId: People.CreateTrips
consumes:
- application/json
+ produces:
+ - application/json
parameters:
- in: path
name: UserName
@@ -10394,23 +17807,17 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- in: body
name: body
- description: New property values
+ description: New navigation property
required: true
schema:
- type: array
- items:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
responses:
- '204':
- description: Success
+ '201':
+ description: Created navigation property.
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/responses/error'
deprecated: true
@@ -10419,12 +17826,19 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- post:
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips'
+ - '/People/{UserName}/Trips'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}':
+ get:
tags:
- - People.Person.Location
- summary: Sets a new value for the collection of Location.
- operationId: People.DirectReports.SetAddressInfo
- consumes:
+ - People.Trip
+ summary: Get a trip.
+ description: Retrieve the properties of a trip.
+ operationId: People.GetTrips
+ produces:
- application/json
parameters:
- in: path
@@ -10434,26 +17848,44 @@ paths:
type: string
x-ms-docs-key-type: Person
- in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: header
- name: If-Match
- description: ETag
- type: string
- - in: body
- name: body
- description: New property values
+ name: TripId
+ description: The unique identifier of Trip
required: true
- schema:
- type: array
- items:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: Trip
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - in: query
+ name: $expand
+ description: Expand related entities
+ type: array
+ items:
+ enum:
+ - '*'
+ - PlanItems
+ type: string
responses:
- '204':
- description: Success
+ '200':
+ description: Retrieved navigation property
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/responses/error'
deprecated: true
@@ -10462,12 +17894,15 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/$count':
- get:
+ x-ms-docs-operation-type: operation
+ patch:
tags:
- - People.Person.Location
- summary: Get the number of the resource
- operationId: People.DirectReports.AddressInfo.GetCount-f46e
+ - People.Trip
+ summary: Update a trip.
+ description: Update an instance of a trip.
+ operationId: People.UpdateTrips
+ consumes:
+ - application/json
parameters:
- in: path
name: UserName
@@ -10476,16 +17911,23 @@ paths:
type: string
x-ms-docs-key-type: Person
- in: path
- name: UserName1
- description: The unique identifier of Person
+ name: TripId
+ description: The unique identifier of Trip
required: true
- type: string
- x-ms-docs-key-type: Person
- - $ref: '#/parameters/search'
- - $ref: '#/parameters/filter'
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: Trip
+ - in: body
+ name: body
+ description: New navigation property values
+ required: true
+ schema:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
responses:
- '200':
- $ref: '#/responses/ODataCountResponse'
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
deprecated: true
@@ -10494,13 +17936,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Provides operations to count the resources in the collection.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- get:
+ x-ms-docs-operation-type: operation
+ delete:
tags:
- - People.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.DirectReports.ListAddressInfo.AsEventLocation
+ - People.Trip
+ summary: Delete a trip.
+ description: Delete an instance of a trip.
+ operationId: People.DeleteTrips
parameters:
- in: path
name: UserName
@@ -10509,14 +17951,21 @@ paths:
type: string
x-ms-docs-key-type: Person
- in: path
- name: UserName1
- description: The unique identifier of Person
+ 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
- x-ms-docs-key-type: Person
responses:
- '200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
deprecated: true
@@ -10525,11 +17974,19 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Casts the previous resource to EventLocation.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}'
+ - '/People/{UserName}/Trips/{TripId}'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
get:
- summary: Get the number of the resource
- operationId: People.DirectReports.ListAddressInfo.GetCount.AsEventLocation-5d49
+ tags:
+ - People.Functions
+ summary: Invoke function GetInvolvedPeople
+ operationId: People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Trips.Trip.GetInvolvedPeople
+ produces:
+ - application/json
parameters:
- in: path
name: UserName
@@ -10538,16 +17995,80 @@ paths:
type: string
x-ms-docs-key-type: Person
- in: path
- name: UserName1
- description: The unique identifier of Person
+ name: TripId
+ description: The unique identifier of Trip
required: true
- type: string
- x-ms-docs-key-type: Person
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: Trip
+ - $ref: '#/parameters/top'
+ - $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
+ - $ref: '#/parameters/count'
+ - in: query
+ name: $select
+ description: Select properties to be returned
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - in: query
+ name: $orderby
+ description: Order items by property values
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
responses:
'200':
- $ref: '#/responses/ODataCountResponse'
+ description: Success
+ schema:
+ title: Collection of Person
+ type: object
+ properties:
+ value:
+ type: array
+ items:
+ $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
default:
$ref: '#/responses/error'
deprecated: true
@@ -10556,15 +18077,17 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Provides operations to count the resources in the collection.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress':
+ x-ms-docs-operation-type: function
+ x-description: Provides operations to call the GetInvolvedPeople method.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ - '/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems':
get:
tags:
- - People.Person.Location
- summary: Get HomeAddress property value
- operationId: People.DirectReports.GetHomeAddress
- produces:
- - application/json
+ - People.Trips.PlanItem
+ summary: Get PlanItems from People
+ operationId: People.Trips.ListPlanItems
parameters:
- in: path
name: UserName
@@ -10573,19 +18096,47 @@ paths:
type: string
x-ms-docs-key-type: Person
- in: path
- name: UserName1
- description: The unique identifier of Person
+ name: TripId
+ description: The unique identifier of Trip
required: true
- type: string
- x-ms-docs-key-type: Person
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: Trip
+ - $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:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
- in: query
name: $select
description: Select properties to be returned
type: array
items:
enum:
- - Address
- - City
+ - PlanItemId
+ - ConfirmationCode
+ - StartsAt
+ - EndsAt
+ - Duration
type: string
- in: query
name: $expand
@@ -10597,9 +18148,7 @@ paths:
type: string
responses:
'200':
- description: Result entities
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -10608,13 +18157,17 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- patch:
+ x-ms-docs-operation-type: operation
+ x-description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems'
+ - '/People/{UserName}/Trips/{TripId}/PlanItems'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
+ delete:
tags:
- - People.Person.Location
- summary: Update property HomeAddress value.
- operationId: People.DirectReports.UpdateHomeAddress
- consumes:
- - application/json
+ - People.Trips.PlanItem
+ summary: Delete ref of navigation property PlanItems for People
+ operationId: People.Trips.DeleteRefPlanItems
parameters:
- in: path
name: UserName
@@ -10623,50 +18176,34 @@ paths:
type: string
x-ms-docs-key-type: Person
- in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
- type: string
- x-ms-docs-key-type: Person
- - in: body
- name: body
- description: New property values
+ name: TripId
+ description: The unique identifier of Trip
required: true
- schema:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- responses:
- '204':
- description: Success
- default:
- $ref: '#/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- get:
- tags:
- - People.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.DirectReports.GetHomeAddress.AsEventLocation
- parameters:
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: Trip
- in: path
- name: UserName
- description: The unique identifier of Person
+ name: PlanItemId
+ description: The unique identifier of PlanItem
required: true
+ type: integer
+ format: int32
+ maximum: 2147483647
+ minimum: -2147483648
+ x-ms-docs-key-type: PlanItem
+ - in: header
+ name: If-Match
+ description: ETag
type: string
- x-ms-docs-key-type: Person
- - in: path
- name: UserName1
- description: The unique identifier of Person
- required: true
+ - in: query
+ name: '@id'
+ description: Delete Uri
type: string
- x-ms-docs-key-type: Person
responses:
- '200':
- $ref: '#/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ '204':
+ description: Success
default:
$ref: '#/responses/error'
deprecated: true
@@ -10675,13 +18212,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-description: Casts the previous resource to EventLocation.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count':
+ 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/{TripId}/PlanItems/$count':
get:
tags:
- - People.Person
+ - People.Trips.PlanItem
summary: Get the number of the resource
- operationId: People.DirectReports.GetCount-0ec4
+ operationId: People.Trips.PlanItems.GetCount-fa08
parameters:
- in: path
name: UserName
@@ -10689,6 +18227,15 @@ paths:
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
- $ref: '#/parameters/search'
- $ref: '#/parameters/filter'
responses:
@@ -10703,12 +18250,12 @@ paths:
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
x-description: Provides operations to count the resources in the collection.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$ref':
get:
tags:
- - People.Person
- summary: Get ref of DirectReports from People
- operationId: People.ListRefDirectReports
+ - People.Trips.PlanItem
+ summary: Get ref of PlanItems from People
+ operationId: People.Trips.ListRefPlanItems
parameters:
- in: path
name: UserName
@@ -10716,6 +18263,15 @@ paths:
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
- $ref: '#/parameters/top'
- $ref: '#/parameters/skip'
- $ref: '#/parameters/search'
@@ -10727,28 +18283,16 @@ paths:
type: array
items:
enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
type: string
responses:
'200':
@@ -10764,9 +18308,9 @@ paths:
x-ms-docs-operation-type: operation
post:
tags:
- - People.Person
- summary: Create new navigation property ref to DirectReports for People
- operationId: People.CreateRefDirectReports
+ - People.Trips.PlanItem
+ summary: Create new navigation property ref to PlanItems for People
+ operationId: People.Trips.CreateRefPlanItems
parameters:
- in: path
name: UserName
@@ -10774,6 +18318,15 @@ paths:
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
- $ref: '#/parameters/refPostBody'
responses:
'204':
@@ -10788,15 +18341,12 @@ paths:
description: 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/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire':
- post:
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count':
+ get:
tags:
- - People.Actions
- summary: Invoke action Hire
- description: Hires someone for the company.
- operationId: People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire
- consumes:
- - application/json
+ - People.Trip
+ summary: Get the number of the resource
+ operationId: People.Trips.GetCount-1f8c
parameters:
- in: path
name: UserName
@@ -10804,18 +18354,15 @@ paths:
required: true
type: string
x-ms-docs-key-type: Person
- - in: body
- name: body
- description: Action parameters
- required: true
- schema:
- type: object
- properties:
- hire:
- $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ - in: header
+ name: ConsistencyLevel
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ type: string
+ - $ref: '#/parameters/search'
+ - $ref: '#/parameters/filter'
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/responses/ODataCountResponse'
default:
$ref: '#/responses/error'
deprecated: true
@@ -10824,8 +18371,7 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: action
- x-description: Provides operations to call the Hire method.
+ x-description: Provides operations to count the resources in the collection.
'/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip':
post:
tags:
@@ -11006,6 +18552,9 @@ paths:
description: 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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips'
'/People/{UserName}/Trips/{TripId}':
get:
tags:
@@ -11151,6 +18700,9 @@ paths:
description: 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 Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}'
'/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
get:
tags:
@@ -11251,6 +18803,9 @@ paths:
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
x-ms-docs-operation-type: function
x-description: Provides operations to call the GetInvolvedPeople method.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
'/People/{UserName}/Trips/{TripId}/PlanItems':
get:
tags:
@@ -11328,6 +18883,9 @@ paths:
description: 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 PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems'
'/People/{UserName}/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
delete:
tags:
@@ -12542,14 +20100,14 @@ tags:
x-ms-docs-toc-type: page
- name: Me.Person.Location
x-ms-docs-toc-type: page
- - name: Me.Functions
- x-ms-docs-toc-type: container
- - name: Me.Actions
- x-ms-docs-toc-type: container
- name: Me.Trip
x-ms-docs-toc-type: page
+ - name: Me.Functions
+ x-ms-docs-toc-type: container
- name: Me.Trips.PlanItem
x-ms-docs-toc-type: page
+ - name: Me.Actions
+ x-ms-docs-toc-type: container
- name: NewComePeople.Person
x-ms-docs-toc-type: page
- name: NewComePeople.Location
@@ -12570,13 +20128,13 @@ tags:
x-ms-docs-toc-type: page
- name: People.Person.Location
x-ms-docs-toc-type: page
- - name: People.Functions
- x-ms-docs-toc-type: container
- - name: People.Actions
- x-ms-docs-toc-type: container
- name: People.Trip
x-ms-docs-toc-type: page
+ - name: People.Functions
+ x-ms-docs-toc-type: container
- name: People.Trips.PlanItem
x-ms-docs-toc-type: page
+ - name: People.Actions
+ x-ms-docs-toc-type: container
- name: ResetDataSource
x-ms-docs-toc-type: container
\ No newline at end of file
diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json
index 2610e558..16cdedff 100644
--- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json
+++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json
@@ -1962,7 +1962,11 @@
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
},
"x-ms-docs-operation-type": "operation"
- }
+ },
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend"
+ ]
},
"/Me/BestFriend/$ref": {
"description": "Provides operations to manage the collection of Person entities.",
@@ -2747,7 +2751,11 @@
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
},
"x-ms-docs-operation-type": "operation"
- }
+ },
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends"
+ ]
},
"/Me/Friends/{UserName}/$ref": {
"description": "Provides operations to manage the collection of Person entities.",
@@ -4157,68 +4165,16 @@
}
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers": {
- "description": "Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity.",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend": {
+ "description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
"get": {
"tags": [
"Me.Person"
],
- "summary": "Get Peers from Me",
- "operationId": "Me.ListPeers",
+ "summary": "Get BestFriend from Me",
+ "description": "The best friend.",
+ "operationId": "Me.GetBestFriend",
"parameters": [
- {
- "$ref": "#/components/parameters/top"
- },
- {
- "$ref": "#/components/parameters/skip"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- },
- {
- "$ref": "#/components/parameters/count"
- },
- {
- "name": "$orderby",
- "in": "query",
- "description": "Order items by property values",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
- ],
- "type": "string"
- }
- }
- },
{
"name": "$select",
"in": "query",
@@ -4272,7 +4228,14 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ "description": "Retrieved navigation property",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
},
"default": {
"$ref": "#/components/responses/error"
@@ -4286,27 +4249,114 @@
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
},
"x-ms-docs-operation-type": "operation"
- }
+ },
+ "patch": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "Me.UpdateBestFriend",
+ "requestBody": {
+ "description": "New navigation property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/Me/BestFriend",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend"
+ ]
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/$ref": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/$ref": {
"description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get ref of BestFriend from Me",
+ "description": "The best friend.",
+ "operationId": "Me.GetRefBestFriend",
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property link",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "put": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "Me.UpdateRefBestFriend",
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPutBody"
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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",
+ "summary": "Delete ref of navigation property BestFriend for Me",
+ "operationId": "Me.DeleteRefBestFriend",
"parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
{
"name": "If-Match",
"in": "header",
@@ -4314,14 +4364,6 @@
"schema": {
"type": "string"
}
- },
- {
- "name": "@id",
- "in": "query",
- "description": "Delete Uri",
- "schema": {
- "type": "string"
- }
}
],
"responses": {
@@ -4342,24 +4384,14 @@
"x-ms-docs-operation-type": "operation"
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo": {
"get": {
"tags": [
"Me.Person.Location"
],
"summary": "Get AddressInfo property value",
- "operationId": "Me.Peers.ListAddressInfo",
+ "operationId": "Me.BestFriend.ListAddressInfo",
"parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
{
"$ref": "#/components/parameters/top"
},
@@ -4452,19 +4484,7 @@
"Me.Person.Location"
],
"summary": "Update property AddressInfo value.",
- "operationId": "Me.Peers.UpdateAddressInfo",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
+ "operationId": "Me.BestFriend.UpdateAddressInfo",
"requestBody": {
"description": "New property values",
"content": {
@@ -4500,18 +4520,8 @@
"Me.Person.Location"
],
"summary": "Sets a new value for the collection of Location.",
- "operationId": "Me.Peers.SetAddressInfo",
+ "operationId": "Me.BestFriend.SetAddressInfo",
"parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
{
"name": "If-Match",
"in": "header",
@@ -4552,25 +4562,15 @@
}
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/$count": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/$count": {
"description": "Provides operations to count the resources in the collection.",
"get": {
"tags": [
"Me.Person.Location"
],
"summary": "Get the number of the resource",
- "operationId": "Me.Peers.AddressInfo.GetCount-3e91",
+ "operationId": "Me.BestFriend.AddressInfo.GetCount-81de",
"parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
{
"$ref": "#/components/parameters/search"
},
@@ -4595,26 +4595,14 @@
}
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"description": "Casts the previous resource to EventLocation.",
"get": {
"tags": [
"Me.Person.Location"
],
"summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "Me.Peers.ListAddressInfo.AsEventLocation",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
+ "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation",
"responses": {
"200": {
"$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
@@ -4632,22 +4620,12 @@
}
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
"description": "Provides operations to count the resources in the collection.",
"get": {
"summary": "Get the number of the resource",
- "operationId": "Me.Peers.ListAddressInfo.GetCount.AsEventLocation-be1d",
+ "operationId": "Me.BestFriend.ListAddressInfo.GetCount.AsEventLocation-842c",
"parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
{
"$ref": "#/components/parameters/search"
},
@@ -4672,24 +4650,14 @@
}
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress": {
"get": {
"tags": [
"Me.Person.Location"
],
"summary": "Get HomeAddress property value",
- "operationId": "Me.Peers.GetHomeAddress",
+ "operationId": "Me.BestFriend.GetHomeAddress",
"parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
{
"name": "$select",
"in": "query",
@@ -4754,19 +4722,7 @@
"Me.Person.Location"
],
"summary": "Update property HomeAddress value.",
- "operationId": "Me.Peers.UpdateHomeAddress",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
+ "operationId": "Me.BestFriend.UpdateHomeAddress",
"requestBody": {
"description": "New property values",
"content": {
@@ -4795,26 +4751,14 @@
}
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"description": "Casts the previous resource to EventLocation.",
"get": {
"tags": [
"Me.Person.Location"
],
"summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "Me.Peers.GetHomeAddress.AsEventLocation",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
+ "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation",
"responses": {
"200": {
"$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
@@ -4832,25 +4776,76 @@
}
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count": {
- "description": "Provides operations to count the resources in the collection.",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "description": "Casts the previous resource to Manager.",
"get": {
"tags": [
"Me.Person"
],
- "summary": "Get the number of the resource",
- "operationId": "Me.Peers.GetCount-9fc2",
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "Me.GetBestFriend.AsManager",
"parameters": [
{
- "$ref": "#/components/parameters/search"
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
},
{
- "$ref": "#/components/parameters/filter"
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
}
],
"responses": {
"200": {
- "$ref": "#/components/responses/ODataCountResponse"
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ }
+ }
+ }
},
"default": {
"$ref": "#/components/responses/error"
@@ -4865,14 +4860,14 @@
}
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref": {
- "description": "Provides operations to manage the collection of Person entities.",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends": {
+ "description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
"get": {
"tags": [
"Me.Person"
],
- "summary": "Get ref of Peers from Me",
- "operationId": "Me.ListRefPeers",
+ "summary": "Get Friends from Me",
+ "operationId": "Me.ListFriends",
"parameters": [
{
"$ref": "#/components/parameters/top"
@@ -4926,11 +4921,61 @@
"type": "string"
}
}
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
}
],
"responses": {
"200": {
- "$ref": "#/components/responses/StringCollectionResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -4945,44 +4990,50 @@
},
"x-ms-docs-operation-type": "operation"
},
- "post": {
+ "x-ms-docs-grouped-path": [
+ "/Me/Friends",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "delete": {
"tags": [
"Me.Person"
],
- "summary": "Create new navigation property ref to Peers for Me",
- "operationId": "Me.CreateRefPeers",
- "requestBody": {
- "$ref": "#/components/requestBodies/refPostBody"
- },
- "responses": {
- "204": {
- "description": "Success"
+ "summary": "Delete ref of navigation property Friends for Me",
+ "operationId": "Me.DeleteRefFriends",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
},
- "default": {
- "$ref": "#/components/responses/error"
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "@id",
+ "in": "query",
+ "description": "Delete Uri",
+ "schema": {
+ "type": "string"
+ }
}
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "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.GetFavoriteAirline()": {
- "description": "Provides operations to call the GetFavoriteAirline method.",
- "get": {
- "tags": [
- "Me.Functions"
],
- "summary": "Invoke function GetFavoriteAirline",
- "operationId": "Me.GetFavoriteAirline",
"responses": {
- "200": {
- "$ref": "#/components/responses/GetFavoriteAirlineResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
@@ -4995,26 +5046,26 @@
"version": "2021-05/me",
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
},
- "x-ms-docs-operation-type": "function"
+ "x-ms-docs-operation-type": "operation"
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName='{userName}')": {
- "description": "Provides operations to call the GetFriendsTrips method.",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo": {
"get": {
"tags": [
- "Me.Functions"
+ "Me.Person.Location"
],
- "summary": "Invoke function GetFriendsTrips",
- "operationId": "Me.GetFriendsTrips",
+ "summary": "Get AddressInfo property value",
+ "operationId": "Me.Friends.ListAddressInfo",
"parameters": [
{
- "name": "userName",
+ "name": "UserName",
"in": "path",
- "description": "Usage: userName='{userName}'",
+ "description": "The unique identifier of Person",
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/components/parameters/top"
@@ -5031,6 +5082,26 @@
{
"$ref": "#/components/parameters/count"
},
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
{
"name": "$select",
"in": "query",
@@ -5042,24 +5113,17 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "ShareId",
- "Name",
- "Budget",
- "Description",
- "Tags",
- "StartsAt",
- "EndsAt",
- "PlanItems"
+ "Address",
+ "City"
],
"type": "string"
}
}
},
{
- "name": "$orderby",
+ "name": "$expand",
"in": "query",
- "description": "Order items by property values",
+ "description": "Expand related entities",
"style": "form",
"explode": false,
"schema": {
@@ -5067,22 +5131,7 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "TripId desc",
- "ShareId",
- "ShareId desc",
- "Name",
- "Name desc",
- "Budget",
- "Budget desc",
- "Description",
- "Description desc",
- "Tags",
- "Tags desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc"
+ "*"
],
"type": "string"
}
@@ -5091,7 +5140,7 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/GetFriendsTripsResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -5103,24 +5152,43 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/me",
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "function"
- }
- },
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": {
- "description": "Provides operations to call the GetPeersForTrip method.",
- "post": {
+ }
+ },
+ "patch": {
"tags": [
- "Me.Actions"
+ "Me.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "Me.Friends.UpdateAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
],
- "summary": "Invoke action GetPeersForTrip",
- "operationId": "Me.GetPeersForTrip",
"requestBody": {
- "$ref": "#/components/requestBodies/GetPeersForTripRequestBody"
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
},
"responses": {
- "200": {
- "$ref": "#/components/responses/GetPeersForTripResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
@@ -5132,81 +5200,52 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/me",
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "action"
- }
- },
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
- "description": "Casts the previous resource to Manager.",
- "get": {
+ }
+ },
+ "post": {
"tags": [
- "Me.Person"
+ "Me.Person.Location"
],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
- "operationId": "Me.Person.GetPerson.AsManager",
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "Me.Friends.SetAddressInfo",
"parameters": [
{
- "name": "$select",
- "in": "query",
- "description": "Select properties to be returned",
- "style": "form",
- "explode": false,
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
},
{
- "name": "$expand",
- "in": "query",
- "description": "Expand related entities",
- "style": "form",
- "explode": false,
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
"schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
+ "type": "string"
}
}
],
- "responses": {
- "200": {
- "description": "Result entities",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
}
}
}
},
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
"default": {
"$ref": "#/components/responses/error"
}
@@ -5220,122 +5259,72 @@
}
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports": {
- "description": "Provides operations to manage the DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity.",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/$count": {
+ "description": "Provides operations to count the resources in the collection.",
"get": {
"tags": [
- "Me.Person"
+ "Me.Person.Location"
],
- "summary": "Get DirectReports from Me",
- "operationId": "Me.ListDirectReports",
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Friends.AddressInfo.GetCount-660e",
"parameters": [
{
- "$ref": "#/components/parameters/top"
- },
- {
- "$ref": "#/components/parameters/skip"
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/components/parameters/search"
},
{
"$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
},
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.Friends.ListAddressInfo.AsEventLocation",
+ "parameters": [
{
- "$ref": "#/components/parameters/count"
- },
- {
- "name": "$orderby",
- "in": "query",
- "description": "Order items by property values",
- "style": "form",
- "explode": false,
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
- ],
- "type": "string"
- }
- }
- },
- {
- "name": "$select",
- "in": "query",
- "description": "Select properties to be returned",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
- },
- {
- "name": "$expand",
- "in": "query",
- "description": "Expand related entities",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -5347,18 +5336,14 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/me",
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "operation"
+ }
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/$ref": {
- "description": "Provides operations to manage the collection of Person entities.",
- "delete": {
- "tags": [
- "Me.Person"
- ],
- "summary": "Delete ref of navigation property DirectReports for Me",
- "operationId": "Me.DeleteRefDirectReports",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Friends.ListAddressInfo.GetCount.AsEventLocation-feb8",
"parameters": [
{
"name": "UserName",
@@ -5371,25 +5356,15 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "If-Match",
- "in": "header",
- "description": "ETag",
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/search"
},
{
- "name": "@id",
- "in": "query",
- "description": "Delete Uri",
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/filter"
}
],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -5401,17 +5376,16 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/me",
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "operation"
+ }
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress": {
"get": {
"tags": [
"Me.Person.Location"
],
- "summary": "Get AddressInfo property value",
- "operationId": "Me.DirectReports.ListAddressInfo",
+ "summary": "Get HomeAddress property value",
+ "operationId": "Me.Friends.GetHomeAddress",
"parameters": [
{
"name": "UserName",
@@ -5423,41 +5397,6 @@
},
"x-ms-docs-key-type": "Person"
},
- {
- "$ref": "#/components/parameters/top"
- },
- {
- "$ref": "#/components/parameters/skip"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- },
- {
- "$ref": "#/components/parameters/count"
- },
- {
- "name": "$orderby",
- "in": "query",
- "description": "Order items by property values",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "Address",
- "Address desc",
- "City",
- "City desc"
- ],
- "type": "string"
- }
- }
- },
{
"name": "$select",
"in": "query",
@@ -5496,56 +5435,15 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- }
- },
- "patch": {
- "tags": [
- "Me.Person.Location"
- ],
- "summary": "Update property AddressInfo value.",
- "operationId": "Me.DirectReports.UpdateAddressInfo",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
- "requestBody": {
- "description": "New property values",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
}
}
}
},
- "required": true
- },
- "responses": {
- "204": {
- "description": "Success"
- },
"default": {
"$ref": "#/components/responses/error"
}
@@ -5558,12 +5456,12 @@
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
}
},
- "post": {
+ "patch": {
"tags": [
"Me.Person.Location"
],
- "summary": "Sets a new value for the collection of Location.",
- "operationId": "Me.DirectReports.SetAddressInfo",
+ "summary": "Update property HomeAddress value.",
+ "operationId": "Me.Friends.UpdateHomeAddress",
"parameters": [
{
"name": "UserName",
@@ -5574,14 +5472,6 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "name": "If-Match",
- "in": "header",
- "description": "ETag",
- "schema": {
- "type": "string"
- }
}
],
"requestBody": {
@@ -5589,10 +5479,7 @@
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
}
}
},
@@ -5615,14 +5502,14 @@
}
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/$count": {
- "description": "Provides operations to count the resources in the collection.",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
"get": {
"tags": [
"Me.Person.Location"
],
- "summary": "Get the number of the resource",
- "operationId": "Me.DirectReports.AddressInfo.GetCount-f650",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.Friends.GetHomeAddress.AsEventLocation",
"parameters": [
{
"name": "UserName",
@@ -5633,17 +5520,11 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
}
],
"responses": {
"200": {
- "$ref": "#/components/responses/ODataCountResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -5658,90 +5539,14 @@
}
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "description": "Casts the previous resource to EventLocation.",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "description": "Casts the previous resource to Manager.",
"get": {
"tags": [
- "Me.Person.Location"
+ "Me.Person"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "Me.DirectReports.ListAddressInfo.AsEventLocation",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- }
- }
- },
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
- "description": "Provides operations to count the resources in the collection.",
- "get": {
- "summary": "Get the number of the resource",
- "operationId": "Me.DirectReports.ListAddressInfo.GetCount.AsEventLocation-a070",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/ODataCountResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- }
- }
- },
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress": {
- "get": {
- "tags": [
- "Me.Person.Location"
- ],
- "summary": "Get HomeAddress property value",
- "operationId": "Me.DirectReports.GetHomeAddress",
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "Me.GetFriends.AsManager",
"parameters": [
{
"name": "UserName",
@@ -5764,8 +5569,20 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "City"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -5782,7 +5599,10 @@
"type": "array",
"items": {
"enum": [
- "*"
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -5795,7 +5615,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
}
}
}
@@ -5811,98 +5631,16 @@
"version": "2021-05/me",
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
}
- },
- "patch": {
- "tags": [
- "Me.Person.Location"
- ],
- "summary": "Update property HomeAddress value.",
- "operationId": "Me.DirectReports.UpdateHomeAddress",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
- "requestBody": {
- "description": "New property values",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- },
- "required": true
- },
- "responses": {
- "204": {
- "description": "Success"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- }
- }
- },
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "description": "Casts the previous resource to EventLocation.",
- "get": {
- "tags": [
- "Me.Person.Location"
- ],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "Me.DirectReports.GetHomeAddress.AsEventLocation",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- }
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$count": {
"description": "Provides operations to count the resources in the collection.",
"get": {
"tags": [
"Me.Person"
],
"summary": "Get the number of the resource",
- "operationId": "Me.DirectReports.GetCount-8b92",
+ "operationId": "Me.Friends.GetCount-0cb7",
"parameters": [
{
"$ref": "#/components/parameters/search"
@@ -5928,14 +5666,14 @@
}
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$ref": {
"description": "Provides operations to manage the collection of Person entities.",
"get": {
"tags": [
"Me.Person"
],
- "summary": "Get ref of DirectReports from Me",
- "operationId": "Me.ListRefDirectReports",
+ "summary": "Get ref of Friends from Me",
+ "operationId": "Me.ListRefFriends",
"parameters": [
{
"$ref": "#/components/parameters/top"
@@ -6012,8 +5750,8 @@
"tags": [
"Me.Person"
],
- "summary": "Create new navigation property ref to DirectReports for Me",
- "operationId": "Me.CreateRefDirectReports",
+ "summary": "Create new navigation property ref to Friends for Me",
+ "operationId": "Me.CreateRefFriends",
"requestBody": {
"$ref": "#/components/requestBodies/refPostBody"
},
@@ -6035,72 +5773,122 @@
"x-ms-docs-operation-type": "operation"
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": {
- "description": "Provides operations to call the Hire method.",
- "post": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "description": "Casts the previous resource to Manager.",
+ "get": {
"tags": [
- "Me.Actions"
+ "Me.Person"
],
- "summary": "Invoke action Hire",
- "description": "Hires someone for the company.",
- "operationId": "Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire",
- "requestBody": {
- "description": "Action parameters",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "hire": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- },
- {
- "type": "object",
- "nullable": true
- }
- ]
- }
- }
- }
- }
- },
- "required": true
- },
- "responses": {
- "204": {
- "description": "Success"
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
+ "operationId": "Me.ListFriends.AsManager",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/top"
},
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "action"
- }
- },
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip": {
- "description": "Provides operations to call the ShareTrip method.",
- "post": {
- "tags": [
- "Me.Actions"
- ],
- "summary": "Invoke action ShareTrip",
- "description": "Details of the shared trip.",
- "operationId": "Me.ShareTrip",
- "requestBody": {
- "$ref": "#/components/requestBodies/ShareTripRequestBody"
- },
- "responses": {
- "204": {
- "description": "Success"
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -6112,32 +5900,28 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/me",
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "action"
+ }
}
},
- "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName='{lastName}')": {
- "description": "Provides operations to call the UpdatePersonLastName method.",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": {
+ "description": "Provides operations to count the resources in the collection.",
"get": {
"tags": [
- "Me.Functions"
+ "Me.Person"
],
- "summary": "Invoke function UpdatePersonLastName",
- "operationId": "Me.UpdatePersonLastName",
+ "summary": "Get the number of the resource",
+ "operationId": "Me.ListFriends.GetCount.AsManager-85ff",
"parameters": [
{
- "name": "lastName",
- "in": "path",
- "description": "Usage: lastName='{lastName}'",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
}
],
"responses": {
"200": {
- "$ref": "#/components/responses/UpdatePersonLastNameResponse"
+ "$ref": "#/components/responses/ODataCountResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -6149,34 +5933,18 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/me",
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "function"
+ }
}
},
- "/Me/Trips": {
- "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers": {
+ "description": "Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity.",
"get": {
"tags": [
- "Me.Trip"
+ "Me.Person"
],
- "summary": "List trips.",
- "description": "Retrieve a list of trips.",
- "operationId": "Me.ListTrips",
+ "summary": "Get Peers from Me",
+ "operationId": "Me.ListPeers",
"parameters": [
- {
- "name": "ConsistencyLevel",
- "in": "header",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
- "schema": {
- "type": "string"
- },
- "examples": {
- "example-1": {
- "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
- "value": "eventual"
- }
- }
- },
{
"$ref": "#/components/parameters/top"
},
@@ -6203,22 +5971,28 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "TripId desc",
- "ShareId",
- "ShareId desc",
- "Name",
- "Name desc",
- "Budget",
- "Budget desc",
- "Description",
- "Description desc",
- "Tags",
- "Tags desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc"
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
],
"type": "string"
}
@@ -6235,15 +6009,20 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "ShareId",
- "Name",
- "Budget",
- "Description",
- "Tags",
- "StartsAt",
- "EndsAt",
- "PlanItems"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -6261,7 +6040,9 @@
"items": {
"enum": [
"*",
- "PlanItems"
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -6270,7 +6051,7 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -6284,35 +6065,47 @@
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
},
"x-ms-docs-operation-type": "operation"
- },
- "post": {
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "delete": {
"tags": [
- "Me.Trip"
+ "Me.Person"
],
- "summary": "Create a trip.",
- "description": "Create a new trip.",
- "operationId": "Me.CreateTrips",
- "requestBody": {
- "description": "New navigation property",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
- }
- }
+ "summary": "Delete ref of navigation property Peers for Me",
+ "operationId": "Me.DeleteRefPeers",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
},
- "required": true
- },
- "responses": {
- "201": {
- "description": "Created navigation property.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
- }
- }
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "@id",
+ "in": "query",
+ "description": "Delete Uri",
+ "schema": {
+ "type": "string"
}
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
@@ -6328,28 +6121,58 @@
"x-ms-docs-operation-type": "operation"
}
},
- "/Me/Trips/{TripId}": {
- "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo": {
"get": {
"tags": [
- "Me.Trip"
+ "Me.Person.Location"
],
- "summary": "Get a trip.",
- "description": "Retrieve the properties of a trip.",
- "operationId": "Me.GetTrips",
+ "summary": "Get AddressInfo property value",
+ "operationId": "Me.Peers.ListAddressInfo",
"parameters": [
{
- "name": "TripId",
+ "name": "UserName",
"in": "path",
- "description": "The unique identifier of Trip",
+ "description": "The unique identifier of Person",
"required": true,
"schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
+ "type": "string"
},
- "x-ms-docs-key-type": "Trip"
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ }
},
{
"name": "$select",
@@ -6362,15 +6185,8 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "ShareId",
- "Name",
- "Budget",
- "Description",
- "Tags",
- "StartsAt",
- "EndsAt",
- "PlanItems"
+ "Address",
+ "City"
],
"type": "string"
}
@@ -6387,8 +6203,7 @@
"type": "array",
"items": {
"enum": [
- "*",
- "PlanItems"
+ "*"
],
"type": "string"
}
@@ -6397,14 +6212,7 @@
],
"responses": {
"200": {
- "description": "Retrieved navigation property",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
- }
- }
- }
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -6416,37 +6224,35 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/me",
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "operation"
+ }
},
"patch": {
"tags": [
- "Me.Trip"
+ "Me.Person.Location"
],
- "summary": "Update a trip.",
- "description": "Update an instance of a trip.",
- "operationId": "Me.UpdateTrips",
+ "summary": "Update property AddressInfo value.",
+ "operationId": "Me.Peers.UpdateAddressInfo",
"parameters": [
{
- "name": "TripId",
+ "name": "UserName",
"in": "path",
- "description": "The unique identifier of Trip",
+ "description": "The unique identifier of Person",
"required": true,
"schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
+ "type": "string"
},
- "x-ms-docs-key-type": "Trip"
+ "x-ms-docs-key-type": "Person"
}
],
"requestBody": {
- "description": "New navigation property values",
+ "description": "New property values",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
}
}
},
@@ -6466,29 +6272,24 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/me",
"description": "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": {
+ "post": {
"tags": [
- "Me.Trip"
+ "Me.Person.Location"
],
- "summary": "Delete a trip.",
- "description": "Delete an instance of a trip.",
- "operationId": "Me.DeleteTrips",
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "Me.Peers.SetAddressInfo",
"parameters": [
{
- "name": "TripId",
+ "name": "UserName",
"in": "path",
- "description": "The unique identifier of Trip",
+ "description": "The unique identifier of Person",
"required": true,
"schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
+ "type": "string"
},
- "x-ms-docs-key-type": "Trip"
+ "x-ms-docs-key-type": "Person"
},
{
"name": "If-Match",
@@ -6499,6 +6300,20 @@
}
}
],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
"responses": {
"204": {
"description": "Success"
@@ -6513,143 +6328,75 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/me",
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "operation"
+ }
}
},
- "/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
- "description": "Provides operations to call the GetInvolvedPeople method.",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/$count": {
+ "description": "Provides operations to count the resources in the collection.",
"get": {
"tags": [
- "Me.Functions"
+ "Me.Person.Location"
],
- "summary": "Invoke function GetInvolvedPeople",
- "operationId": "Me.Trips.Trip.GetInvolvedPeople",
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Peers.AddressInfo.GetCount-3e91",
"parameters": [
{
- "name": "TripId",
+ "name": "UserName",
"in": "path",
- "description": "The unique identifier of Trip",
+ "description": "The unique identifier of Person",
"required": true,
"schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
+ "type": "string"
},
- "x-ms-docs-key-type": "Trip"
- },
- {
- "$ref": "#/components/parameters/top"
- },
- {
- "$ref": "#/components/parameters/skip"
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/components/parameters/search"
},
{
"$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
},
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.Peers.ListAddressInfo.AsEventLocation",
+ "parameters": [
{
- "$ref": "#/components/parameters/count"
- },
- {
- "name": "$select",
- "in": "query",
- "description": "Select properties to be returned",
- "style": "form",
- "explode": false,
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
- },
- {
- "name": "$orderby",
- "in": "query",
- "description": "Order items by property values",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
- ],
- "type": "string"
- }
- }
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
"200": {
- "description": "Success",
- "content": {
- "application/json": {
- "schema": {
- "title": "Collection of Person",
- "type": "object",
- "properties": {
- "value": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- },
- {
- "type": "object",
- "nullable": true
- }
- ]
- }
- }
- }
- }
- }
- }
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -6661,72 +6408,66 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/me",
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "function"
+ }
}
},
- "/Me/Trips/{TripId}/PlanItems": {
- "description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "description": "Provides operations to count the resources in the collection.",
"get": {
- "tags": [
- "Me.Trips.PlanItem"
- ],
- "summary": "Get PlanItems from Me",
- "operationId": "Me.Trips.ListPlanItems",
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Peers.ListAddressInfo.GetCount.AsEventLocation-be1d",
"parameters": [
{
- "name": "TripId",
+ "name": "UserName",
"in": "path",
- "description": "The unique identifier of Trip",
+ "description": "The unique identifier of Person",
"required": true,
"schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
+ "type": "string"
},
- "x-ms-docs-key-type": "Trip"
- },
- {
- "$ref": "#/components/parameters/top"
- },
- {
- "$ref": "#/components/parameters/skip"
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/components/parameters/search"
},
{
"$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
},
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "Me.Peers.GetHomeAddress",
+ "parameters": [
{
- "$ref": "#/components/parameters/count"
- },
- {
- "name": "$orderby",
- "in": "query",
- "description": "Order items by property values",
- "style": "form",
- "explode": false,
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "PlanItemId",
- "PlanItemId desc",
- "ConfirmationCode",
- "ConfirmationCode desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc",
- "Duration",
- "Duration desc"
- ],
- "type": "string"
- }
- }
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
},
{
"name": "$select",
@@ -6739,11 +6480,8 @@
"type": "array",
"items": {
"enum": [
- "PlanItemId",
- "ConfirmationCode",
- "StartsAt",
- "EndsAt",
- "Duration"
+ "Address",
+ "City"
],
"type": "string"
}
@@ -6769,7 +6507,14 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse"
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
},
"default": {
"$ref": "#/components/responses/error"
@@ -6781,62 +6526,37 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/me",
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "operation"
- }
- },
- "/Me/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
- "description": "Provides operations to manage the collection of Person entities.",
- "delete": {
+ }
+ },
+ "patch": {
"tags": [
- "Me.Trips.PlanItem"
+ "Me.Person.Location"
],
- "summary": "Delete ref of navigation property PlanItems for Me",
- "operationId": "Me.Trips.DeleteRefPlanItems",
+ "summary": "Update property HomeAddress value.",
+ "operationId": "Me.Peers.UpdateHomeAddress",
"parameters": [
{
- "name": "TripId",
- "in": "path",
- "description": "The unique identifier of Trip",
- "required": true,
- "schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
- },
- "x-ms-docs-key-type": "Trip"
- },
- {
- "name": "PlanItemId",
+ "name": "UserName",
"in": "path",
- "description": "The unique identifier of PlanItem",
+ "description": "The unique identifier of Person",
"required": true,
- "schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
- },
- "x-ms-docs-key-type": "PlanItem"
- },
- {
- "name": "If-Match",
- "in": "header",
- "description": "ETag",
"schema": {
"type": "string"
- }
- },
- {
- "name": "@id",
- "in": "query",
- "description": "Delete Uri",
- "schema": {
- "type": "string"
- }
+ },
+ "x-ms-docs-key-type": "Person"
}
],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ },
+ "required": true
+ },
"responses": {
"204": {
"description": "Success"
@@ -6851,32 +6571,55 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/me",
"description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- },
- "x-ms-docs-operation-type": "operation"
+ }
}
},
- "/Me/Trips/{TripId}/PlanItems/$count": {
- "description": "Provides operations to count the resources in the collection.",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
"get": {
"tags": [
- "Me.Trips.PlanItem"
+ "Me.Person.Location"
],
- "summary": "Get the number of the resource",
- "operationId": "Me.Trips.PlanItems.GetCount-c250",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.Peers.GetHomeAddress.AsEventLocation",
"parameters": [
{
- "name": "TripId",
+ "name": "UserName",
"in": "path",
- "description": "The unique identifier of Trip",
+ "description": "The unique identifier of Person",
"required": true,
"schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
+ "type": "string"
},
- "x-ms-docs-key-type": "Trip"
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Peers.GetCount-9fc2",
+ "parameters": [
{
"$ref": "#/components/parameters/search"
},
@@ -6901,28 +6644,15 @@
}
}
},
- "/Me/Trips/{TripId}/PlanItems/$ref": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref": {
"description": "Provides operations to manage the collection of Person entities.",
"get": {
"tags": [
- "Me.Trips.PlanItem"
+ "Me.Person"
],
- "summary": "Get ref of PlanItems from Me",
- "operationId": "Me.Trips.ListRefPlanItems",
+ "summary": "Get ref of Peers from Me",
+ "operationId": "Me.ListRefPeers",
"parameters": [
- {
- "name": "TripId",
- "in": "path",
- "description": "The unique identifier of Trip",
- "required": true,
- "schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
- },
- "x-ms-docs-key-type": "Trip"
- },
{
"$ref": "#/components/parameters/top"
},
@@ -6949,16 +6679,28 @@
"type": "array",
"items": {
"enum": [
- "PlanItemId",
- "PlanItemId desc",
- "ConfirmationCode",
- "ConfirmationCode desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc",
- "Duration",
- "Duration desc"
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
],
"type": "string"
}
@@ -6984,25 +6726,10 @@
},
"post": {
"tags": [
- "Me.Trips.PlanItem"
- ],
- "summary": "Create new navigation property ref to PlanItems for Me",
- "operationId": "Me.Trips.CreateRefPlanItems",
- "parameters": [
- {
- "name": "TripId",
- "in": "path",
- "description": "The unique identifier of Trip",
- "required": true,
- "schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
- },
- "x-ms-docs-key-type": "Trip"
- }
+ "Me.Person"
],
+ "summary": "Create new navigation property ref to Peers for Me",
+ "operationId": "Me.CreateRefPeers",
"requestBody": {
"$ref": "#/components/requestBodies/refPostBody"
},
@@ -7024,14 +6751,15 @@
"x-ms-docs-operation-type": "operation"
}
},
- "/Me/Trips/$count": {
- "description": "Provides operations to count the resources in the collection.",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips": {
+ "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
"get": {
"tags": [
"Me.Trip"
],
- "summary": "Get the number of the resource",
- "operationId": "Me.Trips.GetCount-7b69",
+ "summary": "List trips.",
+ "description": "Retrieve a list of trips.",
+ "operationId": "Me.ListTrips",
"parameters": [
{
"name": "ConsistencyLevel",
@@ -7047,39 +6775,6 @@
}
}
},
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/ODataCountResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/me",
- "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
- }
- }
- },
- "/NewComePeople": {
- "description": "Provides operations to manage the collection of Person entities.",
- "get": {
- "tags": [
- "NewComePeople.Person"
- ],
- "summary": "Get entities from NewComePeople",
- "operationId": "NewComePeople.Person.ListPerson",
- "parameters": [
{
"$ref": "#/components/parameters/top"
},
@@ -7106,28 +6801,22 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
],
"type": "string"
}
@@ -7144,20 +6833,15 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
],
"type": "string"
}
@@ -7175,9 +6859,7 @@
"items": {
"enum": [
"*",
- "Friends",
- "BestFriend",
- "Trips"
+ "PlanItems"
],
"type": "string"
}
@@ -7186,25 +6868,34 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
}
- }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
},
"post": {
"tags": [
- "NewComePeople.Person"
+ "Me.Trip"
],
- "summary": "Add new entity to NewComePeople",
- "operationId": "NewComePeople.Person.CreatePerson",
+ "summary": "Create a trip.",
+ "description": "Create a new trip.",
+ "operationId": "Me.CreateTrips",
"requestBody": {
- "description": "New entity",
+ "description": "New navigation property",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
},
@@ -7212,11 +6903,11 @@
},
"responses": {
"201": {
- "description": "Created entity",
+ "description": "Created navigation property.",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
}
@@ -7225,27 +6916,42 @@
"$ref": "#/components/responses/error"
}
},
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
"x-ms-docs-operation-type": "operation"
- }
+ },
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips",
+ "/Me/Trips"
+ ]
},
- "/NewComePeople/{UserName}": {
- "description": "Provides operations to manage the collection of Person entities.",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}": {
+ "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
"get": {
"tags": [
- "NewComePeople.Person"
+ "Me.Trip"
],
- "summary": "Get entity from NewComePeople by key",
- "operationId": "NewComePeople.Person.GetPerson",
+ "summary": "Get a trip.",
+ "description": "Retrieve the properties of a trip.",
+ "operationId": "Me.GetTrips",
"parameters": [
{
- "name": "UserName",
+ "name": "TripId",
"in": "path",
- "description": "The unique identifier of Person",
+ "description": "The unique identifier of Trip",
"required": true,
"schema": {
- "type": "string"
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
},
- "x-ms-docs-key-type": "Person"
+ "x-ms-docs-key-type": "Trip"
},
{
"name": "$select",
@@ -7258,20 +6964,15 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
],
"type": "string"
}
@@ -7289,9 +6990,7 @@
"items": {
"enum": [
"*",
- "Friends",
- "BestFriend",
- "Trips"
+ "PlanItems"
],
"type": "string"
}
@@ -7300,11 +6999,11 @@
],
"responses": {
"200": {
- "description": "Retrieved entity",
+ "description": "Retrieved navigation property",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
}
@@ -7313,32 +7012,43 @@
"$ref": "#/components/responses/error"
}
},
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
"x-ms-docs-operation-type": "operation"
},
"patch": {
"tags": [
- "NewComePeople.Person"
+ "Me.Trip"
],
- "summary": "Update entity in NewComePeople",
- "operationId": "NewComePeople.Person.UpdatePerson",
+ "summary": "Update a trip.",
+ "description": "Update an instance of a trip.",
+ "operationId": "Me.UpdateTrips",
"parameters": [
{
- "name": "UserName",
+ "name": "TripId",
"in": "path",
- "description": "The unique identifier of Person",
+ "description": "The unique identifier of Trip",
"required": true,
"schema": {
- "type": "string"
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
},
- "x-ms-docs-key-type": "Person"
+ "x-ms-docs-key-type": "Trip"
}
],
"requestBody": {
- "description": "New property values",
+ "description": "New navigation property values",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
},
@@ -7352,24 +7062,35 @@
"$ref": "#/components/responses/error"
}
},
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "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": [
- "NewComePeople.Person"
+ "Me.Trip"
],
- "summary": "Delete entity from NewComePeople",
- "operationId": "NewComePeople.Person.DeletePerson",
+ "summary": "Delete a trip.",
+ "description": "Delete an instance of a trip.",
+ "operationId": "Me.DeleteTrips",
"parameters": [
{
- "name": "UserName",
+ "name": "TripId",
"in": "path",
- "description": "The unique identifier of Person",
+ "description": "The unique identifier of Trip",
"required": true,
"schema": {
- "type": "string"
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
},
- "x-ms-docs-key-type": "Person"
+ "x-ms-docs-key-type": "Trip"
},
{
"name": "If-Match",
@@ -7388,26 +7109,41 @@
"$ref": "#/components/responses/error"
}
},
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
"x-ms-docs-operation-type": "operation"
- }
+ },
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}",
+ "/Me/Trips/{TripId}"
+ ]
},
- "/NewComePeople/{UserName}/AddressInfo": {
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
+ "description": "Provides operations to call the GetInvolvedPeople method.",
"get": {
"tags": [
- "NewComePeople.Location"
+ "Me.Functions"
],
- "summary": "Get AddressInfo property value",
- "operationId": "NewComePeople.ListAddressInfo",
+ "summary": "Invoke function GetInvolvedPeople",
+ "operationId": "Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee.Trips.Trip.GetInvolvedPeople",
"parameters": [
{
- "name": "UserName",
+ "name": "TripId",
"in": "path",
- "description": "The unique identifier of Person",
+ "description": "The unique identifier of Trip",
"required": true,
"schema": {
- "type": "string"
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
},
- "x-ms-docs-key-type": "Person"
+ "x-ms-docs-key-type": "Trip"
},
{
"$ref": "#/components/parameters/top"
@@ -7424,26 +7160,6 @@
{
"$ref": "#/components/parameters/count"
},
- {
- "name": "$orderby",
- "in": "query",
- "description": "Order items by property values",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "Address",
- "Address desc",
- "City",
- "City desc"
- ],
- "type": "string"
- }
- }
- },
{
"name": "$select",
"in": "query",
@@ -7455,17 +7171,29 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "City"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
}
},
{
- "name": "$expand",
+ "name": "$orderby",
"in": "query",
- "description": "Expand related entities",
+ "description": "Order items by property values",
"style": "form",
"explode": false,
"schema": {
@@ -7473,7 +7201,28 @@
"type": "array",
"items": {
"enum": [
- "*"
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
],
"type": "string"
}
@@ -7482,32 +7231,11823 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ "description": "Success",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Collection of Person",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ },
+ {
+ "type": "object",
+ "nullable": true
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
},
"default": {
"$ref": "#/components/responses/error"
}
- }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "function"
},
- "patch": {
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()",
+ "/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems": {
+ "description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.",
+ "get": {
"tags": [
- "NewComePeople.Location"
+ "Me.Trips.PlanItem"
],
- "summary": "Update property AddressInfo value.",
- "operationId": "NewComePeople.UpdateAddressInfo",
+ "summary": "Get PlanItems from Me",
+ "operationId": "Me.Trips.ListPlanItems",
"parameters": [
{
- "name": "UserName",
+ "name": "TripId",
"in": "path",
- "description": "The unique identifier of Person",
+ "description": "The unique identifier of Trip",
"required": true,
"schema": {
- "type": "string"
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
},
- "x-ms-docs-key-type": "Person"
- }
- ],
- "requestBody": {
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "ConfirmationCode",
+ "StartsAt",
+ "EndsAt",
+ "Duration"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems",
+ "/Me/Trips/{TripId}/PlanItems"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "delete": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Delete ref of navigation property PlanItems for Me",
+ "operationId": "Me.Trips.DeleteRefPlanItems",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "name": "PlanItemId",
+ "in": "path",
+ "description": "The unique identifier of PlanItem",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "PlanItem"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "@id",
+ "in": "query",
+ "description": "Delete Uri",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Trips.PlanItems.GetCount-a822",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get ref of PlanItems from Me",
+ "operationId": "Me.Trips.ListRefPlanItems",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Create new navigation property ref to PlanItems for Me",
+ "operationId": "Me.Trips.CreateRefPlanItems",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ }
+ ],
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPostBody"
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Trips.GetCount-5aa2",
+ "parameters": [
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()": {
+ "description": "Provides operations to call the GetFavoriteAirline method.",
+ "get": {
+ "tags": [
+ "Me.Functions"
+ ],
+ "summary": "Invoke function GetFavoriteAirline",
+ "operationId": "Me.GetFavoriteAirline",
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/GetFavoriteAirlineResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "function"
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName='{userName}')": {
+ "description": "Provides operations to call the GetFriendsTrips method.",
+ "get": {
+ "tags": [
+ "Me.Functions"
+ ],
+ "summary": "Invoke function GetFriendsTrips",
+ "operationId": "Me.GetFriendsTrips",
+ "parameters": [
+ {
+ "name": "userName",
+ "in": "path",
+ "description": "Usage: userName='{userName}'",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/GetFriendsTripsResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "function"
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": {
+ "description": "Provides operations to call the GetPeersForTrip method.",
+ "post": {
+ "tags": [
+ "Me.Actions"
+ ],
+ "summary": "Invoke action GetPeersForTrip",
+ "operationId": "Me.GetPeersForTrip",
+ "requestBody": {
+ "$ref": "#/components/requestBodies/GetPeersForTripRequestBody"
+ },
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/GetPeersForTripResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "action"
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "description": "Casts the previous resource to Manager.",
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "Me.Person.GetPerson.AsManager",
+ "parameters": [
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend": {
+ "description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get BestFriend from Me",
+ "description": "The best friend.",
+ "operationId": "Me.GetBestFriend",
+ "parameters": [
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "Me.UpdateBestFriend",
+ "requestBody": {
+ "description": "New navigation property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/Me/BestFriend",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get ref of BestFriend from Me",
+ "description": "The best friend.",
+ "operationId": "Me.GetRefBestFriend",
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property link",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "put": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "Me.UpdateRefBestFriend",
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPutBody"
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Delete ref of navigation property BestFriend for Me",
+ "operationId": "Me.DeleteRefBestFriend",
+ "parameters": [
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get AddressInfo property value",
+ "operationId": "Me.BestFriend.ListAddressInfo",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "Me.BestFriend.UpdateAddressInfo",
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "post": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "Me.BestFriend.SetAddressInfo",
+ "parameters": [
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.BestFriend.AddressInfo.GetCount-6ea6",
+ "parameters": [
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.BestFriend.ListAddressInfo.AsEventLocation",
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "Me.BestFriend.ListAddressInfo.GetCount.AsEventLocation-692e",
+ "parameters": [
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "Me.BestFriend.GetHomeAddress",
+ "parameters": [
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "Me.BestFriend.UpdateHomeAddress",
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.BestFriend.GetHomeAddress.AsEventLocation",
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "description": "Casts the previous resource to Employee.",
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "Me.GetBestFriend.AsEmployee",
+ "parameters": [
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports": {
+ "description": "Provides operations to manage the DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity.",
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get DirectReports from Me",
+ "operationId": "Me.ListDirectReports",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "delete": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Delete ref of navigation property DirectReports for Me",
+ "operationId": "Me.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": "Delete Uri",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get AddressInfo property value",
+ "operationId": "Me.DirectReports.ListAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "Me.DirectReports.UpdateAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "post": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "Me.DirectReports.SetAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.DirectReports.AddressInfo.GetCount-f650",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.DirectReports.ListAddressInfo.AsEventLocation",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "Me.DirectReports.ListAddressInfo.GetCount.AsEventLocation-a070",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "Me.DirectReports.GetHomeAddress",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "Me.DirectReports.UpdateHomeAddress",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.DirectReports.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.DirectReports.GetCount-8b92",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get ref of DirectReports from Me",
+ "operationId": "Me.ListRefDirectReports",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Create new navigation property ref to DirectReports for Me",
+ "operationId": "Me.CreateRefDirectReports",
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPostBody"
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends": {
+ "description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get Friends from Me",
+ "operationId": "Me.ListFriends",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/Me/Friends",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "delete": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Delete ref of navigation property Friends for Me",
+ "operationId": "Me.DeleteRefFriends",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "@id",
+ "in": "query",
+ "description": "Delete Uri",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get AddressInfo property value",
+ "operationId": "Me.Friends.ListAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "Me.Friends.UpdateAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "post": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "Me.Friends.SetAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Friends.AddressInfo.GetCount-b7db",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.Friends.ListAddressInfo.AsEventLocation",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Friends.ListAddressInfo.GetCount.AsEventLocation-4d69",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/HomeAddress": {
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "Me.Friends.GetHomeAddress",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "Me.Friends.UpdateHomeAddress",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "Me.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "Me.Friends.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "description": "Casts the previous resource to Employee.",
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "Me.GetFriends.AsEmployee",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Friends.GetCount-60a7",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get ref of Friends from Me",
+ "operationId": "Me.ListRefFriends",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Create new navigation property ref to Friends for Me",
+ "operationId": "Me.CreateRefFriends",
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPostBody"
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "description": "Casts the previous resource to Employee.",
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
+ "operationId": "Me.ListFriends.AsEmployee",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "Me.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.ListFriends.GetCount.AsEmployee-6a35",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": {
+ "description": "Provides operations to call the Hire method.",
+ "post": {
+ "tags": [
+ "Me.Actions"
+ ],
+ "summary": "Invoke action Hire",
+ "description": "Hires someone for the company.",
+ "operationId": "Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire",
+ "requestBody": {
+ "description": "Action parameters",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "hire": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ },
+ {
+ "type": "object",
+ "nullable": true
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "action"
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips": {
+ "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "get": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "List trips.",
+ "description": "Retrieve a list of trips.",
+ "operationId": "Me.ListTrips",
+ "parameters": [
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Create a trip.",
+ "description": "Create a new trip.",
+ "operationId": "Me.CreateTrips",
+ "requestBody": {
+ "description": "New navigation property",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "description": "Created navigation property.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips",
+ "/Me/Trips"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}": {
+ "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "get": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Get a trip.",
+ "description": "Retrieve the properties of a trip.",
+ "operationId": "Me.GetTrips",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Update a trip.",
+ "description": "Update an instance of a trip.",
+ "operationId": "Me.UpdateTrips",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ }
+ ],
+ "requestBody": {
+ "description": "New navigation property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Delete a trip.",
+ "description": "Delete an instance of a trip.",
+ "operationId": "Me.DeleteTrips",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}",
+ "/Me/Trips/{TripId}"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
+ "description": "Provides operations to call the GetInvolvedPeople method.",
+ "get": {
+ "tags": [
+ "Me.Functions"
+ ],
+ "summary": "Invoke function GetInvolvedPeople",
+ "operationId": "Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Trips.Trip.GetInvolvedPeople",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Collection of Person",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ },
+ {
+ "type": "object",
+ "nullable": true
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "function"
+ },
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()",
+ "/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems": {
+ "description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.",
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get PlanItems from Me",
+ "operationId": "Me.Trips.ListPlanItems",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "ConfirmationCode",
+ "StartsAt",
+ "EndsAt",
+ "Duration"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems",
+ "/Me/Trips/{TripId}/PlanItems"
+ ]
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "delete": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Delete ref of navigation property PlanItems for Me",
+ "operationId": "Me.Trips.DeleteRefPlanItems",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "name": "PlanItemId",
+ "in": "path",
+ "description": "The unique identifier of PlanItem",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "PlanItem"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "@id",
+ "in": "query",
+ "description": "Delete Uri",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Trips.PlanItems.GetCount-5ad2",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get ref of PlanItems from Me",
+ "operationId": "Me.Trips.ListRefPlanItems",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Create new navigation property ref to PlanItems for Me",
+ "operationId": "Me.Trips.CreateRefPlanItems",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ }
+ ],
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPostBody"
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Trips.GetCount-f3f4",
+ "parameters": [
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip": {
+ "description": "Provides operations to call the ShareTrip method.",
+ "post": {
+ "tags": [
+ "Me.Actions"
+ ],
+ "summary": "Invoke action ShareTrip",
+ "description": "Details of the shared trip.",
+ "operationId": "Me.ShareTrip",
+ "requestBody": {
+ "$ref": "#/components/requestBodies/ShareTripRequestBody"
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "action"
+ }
+ },
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName='{lastName}')": {
+ "description": "Provides operations to call the UpdatePersonLastName method.",
+ "get": {
+ "tags": [
+ "Me.Functions"
+ ],
+ "summary": "Invoke function UpdatePersonLastName",
+ "operationId": "Me.UpdatePersonLastName",
+ "parameters": [
+ {
+ "name": "lastName",
+ "in": "path",
+ "description": "Usage: lastName='{lastName}'",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/UpdatePersonLastNameResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "function"
+ }
+ },
+ "/Me/Trips": {
+ "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "get": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "List trips.",
+ "description": "Retrieve a list of trips.",
+ "operationId": "Me.ListTrips",
+ "parameters": [
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Create a trip.",
+ "description": "Create a new trip.",
+ "operationId": "Me.CreateTrips",
+ "requestBody": {
+ "description": "New navigation property",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "description": "Created navigation property.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips"
+ ]
+ },
+ "/Me/Trips/{TripId}": {
+ "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "get": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Get a trip.",
+ "description": "Retrieve the properties of a trip.",
+ "operationId": "Me.GetTrips",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Update a trip.",
+ "description": "Update an instance of a trip.",
+ "operationId": "Me.UpdateTrips",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ }
+ ],
+ "requestBody": {
+ "description": "New navigation property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Delete a trip.",
+ "description": "Delete an instance of a trip.",
+ "operationId": "Me.DeleteTrips",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}"
+ ]
+ },
+ "/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
+ "description": "Provides operations to call the GetInvolvedPeople method.",
+ "get": {
+ "tags": [
+ "Me.Functions"
+ ],
+ "summary": "Invoke function GetInvolvedPeople",
+ "operationId": "Me.Trips.Trip.GetInvolvedPeople",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Collection of Person",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ },
+ {
+ "type": "object",
+ "nullable": true
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "function"
+ },
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()"
+ ]
+ },
+ "/Me/Trips/{TripId}/PlanItems": {
+ "description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.",
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get PlanItems from Me",
+ "operationId": "Me.Trips.ListPlanItems",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "ConfirmationCode",
+ "StartsAt",
+ "EndsAt",
+ "Duration"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems",
+ "/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems"
+ ]
+ },
+ "/Me/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "delete": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Delete ref of navigation property PlanItems for Me",
+ "operationId": "Me.Trips.DeleteRefPlanItems",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "name": "PlanItemId",
+ "in": "path",
+ "description": "The unique identifier of PlanItem",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "PlanItem"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "@id",
+ "in": "query",
+ "description": "Delete Uri",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/Me/Trips/{TripId}/PlanItems/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Trips.PlanItems.GetCount-c250",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/Me/Trips/{TripId}/PlanItems/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Get ref of PlanItems from Me",
+ "operationId": "Me.Trips.ListRefPlanItems",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "Me.Trips.PlanItem"
+ ],
+ "summary": "Create new navigation property ref to PlanItems for Me",
+ "operationId": "Me.Trips.CreateRefPlanItems",
+ "parameters": [
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ }
+ ],
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPostBody"
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/Me/Trips/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "Me.Trip"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "Me.Trips.GetCount-7b69",
+ "parameters": [
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/me",
+ "description": "The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API."
+ }
+ }
+ },
+ "/NewComePeople": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get entities from NewComePeople",
+ "operationId": "NewComePeople.Person.ListPerson",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ },
+ "post": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Add new entity to NewComePeople",
+ "operationId": "NewComePeople.Person.CreatePerson",
+ "requestBody": {
+ "description": "New entity",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "description": "Created entity",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/NewComePeople/{UserName}": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get entity from NewComePeople by key",
+ "operationId": "NewComePeople.Person.GetPerson",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved entity",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Update entity in NewComePeople",
+ "operationId": "NewComePeople.Person.UpdatePerson",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Delete entity from NewComePeople",
+ "operationId": "NewComePeople.Person.DeletePerson",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/NewComePeople/{UserName}/AddressInfo": {
+ "get": {
+ "tags": [
+ "NewComePeople.Location"
+ ],
+ "summary": "Get AddressInfo property value",
+ "operationId": "NewComePeople.ListAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "NewComePeople.UpdateAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ },
+ "post": {
+ "tags": [
+ "NewComePeople.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "NewComePeople.SetAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/AddressInfo/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "NewComePeople.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.AddressInfo.GetCount-29d6",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "NewComePeople.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "NewComePeople.ListAddressInfo.AsEventLocation",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.ListAddressInfo.GetCount.AsEventLocation-29d3",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/BestFriend": {
+ "description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get BestFriend from NewComePeople",
+ "description": "The best friend.",
+ "operationId": "NewComePeople.GetBestFriend",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "NewComePeople.UpdateBestFriend",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New navigation property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/NewComePeople/{UserName}/BestFriend/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get ref of BestFriend from NewComePeople",
+ "description": "The best friend.",
+ "operationId": "NewComePeople.GetRefBestFriend",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property link",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "put": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "NewComePeople.UpdateRefBestFriend",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPutBody"
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Delete ref of navigation property BestFriend for NewComePeople",
+ "operationId": "NewComePeople.DeleteRefBestFriend",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/NewComePeople/{UserName}/BestFriend/AddressInfo": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get AddressInfo property value",
+ "operationId": "NewComePeople.BestFriend.ListAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "NewComePeople.BestFriend.UpdateAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ },
+ "post": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "NewComePeople.BestFriend.SetAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/BestFriend/AddressInfo/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.BestFriend.AddressInfo.GetCount-513c",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "NewComePeople.BestFriend.ListAddressInfo.AsEventLocation",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.BestFriend.ListAddressInfo.GetCount.AsEventLocation-ba36",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/BestFriend/HomeAddress": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "NewComePeople.BestFriend.GetHomeAddress",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "NewComePeople.BestFriend.UpdateHomeAddress",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "NewComePeople.BestFriend.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "description": "Casts the previous resource to Employee.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "NewComePeople.GetBestFriend.AsEmployee",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "description": "Casts the previous resource to Manager.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "NewComePeople.GetBestFriend.AsManager",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/bestfriend",
+ "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Friends": {
+ "description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get Friends from NewComePeople",
+ "operationId": "NewComePeople.ListFriends",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "delete": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Delete ref of navigation property Friends for NewComePeople",
+ "operationId": "NewComePeople.DeleteRefFriends",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "@id",
+ "in": "query",
+ "description": "Delete Uri",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get AddressInfo property value",
+ "operationId": "NewComePeople.Friends.ListAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "NewComePeople.Friends.UpdateAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ },
+ "post": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "NewComePeople.Friends.SetAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.Friends.AddressInfo.GetCount-9334",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "NewComePeople.Friends.ListAddressInfo.AsEventLocation",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.Friends.ListAddressInfo.GetCount.AsEventLocation-be92",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress": {
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "NewComePeople.Friends.GetHomeAddress",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "NewComePeople.Friends.UpdateHomeAddress",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "NewComePeople.Friends.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "description": "Casts the previous resource to Employee.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "NewComePeople.GetFriends.AsEmployee",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "description": "Casts the previous resource to Manager.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "NewComePeople.GetFriends.AsManager",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.Friends.GetCount-2ec1",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get ref of Friends from NewComePeople",
+ "operationId": "NewComePeople.ListRefFriends",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Create new navigation property ref to Friends for NewComePeople",
+ "operationId": "NewComePeople.CreateRefFriends",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPostBody"
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "description": "Casts the previous resource to Employee.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
+ "operationId": "NewComePeople.ListFriends.AsEmployee",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.ListFriends.GetCount.AsEmployee-4069",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "description": "Casts the previous resource to Manager.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
+ "operationId": "NewComePeople.ListFriends.AsManager",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.ListFriends.GetCount.AsManager-d1d3",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/HomeAddress": {
+ "get": {
+ "tags": [
+ "NewComePeople.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "NewComePeople.GetHomeAddress",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "NewComePeople.UpdateHomeAddress",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "NewComePeople.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "NewComePeople.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()": {
+ "description": "Provides operations to call the GetFavoriteAirline method.",
+ "get": {
+ "tags": [
+ "NewComePeople.Functions"
+ ],
+ "summary": "Invoke function GetFavoriteAirline",
+ "operationId": "NewComePeople.Person.GetFavoriteAirline",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/GetFavoriteAirlineResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "function"
+ }
+ },
+ "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName='{userName}')": {
+ "description": "Provides operations to call the GetFriendsTrips method.",
+ "get": {
+ "tags": [
+ "NewComePeople.Functions"
+ ],
+ "summary": "Invoke function GetFriendsTrips",
+ "operationId": "NewComePeople.Person.GetFriendsTrips",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "userName",
+ "in": "path",
+ "description": "Usage: userName='{userName}'",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/GetFriendsTripsResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/trips",
+ "description": "The GetFriendsTrips API is deprecated and will stop returning data on March 2023. Please use the new trips API on friends."
+ },
+ "x-ms-docs-operation-type": "function"
+ }
+ },
+ "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": {
+ "description": "Provides operations to call the GetPeersForTrip method.",
+ "post": {
+ "tags": [
+ "NewComePeople.Actions"
+ ],
+ "summary": "Invoke action GetPeersForTrip",
+ "operationId": "NewComePeople.Person.GetPeersForTrip",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "$ref": "#/components/requestBodies/GetPeersForTripRequestBody"
+ },
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/GetPeersForTripResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "action"
+ }
+ },
+ "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": {
+ "description": "Provides operations to call the Hire method.",
+ "post": {
+ "tags": [
+ "NewComePeople.Actions"
+ ],
+ "summary": "Invoke action Hire",
+ "description": "Hires someone for the company.",
+ "operationId": "NewComePeople.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "Action parameters",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "hire": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ },
+ {
+ "type": "object",
+ "nullable": true
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "action"
+ }
+ },
+ "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip": {
+ "description": "Provides operations to call the ShareTrip method.",
+ "post": {
+ "tags": [
+ "NewComePeople.Actions"
+ ],
+ "summary": "Invoke action ShareTrip",
+ "description": "Details of the shared trip.",
+ "operationId": "NewComePeople.Person.ShareTrip",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "$ref": "#/components/requestBodies/ShareTripRequestBody"
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "action"
+ }
+ },
+ "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName='{lastName}')": {
+ "description": "Provides operations to call the UpdatePersonLastName method.",
+ "get": {
+ "tags": [
+ "NewComePeople.Functions"
+ ],
+ "summary": "Invoke function UpdatePersonLastName",
+ "operationId": "NewComePeople.Person.UpdatePersonLastName",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "lastName",
+ "in": "path",
+ "description": "Usage: lastName='{lastName}'",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/UpdatePersonLastNameResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "function"
+ }
+ },
+ "/NewComePeople/{UserName}/Trips": {
+ "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "get": {
+ "tags": [
+ "NewComePeople.Trip"
+ ],
+ "summary": "List trips.",
+ "description": "Retrieve a list of trips.",
+ "operationId": "NewComePeople.ListTrips",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "NewComePeople.Trip"
+ ],
+ "summary": "Create a trip.",
+ "description": "Create a new trip.",
+ "operationId": "NewComePeople.CreateTrips",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New navigation property",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "description": "Created navigation property.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/NewComePeople/{UserName}/Trips/{TripId}": {
+ "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "get": {
+ "tags": [
+ "NewComePeople.Trip"
+ ],
+ "summary": "Get a trip.",
+ "description": "Retrieve the properties of a trip.",
+ "operationId": "NewComePeople.GetTrips",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
+ "tags": [
+ "NewComePeople.Trip"
+ ],
+ "summary": "Update a trip.",
+ "description": "Update an instance of a trip.",
+ "operationId": "NewComePeople.UpdateTrips",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ }
+ ],
+ "requestBody": {
+ "description": "New navigation property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "NewComePeople.Trip"
+ ],
+ "summary": "Delete a trip.",
+ "description": "Delete an instance of a trip.",
+ "operationId": "NewComePeople.DeleteTrips",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/NewComePeople/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
+ "description": "Provides operations to call the GetInvolvedPeople method.",
+ "get": {
+ "tags": [
+ "NewComePeople.Functions"
+ ],
+ "summary": "Invoke function GetInvolvedPeople",
+ "operationId": "NewComePeople.Person.Trips.Trip.GetInvolvedPeople",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "content": {
+ "application/json": {
+ "schema": {
+ "title": "Collection of Person",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ },
+ {
+ "type": "object",
+ "nullable": true
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "function"
+ }
+ },
+ "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems": {
+ "description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.",
+ "get": {
+ "tags": [
+ "NewComePeople.Trips.PlanItem"
+ ],
+ "summary": "Get PlanItems from NewComePeople",
+ "operationId": "NewComePeople.Trips.ListPlanItems",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "ConfirmationCode",
+ "StartsAt",
+ "EndsAt",
+ "Duration"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "delete": {
+ "tags": [
+ "NewComePeople.Trips.PlanItem"
+ ],
+ "summary": "Delete ref of navigation property PlanItems for NewComePeople",
+ "operationId": "NewComePeople.Trips.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": "PlanItemId",
+ "in": "path",
+ "description": "The unique identifier of PlanItem",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "PlanItem"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "@id",
+ "in": "query",
+ "description": "Delete Uri",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "NewComePeople.Trips.PlanItem"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.Trips.PlanItems.GetCount-841f",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "NewComePeople.Trips.PlanItem"
+ ],
+ "summary": "Get ref of PlanItems from NewComePeople",
+ "operationId": "NewComePeople.Trips.ListRefPlanItems",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "NewComePeople.Trips.PlanItem"
+ ],
+ "summary": "Create new navigation property ref to PlanItems for NewComePeople",
+ "operationId": "NewComePeople.Trips.CreateRefPlanItems",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ }
+ ],
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPostBody"
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/NewComePeople/{UserName}/Trips/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "NewComePeople.Trip"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.Trips.GetCount-d155",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/NewComePeople/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "NewComePeople.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "NewComePeople.GetCount-55d5",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ }
+ }
+ },
+ "/People": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get entities from People",
+ "operationId": "People.Person.ListPerson",
+ "parameters": [
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "post": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Add new entity to People",
+ "operationId": "People.Person.CreatePerson",
+ "requestBody": {
+ "description": "New entity",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "description": "Created entity",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/People/{UserName}": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get entity from People by key",
+ "operationId": "People.Person.GetPerson",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved entity",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Update entity in People",
+ "operationId": "People.Person.UpdatePerson",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Delete entity from People",
+ "operationId": "People.Person.DeletePerson",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/People/{UserName}/AddressInfo": {
+ "get": {
+ "tags": [
+ "People.Location"
+ ],
+ "summary": "Get AddressInfo property value",
+ "operationId": "People.ListAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "People.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "People.UpdateAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "post": {
+ "tags": [
+ "People.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "People.SetAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/AddressInfo/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "People.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "People.AddressInfo.GetCount-ed5a",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "People.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.ListAddressInfo.AsEventLocation",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "People.ListAddressInfo.GetCount.AsEventLocation-4abd",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/BestFriend": {
+ "description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get BestFriend from People",
+ "description": "The best friend.",
+ "operationId": "People.GetBestFriend",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "People.UpdateBestFriend",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New navigation property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend"
+ ]
+ },
+ "/People/{UserName}/BestFriend/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get ref of BestFriend from People",
+ "description": "The best friend.",
+ "operationId": "People.GetRefBestFriend",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property link",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "put": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "People.UpdateRefBestFriend",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPutBody"
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Delete ref of navigation property BestFriend for People",
+ "operationId": "People.DeleteRefBestFriend",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/People/{UserName}/BestFriend/AddressInfo": {
+ "get": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Get AddressInfo property value",
+ "operationId": "People.BestFriend.ListAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "People.BestFriend.UpdateAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "post": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "People.BestFriend.SetAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/BestFriend/AddressInfo/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "People.BestFriend.AddressInfo.GetCount-16df",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "summary": "Get the number of the resource",
+ "operationId": "People.BestFriend.ListAddressInfo.GetCount.AsEventLocation-fe88",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/BestFriend/HomeAddress": {
+ "get": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "People.BestFriend.GetHomeAddress",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "People.BestFriend.UpdateHomeAddress",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "description": "Casts the previous resource to Employee.",
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "People.GetBestFriend.AsEmployee",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "description": "Casts the previous resource to Manager.",
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "People.GetBestFriend.AsManager",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Friends": {
+ "description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get Friends from People",
+ "operationId": "People.ListFriends",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends"
+ ]
+ },
+ "/People/{UserName}/Friends/{UserName1}/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "delete": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Delete ref of navigation property Friends for People",
+ "operationId": "People.DeleteRefFriends",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "@id",
+ "in": "query",
+ "description": "Delete Uri",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ }
+ },
+ "/People/{UserName}/Friends/{UserName1}/AddressInfo": {
+ "get": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Get AddressInfo property value",
+ "operationId": "People.Friends.ListAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "People.Friends.UpdateAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
"description": "New property values",
"content": {
"application/json": {
@@ -7528,14 +19068,21 @@
"default": {
"$ref": "#/components/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
"post": {
"tags": [
- "NewComePeople.Location"
+ "People.Person.Location"
],
"summary": "Sets a new value for the collection of Location.",
- "operationId": "NewComePeople.SetAddressInfo",
+ "operationId": "People.Friends.SetAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -7547,6 +19094,16 @@
},
"x-ms-docs-key-type": "Person"
},
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
{
"name": "If-Match",
"in": "header",
@@ -7577,17 +19134,24 @@
"default": {
"$ref": "#/components/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/NewComePeople/{UserName}/AddressInfo/$count": {
+ "/People/{UserName}/Friends/{UserName1}/AddressInfo/$count": {
"description": "Provides operations to count the resources in the collection.",
"get": {
"tags": [
- "NewComePeople.Location"
+ "People.Person.Location"
],
"summary": "Get the number of the resource",
- "operationId": "NewComePeople.AddressInfo.GetCount-29d6",
+ "operationId": "People.Friends.AddressInfo.GetCount-bdaf",
"parameters": [
{
"name": "UserName",
@@ -7600,18 +19164,14 @@
"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": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
"type": "string"
},
- "examples": {
- "example-1": {
- "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
- "value": "eventual"
- }
- }
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/components/parameters/search"
@@ -7627,17 +19187,24 @@
"default": {
"$ref": "#/components/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"description": "Casts the previous resource to EventLocation.",
"get": {
"tags": [
- "NewComePeople.Location"
+ "People.Person.Location"
],
"summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "NewComePeople.ListAddressInfo.AsEventLocation",
+ "operationId": "People.Friends.ListAddressInfo.AsEventLocation",
"parameters": [
{
"name": "UserName",
@@ -7648,6 +19215,16 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
@@ -7657,14 +19234,21 @@
"default": {
"$ref": "#/components/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
"description": "Provides operations to count the resources in the collection.",
"get": {
"summary": "Get the number of the resource",
- "operationId": "NewComePeople.ListAddressInfo.GetCount.AsEventLocation-29d3",
+ "operationId": "People.Friends.ListAddressInfo.GetCount.AsEventLocation-2795",
"parameters": [
{
"name": "UserName",
@@ -7677,18 +19261,14 @@
"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": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
"type": "string"
},
- "examples": {
- "example-1": {
- "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
- "value": "eventual"
- }
- }
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/components/parameters/search"
@@ -7704,18 +19284,23 @@
"default": {
"$ref": "#/components/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/NewComePeople/{UserName}/BestFriend": {
- "description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "/People/{UserName}/Friends/{UserName1}/HomeAddress": {
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person.Location"
],
- "summary": "Get BestFriend from NewComePeople",
- "description": "The best friend.",
- "operationId": "NewComePeople.GetBestFriend",
+ "summary": "Get HomeAddress property value",
+ "operationId": "People.Friends.GetHomeAddress",
"parameters": [
{
"name": "UserName",
@@ -7727,6 +19312,16 @@
},
"x-ms-docs-key-type": "Person"
},
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
{
"name": "$select",
"in": "query",
@@ -7738,20 +19333,8 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "Address",
+ "City"
],
"type": "string"
}
@@ -7768,10 +19351,7 @@
"type": "array",
"items": {
"enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
+ "*"
],
"type": "string"
}
@@ -7780,11 +19360,11 @@
],
"responses": {
"200": {
- "description": "Retrieved navigation property",
+ "description": "Result entities",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
}
}
}
@@ -7797,18 +19377,16 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- },
- "x-ms-docs-operation-type": "operation"
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
"patch": {
"tags": [
- "NewComePeople.Person"
+ "People.Person.Location"
],
- "summary": "Update the best friend.",
- "description": "Update an instance of a best friend.",
- "operationId": "NewComePeople.UpdateBestFriend",
+ "summary": "Update property HomeAddress value.",
+ "operationId": "People.Friends.UpdateHomeAddress",
"parameters": [
{
"name": "UserName",
@@ -7819,14 +19397,24 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
"requestBody": {
- "description": "New navigation property values",
+ "description": "New property values",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
}
}
},
@@ -7844,21 +19432,66 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.Friends.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
}
},
- "/NewComePeople/{UserName}/BestFriend/$ref": {
- "description": "Provides operations to manage the collection of Person entities.",
+ "/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "description": "Casts the previous resource to Employee.",
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person"
],
- "summary": "Get ref of BestFriend from NewComePeople",
- "description": "The best friend.",
- "operationId": "NewComePeople.GetRefBestFriend",
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "People.GetFriends.AsEmployee",
"parameters": [
{
"name": "UserName",
@@ -7866,18 +19499,78 @@
"description": "The unique identifier of Person",
"required": true,
"schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
}
],
"responses": {
"200": {
- "description": "Retrieved navigation property link",
+ "description": "Result entities",
"content": {
"application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
}
}
}
@@ -7890,18 +19583,19 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- },
- "x-ms-docs-operation-type": "operation"
- },
- "put": {
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "description": "Casts the previous resource to Manager.",
+ "get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person"
],
- "summary": "Update the best friend.",
- "description": "Update an instance of a best friend.",
- "operationId": "NewComePeople.UpdateRefBestFriend",
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "People.GetFriends.AsManager",
"parameters": [
{
"name": "UserName",
@@ -7912,14 +19606,78 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
}
],
- "requestBody": {
- "$ref": "#/components/requestBodies/refPutBody"
- },
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ }
+ }
+ }
},
"default": {
"$ref": "#/components/responses/error"
@@ -7929,17 +19687,19 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- },
- "x-ms-docs-operation-type": "operation"
- },
- "delete": {
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Friends/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person"
],
- "summary": "Delete ref of navigation property BestFriend for NewComePeople",
- "operationId": "NewComePeople.DeleteRefBestFriend",
+ "summary": "Get the number of the resource",
+ "operationId": "People.Friends.GetCount-92b9",
"parameters": [
{
"name": "UserName",
@@ -7952,17 +19712,15 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "If-Match",
- "in": "header",
- "description": "ETag",
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
}
],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -7972,19 +19730,19 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- },
- "x-ms-docs-operation-type": "operation"
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
}
},
- "/NewComePeople/{UserName}/BestFriend/AddressInfo": {
+ "/People/{UserName}/Friends/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
"get": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person"
],
- "summary": "Get AddressInfo property value",
- "operationId": "NewComePeople.BestFriend.ListAddressInfo",
+ "summary": "Get ref of Friends from People",
+ "operationId": "People.ListRefFriends",
"parameters": [
{
"name": "UserName",
@@ -8020,104 +19778,39 @@
"schema": {
"uniqueItems": true,
"type": "array",
- "items": {
- "enum": [
- "Address",
- "Address desc",
- "City",
- "City desc"
- ],
- "type": "string"
- }
- }
- },
- {
- "name": "$select",
- "in": "query",
- "description": "Select properties to be returned",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "Address",
- "City"
- ],
- "type": "string"
- }
- }
- },
- {
- "name": "$expand",
- "in": "query",
- "description": "Expand related entities",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "*"
- ],
- "type": "string"
- }
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- }
- },
- "patch": {
- "tags": [
- "NewComePeople.Person.Location"
- ],
- "summary": "Update property AddressInfo value.",
- "operationId": "NewComePeople.BestFriend.UpdateAddressInfo",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
- "requestBody": {
- "description": "New property values",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
}
}
- },
- "required": true
- },
+ }
+ ],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/components/responses/StringCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -8127,16 +19820,17 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- }
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
},
"post": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person"
],
- "summary": "Sets a new value for the collection of Location.",
- "operationId": "NewComePeople.BestFriend.SetAddressInfo",
+ "summary": "Create new navigation property ref to Friends for People",
+ "operationId": "People.CreateRefFriends",
"parameters": [
{
"name": "UserName",
@@ -8147,29 +19841,10 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "name": "If-Match",
- "in": "header",
- "description": "ETag",
- "schema": {
- "type": "string"
- }
}
],
"requestBody": {
- "description": "New property values",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- }
- },
- "required": true
+ "$ref": "#/components/requestBodies/refPostBody"
},
"responses": {
"204": {
@@ -8183,19 +19858,20 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- }
+ "version": "2021-05/people",
+ "description": "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"
}
},
- "/NewComePeople/{UserName}/BestFriend/AddressInfo/$count": {
- "description": "Provides operations to count the resources in the collection.",
+ "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "description": "Casts the previous resource to Employee.",
"get": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person"
],
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.BestFriend.AddressInfo.GetCount-513c",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
+ "operationId": "People.ListFriends.AsEmployee",
"parameters": [
{
"name": "UserName",
@@ -8208,66 +19884,112 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "ConsistencyLevel",
- "in": "header",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
- "schema": {
- "type": "string"
- },
- "examples": {
- "example-1": {
- "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
- "value": "eventual"
- }
- }
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
},
{
"$ref": "#/components/parameters/search"
},
{
"$ref": "#/components/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/ODataCountResponse"
},
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- }
- }
- },
- "/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "description": "Casts the previous resource to EventLocation.",
- "get": {
- "tags": [
- "NewComePeople.Person.Location"
- ],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "NewComePeople.BestFriend.ListAddressInfo.AsEventLocation",
- "parameters": [
{
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
"schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
}
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -8277,40 +19999,29 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": {
"description": "Provides operations to count the resources in the collection.",
"get": {
+ "tags": [
+ "People.Person"
+ ],
"summary": "Get the number of the resource",
- "operationId": "NewComePeople.BestFriend.ListAddressInfo.GetCount.AsEventLocation-ba36",
+ "operationId": "People.ListFriends.GetCount.AsEmployee-a96c",
"parameters": [
{
"name": "UserName",
"in": "path",
"description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "ConsistencyLevel",
- "in": "header",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.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"
- }
- }
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/components/parameters/search"
@@ -8331,18 +20042,19 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/NewComePeople/{UserName}/BestFriend/HomeAddress": {
+ "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "description": "Casts the previous resource to Manager.",
"get": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person"
],
- "summary": "Get HomeAddress property value",
- "operationId": "NewComePeople.BestFriend.GetHomeAddress",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
+ "operationId": "People.ListFriends.AsManager",
"parameters": [
{
"name": "UserName",
@@ -8354,6 +20066,59 @@
},
"x-ms-docs-key-type": "Person"
},
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
{
"name": "$select",
"in": "query",
@@ -8365,8 +20130,20 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "City"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -8383,7 +20160,10 @@
"type": "array",
"items": {
"enum": [
- "*"
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -8392,59 +20172,7 @@
],
"responses": {
"200": {
- "description": "Result entities",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- }
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
- }
- },
- "patch": {
- "tags": [
- "NewComePeople.Person.Location"
- ],
- "summary": "Update property HomeAddress value.",
- "operationId": "NewComePeople.BestFriend.UpdateHomeAddress",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
- "requestBody": {
- "description": "New property values",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- },
- "required": true
- },
- "responses": {
- "204": {
- "description": "Success"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -8454,19 +20182,19 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/NewComePeople/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "description": "Casts the previous resource to EventLocation.",
+ "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": {
+ "description": "Provides operations to count the resources in the collection.",
"get": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "NewComePeople.BestFriend.GetHomeAddress.AsEventLocation",
+ "summary": "Get the number of the resource",
+ "operationId": "People.ListFriends.GetCount.AsManager-26b3",
"parameters": [
{
"name": "UserName",
@@ -8477,11 +20205,17 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
}
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "$ref": "#/components/responses/ODataCountResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -8491,19 +20225,18 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
- "description": "Casts the previous resource to Employee.",
+ "/People/{UserName}/HomeAddress": {
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Location"
],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
- "operationId": "NewComePeople.GetBestFriend.AsEmployee",
+ "summary": "Get HomeAddress property value",
+ "operationId": "People.GetHomeAddress",
"parameters": [
{
"name": "UserName",
@@ -8526,20 +20259,8 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "Address",
+ "City"
],
"type": "string"
}
@@ -8556,10 +20277,7 @@
"type": "array",
"items": {
"enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
+ "*"
],
"type": "string"
}
@@ -8572,7 +20290,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
}
}
}
@@ -8585,19 +20303,64 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "People.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "People.UpdateHomeAddress",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
- },
- "/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
- "description": "Casts the previous resource to Manager.",
+ },
+ "/People/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Location"
],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
- "operationId": "NewComePeople.GetBestFriend.AsManager",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.GetHomeAddress.AsEventLocation",
"parameters": [
{
"name": "UserName",
@@ -8608,68 +20371,11 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "name": "$select",
- "in": "query",
- "description": "Select properties to be returned",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
- },
- {
- "name": "$expand",
- "in": "query",
- "description": "Expand related entities",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
}
],
"responses": {
"200": {
- "description": "Result entities",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
- }
- }
- }
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -8679,19 +20385,19 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/bestfriend",
- "description": "The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API."
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/NewComePeople/{UserName}/Friends": {
- "description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "description": "Casts the previous resource to Employee.",
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person"
],
- "summary": "Get Friends from NewComePeople",
- "operationId": "NewComePeople.ListFriends",
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "People.Person.GetPerson.AsEmployee",
"parameters": [
{
"name": "UserName",
@@ -8704,55 +20410,16 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/components/parameters/top"
- },
- {
- "$ref": "#/components/parameters/skip"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- },
- {
- "$ref": "#/components/parameters/count"
- },
- {
- "name": "$orderby",
- "in": "query",
- "description": "Order items by property values",
- "style": "form",
- "explode": false,
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
"schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
- ],
- "type": "string"
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
}
}
},
@@ -8809,79 +20476,37 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "x-ms-docs-operation-type": "operation"
- }
- },
- "/NewComePeople/{UserName}/Friends/{UserName1}/$ref": {
- "description": "Provides operations to manage the collection of Person entities.",
- "delete": {
- "tags": [
- "NewComePeople.Person"
- ],
- "summary": "Delete ref of navigation property Friends for NewComePeople",
- "operationId": "NewComePeople.DeleteRefFriends",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "If-Match",
- "in": "header",
- "description": "ETag",
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "@id",
- "in": "query",
- "description": "Delete Uri",
- "schema": {
- "type": "string"
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ }
+ }
}
- }
- ],
- "responses": {
- "204": {
- "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
}
},
- "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend": {
+ "description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
"get": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person"
],
- "summary": "Get AddressInfo property value",
- "operationId": "NewComePeople.Friends.ListAddressInfo",
+ "summary": "Get BestFriend from People",
+ "description": "The best friend.",
+ "operationId": "People.GetBestFriend",
"parameters": [
{
"name": "UserName",
@@ -8889,54 +20514,9 @@
"description": "The unique identifier of Person",
"required": true,
"schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/components/parameters/top"
- },
- {
- "$ref": "#/components/parameters/skip"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- },
- {
- "$ref": "#/components/parameters/count"
- },
- {
- "name": "$orderby",
- "in": "query",
- "description": "Order items by property values",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "Address",
- "Address desc",
- "City",
- "City desc"
- ],
- "type": "string"
- }
- }
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
},
{
"name": "$select",
@@ -8949,8 +20529,20 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "City"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -8967,7 +20559,10 @@
"type": "array",
"items": {
"enum": [
- "*"
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -8976,70 +20571,35 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- }
- },
- "patch": {
- "tags": [
- "NewComePeople.Person.Location"
- ],
- "summary": "Update property AddressInfo value.",
- "operationId": "NewComePeople.Friends.UpdateAddressInfo",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
- "requestBody": {
- "description": "New property values",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ "description": "Retrieved navigation property",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
}
},
- "required": true
- },
- "responses": {
- "204": {
- "description": "Success"
- },
"default": {
"$ref": "#/components/responses/error"
}
- }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "post": {
+ "patch": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person"
],
- "summary": "Sets a new value for the collection of Location.",
- "operationId": "NewComePeople.Friends.SetAddressInfo",
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "People.UpdateBestFriend",
"parameters": [
{
"name": "UserName",
@@ -9050,35 +20610,14 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "If-Match",
- "in": "header",
- "description": "ETag",
- "schema": {
- "type": "string"
- }
}
],
"requestBody": {
- "description": "New property values",
+ "description": "New navigation property values",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
},
@@ -9091,17 +20630,30 @@
"default": {
"$ref": "#/components/responses/error"
}
- }
- }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/BestFriend",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend"
+ ]
},
- "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/$count": {
- "description": "Provides operations to count the resources in the collection.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
"get": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person"
],
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.Friends.AddressInfo.GetCount-9334",
+ "summary": "Get ref of BestFriend from People",
+ "description": "The best friend.",
+ "operationId": "People.GetRefBestFriend",
"parameters": [
{
"name": "UserName",
@@ -9112,56 +20664,39 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "ConsistencyLevel",
- "in": "header",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
- "schema": {
- "type": "string"
- },
- "examples": {
- "example-1": {
- "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
- "value": "eventual"
- }
- }
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
}
],
"responses": {
"200": {
- "$ref": "#/components/responses/ODataCountResponse"
+ "description": "Retrieved navigation property link",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"default": {
"$ref": "#/components/responses/error"
}
- }
- }
- },
- "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "description": "Casts the previous resource to EventLocation.",
- "get": {
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "put": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "NewComePeople.Friends.ListAddressInfo.AsEventLocation",
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "People.UpdateRefBestFriend",
"parameters": [
{
"name": "UserName",
@@ -9172,33 +20707,34 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
}
],
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPutBody"
+ },
"responses": {
- "200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
}
- }
- }
- },
- "/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
- "description": "Provides operations to count the resources in the collection.",
- "get": {
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.Friends.ListAddressInfo.GetCount.AsEventLocation-be92",
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Delete ref of navigation property BestFriend for People",
+ "operationId": "People.DeleteRefBestFriend",
"parameters": [
{
"name": "UserName",
@@ -9211,53 +20747,39 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "ConsistencyLevel",
+ "name": "If-Match",
"in": "header",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "description": "ETag",
"schema": {
"type": "string"
- },
- "examples": {
- "example-1": {
- "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
- "value": "eventual"
- }
}
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
}
],
"responses": {
- "200": {
- "$ref": "#/components/responses/ODataCountResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
}
- }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "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"
}
},
- "/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo": {
"get": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person.Location"
],
- "summary": "Get HomeAddress property value",
- "operationId": "NewComePeople.Friends.GetHomeAddress",
+ "summary": "Get AddressInfo property value",
+ "operationId": "People.BestFriend.ListAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -9270,14 +20792,39 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
"schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ }
},
{
"name": "$select",
@@ -9317,26 +20864,26 @@
],
"responses": {
"200": {
- "description": "Result entities",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- }
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
},
"patch": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person.Location"
],
- "summary": "Update property HomeAddress value.",
- "operationId": "NewComePeople.Friends.UpdateHomeAddress",
+ "summary": "Update property AddressInfo value.",
+ "operationId": "People.BestFriend.UpdateAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -9347,16 +20894,6 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
}
],
"requestBody": {
@@ -9364,7 +20901,10 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
}
}
},
@@ -9377,17 +20917,21 @@
"default": {
"$ref": "#/components/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
- }
- },
- "/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "description": "Casts the previous resource to EventLocation.",
- "get": {
+ },
+ "post": {
"tags": [
- "NewComePeople.Person.Location"
+ "People.Person.Location"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "NewComePeople.Friends.GetHomeAddress.AsEventLocation",
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "People.BestFriend.SetAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -9400,34 +20944,53 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
"schema": {
"type": "string"
- },
- "x-ms-docs-key-type": "Person"
+ }
}
],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
"responses": {
- "200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
- "description": "Casts the previous resource to Employee.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/$count": {
+ "description": "Provides operations to count the resources in the collection.",
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person.Location"
],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
- "operationId": "NewComePeople.GetFriends.AsEmployee",
+ "summary": "Get the number of the resource",
+ "operationId": "People.BestFriend.AddressInfo.GetCount-cb8a",
"parameters": [
{
"name": "UserName",
@@ -9440,91 +21003,37 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "$select",
- "in": "query",
- "description": "Select properties to be returned",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
+ "$ref": "#/components/parameters/search"
},
{
- "name": "$expand",
- "in": "query",
- "description": "Expand related entities",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
+ "$ref": "#/components/parameters/filter"
}
],
"responses": {
"200": {
- "description": "Result entities",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
- }
- }
- }
+ "$ref": "#/components/responses/ODataCountResponse"
},
"default": {
"$ref": "#/components/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
- "description": "Casts the previous resource to Manager.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person.Location"
],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
- "operationId": "NewComePeople.GetFriends.AsManager",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation",
"parameters": [
{
"name": "UserName",
@@ -9535,93 +21044,30 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "$select",
- "in": "query",
- "description": "Select properties to be returned",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
- },
- {
- "name": "$expand",
- "in": "query",
- "description": "Expand related entities",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
}
],
"responses": {
"200": {
- "description": "Result entities",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
- }
- }
- }
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/NewComePeople/{UserName}/Friends/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
"description": "Provides operations to count the resources in the collection.",
"get": {
- "tags": [
- "NewComePeople.Person"
- ],
"summary": "Get the number of the resource",
- "operationId": "NewComePeople.Friends.GetCount-2ec1",
+ "operationId": "People.BestFriend.ListAddressInfo.GetCount.AsEventLocation-0343",
"parameters": [
{
"name": "UserName",
@@ -9647,17 +21093,23 @@
"default": {
"$ref": "#/components/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/NewComePeople/{UserName}/Friends/$ref": {
- "description": "Provides operations to manage the collection of Person entities.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress": {
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person.Location"
],
- "summary": "Get ref of Friends from NewComePeople",
- "operationId": "NewComePeople.ListRefFriends",
+ "summary": "Get HomeAddress property value",
+ "operationId": "People.BestFriend.GetHomeAddress",
"parameters": [
{
"name": "UserName",
@@ -9670,24 +21122,27 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/components/parameters/top"
- },
- {
- "$ref": "#/components/parameters/skip"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- },
- {
- "$ref": "#/components/parameters/count"
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
},
{
- "name": "$orderby",
+ "name": "$expand",
"in": "query",
- "description": "Order items by property values",
+ "description": "Expand related entities",
"style": "form",
"explode": false,
"schema": {
@@ -9695,28 +21150,7 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
+ "*"
],
"type": "string"
}
@@ -9725,20 +21159,33 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/StringCollectionResponse"
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
},
"default": {
"$ref": "#/components/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
- "post": {
+ "patch": {
"tags": [
- "NewComePeople.Person"
+ "People.Person.Location"
],
- "summary": "Create new navigation property ref to Friends for NewComePeople",
- "operationId": "NewComePeople.CreateRefFriends",
+ "summary": "Update property HomeAddress value.",
+ "operationId": "People.BestFriend.UpdateHomeAddress",
"parameters": [
{
"name": "UserName",
@@ -9752,7 +21199,15 @@
}
],
"requestBody": {
- "$ref": "#/components/requestBodies/refPostBody"
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ },
+ "required": true
},
"responses": {
"204": {
@@ -9762,17 +21217,23 @@
"$ref": "#/components/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
}
},
- "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
- "description": "Casts the previous resource to Employee.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person.Location"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
- "operationId": "NewComePeople.ListFriends.AsEmployee",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation",
"parameters": [
{
"name": "UserName",
@@ -9783,59 +21244,43 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "description": "Casts the previous resource to Manager.",
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "People.GetBestFriend.AsManager",
+ "parameters": [
{
- "$ref": "#/components/parameters/top"
- },
- {
- "$ref": "#/components/parameters/skip"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- },
- {
- "$ref": "#/components/parameters/count"
- },
- {
- "name": "$orderby",
- "in": "query",
- "description": "Order items by property values",
- "style": "form",
- "explode": false,
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
- ],
- "type": "string"
- }
- }
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
},
{
"name": "$select",
@@ -9890,58 +21335,36 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- }
- }
- },
- "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": {
- "description": "Provides operations to count the resources in the collection.",
- "get": {
- "tags": [
- "NewComePeople.Person"
- ],
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.ListFriends.GetCount.AsEmployee-4069",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/ODataCountResponse"
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ }
+ }
+ }
},
"default": {
"$ref": "#/components/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
- "description": "Casts the previous resource to Manager.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends": {
+ "description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
- "operationId": "NewComePeople.ListFriends.AsManager",
+ "summary": "Get Friends from People",
+ "operationId": "People.ListFriends",
"parameters": [
{
"name": "UserName",
@@ -10050,176 +21473,43 @@
"*",
"Friends",
"BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- }
- }
- },
- "/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": {
- "description": "Provides operations to count the resources in the collection.",
- "get": {
- "tags": [
- "NewComePeople.Person"
- ],
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.ListFriends.GetCount.AsManager-d1d3",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/ODataCountResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- }
- }
- },
- "/NewComePeople/{UserName}/HomeAddress": {
- "get": {
- "tags": [
- "NewComePeople.Location"
- ],
- "summary": "Get HomeAddress property value",
- "operationId": "NewComePeople.GetHomeAddress",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "$select",
- "in": "query",
- "description": "Select properties to be returned",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "Address",
- "City"
- ],
- "type": "string"
- }
- }
- },
- {
- "name": "$expand",
- "in": "query",
- "description": "Expand related entities",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "*"
- ],
- "type": "string"
- }
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Result entities",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- }
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- }
- },
- "patch": {
- "tags": [
- "NewComePeople.Location"
- ],
- "summary": "Update property HomeAddress value.",
- "operationId": "NewComePeople.UpdateHomeAddress",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
- "requestBody": {
- "description": "New property values",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ "Trips"
+ ],
+ "type": "string"
}
}
- },
- "required": true
- },
+ }
+ ],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
}
- }
- }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Friends",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends"
+ ]
},
- "/NewComePeople/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "description": "Casts the previous resource to EventLocation.",
- "get": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "delete": {
"tags": [
- "NewComePeople.Location"
+ "People.Person"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "NewComePeople.GetHomeAddress.AsEventLocation",
+ "summary": "Delete ref of navigation property Friends for People",
+ "operationId": "People.DeleteRefFriends",
"parameters": [
{
"name": "UserName",
@@ -10230,29 +21520,9 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
- "default": {
- "$ref": "#/components/responses/error"
- }
- }
- }
- },
- "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()": {
- "description": "Provides operations to call the GetFavoriteAirline method.",
- "get": {
- "tags": [
- "NewComePeople.Functions"
- ],
- "summary": "Invoke function GetFavoriteAirline",
- "operationId": "NewComePeople.Person.GetFavoriteAirline",
- "parameters": [
{
- "name": "UserName",
+ "name": "UserName1",
"in": "path",
"description": "The unique identifier of Person",
"required": true,
@@ -10260,27 +21530,49 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "@id",
+ "in": "query",
+ "description": "Delete Uri",
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
- "200": {
- "$ref": "#/components/responses/GetFavoriteAirlineResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
}
},
- "x-ms-docs-operation-type": "function"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "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"
}
},
- "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName='{userName}')": {
- "description": "Provides operations to call the GetFriendsTrips method.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo": {
"get": {
"tags": [
- "NewComePeople.Functions"
+ "People.Person.Location"
],
- "summary": "Invoke function GetFriendsTrips",
- "operationId": "NewComePeople.Person.GetFriendsTrips",
+ "summary": "Get AddressInfo property value",
+ "operationId": "People.Friends.ListAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -10293,13 +21585,14 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "userName",
+ "name": "UserName1",
"in": "path",
- "description": "Usage: userName='{userName}'",
+ "description": "The unique identifier of Person",
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/components/parameters/top"
@@ -10316,6 +21609,26 @@
{
"$ref": "#/components/parameters/count"
},
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
{
"name": "$select",
"in": "query",
@@ -10327,24 +21640,17 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "ShareId",
- "Name",
- "Budget",
- "Description",
- "Tags",
- "StartsAt",
- "EndsAt",
- "PlanItems"
+ "Address",
+ "City"
],
"type": "string"
}
}
},
{
- "name": "$orderby",
+ "name": "$expand",
"in": "query",
- "description": "Order items by property values",
+ "description": "Expand related entities",
"style": "form",
"explode": false,
"schema": {
@@ -10352,22 +21658,7 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "TripId desc",
- "ShareId",
- "ShareId desc",
- "Name",
- "Name desc",
- "Budget",
- "Budget desc",
- "Description",
- "Description desc",
- "Tags",
- "Tags desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc"
+ "*"
],
"type": "string"
}
@@ -10376,7 +21667,7 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/GetFriendsTripsResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -10386,20 +21677,16 @@
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/trips",
- "description": "The GetFriendsTrips API is deprecated and will stop returning data on March 2023. Please use the new trips API on friends."
- },
- "x-ms-docs-operation-type": "function"
- }
- },
- "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": {
- "description": "Provides operations to call the GetPeersForTrip method.",
- "post": {
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "patch": {
"tags": [
- "NewComePeople.Actions"
+ "People.Person.Location"
],
- "summary": "Invoke action GetPeersForTrip",
- "operationId": "NewComePeople.Person.GetPeersForTrip",
+ "summary": "Update property AddressInfo value.",
+ "operationId": "People.Friends.UpdateAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -10410,31 +21697,54 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
"requestBody": {
- "$ref": "#/components/requestBodies/GetPeersForTripRequestBody"
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
},
"responses": {
- "200": {
- "$ref": "#/components/responses/GetPeersForTripResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
}
},
- "x-ms-docs-operation-type": "action"
- }
- },
- "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": {
- "description": "Provides operations to call the Hire method.",
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
"post": {
"tags": [
- "NewComePeople.Actions"
+ "People.Person.Location"
],
- "summary": "Invoke action Hire",
- "description": "Hires someone for the company.",
- "operationId": "NewComePeople.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire",
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "People.Friends.SetAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -10445,26 +21755,34 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
- "description": "Action parameters",
+ "description": "New property values",
"content": {
"application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "hire": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- },
- {
- "type": "object",
- "nullable": true
- }
- ]
- }
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
}
}
}
@@ -10479,18 +21797,23 @@
"$ref": "#/components/responses/error"
}
},
- "x-ms-docs-operation-type": "action"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
}
},
- "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip": {
- "description": "Provides operations to call the ShareTrip method.",
- "post": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
"tags": [
- "NewComePeople.Actions"
+ "People.Person.Location"
],
- "summary": "Invoke action ShareTrip",
- "description": "Details of the shared trip.",
- "operationId": "NewComePeople.Person.ShareTrip",
+ "summary": "Get the number of the resource",
+ "operationId": "People.Friends.AddressInfo.GetCount-1e8b",
"parameters": [
{
"name": "UserName",
@@ -10501,30 +21824,49 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
}
],
- "requestBody": {
- "$ref": "#/components/requestBodies/ShareTripRequestBody"
- },
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
},
"default": {
"$ref": "#/components/responses/error"
}
},
- "x-ms-docs-operation-type": "action"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
}
},
- "/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName='{lastName}')": {
- "description": "Provides operations to call the UpdatePersonLastName method.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
"get": {
"tags": [
- "NewComePeople.Functions"
+ "People.Person.Location"
],
- "summary": "Invoke function UpdatePersonLastName",
- "operationId": "NewComePeople.Person.UpdatePersonLastName",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.Friends.ListAddressInfo.AsEventLocation",
"parameters": [
{
"name": "UserName",
@@ -10537,35 +21879,38 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "lastName",
+ "name": "UserName1",
"in": "path",
- "description": "Usage: lastName='{lastName}'",
+ "description": "The unique identifier of Person",
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
"200": {
- "$ref": "#/components/responses/UpdatePersonLastNameResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
}
},
- "x-ms-docs-operation-type": "function"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
}
},
- "/NewComePeople/{UserName}/Trips": {
- "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "description": "Provides operations to count the resources in the collection.",
"get": {
- "tags": [
- "NewComePeople.Trip"
- ],
- "summary": "List trips.",
- "description": "Retrieve a list of trips.",
- "operationId": "NewComePeople.ListTrips",
+ "summary": "Get the number of the resource",
+ "operationId": "People.Friends.ListAddressInfo.GetCount.AsEventLocation-1f2b",
"parameters": [
{
"name": "UserName",
@@ -10578,65 +21923,66 @@
"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": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
"type": "string"
},
- "examples": {
- "example-1": {
- "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
- "value": "eventual"
- }
- }
- },
- {
- "$ref": "#/components/parameters/top"
- },
- {
- "$ref": "#/components/parameters/skip"
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/components/parameters/search"
},
{
"$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
},
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/HomeAddress": {
+ "get": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Get HomeAddress property value",
+ "operationId": "People.Friends.GetHomeAddress",
+ "parameters": [
{
- "$ref": "#/components/parameters/count"
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
},
{
- "name": "$orderby",
- "in": "query",
- "description": "Order items by property values",
- "style": "form",
- "explode": false,
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "TripId",
- "TripId desc",
- "ShareId",
- "ShareId desc",
- "Name",
- "Name desc",
- "Budget",
- "Budget desc",
- "Description",
- "Description desc",
- "Tags",
- "Tags desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc"
- ],
- "type": "string"
- }
- }
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
},
{
"name": "$select",
@@ -10649,15 +21995,8 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "ShareId",
- "Name",
- "Budget",
- "Description",
- "Tags",
- "StartsAt",
- "EndsAt",
- "PlanItems"
+ "Address",
+ "City"
],
"type": "string"
}
@@ -10674,8 +22013,7 @@
"type": "array",
"items": {
"enum": [
- "*",
- "PlanItems"
+ "*"
],
"type": "string"
}
@@ -10684,21 +22022,91 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse"
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Update property HomeAddress value.",
+ "operationId": "People.Friends.UpdateHomeAddress",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
- },
- "post": {
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
"tags": [
- "NewComePeople.Trip"
+ "People.Person.Location"
],
- "summary": "Create a trip.",
- "description": "Create a new trip.",
- "operationId": "NewComePeople.CreateTrips",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.Friends.GetHomeAddress.AsEventLocation",
"parameters": [
{
"name": "UserName",
@@ -10709,46 +22117,43 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
- "requestBody": {
- "description": "New navigation property",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
- }
- }
- },
- "required": true
- },
"responses": {
- "201": {
- "description": "Created navigation property.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
- }
- }
- }
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
}
},
- "/NewComePeople/{UserName}/Trips/{TripId}": {
- "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "description": "Casts the previous resource to Manager.",
"get": {
"tags": [
- "NewComePeople.Trip"
+ "People.Person"
],
- "summary": "Get a trip.",
- "description": "Retrieve the properties of a trip.",
- "operationId": "NewComePeople.GetTrips",
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "People.GetFriends.AsManager",
"parameters": [
{
"name": "UserName",
@@ -10761,17 +22166,14 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "TripId",
+ "name": "UserName1",
"in": "path",
- "description": "The unique identifier of Trip",
+ "description": "The unique identifier of Person",
"required": true,
"schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
+ "type": "string"
},
- "x-ms-docs-key-type": "Trip"
+ "x-ms-docs-key-type": "Person"
},
{
"name": "$select",
@@ -10784,15 +22186,20 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "ShareId",
- "Name",
- "Budget",
- "Description",
- "Tags",
- "StartsAt",
- "EndsAt",
- "PlanItems"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -10810,7 +22217,9 @@
"items": {
"enum": [
"*",
- "PlanItems"
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -10819,11 +22228,11 @@
],
"responses": {
"200": {
- "description": "Retrieved navigation property",
+ "description": "Result entities",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
}
}
}
@@ -10832,15 +22241,23 @@
"$ref": "#/components/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
- },
- "patch": {
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
"tags": [
- "NewComePeople.Trip"
+ "People.Person"
],
- "summary": "Update a trip.",
- "description": "Update an instance of a trip.",
- "operationId": "NewComePeople.UpdateTrips",
+ "summary": "Get the number of the resource",
+ "operationId": "People.Friends.GetCount-4db4",
"parameters": [
{
"name": "UserName",
@@ -10853,47 +22270,125 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "TripId",
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get ref of Friends from People",
+ "operationId": "People.ListRefFriends",
+ "parameters": [
+ {
+ "name": "UserName",
"in": "path",
- "description": "The unique identifier of Trip",
+ "description": "The unique identifier of Person",
"required": true,
"schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
+ "type": "string"
},
- "x-ms-docs-key-type": "Trip"
- }
- ],
- "requestBody": {
- "description": "New navigation property values",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
}
}
- },
- "required": true
- },
+ }
+ ],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/components/responses/StringCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
}
},
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "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": {
+ "post": {
"tags": [
- "NewComePeople.Trip"
+ "People.Person"
],
- "summary": "Delete a trip.",
- "description": "Delete an instance of a trip.",
- "operationId": "NewComePeople.DeleteTrips",
+ "summary": "Create new navigation property ref to Friends for People",
+ "operationId": "People.CreateRefFriends",
"parameters": [
{
"name": "UserName",
@@ -10904,29 +22399,11 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "name": "TripId",
- "in": "path",
- "description": "The unique identifier of Trip",
- "required": true,
- "schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
- },
- "x-ms-docs-key-type": "Trip"
- },
- {
- "name": "If-Match",
- "in": "header",
- "description": "ETag",
- "schema": {
- "type": "string"
- }
}
],
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPostBody"
+ },
"responses": {
"204": {
"description": "Success"
@@ -10935,17 +22412,24 @@
"$ref": "#/components/responses/error"
}
},
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "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"
}
},
- "/NewComePeople/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
- "description": "Provides operations to call the GetInvolvedPeople method.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "description": "Casts the previous resource to Manager.",
"get": {
"tags": [
- "NewComePeople.Functions"
+ "People.Person"
],
- "summary": "Invoke function GetInvolvedPeople",
- "operationId": "NewComePeople.Person.Trips.Trip.GetInvolvedPeople",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
+ "operationId": "People.ListFriends.AsManager",
"parameters": [
{
"name": "UserName",
@@ -10957,19 +22441,6 @@
},
"x-ms-docs-key-type": "Person"
},
- {
- "name": "TripId",
- "in": "path",
- "description": "The unique identifier of Trip",
- "required": true,
- "schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
- },
- "x-ms-docs-key-type": "Trip"
- },
{
"$ref": "#/components/parameters/top"
},
@@ -10986,9 +22457,9 @@
"$ref": "#/components/parameters/count"
},
{
- "name": "$select",
+ "name": "$orderby",
"in": "query",
- "description": "Select properties to be returned",
+ "description": "Order items by property values",
"style": "form",
"explode": false,
"schema": {
@@ -10997,28 +22468,36 @@
"items": {
"enum": [
"UserName",
+ "UserName desc",
"FirstName",
+ "FirstName desc",
"LastName",
+ "LastName desc",
"MiddleName",
+ "MiddleName desc",
"Gender",
+ "Gender desc",
"Age",
+ "Age desc",
"Emails",
+ "Emails desc",
"AddressInfo",
+ "AddressInfo desc",
"HomeAddress",
+ "HomeAddress desc",
"FavoriteFeature",
+ "FavoriteFeature desc",
"Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "Features desc"
],
"type": "string"
}
}
},
{
- "name": "$orderby",
+ "name": "$select",
"in": "query",
- "description": "Order items by property values",
+ "description": "Select properties to be returned",
"style": "form",
"explode": false,
"schema": {
@@ -11027,27 +22506,39 @@
"items": {
"enum": [
"UserName",
- "UserName desc",
"FirstName",
- "FirstName desc",
"LastName",
- "LastName desc",
"MiddleName",
- "MiddleName desc",
"Gender",
- "Gender desc",
"Age",
- "Age desc",
"Emails",
- "Emails desc",
"AddressInfo",
- "AddressInfo desc",
"HomeAddress",
- "HomeAddress desc",
"FavoriteFeature",
- "FavoriteFeature desc",
"Features",
- "Features desc"
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -11056,47 +22547,29 @@
],
"responses": {
"200": {
- "description": "Success",
- "content": {
- "application/json": {
- "schema": {
- "title": "Collection of Person",
- "type": "object",
- "properties": {
- "value": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- },
- {
- "type": "object",
- "nullable": true
- }
- ]
- }
- }
- }
- }
- }
- }
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
}
},
- "x-ms-docs-operation-type": "function"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
}
},
- "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems": {
- "description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": {
+ "description": "Provides operations to count the resources in the collection.",
"get": {
"tags": [
- "NewComePeople.Trips.PlanItem"
+ "People.Person"
],
- "summary": "Get PlanItems from NewComePeople",
- "operationId": "NewComePeople.Trips.ListPlanItems",
+ "summary": "Get the number of the resource",
+ "operationId": "People.ListFriends.GetCount.AsManager-b145",
"parameters": [
{
"name": "UserName",
@@ -11109,17 +22582,47 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "TripId",
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers": {
+ "description": "Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity.",
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get Peers from People",
+ "operationId": "People.ListPeers",
+ "parameters": [
+ {
+ "name": "UserName",
"in": "path",
- "description": "The unique identifier of Trip",
+ "description": "The unique identifier of Person",
"required": true,
"schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
+ "type": "string"
},
- "x-ms-docs-key-type": "Trip"
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/components/parameters/top"
@@ -11147,16 +22650,28 @@
"type": "array",
"items": {
"enum": [
- "PlanItemId",
- "PlanItemId desc",
- "ConfirmationCode",
- "ConfirmationCode desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc",
- "Duration",
- "Duration desc"
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
],
"type": "string"
}
@@ -11173,11 +22688,20 @@
"type": "array",
"items": {
"enum": [
- "PlanItemId",
- "ConfirmationCode",
- "StartsAt",
- "EndsAt",
- "Duration"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -11194,7 +22718,10 @@
"type": "array",
"items": {
"enum": [
- "*"
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -11203,23 +22730,30 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
}
},
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "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"
}
},
- "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/$ref": {
"description": "Provides operations to manage the collection of Person entities.",
"delete": {
"tags": [
- "NewComePeople.Trips.PlanItem"
+ "People.Person"
],
- "summary": "Delete ref of navigation property PlanItems for NewComePeople",
- "operationId": "NewComePeople.Trips.DeleteRefPlanItems",
+ "summary": "Delete ref of navigation property Peers for People",
+ "operationId": "People.DeleteRefPeers",
"parameters": [
{
"name": "UserName",
@@ -11232,30 +22766,14 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "TripId",
- "in": "path",
- "description": "The unique identifier of Trip",
- "required": true,
- "schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
- },
- "x-ms-docs-key-type": "Trip"
- },
- {
- "name": "PlanItemId",
+ "name": "UserName1",
"in": "path",
- "description": "The unique identifier of PlanItem",
+ "description": "The unique identifier of Person",
"required": true,
"schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
+ "type": "string"
},
- "x-ms-docs-key-type": "PlanItem"
+ "x-ms-docs-key-type": "Person"
},
{
"name": "If-Match",
@@ -11282,17 +22800,23 @@
"$ref": "#/components/responses/error"
}
},
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "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"
}
},
- "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$count": {
- "description": "Provides operations to count the resources in the collection.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo": {
"get": {
"tags": [
- "NewComePeople.Trips.PlanItem"
+ "People.Person.Location"
],
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.Trips.PlanItems.GetCount-841f",
+ "summary": "Get AddressInfo property value",
+ "operationId": "People.Peers.ListAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -11305,46 +22829,7 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "TripId",
- "in": "path",
- "description": "The unique identifier of Trip",
- "required": true,
- "schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
- },
- "x-ms-docs-key-type": "Trip"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/ODataCountResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- }
- }
- },
- "/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$ref": {
- "description": "Provides operations to manage the collection of Person entities.",
- "get": {
- "tags": [
- "NewComePeople.Trips.PlanItem"
- ],
- "summary": "Get ref of PlanItems from NewComePeople",
- "operationId": "NewComePeople.Trips.ListRefPlanItems",
- "parameters": [
- {
- "name": "UserName",
+ "name": "UserName1",
"in": "path",
"description": "The unique identifier of Person",
"required": true,
@@ -11353,19 +22838,6 @@
},
"x-ms-docs-key-type": "Person"
},
- {
- "name": "TripId",
- "in": "path",
- "description": "The unique identifier of Trip",
- "required": true,
- "schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
- },
- "x-ms-docs-key-type": "Trip"
- },
{
"$ref": "#/components/parameters/top"
},
@@ -11392,16 +22864,45 @@
"type": "array",
"items": {
"enum": [
- "PlanItemId",
- "PlanItemId desc",
- "ConfirmationCode",
- "ConfirmationCode desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc",
- "Duration",
- "Duration desc"
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
],
"type": "string"
}
@@ -11410,20 +22911,84 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/StringCollectionResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ },
+ "patch": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Update property AddressInfo value.",
+ "operationId": "People.Peers.UpdateAddressInfo",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
},
"post": {
"tags": [
- "NewComePeople.Trips.PlanItem"
+ "People.Person.Location"
],
- "summary": "Create new navigation property ref to PlanItems for NewComePeople",
- "operationId": "NewComePeople.Trips.CreateRefPlanItems",
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "People.Peers.SetAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -11436,21 +23001,37 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "TripId",
+ "name": "UserName1",
"in": "path",
- "description": "The unique identifier of Trip",
+ "description": "The unique identifier of Person",
"required": true,
"schema": {
- "maximum": 2147483647,
- "minimum": -2147483648,
- "type": "integer",
- "format": "int32"
+ "type": "string"
},
- "x-ms-docs-key-type": "Trip"
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
- "$ref": "#/components/requestBodies/refPostBody"
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
},
"responses": {
"204": {
@@ -11460,17 +23041,23 @@
"$ref": "#/components/responses/error"
}
},
- "x-ms-docs-operation-type": "operation"
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
}
},
- "/NewComePeople/{UserName}/Trips/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/$count": {
"description": "Provides operations to count the resources in the collection.",
"get": {
"tags": [
- "NewComePeople.Trip"
+ "People.Person.Location"
],
"summary": "Get the number of the resource",
- "operationId": "NewComePeople.Trips.GetCount-d155",
+ "operationId": "People.Peers.AddressInfo.GetCount-755d",
"parameters": [
{
"name": "UserName",
@@ -11483,18 +23070,14 @@
"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": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
"type": "string"
},
- "examples": {
- "example-1": {
- "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
- "value": "eventual"
- }
- }
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/components/parameters/search"
@@ -11510,205 +23093,99 @@
"default": {
"$ref": "#/components/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/NewComePeople/$count": {
- "description": "Provides operations to count the resources in the collection.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
"get": {
"tags": [
- "NewComePeople.Person"
+ "People.Person.Location"
],
- "summary": "Get the number of the resource",
- "operationId": "NewComePeople.GetCount-55d5",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.Peers.ListAddressInfo.AsEventLocation",
"parameters": [
{
- "$ref": "#/components/parameters/search"
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/components/parameters/filter"
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
"200": {
- "$ref": "#/components/responses/ODataCountResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
}
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
}
},
- "/People": {
- "description": "Provides operations to manage the collection of Person entities.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "description": "Provides operations to count the resources in the collection.",
"get": {
- "tags": [
- "People.Person"
- ],
- "summary": "Get entities from People",
- "operationId": "People.Person.ListPerson",
+ "summary": "Get the number of the resource",
+ "operationId": "People.Peers.ListAddressInfo.GetCount.AsEventLocation-ef5e",
"parameters": [
{
- "name": "ConsistencyLevel",
- "in": "header",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
"type": "string"
},
- "examples": {
- "example-1": {
- "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
- "value": "eventual"
- }
- }
- },
- {
- "$ref": "#/components/parameters/top"
+ "x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/components/parameters/skip"
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
},
{
"$ref": "#/components/parameters/search"
},
{
"$ref": "#/components/parameters/filter"
- },
- {
- "$ref": "#/components/parameters/count"
- },
- {
- "name": "$orderby",
- "in": "query",
- "description": "Order items by property values",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
- ],
- "type": "string"
- }
- }
- },
- {
- "name": "$select",
- "in": "query",
- "description": "Select properties to be returned",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
- },
- {
- "name": "$expand",
- "in": "query",
- "description": "Expand related entities",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
}
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- },
- "post": {
- "tags": [
- "People.Person"
- ],
- "summary": "Add new entity to People",
- "operationId": "People.Person.CreatePerson",
- "requestBody": {
- "description": "New entity",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- }
- }
- },
- "required": true
- },
- "responses": {
- "201": {
- "description": "Created entity",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- }
- }
- }
+ "$ref": "#/components/responses/ODataCountResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -11719,19 +23196,17 @@
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
- "description": "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"
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
}
},
- "/People/{UserName}": {
- "description": "Provides operations to manage the collection of Person entities.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress": {
"get": {
"tags": [
- "People.Person"
+ "People.Person.Location"
],
- "summary": "Get entity from People by key",
- "operationId": "People.Person.GetPerson",
+ "summary": "Get HomeAddress property value",
+ "operationId": "People.Peers.GetHomeAddress",
"parameters": [
{
"name": "UserName",
@@ -11744,18 +23219,14 @@
"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": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
"type": "string"
},
- "examples": {
- "example-1": {
- "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
- "value": "eventual"
- }
- }
+ "x-ms-docs-key-type": "Person"
},
{
"name": "$select",
@@ -11768,20 +23239,8 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "Address",
+ "City"
],
"type": "string"
}
@@ -11798,10 +23257,7 @@
"type": "array",
"items": {
"enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
+ "*"
],
"type": "string"
}
@@ -11810,11 +23266,11 @@
],
"responses": {
"200": {
- "description": "Retrieved entity",
+ "description": "Result entities",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
}
}
}
@@ -11829,15 +23285,14 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- },
- "x-ms-docs-operation-type": "operation"
+ }
},
"patch": {
"tags": [
- "People.Person"
+ "People.Person.Location"
],
- "summary": "Update entity in People",
- "operationId": "People.Person.UpdatePerson",
+ "summary": "Update property HomeAddress value.",
+ "operationId": "People.Peers.UpdateHomeAddress",
"parameters": [
{
"name": "UserName",
@@ -11848,6 +23303,16 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
"requestBody": {
@@ -11855,7 +23320,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
}
}
},
@@ -11870,6 +23335,186 @@
}
},
"deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.Peers.GetHomeAddress.AsEventLocation",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "People.Peers.GetCount-44d2",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get ref of Peers from People",
+ "operationId": "People.ListRefPeers",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/StringCollectionResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
"x-ms-deprecation": {
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
@@ -11878,12 +23523,12 @@
},
"x-ms-docs-operation-type": "operation"
},
- "delete": {
+ "post": {
"tags": [
"People.Person"
],
- "summary": "Delete entity from People",
- "operationId": "People.Person.DeletePerson",
+ "summary": "Create new navigation property ref to Peers for People",
+ "operationId": "People.CreateRefPeers",
"parameters": [
{
"name": "UserName",
@@ -11894,16 +23539,11 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "name": "If-Match",
- "in": "header",
- "description": "ETag",
- "schema": {
- "type": "string"
- }
}
],
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPostBody"
+ },
"responses": {
"204": {
"description": "Success"
@@ -11922,13 +23562,15 @@
"x-ms-docs-operation-type": "operation"
}
},
- "/People/{UserName}/AddressInfo": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips": {
+ "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
"get": {
"tags": [
- "People.Location"
+ "People.Trip"
],
- "summary": "Get AddressInfo property value",
- "operationId": "People.ListAddressInfo",
+ "summary": "List trips.",
+ "description": "Retrieve a list of trips.",
+ "operationId": "People.ListTrips",
"parameters": [
{
"name": "UserName",
@@ -11940,6 +23582,20 @@
},
"x-ms-docs-key-type": "Person"
},
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
{
"$ref": "#/components/parameters/top"
},
@@ -11966,10 +23622,22 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "Address desc",
- "City",
- "City desc"
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
],
"type": "string"
}
@@ -11986,8 +23654,15 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "City"
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
],
"type": "string"
}
@@ -12004,7 +23679,8 @@
"type": "array",
"items": {
"enum": [
- "*"
+ "*",
+ "PlanItems"
],
"type": "string"
}
@@ -12013,7 +23689,7 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -12025,14 +23701,16 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "patch": {
+ "post": {
"tags": [
- "People.Location"
+ "People.Trip"
],
- "summary": "Update property AddressInfo value.",
- "operationId": "People.UpdateAddressInfo",
+ "summary": "Create a trip.",
+ "description": "Create a new trip.",
+ "operationId": "People.CreateTrips",
"parameters": [
{
"name": "UserName",
@@ -12046,22 +23724,26 @@
}
],
"requestBody": {
- "description": "New property values",
+ "description": "New navigation property",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
},
"required": true
},
"responses": {
- "204": {
- "description": "Success"
+ "201": {
+ "description": "Created navigation property.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ }
},
"default": {
"$ref": "#/components/responses/error"
@@ -12073,14 +23755,23 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "post": {
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips",
+ "/People/{UserName}/Trips"
+ ]
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}": {
+ "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "get": {
"tags": [
- "People.Location"
+ "People.Trip"
],
- "summary": "Sets a new value for the collection of Location.",
- "operationId": "People.SetAddressInfo",
+ "summary": "Get a trip.",
+ "description": "Retrieve the properties of a trip.",
+ "operationId": "People.GetTrips",
"parameters": [
{
"name": "UserName",
@@ -12093,32 +23784,73 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "If-Match",
- "in": "header",
- "description": "ETag",
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
"schema": {
- "type": "string"
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
}
}
],
- "requestBody": {
- "description": "New property values",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ "responses": {
+ "200": {
+ "description": "Retrieved navigation property",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
}
},
- "required": true
- },
- "responses": {
- "204": {
- "description": "Success"
- },
"default": {
"$ref": "#/components/responses/error"
}
@@ -12129,17 +23861,16 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
- },
- "/People/{UserName}/AddressInfo/$count": {
- "description": "Provides operations to count the resources in the collection.",
- "get": {
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
"tags": [
- "People.Location"
+ "People.Trip"
],
- "summary": "Get the number of the resource",
- "operationId": "People.AddressInfo.GetCount-ed5a",
+ "summary": "Update a trip.",
+ "description": "Update an instance of a trip.",
+ "operationId": "People.UpdateTrips",
"parameters": [
{
"name": "UserName",
@@ -12152,52 +23883,33 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/ODataCountResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
- },
- "/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "description": "Casts the previous resource to EventLocation.",
- "get": {
- "tags": [
- "People.Location"
- ],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.ListAddressInfo.AsEventLocation",
- "parameters": [
- {
- "name": "UserName",
+ "name": "TripId",
"in": "path",
- "description": "The unique identifier of Person",
+ "description": "The unique identifier of Trip",
"required": true,
"schema": {
- "type": "string"
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
},
- "x-ms-docs-key-type": "Person"
+ "x-ms-docs-key-type": "Trip"
}
],
+ "requestBody": {
+ "description": "New navigation property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ },
+ "required": true
+ },
"responses": {
- "200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
@@ -12209,14 +23921,16 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
- },
- "/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
- "description": "Provides operations to count the resources in the collection.",
- "get": {
- "summary": "Get the number of the resource",
- "operationId": "People.ListAddressInfo.GetCount.AsEventLocation-4abd",
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "People.Trip"
+ ],
+ "summary": "Delete a trip.",
+ "description": "Delete an instance of a trip.",
+ "operationId": "People.DeleteTrips",
"parameters": [
{
"name": "UserName",
@@ -12229,15 +23943,30 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/components/parameters/search"
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
},
{
- "$ref": "#/components/parameters/filter"
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
- "200": {
- "$ref": "#/components/responses/ODataCountResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
@@ -12249,18 +23978,22 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}",
+ "/People/{UserName}/Trips/{TripId}"
+ ]
},
- "/People/{UserName}/BestFriend": {
- "description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
+ "description": "Provides operations to call the GetInvolvedPeople method.",
"get": {
"tags": [
- "People.Person"
+ "People.Functions"
],
- "summary": "Get BestFriend from People",
- "description": "The best friend.",
- "operationId": "People.GetBestFriend",
+ "summary": "Invoke function GetInvolvedPeople",
+ "operationId": "People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee.Trips.Trip.GetInvolvedPeople",
"parameters": [
{
"name": "UserName",
@@ -12272,6 +24005,34 @@
},
"x-ms-docs-key-type": "Person"
},
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
{
"name": "$select",
"in": "query",
@@ -12303,9 +24064,9 @@
}
},
{
- "name": "$expand",
+ "name": "$orderby",
"in": "query",
- "description": "Expand related entities",
+ "description": "Order items by property values",
"style": "form",
"explode": false,
"schema": {
@@ -12313,10 +24074,28 @@
"type": "array",
"items": {
"enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
],
"type": "string"
}
@@ -12325,11 +24104,28 @@
],
"responses": {
"200": {
- "description": "Retrieved navigation property",
+ "description": "Success",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ "title": "Collection of Person",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ },
+ {
+ "type": "object",
+ "nullable": true
+ }
+ ]
+ }
+ }
+ }
}
}
}
@@ -12345,15 +24141,21 @@
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
},
- "x-ms-docs-operation-type": "operation"
+ "x-ms-docs-operation-type": "function"
},
- "patch": {
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()",
+ "/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()"
+ ]
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems": {
+ "description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.",
+ "get": {
"tags": [
- "People.Person"
+ "People.Trips.PlanItem"
],
- "summary": "Update the best friend.",
- "description": "Update an instance of a best friend.",
- "operationId": "People.UpdateBestFriend",
+ "summary": "Get PlanItems from People",
+ "operationId": "People.Trips.ListPlanItems",
"parameters": [
{
"name": "UserName",
@@ -12364,22 +24166,103 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- }
- ],
- "requestBody": {
- "description": "New navigation property values",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ },
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
}
}
},
- "required": true
- },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "ConfirmationCode",
+ "StartsAt",
+ "EndsAt",
+ "Duration"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ ],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -12393,17 +24276,20 @@
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
},
"x-ms-docs-operation-type": "operation"
- }
+ },
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems",
+ "/People/{UserName}/Trips/{TripId}/PlanItems"
+ ]
},
- "/People/{UserName}/BestFriend/$ref": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
"description": "Provides operations to manage the collection of Person entities.",
- "get": {
+ "delete": {
"tags": [
- "People.Person"
+ "People.Trips.PlanItem"
],
- "summary": "Get ref of BestFriend from People",
- "description": "The best friend.",
- "operationId": "People.GetRefBestFriend",
+ "summary": "Delete ref of navigation property PlanItems for People",
+ "operationId": "People.Trips.DeleteRefPlanItems",
"parameters": [
{
"name": "UserName",
@@ -12414,54 +24300,50 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- }
- ],
- "responses": {
- "200": {
- "description": "Retrieved navigation property link",
- "content": {
- "application/json": {
- "schema": {
- "type": "string"
- }
- }
- }
},
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- },
- "x-ms-docs-operation-type": "operation"
- },
- "put": {
- "tags": [
- "People.Person"
- ],
- "summary": "Update the best friend.",
- "description": "Update an instance of a best friend.",
- "operationId": "People.UpdateRefBestFriend",
- "parameters": [
{
- "name": "UserName",
+ "name": "TripId",
"in": "path",
- "description": "The unique identifier of Person",
+ "description": "The unique identifier of Trip",
"required": true,
"schema": {
- "type": "string"
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
},
- "x-ms-docs-key-type": "Person"
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "name": "PlanItemId",
+ "in": "path",
+ "description": "The unique identifier of PlanItem",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "PlanItem"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "@id",
+ "in": "query",
+ "description": "Delete Uri",
+ "schema": {
+ "type": "string"
+ }
}
],
- "requestBody": {
- "$ref": "#/components/requestBodies/refPutBody"
- },
"responses": {
"204": {
"description": "Success"
@@ -12478,13 +24360,16 @@
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
},
"x-ms-docs-operation-type": "operation"
- },
- "delete": {
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
"tags": [
- "People.Person"
+ "People.Trips.PlanItem"
],
- "summary": "Delete ref of navigation property BestFriend for People",
- "operationId": "People.DeleteRefBestFriend",
+ "summary": "Get the number of the resource",
+ "operationId": "People.Trips.PlanItems.GetCount-7df9",
"parameters": [
{
"name": "UserName",
@@ -12497,17 +24382,28 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "If-Match",
- "in": "header",
- "description": "ETag",
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
"schema": {
- "type": "string"
- }
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
}
],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -12519,17 +24415,17 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- },
- "x-ms-docs-operation-type": "operation"
+ }
}
},
- "/People/{UserName}/BestFriend/AddressInfo": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
"get": {
"tags": [
- "People.Person.Location"
+ "People.Trips.PlanItem"
],
- "summary": "Get AddressInfo property value",
- "operationId": "People.BestFriend.ListAddressInfo",
+ "summary": "Get ref of PlanItems from People",
+ "operationId": "People.Trips.ListRefPlanItems",
"parameters": [
{
"name": "UserName",
@@ -12541,6 +24437,19 @@
},
"x-ms-docs-key-type": "Person"
},
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
{
"$ref": "#/components/parameters/top"
},
@@ -12567,102 +24476,25 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "Address desc",
- "City",
- "City desc"
- ],
- "type": "string"
- }
- }
- },
- {
- "name": "$select",
- "in": "query",
- "description": "Select properties to be returned",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "Address",
- "City"
- ],
- "type": "string"
- }
- }
- },
- {
- "name": "$expand",
- "in": "query",
- "description": "Expand related entities",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "*"
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
],
"type": "string"
}
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- },
- "patch": {
- "tags": [
- "People.Person.Location"
- ],
- "summary": "Update property AddressInfo value.",
- "operationId": "People.BestFriend.UpdateAddressInfo",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
- "requestBody": {
- "description": "New property values",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- }
- },
- "required": true
- },
+ }
+ }
+ ],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/components/responses/StringCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -12674,14 +24506,15 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
},
"post": {
"tags": [
- "People.Person.Location"
+ "People.Trips.PlanItem"
],
- "summary": "Sets a new value for the collection of Location.",
- "operationId": "People.BestFriend.SetAddressInfo",
+ "summary": "Create new navigation property ref to PlanItems for People",
+ "operationId": "People.Trips.CreateRefPlanItems",
"parameters": [
{
"name": "UserName",
@@ -12694,27 +24527,21 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "If-Match",
- "in": "header",
- "description": "ETag",
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
"schema": {
- "type": "string"
- }
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
}
],
"requestBody": {
- "description": "New property values",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- }
- },
- "required": true
+ "$ref": "#/components/requestBodies/refPostBody"
},
"responses": {
"204": {
@@ -12730,17 +24557,18 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
}
},
- "/People/{UserName}/BestFriend/AddressInfo/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/$count": {
"description": "Provides operations to count the resources in the collection.",
"get": {
"tags": [
- "People.Person.Location"
+ "People.Trip"
],
"summary": "Get the number of the resource",
- "operationId": "People.BestFriend.AddressInfo.GetCount-16df",
+ "operationId": "People.Trips.GetCount-c760",
"parameters": [
{
"name": "UserName",
@@ -12752,6 +24580,20 @@
},
"x-ms-docs-key-type": "Person"
},
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
{
"$ref": "#/components/parameters/search"
},
@@ -12776,14 +24618,14 @@
}
}
},
- "/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "description": "Casts the previous resource to EventLocation.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()": {
+ "description": "Provides operations to call the GetFavoriteAirline method.",
"get": {
"tags": [
- "People.Person.Location"
+ "People.Functions"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation",
+ "summary": "Invoke function GetFavoriteAirline",
+ "operationId": "People.Person.GetFavoriteAirline",
"parameters": [
{
"name": "UserName",
@@ -12798,7 +24640,7 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "$ref": "#/components/responses/GetFavoriteAirlineResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -12810,14 +24652,18 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "function"
}
},
- "/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
- "description": "Provides operations to count the resources in the collection.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName='{userName}')": {
+ "description": "Provides operations to call the GetFriendsTrips method.",
"get": {
- "summary": "Get the number of the resource",
- "operationId": "People.BestFriend.ListAddressInfo.GetCount.AsEventLocation-fe88",
+ "tags": [
+ "People.Functions"
+ ],
+ "summary": "Invoke function GetFriendsTrips",
+ "operationId": "People.Person.GetFriendsTrips",
"parameters": [
{
"name": "UserName",
@@ -12829,47 +24675,29 @@
},
"x-ms-docs-key-type": "Person"
},
+ {
+ "name": "userName",
+ "in": "path",
+ "description": "Usage: userName='{userName}'",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
{
"$ref": "#/components/parameters/search"
},
{
"$ref": "#/components/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/ODataCountResponse"
},
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
- },
- "/People/{UserName}/BestFriend/HomeAddress": {
- "get": {
- "tags": [
- "People.Person.Location"
- ],
- "summary": "Get HomeAddress property value",
- "operationId": "People.BestFriend.GetHomeAddress",
- "parameters": [
{
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
+ "$ref": "#/components/parameters/count"
},
{
"name": "$select",
@@ -12882,17 +24710,24 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "City"
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
],
"type": "string"
}
}
},
{
- "name": "$expand",
+ "name": "$orderby",
"in": "query",
- "description": "Expand related entities",
+ "description": "Order items by property values",
"style": "form",
"explode": false,
"schema": {
@@ -12900,7 +24735,22 @@
"type": "array",
"items": {
"enum": [
- "*"
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
],
"type": "string"
}
@@ -12909,14 +24759,7 @@
],
"responses": {
"200": {
- "description": "Result entities",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- }
+ "$ref": "#/components/responses/GetFriendsTripsResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -12928,62 +24771,18 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- },
- "patch": {
- "tags": [
- "People.Person.Location"
- ],
- "summary": "Update property HomeAddress value.",
- "operationId": "People.BestFriend.UpdateHomeAddress",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
- "requestBody": {
- "description": "New property values",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- },
- "required": true
- },
- "responses": {
- "204": {
- "description": "Success"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
},
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ "x-ms-docs-operation-type": "function"
}
},
- "/People/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "description": "Casts the previous resource to EventLocation.",
- "get": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": {
+ "description": "Provides operations to call the GetPeersForTrip method.",
+ "post": {
"tags": [
- "People.Person.Location"
+ "People.Actions"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation",
+ "summary": "Invoke action GetPeersForTrip",
+ "operationId": "People.Person.GetPeersForTrip",
"parameters": [
{
"name": "UserName",
@@ -12996,9 +24795,12 @@
"x-ms-docs-key-type": "Person"
}
],
+ "requestBody": {
+ "$ref": "#/components/requestBodies/GetPeersForTripRequestBody"
+ },
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "$ref": "#/components/responses/GetPeersForTripResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -13010,17 +24812,18 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "action"
}
},
- "/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
- "description": "Casts the previous resource to Employee.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
+ "description": "Casts the previous resource to Manager.",
"get": {
"tags": [
"People.Person"
],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
- "operationId": "People.GetBestFriend.AsEmployee",
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
+ "operationId": "People.Person.GetPerson.AsManager",
"parameters": [
{
"name": "UserName",
@@ -13032,6 +24835,20 @@
},
"x-ms-docs-key-type": "Person"
},
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
{
"name": "$select",
"in": "query",
@@ -13089,7 +24906,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
}
}
}
@@ -13107,14 +24924,15 @@
}
}
},
- "/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
- "description": "Casts the previous resource to Manager.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend": {
+ "description": "Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
"get": {
"tags": [
"People.Person"
],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
- "operationId": "People.GetBestFriend.AsManager",
+ "summary": "Get BestFriend from People",
+ "description": "The best friend.",
+ "operationId": "People.GetBestFriend",
"parameters": [
{
"name": "UserName",
@@ -13179,11 +24997,11 @@
],
"responses": {
"200": {
- "description": "Result entities",
+ "description": "Retrieved navigation property",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
}
@@ -13198,17 +25016,16 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
- },
- "/People/{UserName}/Friends": {
- "description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
- "get": {
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
"tags": [
"People.Person"
],
- "summary": "Get Friends from People",
- "operationId": "People.ListFriends",
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "People.UpdateBestFriend",
"parameters": [
{
"name": "UserName",
@@ -13219,114 +25036,72 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/components/parameters/top"
- },
- {
- "$ref": "#/components/parameters/skip"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- },
- {
- "$ref": "#/components/parameters/count"
- },
- {
- "name": "$orderby",
- "in": "query",
- "description": "Order items by property values",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
- ],
- "type": "string"
+ }
+ ],
+ "requestBody": {
+ "description": "New navigation property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
},
- {
- "name": "$select",
- "in": "query",
- "description": "Select properties to be returned",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
},
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/BestFriend",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend"
+ ]
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get ref of BestFriend from People",
+ "description": "The best friend.",
+ "operationId": "People.GetRefBestFriend",
+ "parameters": [
{
- "name": "$expand",
- "in": "query",
- "description": "Expand related entities",
- "style": "form",
- "explode": false,
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ "description": "Retrieved navigation property link",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
},
"default": {
"$ref": "#/components/responses/error"
@@ -13340,16 +25115,14 @@
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
},
"x-ms-docs-operation-type": "operation"
- }
- },
- "/People/{UserName}/Friends/{UserName1}/$ref": {
- "description": "Provides operations to manage the collection of Person entities.",
- "delete": {
+ },
+ "put": {
"tags": [
"People.Person"
],
- "summary": "Delete ref of navigation property Friends for People",
- "operationId": "People.DeleteRefFriends",
+ "summary": "Update the best friend.",
+ "description": "Update an instance of a best friend.",
+ "operationId": "People.UpdateRefBestFriend",
"parameters": [
{
"name": "UserName",
@@ -13360,9 +25133,37 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ }
+ ],
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPutBody"
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
},
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Delete ref of navigation property BestFriend for People",
+ "operationId": "People.DeleteRefBestFriend",
+ "parameters": [
{
- "name": "UserName1",
+ "name": "UserName",
"in": "path",
"description": "The unique identifier of Person",
"required": true,
@@ -13378,14 +25179,6 @@
"schema": {
"type": "string"
}
- },
- {
- "name": "@id",
- "in": "query",
- "description": "Delete Uri",
- "schema": {
- "type": "string"
- }
}
],
"responses": {
@@ -13406,26 +25199,16 @@
"x-ms-docs-operation-type": "operation"
}
},
- "/People/{UserName}/Friends/{UserName1}/AddressInfo": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo": {
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get AddressInfo property value",
- "operationId": "People.Friends.ListAddressInfo",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
+ "operationId": "People.BestFriend.ListAddressInfo",
+ "parameters": [
{
- "name": "UserName1",
+ "name": "UserName",
"in": "path",
"description": "The unique identifier of Person",
"required": true,
@@ -13526,7 +25309,7 @@
"People.Person.Location"
],
"summary": "Update property AddressInfo value.",
- "operationId": "People.Friends.UpdateAddressInfo",
+ "operationId": "People.BestFriend.UpdateAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -13537,16 +25320,6 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
}
],
"requestBody": {
@@ -13584,7 +25357,7 @@
"People.Person.Location"
],
"summary": "Sets a new value for the collection of Location.",
- "operationId": "People.Friends.SetAddressInfo",
+ "operationId": "People.BestFriend.SetAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -13596,16 +25369,6 @@
},
"x-ms-docs-key-type": "Person"
},
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
{
"name": "If-Match",
"in": "header",
@@ -13646,14 +25409,14 @@
}
}
},
- "/People/{UserName}/Friends/{UserName1}/AddressInfo/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/$count": {
"description": "Provides operations to count the resources in the collection.",
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get the number of the resource",
- "operationId": "People.Friends.AddressInfo.GetCount-bdaf",
+ "operationId": "People.BestFriend.AddressInfo.GetCount-5a39",
"parameters": [
{
"name": "UserName",
@@ -13666,14 +25429,18 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
"schema": {
"type": "string"
},
- "x-ms-docs-key-type": "Person"
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
},
{
"$ref": "#/components/parameters/search"
@@ -13699,14 +25466,14 @@
}
}
},
- "/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"description": "Casts the previous resource to EventLocation.",
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.Friends.ListAddressInfo.AsEventLocation",
+ "operationId": "People.BestFriend.ListAddressInfo.AsEventLocation",
"parameters": [
{
"name": "UserName",
@@ -13717,16 +25484,6 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
}
],
"responses": {
@@ -13746,11 +25503,11 @@
}
}
},
- "/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
"description": "Provides operations to count the resources in the collection.",
"get": {
"summary": "Get the number of the resource",
- "operationId": "People.Friends.ListAddressInfo.GetCount.AsEventLocation-2795",
+ "operationId": "People.BestFriend.ListAddressInfo.GetCount.AsEventLocation-5af3",
"parameters": [
{
"name": "UserName",
@@ -13763,14 +25520,18 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
"schema": {
"type": "string"
},
- "x-ms-docs-key-type": "Person"
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
},
{
"$ref": "#/components/parameters/search"
@@ -13796,13 +25557,13 @@
}
}
},
- "/People/{UserName}/Friends/{UserName1}/HomeAddress": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress": {
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get HomeAddress property value",
- "operationId": "People.Friends.GetHomeAddress",
+ "operationId": "People.BestFriend.GetHomeAddress",
"parameters": [
{
"name": "UserName",
@@ -13814,16 +25575,6 @@
},
"x-ms-docs-key-type": "Person"
},
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
{
"name": "$select",
"in": "query",
@@ -13888,7 +25639,7 @@
"People.Person.Location"
],
"summary": "Update property HomeAddress value.",
- "operationId": "People.Friends.UpdateHomeAddress",
+ "operationId": "People.BestFriend.UpdateHomeAddress",
"parameters": [
{
"name": "UserName",
@@ -13899,184 +25650,23 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
}
],
"requestBody": {
"description": "New property values",
"content": {
"application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- },
- "required": true
- },
- "responses": {
- "204": {
- "description": "Success"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
- },
- "/People/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "description": "Casts the previous resource to EventLocation.",
- "get": {
- "tags": [
- "People.Person.Location"
- ],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.Friends.GetHomeAddress.AsEventLocation",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
- },
- "/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
- "description": "Casts the previous resource to Employee.",
- "get": {
- "tags": [
- "People.Person"
- ],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
- "operationId": "People.GetFriends.AsEmployee",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "$select",
- "in": "query",
- "description": "Select properties to be returned",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
- },
- {
- "name": "$expand",
- "in": "query",
- "description": "Expand related entities",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Result entities",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
- }
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
}
}
},
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
"default": {
"$ref": "#/components/responses/error"
}
@@ -14090,14 +25680,14 @@
}
}
},
- "/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
- "description": "Casts the previous resource to Manager.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
"get": {
"tags": [
- "People.Person"
+ "People.Person.Location"
],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
- "operationId": "People.GetFriends.AsManager",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.BestFriend.GetHomeAddress.AsEventLocation",
"parameters": [
{
"name": "UserName",
@@ -14108,9 +25698,36 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "description": "Casts the previous resource to Employee.",
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "People.GetBestFriend.AsEmployee",
+ "parameters": [
{
- "name": "UserName1",
+ "name": "UserName",
"in": "path",
"description": "The unique identifier of Person",
"required": true,
@@ -14176,7 +25793,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
}
}
}
@@ -14194,57 +25811,14 @@
}
}
},
- "/People/{UserName}/Friends/$count": {
- "description": "Provides operations to count the resources in the collection.",
- "get": {
- "tags": [
- "People.Person"
- ],
- "summary": "Get the number of the resource",
- "operationId": "People.Friends.GetCount-92b9",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/ODataCountResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
- },
- "/People/{UserName}/Friends/$ref": {
- "description": "Provides operations to manage the collection of Person entities.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports": {
+ "description": "Provides operations to manage the DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity.",
"get": {
"tags": [
"People.Person"
],
- "summary": "Get ref of Friends from People",
- "operationId": "People.ListRefFriends",
+ "summary": "Get DirectReports from People",
+ "operationId": "People.ListDirectReports",
"parameters": [
{
"name": "UserName",
@@ -14308,11 +25882,61 @@
"type": "string"
}
}
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
+ ],
+ "type": "string"
+ }
+ }
}
],
"responses": {
"200": {
- "$ref": "#/components/responses/StringCollectionResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -14326,13 +25950,16 @@
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
},
"x-ms-docs-operation-type": "operation"
- },
- "post": {
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "delete": {
"tags": [
"People.Person"
],
- "summary": "Create new navigation property ref to Friends for People",
- "operationId": "People.CreateRefFriends",
+ "summary": "Delete ref of navigation property DirectReports for People",
+ "operationId": "People.DeleteRefDirectReports",
"parameters": [
{
"name": "UserName",
@@ -14343,11 +25970,34 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "@id",
+ "in": "query",
+ "description": "Delete Uri",
+ "schema": {
+ "type": "string"
+ }
}
],
- "requestBody": {
- "$ref": "#/components/requestBodies/refPostBody"
- },
"responses": {
"204": {
"description": "Success"
@@ -14366,14 +26016,13 @@
"x-ms-docs-operation-type": "operation"
}
},
- "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
- "description": "Casts the previous resource to Employee.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo": {
"get": {
"tags": [
- "People.Person"
+ "People.Person.Location"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
- "operationId": "People.ListFriends.AsEmployee",
+ "summary": "Get AddressInfo property value",
+ "operationId": "People.DirectReports.ListAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -14385,6 +26034,16 @@
},
"x-ms-docs-key-type": "Person"
},
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
{
"$ref": "#/components/parameters/top"
},
@@ -14411,28 +26070,10 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
+ "Address",
+ "Address desc",
+ "City",
+ "City desc"
],
"type": "string"
}
@@ -14449,20 +26090,8 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "Address",
+ "City"
],
"type": "string"
}
@@ -14479,10 +26108,7 @@
"type": "array",
"items": {
"enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
+ "*"
],
"type": "string"
}
@@ -14491,7 +26117,7 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -14504,16 +26130,13 @@
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
- }
- },
- "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": {
- "description": "Provides operations to count the resources in the collection.",
- "get": {
+ },
+ "patch": {
"tags": [
- "People.Person"
+ "People.Person.Location"
],
- "summary": "Get the number of the resource",
- "operationId": "People.ListFriends.GetCount.AsEmployee-a96c",
+ "summary": "Update property AddressInfo value.",
+ "operationId": "People.DirectReports.UpdateAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -14526,15 +26149,33 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
+ },
+ "required": true
+ },
"responses": {
- "200": {
- "$ref": "#/components/responses/ODataCountResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
@@ -14547,16 +26188,13 @@
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
}
- }
- },
- "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
- "description": "Casts the previous resource to Manager.",
- "get": {
+ },
+ "post": {
"tags": [
- "People.Person"
+ "People.Person.Location"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
- "operationId": "People.ListFriends.AsManager",
+ "summary": "Sets a new value for the collection of Location.",
+ "operationId": "People.DirectReports.SetAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -14569,112 +26207,155 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/components/parameters/top"
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/components/parameters/skip"
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
},
- {
- "$ref": "#/components/parameters/search"
+ "required": true
+ },
+ "responses": {
+ "204": {
+ "description": "Success"
},
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Get the number of the resource",
+ "operationId": "People.DirectReports.AddressInfo.GetCount-f46e",
+ "parameters": [
{
- "$ref": "#/components/parameters/filter"
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/components/parameters/count"
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
},
{
- "name": "$orderby",
- "in": "query",
- "description": "Order items by property values",
- "style": "form",
- "explode": false,
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
"schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
- ],
- "type": "string"
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
}
}
},
{
- "name": "$select",
- "in": "query",
- "description": "Select properties to be returned",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "UserName",
- "FirstName",
- "LastName",
- "MiddleName",
- "Gender",
- "Age",
- "Emails",
- "AddressInfo",
- "HomeAddress",
- "FavoriteFeature",
- "Features",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
+ "$ref": "#/components/parameters/search"
},
{
- "name": "$expand",
- "in": "query",
- "description": "Expand related entities",
- "style": "form",
- "explode": false,
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
+ "get": {
+ "tags": [
+ "People.Person.Location"
+ ],
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.DirectReports.ListAddressInfo.AsEventLocation",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -14689,14 +26370,11 @@
}
}
},
- "/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
"description": "Provides operations to count the resources in the collection.",
"get": {
- "tags": [
- "People.Person"
- ],
"summary": "Get the number of the resource",
- "operationId": "People.ListFriends.GetCount.AsManager-26b3",
+ "operationId": "People.DirectReports.ListAddressInfo.GetCount.AsEventLocation-5d49",
"parameters": [
{
"name": "UserName",
@@ -14708,6 +26386,30 @@
},
"x-ms-docs-key-type": "Person"
},
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "schema": {
+ "type": "string"
+ },
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
+ },
{
"$ref": "#/components/parameters/search"
},
@@ -14732,13 +26434,13 @@
}
}
},
- "/People/{UserName}/HomeAddress": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress": {
"get": {
"tags": [
- "People.Location"
+ "People.Person.Location"
],
"summary": "Get HomeAddress property value",
- "operationId": "People.GetHomeAddress",
+ "operationId": "People.DirectReports.GetHomeAddress",
"parameters": [
{
"name": "UserName",
@@ -14750,6 +26452,16 @@
},
"x-ms-docs-key-type": "Person"
},
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
{
"name": "$select",
"in": "query",
@@ -14811,10 +26523,10 @@
},
"patch": {
"tags": [
- "People.Location"
+ "People.Person.Location"
],
"summary": "Update property HomeAddress value.",
- "operationId": "People.UpdateHomeAddress",
+ "operationId": "People.DirectReports.UpdateHomeAddress",
"parameters": [
{
"name": "UserName",
@@ -14825,6 +26537,16 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
"requestBody": {
@@ -14855,14 +26577,14 @@
}
}
},
- "/People/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"description": "Casts the previous resource to EventLocation.",
"get": {
"tags": [
- "People.Location"
+ "People.Person.Location"
],
"summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.GetHomeAddress.AsEventLocation",
+ "operationId": "People.DirectReports.GetHomeAddress.AsEventLocation",
"parameters": [
{
"name": "UserName",
@@ -14873,6 +26595,16 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
@@ -14892,14 +26624,14 @@
}
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
- "description": "Casts the previous resource to Employee.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count": {
+ "description": "Provides operations to count the resources in the collection.",
"get": {
"tags": [
"People.Person"
],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
- "operationId": "People.Person.GetPerson.AsEmployee",
+ "summary": "Get the number of the resource",
+ "operationId": "People.DirectReports.GetCount-0ec4",
"parameters": [
{
"name": "UserName",
@@ -14912,23 +26644,67 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "ConsistencyLevel",
- "in": "header",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "get": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Get ref of DirectReports from People",
+ "operationId": "People.ListRefDirectReports",
+ "parameters": [
+ {
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
"type": "string"
},
- "examples": {
- "example-1": {
- "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
- "value": "eventual"
- }
- }
+ "x-ms-docs-key-type": "Person"
},
{
- "name": "$select",
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
"in": "query",
- "description": "Select properties to be returned",
+ "description": "Order items by property values",
"style": "form",
"explode": false,
"schema": {
@@ -14937,55 +26713,74 @@
"items": {
"enum": [
"UserName",
+ "UserName desc",
"FirstName",
+ "FirstName desc",
"LastName",
+ "LastName desc",
"MiddleName",
+ "MiddleName desc",
"Gender",
+ "Gender desc",
"Age",
+ "Age desc",
"Emails",
+ "Emails desc",
"AddressInfo",
+ "AddressInfo desc",
"HomeAddress",
+ "HomeAddress desc",
"FavoriteFeature",
+ "FavoriteFeature desc",
"Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "Features desc"
],
"type": "string"
}
}
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/StringCollectionResponse"
},
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Create new navigation property ref to DirectReports for People",
+ "operationId": "People.CreateRefDirectReports",
+ "parameters": [
{
- "name": "$expand",
- "in": "query",
- "description": "Expand related entities",
- "style": "form",
- "explode": false,
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPostBody"
+ },
"responses": {
- "200": {
- "description": "Result entities",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
- }
- }
- }
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
@@ -14997,17 +26792,18 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers": {
- "description": "Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends": {
+ "description": "Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
"get": {
"tags": [
"People.Person"
],
- "summary": "Get Peers from People",
- "operationId": "People.ListPeers",
+ "summary": "Get Friends from People",
+ "operationId": "People.ListFriends",
"parameters": [
{
"name": "UserName",
@@ -15139,16 +26935,20 @@
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
},
"x-ms-docs-operation-type": "operation"
- }
+ },
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Friends",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends"
+ ]
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/$ref": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/$ref": {
"description": "Provides operations to manage the collection of Person entities.",
"delete": {
"tags": [
"People.Person"
],
- "summary": "Delete ref of navigation property Peers for People",
- "operationId": "People.DeleteRefPeers",
+ "summary": "Delete ref of navigation property Friends for People",
+ "operationId": "People.DeleteRefFriends",
"parameters": [
{
"name": "UserName",
@@ -15205,13 +27005,13 @@
"x-ms-docs-operation-type": "operation"
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo": {
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get AddressInfo property value",
- "operationId": "People.Peers.ListAddressInfo",
+ "operationId": "People.Friends.ListAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -15325,7 +27125,7 @@
"People.Person.Location"
],
"summary": "Update property AddressInfo value.",
- "operationId": "People.Peers.UpdateAddressInfo",
+ "operationId": "People.Friends.UpdateAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -15383,7 +27183,7 @@
"People.Person.Location"
],
"summary": "Sets a new value for the collection of Location.",
- "operationId": "People.Peers.SetAddressInfo",
+ "operationId": "People.Friends.SetAddressInfo",
"parameters": [
{
"name": "UserName",
@@ -15445,163 +27245,14 @@
}
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/$count": {
"description": "Provides operations to count the resources in the collection.",
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get the number of the resource",
- "operationId": "People.Peers.AddressInfo.GetCount-755d",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/ODataCountResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
- },
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "description": "Casts the previous resource to EventLocation.",
- "get": {
- "tags": [
- "People.Person.Location"
- ],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.Peers.ListAddressInfo.AsEventLocation",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
- },
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
- "description": "Provides operations to count the resources in the collection.",
- "get": {
- "summary": "Get the number of the resource",
- "operationId": "People.Peers.ListAddressInfo.GetCount.AsEventLocation-ef5e",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/components/responses/ODataCountResponse"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
- },
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress": {
- "get": {
- "tags": [
- "People.Person.Location"
- ],
- "summary": "Get HomeAddress property value",
- "operationId": "People.Peers.GetHomeAddress",
+ "operationId": "People.Friends.AddressInfo.GetCount-f486",
"parameters": [
{
"name": "UserName",
@@ -15624,106 +27275,15 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "$select",
- "in": "query",
- "description": "Select properties to be returned",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "Address",
- "City"
- ],
- "type": "string"
- }
- }
- },
- {
- "name": "$expand",
- "in": "query",
- "description": "Expand related entities",
- "style": "form",
- "explode": false,
- "schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "*"
- ],
- "type": "string"
- }
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Result entities",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
- }
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- },
- "patch": {
- "tags": [
- "People.Person.Location"
- ],
- "summary": "Update property HomeAddress value.",
- "operationId": "People.Peers.UpdateHomeAddress",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- }
- ],
- "requestBody": {
- "description": "New property values",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
- }
+ "$ref": "#/components/parameters/search"
},
- "required": true
- },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -15738,14 +27298,14 @@
}
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
"description": "Casts the previous resource to EventLocation.",
"get": {
"tags": [
"People.Person.Location"
],
"summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.Peers.GetHomeAddress.AsEventLocation",
+ "operationId": "People.Friends.ListAddressInfo.AsEventLocation",
"parameters": [
{
"name": "UserName",
@@ -15785,14 +27345,11 @@
}
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
"description": "Provides operations to count the resources in the collection.",
"get": {
- "tags": [
- "People.Person"
- ],
"summary": "Get the number of the resource",
- "operationId": "People.Peers.GetCount-44d2",
+ "operationId": "People.Friends.ListAddressInfo.GetCount.AsEventLocation-4480",
"parameters": [
{
"name": "UserName",
@@ -15804,6 +27361,16 @@
},
"x-ms-docs-key-type": "Person"
},
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
+ },
{
"$ref": "#/components/parameters/search"
},
@@ -15828,14 +27395,13 @@
}
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref": {
- "description": "Provides operations to manage the collection of Person entities.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/HomeAddress": {
"get": {
"tags": [
- "People.Person"
+ "People.Person.Location"
],
- "summary": "Get ref of Peers from People",
- "operationId": "People.ListRefPeers",
+ "summary": "Get HomeAddress property value",
+ "operationId": "People.Friends.GetHomeAddress",
"parameters": [
{
"name": "UserName",
@@ -15848,24 +27414,37 @@
"x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/components/parameters/top"
- },
- {
- "$ref": "#/components/parameters/skip"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
},
{
- "$ref": "#/components/parameters/count"
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "Address",
+ "City"
+ ],
+ "type": "string"
+ }
+ }
},
{
- "name": "$orderby",
+ "name": "$expand",
"in": "query",
- "description": "Order items by property values",
+ "description": "Expand related entities",
"style": "form",
"explode": false,
"schema": {
@@ -15873,28 +27452,7 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
+ "*"
],
"type": "string"
}
@@ -15903,7 +27461,14 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/StringCollectionResponse"
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ }
},
"default": {
"$ref": "#/components/responses/error"
@@ -15915,15 +27480,14 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- },
- "x-ms-docs-operation-type": "operation"
+ }
},
- "post": {
+ "patch": {
"tags": [
- "People.Person"
+ "People.Person.Location"
],
- "summary": "Create new navigation property ref to Peers for People",
- "operationId": "People.CreateRefPeers",
+ "summary": "Update property HomeAddress value.",
+ "operationId": "People.Friends.UpdateHomeAddress",
"parameters": [
{
"name": "UserName",
@@ -15934,10 +27498,28 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
"requestBody": {
- "$ref": "#/components/requestBodies/refPostBody"
+ "description": "New property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ }
+ }
+ },
+ "required": true
},
"responses": {
"204": {
@@ -15953,18 +27535,17 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "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.GetFavoriteAirline()": {
- "description": "Provides operations to call the GetFavoriteAirline method.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
+ "description": "Casts the previous resource to EventLocation.",
"get": {
"tags": [
- "People.Functions"
+ "People.Person.Location"
],
- "summary": "Invoke function GetFavoriteAirline",
- "operationId": "People.Person.GetFavoriteAirline",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
+ "operationId": "People.Friends.GetHomeAddress.AsEventLocation",
"parameters": [
{
"name": "UserName",
@@ -15975,11 +27556,21 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "UserName1",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
"responses": {
"200": {
- "$ref": "#/components/responses/GetFavoriteAirlineResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -15991,18 +27582,17 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- },
- "x-ms-docs-operation-type": "function"
+ }
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName='{userName}')": {
- "description": "Provides operations to call the GetFriendsTrips method.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "description": "Casts the previous resource to Employee.",
"get": {
"tags": [
- "People.Functions"
+ "People.Person"
],
- "summary": "Invoke function GetFriendsTrips",
- "operationId": "People.Person.GetFriendsTrips",
+ "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee",
+ "operationId": "People.GetFriends.AsEmployee",
"parameters": [
{
"name": "UserName",
@@ -16015,28 +27605,14 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "userName",
+ "name": "UserName1",
"in": "path",
- "description": "Usage: userName='{userName}'",
+ "description": "The unique identifier of Person",
"required": true,
"schema": {
"type": "string"
- }
- },
- {
- "$ref": "#/components/parameters/top"
- },
- {
- "$ref": "#/components/parameters/skip"
- },
- {
- "$ref": "#/components/parameters/search"
- },
- {
- "$ref": "#/components/parameters/filter"
- },
- {
- "$ref": "#/components/parameters/count"
+ },
+ "x-ms-docs-key-type": "Person"
},
{
"name": "$select",
@@ -16049,24 +27625,29 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "ShareId",
- "Name",
- "Budget",
- "Description",
- "Tags",
- "StartsAt",
- "EndsAt",
- "PlanItems"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
}
},
{
- "name": "$orderby",
+ "name": "$expand",
"in": "query",
- "description": "Order items by property values",
+ "description": "Expand related entities",
"style": "form",
"explode": false,
"schema": {
@@ -16074,22 +27655,10 @@
"type": "array",
"items": {
"enum": [
- "TripId",
- "TripId desc",
- "ShareId",
- "ShareId desc",
- "Name",
- "Name desc",
- "Budget",
- "Budget desc",
- "Description",
- "Description desc",
- "Tags",
- "Tags desc",
- "StartsAt",
- "StartsAt desc",
- "EndsAt",
- "EndsAt desc"
+ "*",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
@@ -16098,7 +27667,14 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/GetFriendsTripsResponse"
+ "description": "Result entities",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee"
+ }
+ }
+ }
},
"default": {
"$ref": "#/components/responses/error"
@@ -16109,19 +27685,18 @@
"removalDate": "2023-03-15T00:00:00.0000000",
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- },
- "x-ms-docs-operation-type": "function"
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip": {
- "description": "Provides operations to call the GetPeersForTrip method.",
- "post": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
"tags": [
- "People.Actions"
+ "People.Person"
],
- "summary": "Invoke action GetPeersForTrip",
- "operationId": "People.Person.GetPeersForTrip",
+ "summary": "Get the number of the resource",
+ "operationId": "People.Friends.GetCount-1c0c",
"parameters": [
{
"name": "UserName",
@@ -16132,14 +27707,17 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
}
],
- "requestBody": {
- "$ref": "#/components/requestBodies/GetPeersForTripRequestBody"
- },
"responses": {
"200": {
- "$ref": "#/components/responses/GetPeersForTripResponse"
+ "$ref": "#/components/responses/ODataCountResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -16151,18 +27729,17 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- },
- "x-ms-docs-operation-type": "action"
+ }
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
- "description": "Casts the previous resource to Manager.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
"get": {
"tags": [
"People.Person"
],
- "summary": "Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager",
- "operationId": "People.Person.GetPerson.AsManager",
+ "summary": "Get ref of Friends from People",
+ "operationId": "People.ListRefFriends",
"parameters": [
{
"name": "UserName",
@@ -16175,23 +27752,24 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "ConsistencyLevel",
- "in": "header",
- "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
- "schema": {
- "type": "string"
- },
- "examples": {
- "example-1": {
- "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
- "value": "eventual"
- }
- }
+ "$ref": "#/components/parameters/top"
},
{
- "name": "$select",
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
"in": "query",
- "description": "Select properties to be returned",
+ "description": "Order items by property values",
"style": "form",
"explode": false,
"schema": {
@@ -16200,55 +27778,74 @@
"items": {
"enum": [
"UserName",
+ "UserName desc",
"FirstName",
+ "FirstName desc",
"LastName",
+ "LastName desc",
"MiddleName",
+ "MiddleName desc",
"Gender",
+ "Gender desc",
"Age",
+ "Age desc",
"Emails",
+ "Emails desc",
"AddressInfo",
+ "AddressInfo desc",
"HomeAddress",
+ "HomeAddress desc",
"FavoriteFeature",
+ "FavoriteFeature desc",
"Features",
- "Friends",
- "BestFriend",
- "Trips"
+ "Features desc"
],
"type": "string"
}
}
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/StringCollectionResponse"
},
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "post": {
+ "tags": [
+ "People.Person"
+ ],
+ "summary": "Create new navigation property ref to Friends for People",
+ "operationId": "People.CreateRefFriends",
+ "parameters": [
{
- "name": "$expand",
- "in": "query",
- "description": "Expand related entities",
- "style": "form",
- "explode": false,
+ "name": "UserName",
+ "in": "path",
+ "description": "The unique identifier of Person",
+ "required": true,
"schema": {
- "uniqueItems": true,
- "type": "array",
- "items": {
- "enum": [
- "*",
- "Friends",
- "BestFriend",
- "Trips"
- ],
- "type": "string"
- }
- }
+ "type": "string"
+ },
+ "x-ms-docs-key-type": "Person"
}
],
+ "requestBody": {
+ "$ref": "#/components/requestBodies/refPostBody"
+ },
"responses": {
- "200": {
- "description": "Result entities",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager"
- }
- }
- }
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
@@ -16260,17 +27857,18 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports": {
- "description": "Provides operations to manage the DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
+ "description": "Casts the previous resource to Employee.",
"get": {
"tags": [
"People.Person"
],
- "summary": "Get DirectReports from People",
- "operationId": "People.ListDirectReports",
+ "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection",
+ "operationId": "People.ListFriends.AsEmployee",
"parameters": [
{
"name": "UserName",
@@ -16388,7 +27986,7 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -16400,18 +27998,17 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- },
- "x-ms-docs-operation-type": "operation"
+ }
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/$ref": {
- "description": "Provides operations to manage the collection of Person entities.",
- "delete": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
"tags": [
"People.Person"
],
- "summary": "Delete ref of navigation property DirectReports for People",
- "operationId": "People.DeleteRefDirectReports",
+ "summary": "Get the number of the resource",
+ "operationId": "People.ListFriends.GetCount.AsEmployee-f325",
"parameters": [
{
"name": "UserName",
@@ -16424,7 +28021,41 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "UserName1",
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
+ },
+ "default": {
+ "$ref": "#/components/responses/error"
+ }
+ },
+ "deprecated": true,
+ "x-ms-deprecation": {
+ "removalDate": "2023-03-15T00:00:00.0000000",
+ "date": "2021-08-24T00:00:00.0000000",
+ "version": "2021-05/people",
+ "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
+ }
+ }
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": {
+ "description": "Provides operations to call the Hire method.",
+ "post": {
+ "tags": [
+ "People.Actions"
+ ],
+ "summary": "Invoke action Hire",
+ "description": "Hires someone for the company.",
+ "operationId": "People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire",
+ "parameters": [
+ {
+ "name": "UserName",
"in": "path",
"description": "The unique identifier of Person",
"required": true,
@@ -16432,24 +28063,32 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "name": "If-Match",
- "in": "header",
- "description": "ETag",
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "@id",
- "in": "query",
- "description": "Delete Uri",
- "schema": {
- "type": "string"
- }
}
],
+ "requestBody": {
+ "description": "Action parameters",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "hire": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ },
+ {
+ "type": "object",
+ "nullable": true
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "required": true
+ },
"responses": {
"204": {
"description": "Success"
@@ -16465,16 +28104,18 @@
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
},
- "x-ms-docs-operation-type": "operation"
+ "x-ms-docs-operation-type": "action"
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips": {
+ "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
"get": {
"tags": [
- "People.Person.Location"
+ "People.Trip"
],
- "summary": "Get AddressInfo property value",
- "operationId": "People.DirectReports.ListAddressInfo",
+ "summary": "List trips.",
+ "description": "Retrieve a list of trips.",
+ "operationId": "People.ListTrips",
"parameters": [
{
"name": "UserName",
@@ -16487,14 +28128,18 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
+ "name": "ConsistencyLevel",
+ "in": "header",
+ "description": "Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries",
"schema": {
"type": "string"
},
- "x-ms-docs-key-type": "Person"
+ "examples": {
+ "example-1": {
+ "description": "$search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.",
+ "value": "eventual"
+ }
+ }
},
{
"$ref": "#/components/parameters/top"
@@ -16522,10 +28167,22 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "Address desc",
- "City",
- "City desc"
+ "TripId",
+ "TripId desc",
+ "ShareId",
+ "ShareId desc",
+ "Name",
+ "Name desc",
+ "Budget",
+ "Budget desc",
+ "Description",
+ "Description desc",
+ "Tags",
+ "Tags desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc"
],
"type": "string"
}
@@ -16542,8 +28199,15 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "City"
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
],
"type": "string"
}
@@ -16560,7 +28224,8 @@
"type": "array",
"items": {
"enum": [
- "*"
+ "*",
+ "PlanItems"
],
"type": "string"
}
@@ -16569,7 +28234,7 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse"
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -16581,14 +28246,16 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
},
- "patch": {
+ "post": {
"tags": [
- "People.Person.Location"
+ "People.Trip"
],
- "summary": "Update property AddressInfo value.",
- "operationId": "People.DirectReports.UpdateAddressInfo",
+ "summary": "Create a trip.",
+ "description": "Create a new trip.",
+ "operationId": "People.CreateTrips",
"parameters": [
{
"name": "UserName",
@@ -16599,102 +28266,30 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
}
],
"requestBody": {
- "description": "New property values",
+ "description": "New navigation property",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
- }
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
},
"required": true
},
"responses": {
- "204": {
- "description": "Success"
- },
- "default": {
- "$ref": "#/components/responses/error"
- }
- },
- "deprecated": true,
- "x-ms-deprecation": {
- "removalDate": "2023-03-15T00:00:00.0000000",
- "date": "2021-08-24T00:00:00.0000000",
- "version": "2021-05/people",
- "description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- },
- "post": {
- "tags": [
- "People.Person.Location"
- ],
- "summary": "Sets a new value for the collection of Location.",
- "operationId": "People.DirectReports.SetAddressInfo",
- "parameters": [
- {
- "name": "UserName",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "UserName1",
- "in": "path",
- "description": "The unique identifier of Person",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-ms-docs-key-type": "Person"
- },
- {
- "name": "If-Match",
- "in": "header",
- "description": "ETag",
- "schema": {
- "type": "string"
- }
- }
- ],
- "requestBody": {
- "description": "New property values",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ "201": {
+ "description": "Created navigation property.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
}
},
- "required": true
- },
- "responses": {
- "204": {
- "description": "Success"
- },
"default": {
"$ref": "#/components/responses/error"
}
@@ -16705,17 +28300,23 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips",
+ "/People/{UserName}/Trips"
+ ]
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/$count": {
- "description": "Provides operations to count the resources in the collection.",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}": {
+ "description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
"get": {
"tags": [
- "People.Person.Location"
+ "People.Trip"
],
- "summary": "Get the number of the resource",
- "operationId": "People.DirectReports.AddressInfo.GetCount-f46e",
+ "summary": "Get a trip.",
+ "description": "Retrieve the properties of a trip.",
+ "operationId": "People.GetTrips",
"parameters": [
{
"name": "UserName",
@@ -16728,25 +28329,72 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "UserName1",
+ "name": "TripId",
"in": "path",
- "description": "The unique identifier of Person",
+ "description": "The unique identifier of Trip",
"required": true,
"schema": {
- "type": "string"
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
},
- "x-ms-docs-key-type": "Person"
+ "x-ms-docs-key-type": "Trip"
},
{
- "$ref": "#/components/parameters/search"
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "TripId",
+ "ShareId",
+ "Name",
+ "Budget",
+ "Description",
+ "Tags",
+ "StartsAt",
+ "EndsAt",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
},
{
- "$ref": "#/components/parameters/filter"
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*",
+ "PlanItems"
+ ],
+ "type": "string"
+ }
+ }
}
],
"responses": {
"200": {
- "$ref": "#/components/responses/ODataCountResponse"
+ "description": "Retrieved navigation property",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ }
},
"default": {
"$ref": "#/components/responses/error"
@@ -16758,17 +28406,16 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
- },
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "description": "Casts the previous resource to EventLocation.",
- "get": {
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "patch": {
"tags": [
- "People.Person.Location"
+ "People.Trip"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.DirectReports.ListAddressInfo.AsEventLocation",
+ "summary": "Update a trip.",
+ "description": "Update an instance of a trip.",
+ "operationId": "People.UpdateTrips",
"parameters": [
{
"name": "UserName",
@@ -16781,19 +28428,33 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "UserName1",
+ "name": "TripId",
"in": "path",
- "description": "The unique identifier of Person",
+ "description": "The unique identifier of Trip",
"required": true,
"schema": {
- "type": "string"
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
},
- "x-ms-docs-key-type": "Person"
+ "x-ms-docs-key-type": "Trip"
}
],
+ "requestBody": {
+ "description": "New navigation property values",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
+ }
+ }
+ },
+ "required": true
+ },
"responses": {
- "200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
@@ -16805,14 +28466,16 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
- },
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count": {
- "description": "Provides operations to count the resources in the collection.",
- "get": {
- "summary": "Get the number of the resource",
- "operationId": "People.DirectReports.ListAddressInfo.GetCount.AsEventLocation-5d49",
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "delete": {
+ "tags": [
+ "People.Trip"
+ ],
+ "summary": "Delete a trip.",
+ "description": "Delete an instance of a trip.",
+ "operationId": "People.DeleteTrips",
"parameters": [
{
"name": "UserName",
@@ -16825,25 +28488,30 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "UserName1",
+ "name": "TripId",
"in": "path",
- "description": "The unique identifier of Person",
+ "description": "The unique identifier of Trip",
"required": true,
"schema": {
- "type": "string"
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
},
- "x-ms-docs-key-type": "Person"
- },
- {
- "$ref": "#/components/parameters/search"
+ "x-ms-docs-key-type": "Trip"
},
{
- "$ref": "#/components/parameters/filter"
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
- "200": {
- "$ref": "#/components/responses/ODataCountResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
@@ -16855,16 +28523,22 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}",
+ "/People/{UserName}/Trips/{TripId}"
+ ]
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
+ "description": "Provides operations to call the GetInvolvedPeople method.",
"get": {
"tags": [
- "People.Person.Location"
+ "People.Functions"
],
- "summary": "Get HomeAddress property value",
- "operationId": "People.DirectReports.GetHomeAddress",
+ "summary": "Invoke function GetInvolvedPeople",
+ "operationId": "People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Trips.Trip.GetInvolvedPeople",
"parameters": [
{
"name": "UserName",
@@ -16877,14 +28551,32 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "UserName1",
+ "name": "TripId",
"in": "path",
- "description": "The unique identifier of Person",
+ "description": "The unique identifier of Trip",
"required": true,
"schema": {
- "type": "string"
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
},
- "x-ms-docs-key-type": "Person"
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
},
{
"name": "$select",
@@ -16897,17 +28589,29 @@
"type": "array",
"items": {
"enum": [
- "Address",
- "City"
+ "UserName",
+ "FirstName",
+ "LastName",
+ "MiddleName",
+ "Gender",
+ "Age",
+ "Emails",
+ "AddressInfo",
+ "HomeAddress",
+ "FavoriteFeature",
+ "Features",
+ "Friends",
+ "BestFriend",
+ "Trips"
],
"type": "string"
}
}
},
{
- "name": "$expand",
+ "name": "$orderby",
"in": "query",
- "description": "Expand related entities",
+ "description": "Order items by property values",
"style": "form",
"explode": false,
"schema": {
@@ -16915,7 +28619,28 @@
"type": "array",
"items": {
"enum": [
- "*"
+ "UserName",
+ "UserName desc",
+ "FirstName",
+ "FirstName desc",
+ "LastName",
+ "LastName desc",
+ "MiddleName",
+ "MiddleName desc",
+ "Gender",
+ "Gender desc",
+ "Age",
+ "Age desc",
+ "Emails",
+ "Emails desc",
+ "AddressInfo",
+ "AddressInfo desc",
+ "HomeAddress",
+ "HomeAddress desc",
+ "FavoriteFeature",
+ "FavoriteFeature desc",
+ "Features",
+ "Features desc"
],
"type": "string"
}
@@ -16924,11 +28649,28 @@
],
"responses": {
"200": {
- "description": "Result entities",
+ "description": "Success",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ "title": "Collection of Person",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
+ },
+ {
+ "type": "object",
+ "nullable": true
+ }
+ ]
+ }
+ }
+ }
}
}
}
@@ -16943,14 +28685,22 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "function"
},
- "patch": {
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()",
+ "/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()"
+ ]
+ },
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems": {
+ "description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.",
+ "get": {
"tags": [
- "People.Person.Location"
+ "People.Trips.PlanItem"
],
- "summary": "Update property HomeAddress value.",
- "operationId": "People.DirectReports.UpdateHomeAddress",
+ "summary": "Get PlanItems from People",
+ "operationId": "People.Trips.ListPlanItems",
"parameters": [
{
"name": "UserName",
@@ -16963,30 +28713,101 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "UserName1",
+ "name": "TripId",
"in": "path",
- "description": "The unique identifier of Person",
+ "description": "The unique identifier of Trip",
"required": true,
"schema": {
- "type": "string"
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
},
- "x-ms-docs-key-type": "Person"
- }
- ],
- "requestBody": {
- "description": "New property values",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "$ref": "#/components/parameters/top"
+ },
+ {
+ "$ref": "#/components/parameters/skip"
+ },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ },
+ {
+ "$ref": "#/components/parameters/count"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "Order items by property values",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "Select properties to be returned",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "PlanItemId",
+ "ConfirmationCode",
+ "StartsAt",
+ "EndsAt",
+ "Duration"
+ ],
+ "type": "string"
+ }
+ }
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "Expand related entities",
+ "style": "form",
+ "explode": false,
+ "schema": {
+ "uniqueItems": true,
+ "type": "array",
+ "items": {
+ "enum": [
+ "*"
+ ],
+ "type": "string"
}
}
- },
- "required": true
- },
+ }
+ ],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -16998,17 +28819,22 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
- }
+ },
+ "x-ms-docs-operation-type": "operation"
+ },
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems",
+ "/People/{UserName}/Trips/{TripId}/PlanItems"
+ ]
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
- "description": "Casts the previous resource to EventLocation.",
- "get": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
+ "description": "Provides operations to manage the collection of Person entities.",
+ "delete": {
"tags": [
- "People.Person.Location"
+ "People.Trips.PlanItem"
],
- "summary": "Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection",
- "operationId": "People.DirectReports.GetHomeAddress.AsEventLocation",
+ "summary": "Delete ref of navigation property PlanItems for People",
+ "operationId": "People.Trips.DeleteRefPlanItems",
"parameters": [
{
"name": "UserName",
@@ -17021,19 +28847,51 @@
"x-ms-docs-key-type": "Person"
},
{
- "name": "UserName1",
+ "name": "TripId",
"in": "path",
- "description": "The unique identifier of Person",
+ "description": "The unique identifier of Trip",
"required": true,
"schema": {
- "type": "string"
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
},
- "x-ms-docs-key-type": "Person"
+ "x-ms-docs-key-type": "Trip"
+ },
+ {
+ "name": "PlanItemId",
+ "in": "path",
+ "description": "The unique identifier of PlanItem",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "PlanItem"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "description": "ETag",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "@id",
+ "in": "query",
+ "description": "Delete Uri",
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
- "200": {
- "$ref": "#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse"
+ "204": {
+ "description": "Success"
},
"default": {
"$ref": "#/components/responses/error"
@@ -17045,17 +28903,18 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- }
+ },
+ "x-ms-docs-operation-type": "operation"
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$count": {
"description": "Provides operations to count the resources in the collection.",
"get": {
"tags": [
- "People.Person"
+ "People.Trips.PlanItem"
],
"summary": "Get the number of the resource",
- "operationId": "People.DirectReports.GetCount-0ec4",
+ "operationId": "People.Trips.PlanItems.GetCount-fa08",
"parameters": [
{
"name": "UserName",
@@ -17067,6 +28926,19 @@
},
"x-ms-docs-key-type": "Person"
},
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
{
"$ref": "#/components/parameters/search"
},
@@ -17091,14 +28963,14 @@
}
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$ref": {
"description": "Provides operations to manage the collection of Person entities.",
"get": {
"tags": [
- "People.Person"
+ "People.Trips.PlanItem"
],
- "summary": "Get ref of DirectReports from People",
- "operationId": "People.ListRefDirectReports",
+ "summary": "Get ref of PlanItems from People",
+ "operationId": "People.Trips.ListRefPlanItems",
"parameters": [
{
"name": "UserName",
@@ -17110,6 +28982,19 @@
},
"x-ms-docs-key-type": "Person"
},
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
+ },
{
"$ref": "#/components/parameters/top"
},
@@ -17136,28 +29021,16 @@
"type": "array",
"items": {
"enum": [
- "UserName",
- "UserName desc",
- "FirstName",
- "FirstName desc",
- "LastName",
- "LastName desc",
- "MiddleName",
- "MiddleName desc",
- "Gender",
- "Gender desc",
- "Age",
- "Age desc",
- "Emails",
- "Emails desc",
- "AddressInfo",
- "AddressInfo desc",
- "HomeAddress",
- "HomeAddress desc",
- "FavoriteFeature",
- "FavoriteFeature desc",
- "Features",
- "Features desc"
+ "PlanItemId",
+ "PlanItemId desc",
+ "ConfirmationCode",
+ "ConfirmationCode desc",
+ "StartsAt",
+ "StartsAt desc",
+ "EndsAt",
+ "EndsAt desc",
+ "Duration",
+ "Duration desc"
],
"type": "string"
}
@@ -17183,10 +29056,10 @@
},
"post": {
"tags": [
- "People.Person"
+ "People.Trips.PlanItem"
],
- "summary": "Create new navigation property ref to DirectReports for People",
- "operationId": "People.CreateRefDirectReports",
+ "summary": "Create new navigation property ref to PlanItems for People",
+ "operationId": "People.Trips.CreateRefPlanItems",
"parameters": [
{
"name": "UserName",
@@ -17197,6 +29070,19 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
+ },
+ {
+ "name": "TripId",
+ "in": "path",
+ "description": "The unique identifier of Trip",
+ "required": true,
+ "schema": {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "integer",
+ "format": "int32"
+ },
+ "x-ms-docs-key-type": "Trip"
}
],
"requestBody": {
@@ -17220,15 +29106,14 @@
"x-ms-docs-operation-type": "operation"
}
},
- "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire": {
- "description": "Provides operations to call the Hire method.",
- "post": {
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count": {
+ "description": "Provides operations to count the resources in the collection.",
+ "get": {
"tags": [
- "People.Actions"
+ "People.Trip"
],
- "summary": "Invoke action Hire",
- "description": "Hires someone for the company.",
- "operationId": "People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire",
+ "summary": "Get the number of the resource",
+ "operationId": "People.Trips.GetCount-1f8c",
"parameters": [
{
"name": "UserName",
@@ -17239,35 +29124,31 @@
"type": "string"
},
"x-ms-docs-key-type": "Person"
- }
- ],
- "requestBody": {
- "description": "Action parameters",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "hire": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
- },
- {
- "type": "object",
- "nullable": true
- }
- ]
- }
- }
+ },
+ {
+ "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"
}
}
},
- "required": true
- },
+ {
+ "$ref": "#/components/parameters/search"
+ },
+ {
+ "$ref": "#/components/parameters/filter"
+ }
+ ],
"responses": {
- "204": {
- "description": "Success"
+ "200": {
+ "$ref": "#/components/responses/ODataCountResponse"
},
"default": {
"$ref": "#/components/responses/error"
@@ -17279,8 +29160,7 @@
"date": "2021-08-24T00:00:00.0000000",
"version": "2021-05/people",
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
- },
- "x-ms-docs-operation-type": "action"
+ }
}
},
"/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip": {
@@ -17567,7 +29447,11 @@
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
},
"x-ms-docs-operation-type": "operation"
- }
+ },
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips"
+ ]
},
"/People/{UserName}/Trips/{TripId}": {
"description": "Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.",
@@ -17786,7 +29670,11 @@
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
},
"x-ms-docs-operation-type": "operation"
- }
+ },
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}"
+ ]
},
"/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()": {
"description": "Provides operations to call the GetInvolvedPeople method.",
@@ -17944,7 +29832,11 @@
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
},
"x-ms-docs-operation-type": "function"
- }
+ },
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()"
+ ]
},
"/People/{UserName}/Trips/{TripId}/PlanItems": {
"description": "Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.",
@@ -18074,7 +29966,11 @@
"description": "The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API."
},
"x-ms-docs-operation-type": "operation"
- }
+ },
+ "x-ms-docs-grouped-path": [
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems",
+ "/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems"
+ ]
},
"/People/{UserName}/Trips/{TripId}/PlanItems/{PlanItemId}/$ref": {
"description": "Provides operations to manage the collection of Person entities.",
@@ -20435,20 +32331,20 @@
"x-ms-docs-toc-type": "page"
},
{
- "name": "Me.Functions",
- "x-ms-docs-toc-type": "container"
+ "name": "Me.Trip",
+ "x-ms-docs-toc-type": "page"
},
{
- "name": "Me.Actions",
+ "name": "Me.Functions",
"x-ms-docs-toc-type": "container"
},
{
- "name": "Me.Trip",
+ "name": "Me.Trips.PlanItem",
"x-ms-docs-toc-type": "page"
},
{
- "name": "Me.Trips.PlanItem",
- "x-ms-docs-toc-type": "page"
+ "name": "Me.Actions",
+ "x-ms-docs-toc-type": "container"
},
{
"name": "NewComePeople.Person",
@@ -20491,20 +32387,20 @@
"x-ms-docs-toc-type": "page"
},
{
- "name": "People.Functions",
- "x-ms-docs-toc-type": "container"
+ "name": "People.Trip",
+ "x-ms-docs-toc-type": "page"
},
{
- "name": "People.Actions",
+ "name": "People.Functions",
"x-ms-docs-toc-type": "container"
},
{
- "name": "People.Trip",
+ "name": "People.Trips.PlanItem",
"x-ms-docs-toc-type": "page"
},
{
- "name": "People.Trips.PlanItem",
- "x-ms-docs-toc-type": "page"
+ "name": "People.Actions",
+ "x-ms-docs-toc-type": "container"
},
{
"name": "ResetDataSource",
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 a8fd9e2c..1e8d3f48 100644
--- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.yaml
+++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.yaml
@@ -1310,6 +1310,9 @@ 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-ms-docs-grouped-path:
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend
/Me/BestFriend/$ref:
description: Provides operations to manage the collection of Person entities.
get:
@@ -1866,6 +1869,9 @@ 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-ms-docs-grouped-path:
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends
'/Me/Friends/{UserName}/$ref':
description: Provides operations to manage the collection of Person entities.
delete:
@@ -2860,52 +2866,15 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers:
- description: Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend:
+ description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
get:
tags:
- Me.Person
- summary: Get Peers from Me
- operationId: Me.ListPeers
+ summary: Get BestFriend from Me
+ description: The best friend.
+ operationId: Me.GetBestFriend
parameters:
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $orderby
- in: query
- description: Order items by property values
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
- name: $select
in: query
description: Select properties to be returned
@@ -2948,7 +2917,11 @@ paths:
type: string
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ description: Retrieved navigation property
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -2958,31 +2931,89 @@ 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/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/$ref':
+ patch:
+ tags:
+ - Me.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: Me.UpdateBestFriend
+ requestBody:
+ description: New navigation property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - /Me/BestFriend
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/$ref:
description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - Me.Person
+ summary: Get ref of BestFriend from Me
+ description: The best friend.
+ operationId: Me.GetRefBestFriend
+ responses:
+ '200':
+ description: Retrieved navigation property link
+ content:
+ application/json:
+ schema:
+ type: string
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ put:
+ tags:
+ - Me.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: Me.UpdateRefBestFriend
+ requestBody:
+ $ref: '#/components/requestBodies/refPutBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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
+ summary: Delete ref of navigation property BestFriend for Me
+ operationId: Me.DeleteRefBestFriend
parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- name: If-Match
in: header
description: ETag
schema:
type: string
- - name: '@id'
- in: query
- description: Delete Uri
- schema:
- type: string
responses:
'204':
description: Success
@@ -2995,20 +3026,13 @@ 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/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo:
get:
tags:
- Me.Person.Location
summary: Get AddressInfo property value
- operationId: Me.Peers.ListAddressInfo
+ operationId: Me.BestFriend.ListAddressInfo
parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/skip'
- $ref: '#/components/parameters/search'
@@ -3069,15 +3093,7 @@ paths:
tags:
- Me.Person.Location
summary: Update property AddressInfo value.
- operationId: Me.Peers.UpdateAddressInfo
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
+ operationId: Me.BestFriend.UpdateAddressInfo
requestBody:
description: New property values
content:
@@ -3102,15 +3118,8 @@ paths:
tags:
- Me.Person.Location
summary: Sets a new value for the collection of Location.
- operationId: Me.Peers.SetAddressInfo
+ operationId: Me.BestFriend.SetAddressInfo
parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- name: If-Match
in: header
description: ETag
@@ -3136,21 +3145,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/$count':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/$count:
description: Provides operations to count the resources in the collection.
get:
tags:
- Me.Person.Location
summary: Get the number of the resource
- operationId: Me.Peers.AddressInfo.GetCount-3e91
+ operationId: Me.BestFriend.AddressInfo.GetCount-81de
parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
responses:
@@ -3164,21 +3166,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation:
description: Casts the previous resource to EventLocation.
get:
tags:
- Me.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: Me.Peers.ListAddressInfo.AsEventLocation
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
+ operationId: Me.BestFriend.ListAddressInfo.AsEventLocation
responses:
'200':
$ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
@@ -3190,19 +3184,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count:
description: Provides operations to count the resources in the collection.
get:
summary: Get the number of the resource
- operationId: Me.Peers.ListAddressInfo.GetCount.AsEventLocation-be1d
+ operationId: Me.BestFriend.ListAddressInfo.GetCount.AsEventLocation-842c
parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
responses:
@@ -3216,20 +3203,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress:
get:
tags:
- Me.Person.Location
summary: Get HomeAddress property value
- operationId: Me.Peers.GetHomeAddress
+ operationId: Me.BestFriend.GetHomeAddress
parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- name: $select
in: query
description: Select properties to be returned
@@ -3274,15 +3254,7 @@ paths:
tags:
- Me.Person.Location
summary: Update property HomeAddress value.
- operationId: Me.Peers.UpdateHomeAddress
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
+ operationId: Me.BestFriend.UpdateHomeAddress
requestBody:
description: New property values
content:
@@ -3301,21 +3273,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation:
description: Casts the previous resource to EventLocation.
get:
tags:
- Me.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: Me.Peers.GetHomeAddress.AsEventLocation
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
+ operationId: Me.BestFriend.GetHomeAddress.AsEventLocation
responses:
'200':
$ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
@@ -3327,229 +3291,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count:
- description: Provides operations to count the resources in the collection.
- get:
- tags:
- - Me.Person
- summary: Get the number of the resource
- operationId: Me.Peers.GetCount-9fc2
- parameters:
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- responses:
- '200':
- $ref: '#/components/responses/ODataCountResponse'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref:
- description: Provides operations to manage the collection of Person entities.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager:
+ description: Casts the previous resource to Manager.
get:
tags:
- Me.Person
- summary: Get ref of Peers from Me
- operationId: Me.ListRefPeers
- parameters:
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $orderby
- in: query
- description: Order items by property values
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
- responses:
- '200':
- $ref: '#/components/responses/StringCollectionResponse'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: operation
- post:
- tags:
- - Me.Person
- summary: Create new navigation property ref to Peers for Me
- operationId: Me.CreateRefPeers
- requestBody:
- $ref: '#/components/requestBodies/refPostBody'
- responses:
- '204':
- description: Success
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: 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.GetFavoriteAirline():
- description: Provides operations to call the GetFavoriteAirline method.
- get:
- tags:
- - Me.Functions
- summary: Invoke function GetFavoriteAirline
- operationId: Me.GetFavoriteAirline
- responses:
- '200':
- $ref: '#/components/responses/GetFavoriteAirlineResponse'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: function
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')':
- description: Provides operations to call the GetFriendsTrips method.
- get:
- tags:
- - Me.Functions
- summary: Invoke function GetFriendsTrips
- operationId: Me.GetFriendsTrips
- parameters:
- - name: userName
- in: path
- description: 'Usage: userName=''{userName}'''
- required: true
- schema:
- type: string
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $select
- in: query
- description: Select properties to be returned
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - TripId
- - ShareId
- - Name
- - Budget
- - Description
- - Tags
- - StartsAt
- - EndsAt
- - PlanItems
- type: string
- - name: $orderby
- in: query
- description: Order items by property values
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - TripId
- - TripId desc
- - ShareId
- - ShareId desc
- - Name
- - Name desc
- - Budget
- - Budget desc
- - Description
- - Description desc
- - Tags
- - Tags desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
- type: string
- responses:
- '200':
- $ref: '#/components/responses/GetFriendsTripsResponse'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: function
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip:
- description: Provides operations to call the GetPeersForTrip method.
- post:
- tags:
- - Me.Actions
- summary: Invoke action GetPeersForTrip
- operationId: Me.GetPeersForTrip
- requestBody:
- $ref: '#/components/requestBodies/GetPeersForTripRequestBody'
- responses:
- '200':
- $ref: '#/components/responses/GetPeersForTripResponse'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: action
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager:
- description: Casts the previous resource to Manager.
- get:
- tags:
- - Me.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
- operationId: Me.Person.GetPerson.AsManager
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: Me.GetBestFriend.AsManager
parameters:
- name: $select
in: query
@@ -3606,13 +3354,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports:
- description: Provides operations to manage the DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends:
+ description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
get:
tags:
- Me.Person
- summary: Get DirectReports from Me
- operationId: Me.ListDirectReports
+ summary: Get Friends from Me
+ operationId: Me.ListFriends
parameters:
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/skip'
@@ -3704,13 +3452,16 @@ 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/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/$ref':
+ x-ms-docs-grouped-path:
+ - /Me/Friends
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/$ref':
description: Provides operations to manage the collection of Person entities.
delete:
tags:
- Me.Person
- summary: Delete ref of navigation property DirectReports for Me
- operationId: Me.DeleteRefDirectReports
+ summary: Delete ref of navigation property Friends for Me
+ operationId: Me.DeleteRefFriends
parameters:
- name: UserName
in: path
@@ -3741,12 +3492,12 @@ 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/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo':
get:
tags:
- Me.Person.Location
summary: Get AddressInfo property value
- operationId: Me.DirectReports.ListAddressInfo
+ operationId: Me.Friends.ListAddressInfo
parameters:
- name: UserName
in: path
@@ -3815,7 +3566,7 @@ paths:
tags:
- Me.Person.Location
summary: Update property AddressInfo value.
- operationId: Me.DirectReports.UpdateAddressInfo
+ operationId: Me.Friends.UpdateAddressInfo
parameters:
- name: UserName
in: path
@@ -3848,7 +3599,7 @@ paths:
tags:
- Me.Person.Location
summary: Sets a new value for the collection of Location.
- operationId: Me.DirectReports.SetAddressInfo
+ operationId: Me.Friends.SetAddressInfo
parameters:
- name: UserName
in: path
@@ -3882,13 +3633,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/$count':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/$count':
description: Provides operations to count the resources in the collection.
get:
tags:
- Me.Person.Location
summary: Get the number of the resource
- operationId: Me.DirectReports.AddressInfo.GetCount-f650
+ operationId: Me.Friends.AddressInfo.GetCount-660e
parameters:
- name: UserName
in: path
@@ -3910,13 +3661,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
description: Casts the previous resource to EventLocation.
get:
tags:
- Me.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: Me.DirectReports.ListAddressInfo.AsEventLocation
+ operationId: Me.Friends.ListAddressInfo.AsEventLocation
parameters:
- name: UserName
in: path
@@ -3936,11 +3687,11 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
description: Provides operations to count the resources in the collection.
get:
summary: Get the number of the resource
- operationId: Me.DirectReports.ListAddressInfo.GetCount.AsEventLocation-a070
+ operationId: Me.Friends.ListAddressInfo.GetCount.AsEventLocation-feb8
parameters:
- name: UserName
in: path
@@ -3962,12 +3713,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress':
get:
tags:
- Me.Person.Location
summary: Get HomeAddress property value
- operationId: Me.DirectReports.GetHomeAddress
+ operationId: Me.Friends.GetHomeAddress
parameters:
- name: UserName
in: path
@@ -4020,7 +3771,7 @@ paths:
tags:
- Me.Person.Location
summary: Update property HomeAddress value.
- operationId: Me.DirectReports.UpdateHomeAddress
+ operationId: Me.Friends.UpdateHomeAddress
parameters:
- name: UserName
in: path
@@ -4047,13 +3798,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
description: Casts the previous resource to EventLocation.
get:
tags:
- Me.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: Me.DirectReports.GetHomeAddress.AsEventLocation
+ operationId: Me.Friends.GetHomeAddress.AsEventLocation
parameters:
- name: UserName
in: path
@@ -4073,43 +3824,24 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count:
- description: Provides operations to count the resources in the collection.
- get:
- tags:
- - Me.Person
- summary: Get the number of the resource
- operationId: Me.DirectReports.GetCount-8b92
- parameters:
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- responses:
- '200':
- $ref: '#/components/responses/ODataCountResponse'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref:
- description: Provides operations to manage the collection of Person entities.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ description: Casts the previous resource to Manager.
get:
tags:
- Me.Person
- summary: Get ref of DirectReports from Me
- operationId: Me.ListRefDirectReports
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: Me.GetFriends.AsManager
parameters:
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $orderby
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
in: query
- description: Order items by property values
+ description: Select properties to be returned
style: form
explode: false
schema:
@@ -4118,31 +3850,42 @@ paths:
items:
enum:
- UserName
- - UserName desc
- FirstName
- - FirstName desc
- LastName
- - LastName desc
- MiddleName
- - MiddleName desc
- Gender
- - Gender desc
- Age
- - Age desc
- Emails
- - Emails desc
- AddressInfo
- - AddressInfo desc
- HomeAddress
- - HomeAddress desc
- FavoriteFeature
- - FavoriteFeature desc
- Features
- - Features desc
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
type: string
responses:
'200':
- $ref: '#/components/responses/StringCollectionResponse'
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -4151,17 +3894,19 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: operation
- post:
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$count:
+ description: Provides operations to count the resources in the collection.
+ get:
tags:
- Me.Person
- summary: Create new navigation property ref to DirectReports for Me
- operationId: Me.CreateRefDirectReports
- requestBody:
- $ref: '#/components/requestBodies/refPostBody'
+ summary: Get the number of the resource
+ operationId: Me.Friends.GetCount-0cb7
+ parameters:
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -4170,31 +3915,55 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: 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/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire:
- description: Provides operations to call the Hire method.
- post:
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$ref:
+ description: Provides operations to manage the collection of Person entities.
+ get:
tags:
- - Me.Actions
- summary: Invoke action Hire
- description: Hires someone for the company.
- operationId: Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire
- requestBody:
- description: Action parameters
- content:
- application/json:
- schema:
- type: object
- properties:
- hire:
- anyOf:
- - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
- - type: object
- nullable: true
- required: true
+ - Me.Person
+ summary: Get ref of Friends from Me
+ operationId: Me.ListRefFriends
+ parameters:
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/components/responses/StringCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -4203,17 +3972,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: action
- /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip:
- description: Provides operations to call the ShareTrip method.
+ x-ms-docs-operation-type: operation
post:
tags:
- - Me.Actions
- summary: Invoke action ShareTrip
- description: Details of the shared trip.
- operationId: Me.ShareTrip
+ - Me.Person
+ summary: Create new navigation property ref to Friends for Me
+ operationId: Me.CreateRefFriends
requestBody:
- $ref: '#/components/requestBodies/ShareTripRequestBody'
+ $ref: '#/components/requestBodies/refPostBody'
responses:
'204':
description: Success
@@ -4225,51 +3991,15 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: action
- '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName=''{lastName}'')':
- description: Provides operations to call the UpdatePersonLastName method.
- get:
- tags:
- - Me.Functions
- summary: Invoke function UpdatePersonLastName
- operationId: Me.UpdatePersonLastName
- parameters:
- - name: lastName
- in: path
- description: 'Usage: lastName=''{lastName}'''
- required: true
- schema:
- type: string
- responses:
- '200':
- $ref: '#/components/responses/UpdatePersonLastNameResponse'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: function
- /Me/Trips:
- description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ x-ms-docs-operation-type: operation
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager:
+ description: Casts the previous resource to Manager.
get:
tags:
- - Me.Trip
- summary: List trips.
- description: Retrieve a list of trips.
- operationId: Me.ListTrips
+ - Me.Person
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
+ operationId: Me.ListFriends.AsManager
parameters:
- - name: ConsistencyLevel
- in: header
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
- schema:
- type: string
- examples:
- example-1:
- description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
- value: eventual
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/skip'
- $ref: '#/components/parameters/search'
@@ -4285,22 +4015,28 @@ paths:
type: array
items:
enum:
- - TripId
- - TripId desc
- - ShareId
- - ShareId desc
- - Name
- - Name desc
- - Budget
- - Budget desc
- - Description
- - Description desc
- - Tags
- - Tags desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
type: string
- name: $select
in: query
@@ -4312,15 +4048,20 @@ paths:
type: array
items:
enum:
- - TripId
- - ShareId
- - Name
- - Budget
- - Description
- - Tags
- - StartsAt
- - EndsAt
- - PlanItems
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
type: string
- name: $expand
in: query
@@ -4333,11 +4074,13 @@ paths:
items:
enum:
- '*'
- - PlanItems
+ - Friends
+ - BestFriend
+ - Trips
type: string
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -4346,27 +4089,19 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: operation
- post:
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count:
+ description: Provides operations to count the resources in the collection.
+ get:
tags:
- - Me.Trip
- summary: Create a trip.
- description: Create a new trip.
- operationId: Me.CreateTrips
- requestBody:
- description: New navigation property
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
- required: true
+ - Me.Person
+ summary: Get the number of the resource
+ operationId: Me.ListFriends.GetCount.AsManager-85ff
+ parameters:
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
responses:
- '201':
- description: Created navigation property.
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -4375,26 +4110,52 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: operation
- '/Me/Trips/{TripId}':
- description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers:
+ description: Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity.
get:
tags:
- - Me.Trip
- summary: Get a trip.
- description: Retrieve the properties of a trip.
- operationId: Me.GetTrips
+ - Me.Person
+ summary: Get Peers from Me
+ operationId: Me.ListPeers
parameters:
- - name: TripId
- in: path
- description: The unique identifier of Trip
- required: true
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: Trip
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
- name: $select
in: query
description: Select properties to be returned
@@ -4405,15 +4166,20 @@ paths:
type: array
items:
enum:
- - TripId
- - ShareId
- - Name
- - Budget
- - Description
- - Tags
- - StartsAt
- - EndsAt
- - PlanItems
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
type: string
- name: $expand
in: query
@@ -4426,51 +4192,13 @@ paths:
items:
enum:
- '*'
- - PlanItems
+ - Friends
+ - BestFriend
+ - Trips
type: string
responses:
'200':
- description: Retrieved navigation property
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/me
- description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: operation
- patch:
- tags:
- - Me.Trip
- summary: Update a trip.
- description: Update an instance of a trip.
- operationId: Me.UpdateTrips
- parameters:
- - name: TripId
- in: path
- description: The unique identifier of Trip
- required: true
- schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: Trip
- requestBody:
- description: New navigation property values
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
- required: true
- responses:
- '204':
- description: Success
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -4480,28 +4208,31 @@ 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/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/$ref':
+ description: Provides operations to manage the collection of Person entities.
delete:
tags:
- - Me.Trip
- summary: Delete a trip.
- description: Delete an instance of a trip.
- operationId: Me.DeleteTrips
+ - Me.Person
+ summary: Delete ref of navigation property Peers for Me
+ operationId: Me.DeleteRefPeers
parameters:
- - name: TripId
+ - name: UserName
in: path
- description: The unique identifier of Trip
+ description: The unique identifier of Person
required: true
schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: Trip
+ type: string
+ x-ms-docs-key-type: Person
- name: If-Match
in: header
description: ETag
schema:
type: string
+ - name: '@id'
+ in: query
+ description: Delete Uri
+ schema:
+ type: string
responses:
'204':
description: Success
@@ -4514,29 +4245,40 @@ 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/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
- description: Provides operations to call the GetInvolvedPeople method.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo':
get:
tags:
- - Me.Functions
- summary: Invoke function GetInvolvedPeople
- operationId: Me.Trips.Trip.GetInvolvedPeople
+ - Me.Person.Location
+ summary: Get AddressInfo property value
+ operationId: Me.Peers.ListAddressInfo
parameters:
- - name: TripId
+ - name: UserName
in: path
- description: The unique identifier of Trip
+ description: The unique identifier of Person
required: true
schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: Trip
+ type: string
+ x-ms-docs-key-type: Person
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/skip'
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
- $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
- name: $select
in: query
description: Select properties to be returned
@@ -4547,24 +4289,12 @@ paths:
type: array
items:
enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
+ - Address
+ - City
type: string
- - name: $orderby
+ - name: $expand
in: query
- description: Order items by property values
+ description: Expand related entities
style: form
explode: false
schema:
@@ -4572,45 +4302,11 @@ paths:
type: array
items:
enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
+ - '*'
type: string
responses:
'200':
- description: Success
- content:
- application/json:
- schema:
- title: Collection of Person
- type: object
- properties:
- value:
- type: array
- items:
- anyOf:
- - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
- - type: object
- nullable: true
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -4619,82 +4315,31 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: function
- '/Me/Trips/{TripId}/PlanItems':
- description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
- get:
+ patch:
tags:
- - Me.Trips.PlanItem
- summary: Get PlanItems from Me
- operationId: Me.Trips.ListPlanItems
+ - Me.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: Me.Peers.UpdateAddressInfo
parameters:
- - name: TripId
+ - name: UserName
in: path
- description: The unique identifier of Trip
+ description: The unique identifier of Person
required: true
schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: Trip
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $orderby
- in: query
- description: Order items by property values
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - PlanItemId
- - PlanItemId desc
- - ConfirmationCode
- - ConfirmationCode desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
- - Duration
- - Duration desc
- type: string
- - name: $select
- in: query
- description: Select properties to be returned
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - PlanItemId
- - ConfirmationCode
- - StartsAt
- - EndsAt
- - Duration
- type: string
- - name: $expand
- in: query
- description: Expand related entities
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - '*'
- type: string
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
responses:
- '200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse'
+ '204':
+ description: Success
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -4703,45 +4348,33 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: operation
- '/Me/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
- description: Provides operations to manage the collection of Person entities.
- delete:
+ post:
tags:
- - Me.Trips.PlanItem
- summary: Delete ref of navigation property PlanItems for Me
- operationId: Me.Trips.DeleteRefPlanItems
+ - Me.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: Me.Peers.SetAddressInfo
parameters:
- - name: TripId
- in: path
- description: The unique identifier of Trip
- required: true
- schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: Trip
- - name: PlanItemId
+ - name: UserName
in: path
- description: The unique identifier of PlanItem
+ description: The unique identifier of Person
required: true
schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: PlanItem
+ type: string
+ x-ms-docs-key-type: Person
- name: If-Match
in: header
description: ETag
schema:
type: string
- - name: '@id'
- in: query
- description: Delete Uri
- schema:
- type: string
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
responses:
'204':
description: Success
@@ -4753,25 +4386,21 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: operation
- '/Me/Trips/{TripId}/PlanItems/$count':
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/$count':
description: Provides operations to count the resources in the collection.
get:
tags:
- - Me.Trips.PlanItem
+ - Me.Person.Location
summary: Get the number of the resource
- operationId: Me.Trips.PlanItems.GetCount-c250
+ operationId: Me.Peers.AddressInfo.GetCount-3e91
parameters:
- - name: TripId
+ - name: UserName
in: path
- description: The unique identifier of Trip
+ description: The unique identifier of Person
required: true
schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: Trip
+ type: string
+ x-ms-docs-key-type: Person
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
responses:
@@ -4785,53 +4414,24 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- '/Me/Trips/{TripId}/PlanItems/$ref':
- description: Provides operations to manage the collection of Person entities.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
get:
tags:
- - Me.Trips.PlanItem
- summary: Get ref of PlanItems from Me
- operationId: Me.Trips.ListRefPlanItems
+ - Me.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: Me.Peers.ListAddressInfo.AsEventLocation
parameters:
- - name: TripId
+ - name: UserName
in: path
- description: The unique identifier of Trip
+ description: The unique identifier of Person
required: true
schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: Trip
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $orderby
- in: query
- description: Order items by property values
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - PlanItemId
- - PlanItemId desc
- - ConfirmationCode
- - ConfirmationCode desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
- - Duration
- - Duration desc
- type: string
+ type: string
+ x-ms-docs-key-type: Person
responses:
'200':
- $ref: '#/components/responses/StringCollectionResponse'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -4840,28 +4440,24 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- x-ms-docs-operation-type: operation
- post:
- tags:
- - Me.Trips.PlanItem
- summary: Create new navigation property ref to PlanItems for Me
- operationId: Me.Trips.CreateRefPlanItems
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ summary: Get the number of the resource
+ operationId: Me.Peers.ListAddressInfo.GetCount.AsEventLocation-be1d
parameters:
- - name: TripId
+ - name: UserName
in: path
- description: The unique identifier of Trip
+ description: The unique identifier of Person
required: true
schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: Trip
- requestBody:
- $ref: '#/components/requestBodies/refPostBody'
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -4870,24 +4466,125 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: 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.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress':
get:
tags:
- - Me.Trip
- summary: Get the number of the resource
- operationId: Me.Trips.GetCount-7b69
+ - Me.Person.Location
+ summary: Get HomeAddress property value
+ operationId: Me.Peers.GetHomeAddress
parameters:
- - name: ConsistencyLevel
- in: header
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
schema:
type: string
- examples:
- example-1:
- description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
- value: eventual
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ patch:
+ tags:
+ - Me.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: Me.Peers.UpdateHomeAddress
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: Me.Peers.GetHomeAddress.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count:
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - Me.Person
+ summary: Get the number of the resource
+ operationId: Me.Peers.GetCount-9fc2
+ parameters:
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
responses:
@@ -4901,13 +4598,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/me
description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
- /NewComePeople:
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref:
description: Provides operations to manage the collection of Person entities.
get:
tags:
- - NewComePeople.Person
- summary: Get entities from NewComePeople
- operationId: NewComePeople.Person.ListPerson
+ - Me.Person
+ summary: Get ref of Peers from Me
+ operationId: Me.ListRefPeers
parameters:
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/skip'
@@ -4947,6 +4644,87 @@ paths:
- Features
- Features desc
type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/StringCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - Me.Person
+ summary: Create new navigation property ref to Peers for Me
+ operationId: Me.CreateRefPeers
+ requestBody:
+ $ref: '#/components/requestBodies/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips:
+ description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ get:
+ tags:
+ - Me.Trip
+ summary: List trips.
+ description: Retrieve a list of trips.
+ operationId: Me.ListTrips
+ parameters:
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ type: string
- name: $select
in: query
description: Select properties to be returned
@@ -4957,20 +4735,15 @@ paths:
type: array
items:
enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
type: string
- name: $expand
in: query
@@ -4983,52 +4756,71 @@ paths:
items:
enum:
- '*'
- - Friends
- - BestFriend
- - Trips
+ - PlanItems
type: string
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse'
default:
$ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
post:
tags:
- - NewComePeople.Person
- summary: Add new entity to NewComePeople
- operationId: NewComePeople.Person.CreatePerson
+ - Me.Trip
+ summary: Create a trip.
+ description: Create a new trip.
+ operationId: Me.CreateTrips
requestBody:
- description: New entity
+ description: New navigation property
content:
application/json:
schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
required: true
responses:
'201':
- description: Created entity
+ description: Created navigation property.
content:
application/json:
schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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
- '/NewComePeople/{UserName}':
- description: Provides operations to manage the collection of Person entities.
+ x-ms-docs-grouped-path:
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips
+ - /Me/Trips
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}':
+ description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
get:
tags:
- - NewComePeople.Person
- summary: Get entity from NewComePeople by key
- operationId: NewComePeople.Person.GetPerson
+ - Me.Trip
+ summary: Get a trip.
+ description: Retrieve the properties of a trip.
+ operationId: Me.GetTrips
parameters:
- - name: UserName
+ - name: TripId
in: path
- description: The unique identifier of Person
+ description: The unique identifier of Trip
required: true
schema:
- type: string
- x-ms-docs-key-type: Person
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
- name: $select
in: query
description: Select properties to be returned
@@ -5039,20 +4831,15 @@ paths:
type: array
items:
enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
type: string
- name: $expand
in: query
@@ -5065,59 +4852,77 @@ paths:
items:
enum:
- '*'
- - Friends
- - BestFriend
- - Trips
+ - PlanItems
type: string
responses:
'200':
- description: Retrieved entity
+ description: Retrieved navigation property
content:
application/json:
schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
x-ms-docs-operation-type: operation
patch:
tags:
- - NewComePeople.Person
- summary: Update entity in NewComePeople
- operationId: NewComePeople.Person.UpdatePerson
+ - Me.Trip
+ summary: Update a trip.
+ description: Update an instance of a trip.
+ operationId: Me.UpdateTrips
parameters:
- - name: UserName
+ - name: TripId
in: path
- description: The unique identifier of Person
+ description: The unique identifier of Trip
required: true
schema:
- type: string
- x-ms-docs-key-type: Person
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
requestBody:
- description: New property values
+ description: New navigation property values
content:
application/json:
schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
required: true
responses:
'204':
description: Success
default:
$ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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:
- - NewComePeople.Person
- summary: Delete entity from NewComePeople
- operationId: NewComePeople.Person.DeletePerson
+ - Me.Trip
+ summary: Delete a trip.
+ description: Delete an instance of a trip.
+ operationId: Me.DeleteTrips
parameters:
- - name: UserName
+ - name: TripId
in: path
- description: The unique identifier of Person
+ description: The unique identifier of Trip
required: true
schema:
- type: string
- x-ms-docs-key-type: Person
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
- name: If-Match
in: header
description: ETag
@@ -5128,41 +4933,39 @@ paths:
description: Success
default:
$ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: 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
- '/NewComePeople/{UserName}/AddressInfo':
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}'
+ - '/Me/Trips/{TripId}'
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
+ description: Provides operations to call the GetInvolvedPeople method.
get:
tags:
- - NewComePeople.Location
- summary: Get AddressInfo property value
- operationId: NewComePeople.ListAddressInfo
+ - Me.Functions
+ summary: Invoke function GetInvolvedPeople
+ operationId: Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee.Trips.Trip.GetInvolvedPeople
parameters:
- - name: UserName
+ - name: TripId
in: path
- description: The unique identifier of Person
+ description: The unique identifier of Trip
required: true
schema:
- type: string
- x-ms-docs-key-type: Person
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/skip'
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
- $ref: '#/components/parameters/count'
- - name: $orderby
- in: query
- description: Order items by property values
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - Address
- - Address desc
- - City
- - City desc
- type: string
- name: $select
in: query
description: Select properties to be returned
@@ -5173,12 +4976,24 @@ paths:
type: array
items:
enum:
- - Address
- - City
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
type: string
- - name: $expand
+ - name: $orderby
in: query
- description: Expand related entities
+ description: Order items by property values
style: form
explode: false
schema:
@@ -5186,45 +5001,8292 @@ paths:
type: array
items:
enum:
- - '*'
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
type: string
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ description: Success
+ content:
+ application/json:
+ schema:
+ title: Collection of Person
+ type: object
+ properties:
+ value:
+ type: array
+ items:
+ anyOf:
+ - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ - type: object
+ nullable: true
default:
$ref: '#/components/responses/error'
- patch:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: function
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ - '/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems':
+ description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
+ get:
tags:
- - NewComePeople.Location
- summary: Update property AddressInfo value.
- operationId: NewComePeople.UpdateAddressInfo
+ - Me.Trips.PlanItem
+ summary: Get PlanItems from Me
+ operationId: Me.Trips.ListPlanItems
parameters:
- - name: UserName
+ - name: TripId
in: path
- description: The unique identifier of Person
+ description: The unique identifier of Trip
required: true
schema:
- type: string
- x-ms-docs-key-type: Person
- requestBody:
- description: New property values
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- required: true
- responses:
- '204':
- description: Success
- default:
- $ref: '#/components/responses/error'
- post:
- tags:
- - NewComePeople.Location
- summary: Sets a new value for the collection of Location.
- operationId: NewComePeople.SetAddressInfo
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - ConfirmationCode
+ - StartsAt
+ - EndsAt
+ - Duration
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems'
+ - '/Me/Trips/{TripId}/PlanItems'
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ delete:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Delete ref of navigation property PlanItems for Me
+ operationId: Me.Trips.DeleteRefPlanItems
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - name: PlanItemId
+ in: path
+ description: The unique identifier of PlanItem
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: PlanItem
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ - name: '@id'
+ in: query
+ description: Delete Uri
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Get the number of the resource
+ operationId: Me.Trips.PlanItems.GetCount-a822
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Get ref of PlanItems from Me
+ operationId: Me.Trips.ListRefPlanItems
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/StringCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Create new navigation property ref to PlanItems for Me
+ operationId: Me.Trips.CreateRefPlanItems
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ requestBody:
+ $ref: '#/components/requestBodies/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/$count:
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - Me.Trip
+ summary: Get the number of the resource
+ operationId: Me.Trips.GetCount-5aa2
+ parameters:
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline():
+ description: Provides operations to call the GetFavoriteAirline method.
+ get:
+ tags:
+ - Me.Functions
+ summary: Invoke function GetFavoriteAirline
+ operationId: Me.GetFavoriteAirline
+ responses:
+ '200':
+ $ref: '#/components/responses/GetFavoriteAirlineResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: function
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')':
+ description: Provides operations to call the GetFriendsTrips method.
+ get:
+ tags:
+ - Me.Functions
+ summary: Invoke function GetFriendsTrips
+ operationId: Me.GetFriendsTrips
+ parameters:
+ - name: userName
+ in: path
+ description: 'Usage: userName=''{userName}'''
+ required: true
+ schema:
+ type: string
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/GetFriendsTripsResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: function
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip:
+ description: Provides operations to call the GetPeersForTrip method.
+ post:
+ tags:
+ - Me.Actions
+ summary: Invoke action GetPeersForTrip
+ operationId: Me.GetPeersForTrip
+ requestBody:
+ $ref: '#/components/requestBodies/GetPeersForTripRequestBody'
+ responses:
+ '200':
+ $ref: '#/components/responses/GetPeersForTripResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: action
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager:
+ description: Casts the previous resource to Manager.
+ get:
+ tags:
+ - Me.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: Me.Person.GetPerson.AsManager
+ parameters:
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend:
+ description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ get:
+ tags:
+ - Me.Person
+ summary: Get BestFriend from Me
+ description: The best friend.
+ operationId: Me.GetBestFriend
+ parameters:
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Retrieved navigation property
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - Me.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: Me.UpdateBestFriend
+ requestBody:
+ description: New navigation property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - /Me/BestFriend
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/$ref:
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - Me.Person
+ summary: Get ref of BestFriend from Me
+ description: The best friend.
+ operationId: Me.GetRefBestFriend
+ responses:
+ '200':
+ description: Retrieved navigation property link
+ content:
+ application/json:
+ schema:
+ type: string
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ put:
+ tags:
+ - Me.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: Me.UpdateRefBestFriend
+ requestBody:
+ $ref: '#/components/requestBodies/refPutBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - Me.Person
+ summary: Delete ref of navigation property BestFriend for Me
+ operationId: Me.DeleteRefBestFriend
+ parameters:
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo:
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get AddressInfo property value
+ operationId: Me.BestFriend.ListAddressInfo
+ parameters:
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ patch:
+ tags:
+ - Me.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: Me.BestFriend.UpdateAddressInfo
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ post:
+ tags:
+ - Me.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: Me.BestFriend.SetAddressInfo
+ parameters:
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/$count:
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get the number of the resource
+ operationId: Me.BestFriend.AddressInfo.GetCount-6ea6
+ parameters:
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation:
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: Me.BestFriend.ListAddressInfo.AsEventLocation
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count:
+ description: Provides operations to count the resources in the collection.
+ get:
+ summary: Get the number of the resource
+ operationId: Me.BestFriend.ListAddressInfo.GetCount.AsEventLocation-692e
+ parameters:
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress:
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get HomeAddress property value
+ operationId: Me.BestFriend.GetHomeAddress
+ parameters:
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ patch:
+ tags:
+ - Me.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: Me.BestFriend.UpdateHomeAddress
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation:
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: Me.BestFriend.GetHomeAddress.AsEventLocation
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee:
+ description: Casts the previous resource to Employee.
+ get:
+ tags:
+ - Me.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
+ operationId: Me.GetBestFriend.AsEmployee
+ parameters:
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports:
+ description: Provides operations to manage the DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity.
+ get:
+ tags:
+ - Me.Person
+ summary: Get DirectReports from Me
+ operationId: Me.ListDirectReports
+ parameters:
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ delete:
+ tags:
+ - Me.Person
+ summary: Delete ref of navigation property DirectReports for Me
+ operationId: Me.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: Delete Uri
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo':
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get AddressInfo property value
+ operationId: Me.DirectReports.ListAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ patch:
+ tags:
+ - Me.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: Me.DirectReports.UpdateAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ post:
+ tags:
+ - Me.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: Me.DirectReports.SetAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get the number of the resource
+ operationId: Me.DirectReports.AddressInfo.GetCount-f650
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: Me.DirectReports.ListAddressInfo.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ summary: Get the number of the resource
+ operationId: Me.DirectReports.ListAddressInfo.GetCount.AsEventLocation-a070
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress':
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get HomeAddress property value
+ operationId: Me.DirectReports.GetHomeAddress
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ patch:
+ tags:
+ - Me.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: Me.DirectReports.UpdateHomeAddress
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: Me.DirectReports.GetHomeAddress.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count:
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - Me.Person
+ summary: Get the number of the resource
+ operationId: Me.DirectReports.GetCount-8b92
+ parameters:
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref:
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - Me.Person
+ summary: Get ref of DirectReports from Me
+ operationId: Me.ListRefDirectReports
+ parameters:
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/StringCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - Me.Person
+ summary: Create new navigation property ref to DirectReports for Me
+ operationId: Me.CreateRefDirectReports
+ requestBody:
+ $ref: '#/components/requestBodies/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends:
+ description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ get:
+ tags:
+ - Me.Person
+ summary: Get Friends from Me
+ operationId: Me.ListFriends
+ parameters:
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - /Me/Friends
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ delete:
+ tags:
+ - Me.Person
+ summary: Delete ref of navigation property Friends for Me
+ operationId: Me.DeleteRefFriends
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ - name: '@id'
+ in: query
+ description: Delete Uri
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo':
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get AddressInfo property value
+ operationId: Me.Friends.ListAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ patch:
+ tags:
+ - Me.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: Me.Friends.UpdateAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ post:
+ tags:
+ - Me.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: Me.Friends.SetAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get the number of the resource
+ operationId: Me.Friends.AddressInfo.GetCount-b7db
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: Me.Friends.ListAddressInfo.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ summary: Get the number of the resource
+ operationId: Me.Friends.ListAddressInfo.GetCount.AsEventLocation-4d69
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/HomeAddress':
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get HomeAddress property value
+ operationId: Me.Friends.GetHomeAddress
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ patch:
+ tags:
+ - Me.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: Me.Friends.UpdateHomeAddress
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - Me.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: Me.Friends.GetHomeAddress.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ description: Casts the previous resource to Employee.
+ get:
+ tags:
+ - Me.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
+ operationId: Me.GetFriends.AsEmployee
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$count:
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - Me.Person
+ summary: Get the number of the resource
+ operationId: Me.Friends.GetCount-60a7
+ parameters:
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$ref:
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - Me.Person
+ summary: Get ref of Friends from Me
+ operationId: Me.ListRefFriends
+ parameters:
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/StringCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - Me.Person
+ summary: Create new navigation property ref to Friends for Me
+ operationId: Me.CreateRefFriends
+ requestBody:
+ $ref: '#/components/requestBodies/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee:
+ description: Casts the previous resource to Employee.
+ get:
+ tags:
+ - Me.Person
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
+ operationId: Me.ListFriends.AsEmployee
+ parameters:
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count:
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - Me.Person
+ summary: Get the number of the resource
+ operationId: Me.ListFriends.GetCount.AsEmployee-6a35
+ parameters:
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire:
+ description: Provides operations to call the Hire method.
+ post:
+ tags:
+ - Me.Actions
+ summary: Invoke action Hire
+ description: Hires someone for the company.
+ operationId: Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire
+ requestBody:
+ description: Action parameters
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ hire:
+ anyOf:
+ - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ - type: object
+ nullable: true
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: action
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips:
+ description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ get:
+ tags:
+ - Me.Trip
+ summary: List trips.
+ description: Retrieve a list of trips.
+ operationId: Me.ListTrips
+ parameters:
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - PlanItems
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - Me.Trip
+ summary: Create a trip.
+ description: Create a new trip.
+ operationId: Me.CreateTrips
+ requestBody:
+ description: New navigation property
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ required: true
+ responses:
+ '201':
+ description: Created navigation property.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips
+ - /Me/Trips
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}':
+ description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ get:
+ tags:
+ - Me.Trip
+ summary: Get a trip.
+ description: Retrieve the properties of a trip.
+ operationId: Me.GetTrips
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - PlanItems
+ type: string
+ responses:
+ '200':
+ description: Retrieved navigation property
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - Me.Trip
+ summary: Update a trip.
+ description: Update an instance of a trip.
+ operationId: Me.UpdateTrips
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ requestBody:
+ description: New navigation property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - Me.Trip
+ summary: Delete a trip.
+ description: Delete an instance of a trip.
+ operationId: Me.DeleteTrips
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}'
+ - '/Me/Trips/{TripId}'
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
+ description: Provides operations to call the GetInvolvedPeople method.
+ get:
+ tags:
+ - Me.Functions
+ summary: Invoke function GetInvolvedPeople
+ operationId: Me.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Trips.Trip.GetInvolvedPeople
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ responses:
+ '200':
+ description: Success
+ content:
+ application/json:
+ schema:
+ title: Collection of Person
+ type: object
+ properties:
+ value:
+ type: array
+ items:
+ anyOf:
+ - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ - type: object
+ nullable: true
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: function
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ - '/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems':
+ description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
+ get:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Get PlanItems from Me
+ operationId: Me.Trips.ListPlanItems
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - ConfirmationCode
+ - StartsAt
+ - EndsAt
+ - Duration
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems'
+ - '/Me/Trips/{TripId}/PlanItems'
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ delete:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Delete ref of navigation property PlanItems for Me
+ operationId: Me.Trips.DeleteRefPlanItems
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - name: PlanItemId
+ in: path
+ description: The unique identifier of PlanItem
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: PlanItem
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ - name: '@id'
+ in: query
+ description: Delete Uri
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Get the number of the resource
+ operationId: Me.Trips.PlanItems.GetCount-5ad2
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Get ref of PlanItems from Me
+ operationId: Me.Trips.ListRefPlanItems
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/StringCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Create new navigation property ref to PlanItems for Me
+ operationId: Me.Trips.CreateRefPlanItems
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ requestBody:
+ $ref: '#/components/requestBodies/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count:
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - Me.Trip
+ summary: Get the number of the resource
+ operationId: Me.Trips.GetCount-f3f4
+ parameters:
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip:
+ description: Provides operations to call the ShareTrip method.
+ post:
+ tags:
+ - Me.Actions
+ summary: Invoke action ShareTrip
+ description: Details of the shared trip.
+ operationId: Me.ShareTrip
+ requestBody:
+ $ref: '#/components/requestBodies/ShareTripRequestBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: action
+ '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName=''{lastName}'')':
+ description: Provides operations to call the UpdatePersonLastName method.
+ get:
+ tags:
+ - Me.Functions
+ summary: Invoke function UpdatePersonLastName
+ operationId: Me.UpdatePersonLastName
+ parameters:
+ - name: lastName
+ in: path
+ description: 'Usage: lastName=''{lastName}'''
+ required: true
+ schema:
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/UpdatePersonLastNameResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: function
+ /Me/Trips:
+ description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ get:
+ tags:
+ - Me.Trip
+ summary: List trips.
+ description: Retrieve a list of trips.
+ operationId: Me.ListTrips
+ parameters:
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - PlanItems
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - Me.Trip
+ summary: Create a trip.
+ description: Create a new trip.
+ operationId: Me.CreateTrips
+ requestBody:
+ description: New navigation property
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ required: true
+ responses:
+ '201':
+ description: Created navigation property.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips
+ - /Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips
+ '/Me/Trips/{TripId}':
+ description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ get:
+ tags:
+ - Me.Trip
+ summary: Get a trip.
+ description: Retrieve the properties of a trip.
+ operationId: Me.GetTrips
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - PlanItems
+ type: string
+ responses:
+ '200':
+ description: Retrieved navigation property
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - Me.Trip
+ summary: Update a trip.
+ description: Update an instance of a trip.
+ operationId: Me.UpdateTrips
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ requestBody:
+ description: New navigation property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - Me.Trip
+ summary: Delete a trip.
+ description: Delete an instance of a trip.
+ operationId: Me.DeleteTrips
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}'
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}'
+ '/Me/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
+ description: Provides operations to call the GetInvolvedPeople method.
+ get:
+ tags:
+ - Me.Functions
+ summary: Invoke function GetInvolvedPeople
+ operationId: Me.Trips.Trip.GetInvolvedPeople
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ responses:
+ '200':
+ description: Success
+ content:
+ application/json:
+ schema:
+ title: Collection of Person
+ type: object
+ properties:
+ value:
+ type: array
+ items:
+ anyOf:
+ - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ - type: object
+ nullable: true
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: function
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ '/Me/Trips/{TripId}/PlanItems':
+ description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
+ get:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Get PlanItems from Me
+ operationId: Me.Trips.ListPlanItems
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - ConfirmationCode
+ - StartsAt
+ - EndsAt
+ - Duration
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems'
+ - '/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems'
+ '/Me/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ delete:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Delete ref of navigation property PlanItems for Me
+ operationId: Me.Trips.DeleteRefPlanItems
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - name: PlanItemId
+ in: path
+ description: The unique identifier of PlanItem
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: PlanItem
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ - name: '@id'
+ in: query
+ description: Delete Uri
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ '/Me/Trips/{TripId}/PlanItems/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Get the number of the resource
+ operationId: Me.Trips.PlanItems.GetCount-c250
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ '/Me/Trips/{TripId}/PlanItems/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Get ref of PlanItems from Me
+ operationId: Me.Trips.ListRefPlanItems
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/StringCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - Me.Trips.PlanItem
+ summary: Create new navigation property ref to PlanItems for Me
+ operationId: Me.Trips.CreateRefPlanItems
+ parameters:
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ requestBody:
+ $ref: '#/components/requestBodies/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ x-ms-docs-operation-type: operation
+ /Me/Trips/$count:
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - Me.Trip
+ summary: Get the number of the resource
+ operationId: Me.Trips.GetCount-7b69
+ parameters:
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/me
+ description: The Me API is deprecated and will stop returning data on March 2023. Please use the new me2 API.
+ /NewComePeople:
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get entities from NewComePeople
+ operationId: NewComePeople.Person.ListPerson
+ parameters:
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ post:
+ tags:
+ - NewComePeople.Person
+ summary: Add new entity to NewComePeople
+ operationId: NewComePeople.Person.CreatePerson
+ requestBody:
+ description: New entity
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ required: true
+ responses:
+ '201':
+ description: Created entity
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ '/NewComePeople/{UserName}':
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get entity from NewComePeople by key
+ operationId: NewComePeople.Person.GetPerson
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Retrieved entity
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - NewComePeople.Person
+ summary: Update entity in NewComePeople
+ operationId: NewComePeople.Person.UpdatePerson
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - NewComePeople.Person
+ summary: Delete entity from NewComePeople
+ operationId: NewComePeople.Person.DeletePerson
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ '/NewComePeople/{UserName}/AddressInfo':
+ get:
+ tags:
+ - NewComePeople.Location
+ summary: Get AddressInfo property value
+ operationId: NewComePeople.ListAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ patch:
+ tags:
+ - NewComePeople.Location
+ summary: Update property AddressInfo value.
+ operationId: NewComePeople.UpdateAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ post:
+ tags:
+ - NewComePeople.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: NewComePeople.SetAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/AddressInfo/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - NewComePeople.Location
+ summary: Get the number of the resource
+ operationId: NewComePeople.AddressInfo.GetCount-29d6
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - NewComePeople.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: NewComePeople.ListAddressInfo.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ summary: Get the number of the resource
+ operationId: NewComePeople.ListAddressInfo.GetCount.AsEventLocation-29d3
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/BestFriend':
+ description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get BestFriend from NewComePeople
+ description: The best friend.
+ operationId: NewComePeople.GetBestFriend
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Retrieved navigation property
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - NewComePeople.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: NewComePeople.UpdateBestFriend
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New navigation property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ x-ms-docs-operation-type: operation
+ '/NewComePeople/{UserName}/BestFriend/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get ref of BestFriend from NewComePeople
+ description: The best friend.
+ operationId: NewComePeople.GetRefBestFriend
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ description: Retrieved navigation property link
+ content:
+ application/json:
+ schema:
+ type: string
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ x-ms-docs-operation-type: operation
+ put:
+ tags:
+ - NewComePeople.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: NewComePeople.UpdateRefBestFriend
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ $ref: '#/components/requestBodies/refPutBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - NewComePeople.Person
+ summary: Delete ref of navigation property BestFriend for NewComePeople
+ operationId: NewComePeople.DeleteRefBestFriend
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ x-ms-docs-operation-type: operation
+ '/NewComePeople/{UserName}/BestFriend/AddressInfo':
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get AddressInfo property value
+ operationId: NewComePeople.BestFriend.ListAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ patch:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: NewComePeople.BestFriend.UpdateAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ post:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: NewComePeople.BestFriend.SetAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ '/NewComePeople/{UserName}/BestFriend/AddressInfo/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get the number of the resource
+ operationId: NewComePeople.BestFriend.AddressInfo.GetCount-513c
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ '/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: NewComePeople.BestFriend.ListAddressInfo.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ '/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ summary: Get the number of the resource
+ operationId: NewComePeople.BestFriend.ListAddressInfo.GetCount.AsEventLocation-ba36
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ '/NewComePeople/{UserName}/BestFriend/HomeAddress':
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get HomeAddress property value
+ operationId: NewComePeople.BestFriend.GetHomeAddress
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ patch:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: NewComePeople.BestFriend.UpdateHomeAddress
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ '/NewComePeople/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: NewComePeople.BestFriend.GetHomeAddress.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ '/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ description: Casts the previous resource to Employee.
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
+ operationId: NewComePeople.GetBestFriend.AsEmployee
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ '/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ description: Casts the previous resource to Manager.
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: NewComePeople.GetBestFriend.AsManager
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/bestfriend
+ description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
+ '/NewComePeople/{UserName}/Friends':
+ description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get Friends from NewComePeople
+ operationId: NewComePeople.ListFriends
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ '/NewComePeople/{UserName}/Friends/{UserName1}/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ delete:
+ tags:
+ - NewComePeople.Person
+ summary: Delete ref of navigation property Friends for NewComePeople
+ operationId: NewComePeople.DeleteRefFriends
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ - name: '@id'
+ in: query
+ description: Delete Uri
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo':
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get AddressInfo property value
+ operationId: NewComePeople.Friends.ListAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ patch:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: NewComePeople.Friends.UpdateAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ post:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: NewComePeople.Friends.SetAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get the number of the resource
+ operationId: NewComePeople.Friends.AddressInfo.GetCount-9334
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: NewComePeople.Friends.ListAddressInfo.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ summary: Get the number of the resource
+ operationId: NewComePeople.Friends.ListAddressInfo.GetCount.AsEventLocation-be92
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress':
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get HomeAddress property value
+ operationId: NewComePeople.Friends.GetHomeAddress
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/components/responses/error'
+ patch:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: NewComePeople.Friends.UpdateHomeAddress
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - NewComePeople.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: NewComePeople.Friends.GetHomeAddress.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ description: Casts the previous resource to Employee.
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
+ operationId: NewComePeople.GetFriends.AsEmployee
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ description: Casts the previous resource to Manager.
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: NewComePeople.GetFriends.AsManager
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/Friends/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the number of the resource
+ operationId: NewComePeople.Friends.GetCount-2ec1
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/Friends/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get ref of Friends from NewComePeople
+ operationId: NewComePeople.ListRefFriends
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/StringCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - NewComePeople.Person
+ summary: Create new navigation property ref to Friends for NewComePeople
+ operationId: NewComePeople.CreateRefFriends
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ $ref: '#/components/requestBodies/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ description: Casts the previous resource to Employee.
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
+ operationId: NewComePeople.ListFriends.AsEmployee
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the number of the resource
+ operationId: NewComePeople.ListFriends.GetCount.AsEmployee-4069
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ description: Casts the previous resource to Manager.
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
+ operationId: NewComePeople.ListFriends.AsManager
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the number of the resource
+ operationId: NewComePeople.ListFriends.GetCount.AsManager-d1d3
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/HomeAddress':
+ get:
+ tags:
+ - NewComePeople.Location
+ summary: Get HomeAddress property value
+ operationId: NewComePeople.GetHomeAddress
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/components/responses/error'
+ patch:
+ tags:
+ - NewComePeople.Location
+ summary: Update property HomeAddress value.
+ operationId: NewComePeople.UpdateHomeAddress
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - NewComePeople.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: NewComePeople.GetHomeAddress.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()':
+ description: Provides operations to call the GetFavoriteAirline method.
+ get:
+ tags:
+ - NewComePeople.Functions
+ summary: Invoke function GetFavoriteAirline
+ operationId: NewComePeople.Person.GetFavoriteAirline
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/GetFavoriteAirlineResponse'
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: function
+ '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')':
+ description: Provides operations to call the GetFriendsTrips method.
+ get:
+ tags:
+ - NewComePeople.Functions
+ summary: Invoke function GetFriendsTrips
+ operationId: NewComePeople.Person.GetFriendsTrips
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: userName
+ in: path
+ description: 'Usage: userName=''{userName}'''
+ required: true
+ schema:
+ type: string
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/GetFriendsTripsResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/trips
+ description: The GetFriendsTrips API is deprecated and will stop returning data on March 2023. Please use the new trips API on friends.
+ x-ms-docs-operation-type: function
+ '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip':
+ description: Provides operations to call the GetPeersForTrip method.
+ post:
+ tags:
+ - NewComePeople.Actions
+ summary: Invoke action GetPeersForTrip
+ operationId: NewComePeople.Person.GetPeersForTrip
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ $ref: '#/components/requestBodies/GetPeersForTripRequestBody'
+ responses:
+ '200':
+ $ref: '#/components/responses/GetPeersForTripResponse'
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: action
+ '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire':
+ description: Provides operations to call the Hire method.
+ post:
+ tags:
+ - NewComePeople.Actions
+ summary: Invoke action Hire
+ description: Hires someone for the company.
+ operationId: NewComePeople.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: Action parameters
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ hire:
+ anyOf:
+ - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ - type: object
+ nullable: true
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: action
+ '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip':
+ description: Provides operations to call the ShareTrip method.
+ post:
+ tags:
+ - NewComePeople.Actions
+ summary: Invoke action ShareTrip
+ description: Details of the shared trip.
+ operationId: NewComePeople.Person.ShareTrip
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ $ref: '#/components/requestBodies/ShareTripRequestBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: action
+ '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName=''{lastName}'')':
+ description: Provides operations to call the UpdatePersonLastName method.
+ get:
+ tags:
+ - NewComePeople.Functions
+ summary: Invoke function UpdatePersonLastName
+ operationId: NewComePeople.Person.UpdatePersonLastName
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: lastName
+ in: path
+ description: 'Usage: lastName=''{lastName}'''
+ required: true
+ schema:
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/UpdatePersonLastNameResponse'
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: function
+ '/NewComePeople/{UserName}/Trips':
+ description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ get:
+ tags:
+ - NewComePeople.Trip
+ summary: List trips.
+ description: Retrieve a list of trips.
+ operationId: NewComePeople.ListTrips
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - PlanItems
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - NewComePeople.Trip
+ summary: Create a trip.
+ description: Create a new trip.
+ operationId: NewComePeople.CreateTrips
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New navigation property
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ required: true
+ responses:
+ '201':
+ description: Created navigation property.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ '/NewComePeople/{UserName}/Trips/{TripId}':
+ description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ get:
+ tags:
+ - NewComePeople.Trip
+ summary: Get a trip.
+ description: Retrieve the properties of a trip.
+ operationId: NewComePeople.GetTrips
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - PlanItems
+ type: string
+ responses:
+ '200':
+ description: Retrieved navigation property
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - NewComePeople.Trip
+ summary: Update a trip.
+ description: Update an instance of a trip.
+ operationId: NewComePeople.UpdateTrips
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ requestBody:
+ description: New navigation property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - NewComePeople.Trip
+ summary: Delete a trip.
+ description: Delete an instance of a trip.
+ operationId: NewComePeople.DeleteTrips
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ '/NewComePeople/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
+ description: Provides operations to call the GetInvolvedPeople method.
+ get:
+ tags:
+ - NewComePeople.Functions
+ summary: Invoke function GetInvolvedPeople
+ operationId: NewComePeople.Person.Trips.Trip.GetInvolvedPeople
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ responses:
+ '200':
+ description: Success
+ content:
+ application/json:
+ schema:
+ title: Collection of Person
+ type: object
+ properties:
+ value:
+ type: array
+ items:
+ anyOf:
+ - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ - type: object
+ nullable: true
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: function
+ '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems':
+ description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
+ get:
+ tags:
+ - NewComePeople.Trips.PlanItem
+ summary: Get PlanItems from NewComePeople
+ operationId: NewComePeople.Trips.ListPlanItems
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - ConfirmationCode
+ - StartsAt
+ - EndsAt
+ - Duration
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ delete:
+ tags:
+ - NewComePeople.Trips.PlanItem
+ summary: Delete ref of navigation property PlanItems for NewComePeople
+ operationId: NewComePeople.Trips.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: PlanItemId
+ in: path
+ description: The unique identifier of PlanItem
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: PlanItem
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ - name: '@id'
+ in: query
+ description: Delete Uri
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - NewComePeople.Trips.PlanItem
+ summary: Get the number of the resource
+ operationId: NewComePeople.Trips.PlanItems.GetCount-841f
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - NewComePeople.Trips.PlanItem
+ summary: Get ref of PlanItems from NewComePeople
+ operationId: NewComePeople.Trips.ListRefPlanItems
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/StringCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - NewComePeople.Trips.PlanItem
+ summary: Create new navigation property ref to PlanItems for NewComePeople
+ operationId: NewComePeople.Trips.CreateRefPlanItems
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ requestBody:
+ $ref: '#/components/requestBodies/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ x-ms-docs-operation-type: operation
+ '/NewComePeople/{UserName}/Trips/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - NewComePeople.Trip
+ summary: Get the number of the resource
+ operationId: NewComePeople.Trips.GetCount-d155
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ /NewComePeople/$count:
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - NewComePeople.Person
+ summary: Get the number of the resource
+ operationId: NewComePeople.GetCount-55d5
+ parameters:
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ /People:
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - People.Person
+ summary: Get entities from People
+ operationId: People.Person.ListPerson
+ parameters:
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ post:
+ tags:
+ - People.Person
+ summary: Add new entity to People
+ operationId: People.Person.CreatePerson
+ requestBody:
+ description: New entity
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ required: true
+ responses:
+ '201':
+ description: Created entity
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ '/People/{UserName}':
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - People.Person
+ summary: Get entity from People by key
+ operationId: People.Person.GetPerson
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Retrieved entity
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - People.Person
+ summary: Update entity in People
+ operationId: People.Person.UpdatePerson
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - People.Person
+ summary: Delete entity from People
+ operationId: People.Person.DeletePerson
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ '/People/{UserName}/AddressInfo':
+ get:
+ tags:
+ - People.Location
+ summary: Get AddressInfo property value
+ operationId: People.ListAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Location
+ summary: Update property AddressInfo value.
+ operationId: People.UpdateAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ post:
+ tags:
+ - People.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: People.SetAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/AddressInfo/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - People.Location
+ summary: Get the number of the resource
+ operationId: People.AddressInfo.GetCount-ed5a
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - People.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.ListAddressInfo.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ summary: Get the number of the resource
+ operationId: People.ListAddressInfo.GetCount.AsEventLocation-4abd
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/BestFriend':
+ description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ get:
+ tags:
+ - People.Person
+ summary: Get BestFriend from People
+ description: The best friend.
+ operationId: People.GetBestFriend
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Retrieved navigation property
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ patch:
+ tags:
+ - People.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: People.UpdateBestFriend
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New navigation property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend'
+ '/People/{UserName}/BestFriend/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - People.Person
+ summary: Get ref of BestFriend from People
+ description: The best friend.
+ operationId: People.GetRefBestFriend
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ description: Retrieved navigation property link
+ content:
+ application/json:
+ schema:
+ type: string
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ put:
+ tags:
+ - People.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: People.UpdateRefBestFriend
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ $ref: '#/components/requestBodies/refPutBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - People.Person
+ summary: Delete ref of navigation property BestFriend for People
+ operationId: People.DeleteRefBestFriend
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ '/People/{UserName}/BestFriend/AddressInfo':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get AddressInfo property value
+ operationId: People.BestFriend.ListAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: People.BestFriend.UpdateAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ post:
+ tags:
+ - People.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: People.BestFriend.SetAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/BestFriend/AddressInfo/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the number of the resource
+ operationId: People.BestFriend.AddressInfo.GetCount-16df
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.BestFriend.ListAddressInfo.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ summary: Get the number of the resource
+ operationId: People.BestFriend.ListAddressInfo.GetCount.AsEventLocation-fe88
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/BestFriend/HomeAddress':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get HomeAddress property value
+ operationId: People.BestFriend.GetHomeAddress
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: People.BestFriend.UpdateHomeAddress
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.BestFriend.GetHomeAddress.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ description: Casts the previous resource to Employee.
+ get:
+ tags:
+ - People.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
+ operationId: People.GetBestFriend.AsEmployee
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ description: Casts the previous resource to Manager.
+ get:
+ tags:
+ - People.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: People.GetBestFriend.AsManager
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Friends':
+ description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ get:
+ tags:
+ - People.Person
+ summary: Get Friends from People
+ operationId: People.ListFriends
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends'
+ '/People/{UserName}/Friends/{UserName1}/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ delete:
+ tags:
+ - People.Person
+ summary: Delete ref of navigation property Friends for People
+ operationId: People.DeleteRefFriends
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ - name: '@id'
+ in: query
+ description: Delete Uri
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ '/People/{UserName}/Friends/{UserName1}/AddressInfo':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get AddressInfo property value
+ operationId: People.Friends.ListAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: People.Friends.UpdateAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ post:
+ tags:
+ - People.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: People.Friends.SetAddressInfo
parameters:
- name: UserName
in: path
@@ -5233,6 +13295,13 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
- name: If-Match
in: header
description: ETag
@@ -5252,13 +13321,19 @@ paths:
description: Success
default:
$ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/AddressInfo/$count':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Friends/{UserName1}/AddressInfo/$count':
description: Provides operations to count the resources in the collection.
get:
tags:
- - NewComePeople.Location
+ - People.Person.Location
summary: Get the number of the resource
- operationId: NewComePeople.AddressInfo.GetCount-29d6
+ operationId: People.Friends.AddressInfo.GetCount-bdaf
parameters:
- name: UserName
in: path
@@ -5267,15 +13342,13 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: ConsistencyLevel
- in: header
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
schema:
type: string
- examples:
- example-1:
- description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
- value: eventual
+ x-ms-docs-key-type: Person
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
responses:
@@ -5283,13 +13356,19 @@ paths:
$ref: '#/components/responses/ODataCountResponse'
default:
$ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
description: Casts the previous resource to EventLocation.
get:
tags:
- - NewComePeople.Location
+ - People.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: NewComePeople.ListAddressInfo.AsEventLocation
+ operationId: People.Friends.ListAddressInfo.AsEventLocation
parameters:
- name: UserName
in: path
@@ -5298,16 +13377,29 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
responses:
'200':
$ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
description: Provides operations to count the resources in the collection.
get:
summary: Get the number of the resource
- operationId: NewComePeople.ListAddressInfo.GetCount.AsEventLocation-29d3
+ operationId: People.Friends.ListAddressInfo.GetCount.AsEventLocation-2795
parameters:
- name: UserName
in: path
@@ -5316,15 +13408,13 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: ConsistencyLevel
- in: header
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
schema:
type: string
- examples:
- example-1:
- description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
- value: eventual
+ x-ms-docs-key-type: Person
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
responses:
@@ -5332,14 +13422,18 @@ paths:
$ref: '#/components/responses/ODataCountResponse'
default:
$ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/BestFriend':
- description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Friends/{UserName1}/HomeAddress':
get:
tags:
- - NewComePeople.Person
- summary: Get BestFriend from NewComePeople
- description: The best friend.
- operationId: NewComePeople.GetBestFriend
+ - People.Person.Location
+ summary: Get HomeAddress property value
+ operationId: People.Friends.GetHomeAddress
parameters:
- name: UserName
in: path
@@ -5348,6 +13442,13 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
- name: $select
in: query
description: Select properties to be returned
@@ -5358,20 +13459,8 @@ paths:
type: array
items:
enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
+ - Address
+ - City
type: string
- name: $expand
in: query
@@ -5384,32 +13473,27 @@ paths:
items:
enum:
- '*'
- - Friends
- - BestFriend
- - Trips
type: string
responses:
'200':
- description: Retrieved navigation property
+ description: Result entities
content:
application/json:
schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
default:
$ref: '#/components/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- x-ms-docs-operation-type: operation
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
patch:
tags:
- - NewComePeople.Person
- summary: Update the best friend.
- description: Update an instance of a best friend.
- operationId: NewComePeople.UpdateBestFriend
+ - People.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: People.Friends.UpdateHomeAddress
parameters:
- name: UserName
in: path
@@ -5418,12 +13502,19 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
requestBody:
- description: New navigation property values
+ description: New property values
content:
application/json:
schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
required: true
responses:
'204':
@@ -5434,17 +13525,15 @@ paths:
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- x-ms-docs-operation-type: operation
- '/NewComePeople/{UserName}/BestFriend/$ref':
- description: Provides operations to manage the collection of Person entities.
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
get:
tags:
- - NewComePeople.Person
- summary: Get ref of BestFriend from NewComePeople
- description: The best friend.
- operationId: NewComePeople.GetRefBestFriend
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.Friends.GetHomeAddress.AsEventLocation
parameters:
- name: UserName
in: path
@@ -5453,55 +13542,31 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- responses:
- '200':
- description: Retrieved navigation property link
- content:
- application/json:
- schema:
- type: string
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- x-ms-docs-operation-type: operation
- put:
- tags:
- - NewComePeople.Person
- summary: Update the best friend.
- description: Update an instance of a best friend.
- operationId: NewComePeople.UpdateRefBestFriend
- parameters:
- - name: UserName
+ - name: UserName1
in: path
description: The unique identifier of Person
required: true
schema:
type: string
x-ms-docs-key-type: Person
- requestBody:
- $ref: '#/components/requestBodies/refPutBody'
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- x-ms-docs-operation-type: operation
- delete:
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ description: Casts the previous resource to Employee.
+ get:
tags:
- - NewComePeople.Person
- summary: Delete ref of navigation property BestFriend for NewComePeople
- operationId: NewComePeople.DeleteRefBestFriend
+ - People.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
+ operationId: People.GetFriends.AsEmployee
parameters:
- name: UserName
in: path
@@ -5510,57 +13575,13 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: If-Match
- in: header
- description: ETag
- schema:
- type: string
- responses:
- '204':
- description: Success
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- x-ms-docs-operation-type: operation
- '/NewComePeople/{UserName}/BestFriend/AddressInfo':
- get:
- tags:
- - NewComePeople.Person.Location
- summary: Get AddressInfo property value
- operationId: NewComePeople.BestFriend.ListAddressInfo
- parameters:
- - name: UserName
+ - name: UserName1
in: path
description: The unique identifier of Person
required: true
schema:
type: string
x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $orderby
- in: query
- description: Order items by property values
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - Address
- - Address desc
- - City
- - City desc
- type: string
- name: $select
in: query
description: Select properties to be returned
@@ -5571,8 +13592,20 @@ paths:
type: array
items:
enum:
- - Address
- - City
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
type: string
- name: $expand
in: query
@@ -5585,23 +13618,32 @@ paths:
items:
enum:
- '*'
+ - Friends
+ - BestFriend
+ - Trips
type: string
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
default:
$ref: '#/components/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- patch:
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ description: Casts the previous resource to Manager.
+ get:
tags:
- - NewComePeople.Person.Location
- summary: Update property AddressInfo value.
- operationId: NewComePeople.BestFriend.UpdateAddressInfo
+ - People.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: People.GetFriends.AsManager
parameters:
- name: UserName
in: path
@@ -5610,71 +13652,75 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- requestBody:
- description: New property values
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- required: true
- responses:
- '204':
- description: Success
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- post:
- tags:
- - NewComePeople.Person.Location
- summary: Sets a new value for the collection of Location.
- operationId: NewComePeople.BestFriend.SetAddressInfo
- parameters:
- - name: UserName
+ - name: UserName1
in: path
description: The unique identifier of Person
required: true
schema:
type: string
- x-ms-docs-key-type: Person
- - name: If-Match
- in: header
- description: ETag
- schema:
- type: string
- requestBody:
- description: New property values
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- required: true
+ x-ms-docs-key-type: Person
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
responses:
- '204':
- description: Success
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
default:
$ref: '#/components/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- '/NewComePeople/{UserName}/BestFriend/AddressInfo/$count':
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Friends/$count':
description: Provides operations to count the resources in the collection.
get:
tags:
- - NewComePeople.Person.Location
+ - People.Person
summary: Get the number of the resource
- operationId: NewComePeople.BestFriend.AddressInfo.GetCount-513c
+ operationId: People.Friends.GetCount-92b9
parameters:
- name: UserName
in: path
@@ -5683,15 +13729,6 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: ConsistencyLevel
- in: header
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
- schema:
- type: string
- examples:
- example-1:
- description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
- value: eventual
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
responses:
@@ -5703,15 +13740,15 @@ paths:
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- '/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- description: Casts the previous resource to EventLocation.
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Friends/$ref':
+ description: Provides operations to manage the collection of Person entities.
get:
tags:
- - NewComePeople.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: NewComePeople.BestFriend.ListAddressInfo.AsEventLocation
+ - People.Person
+ summary: Get ref of Friends from People
+ operationId: People.ListRefFriends
parameters:
- name: UserName
in: path
@@ -5720,22 +13757,61 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ $ref: '#/components/responses/StringCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- '/NewComePeople/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
- description: Provides operations to count the resources in the collection.
- get:
- summary: Get the number of the resource
- operationId: NewComePeople.BestFriend.ListAddressInfo.GetCount.AsEventLocation-ba36
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - People.Person
+ summary: Create new navigation property ref to Friends for People
+ operationId: People.CreateRefFriends
parameters:
- name: UserName
in: path
@@ -5744,34 +13820,27 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: ConsistencyLevel
- in: header
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
- schema:
- type: string
- examples:
- example-1:
- description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
- value: eventual
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
+ requestBody:
+ $ref: '#/components/requestBodies/refPostBody'
responses:
- '200':
- $ref: '#/components/responses/ODataCountResponse'
+ '204':
+ description: Success
default:
$ref: '#/components/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- '/NewComePeople/{UserName}/BestFriend/HomeAddress':
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ description: Casts the previous resource to Employee.
get:
tags:
- - NewComePeople.Person.Location
- summary: Get HomeAddress property value
- operationId: NewComePeople.BestFriend.GetHomeAddress
+ - People.Person
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
+ operationId: People.ListFriends.AsEmployee
parameters:
- name: UserName
in: path
@@ -5780,9 +13849,14 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: $select
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
in: query
- description: Select properties to be returned
+ description: Order items by property values
style: form
explode: false
schema:
@@ -5790,12 +13864,32 @@ paths:
type: array
items:
enum:
- - Address
- - City
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
type: string
- - name: $expand
+ - name: $select
in: query
- description: Expand related entities
+ description: Select properties to be returned
style: form
explode: false
schema:
@@ -5803,61 +13897,54 @@ paths:
type: array
items:
enum:
- - '*'
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
type: string
- responses:
- '200':
- description: Result entities
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- patch:
- tags:
- - NewComePeople.Person.Location
- summary: Update property HomeAddress value.
- operationId: NewComePeople.BestFriend.UpdateHomeAddress
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
schema:
- type: string
- x-ms-docs-key-type: Person
- requestBody:
- description: New property values
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- required: true
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- '/NewComePeople/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- description: Casts the previous resource to EventLocation.
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count':
+ description: Provides operations to count the resources in the collection.
get:
tags:
- - NewComePeople.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: NewComePeople.BestFriend.GetHomeAddress.AsEventLocation
+ - People.Person
+ summary: Get the number of the resource
+ operationId: People.ListFriends.GetCount.AsEmployee-a96c
parameters:
- name: UserName
in: path
@@ -5866,24 +13953,26 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ $ref: '#/components/responses/ODataCountResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- '/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
- description: Casts the previous resource to Employee.
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ description: Casts the previous resource to Manager.
get:
tags:
- - NewComePeople.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
- operationId: NewComePeople.GetBestFriend.AsEmployee
+ - People.Person
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
+ operationId: People.ListFriends.AsManager
parameters:
- name: UserName
in: path
@@ -5892,6 +13981,44 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
- name: $select
in: query
description: Select properties to be returned
@@ -5934,26 +14061,49 @@ paths:
type: string
responses:
'200':
- description: Result entities
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- '/NewComePeople/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
- description: Casts the previous resource to Manager.
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count':
+ description: Provides operations to count the resources in the collection.
get:
tags:
- - NewComePeople.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
- operationId: NewComePeople.GetBestFriend.AsManager
+ - People.Person
+ summary: Get the number of the resource
+ operationId: People.ListFriends.GetCount.AsManager-26b3
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/HomeAddress':
+ get:
+ tags:
+ - People.Location
+ summary: Get HomeAddress property value
+ operationId: People.GetHomeAddress
parameters:
- name: UserName
in: path
@@ -5972,20 +14122,8 @@ paths:
type: array
items:
enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
+ - Address
+ - City
type: string
- name: $expand
in: query
@@ -5998,9 +14136,6 @@ paths:
items:
enum:
- '*'
- - Friends
- - BestFriend
- - Trips
type: string
responses:
'200':
@@ -6008,22 +14143,20 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
default:
$ref: '#/components/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/bestfriend
- description: The bestfriend API is deprecated and will stop returning data on March 2023. Please use the new friends API.
- '/NewComePeople/{UserName}/Friends':
- description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
- get:
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
tags:
- - NewComePeople.Person
- summary: Get Friends from NewComePeople
- operationId: NewComePeople.ListFriends
+ - People.Location
+ summary: Update property HomeAddress value.
+ operationId: People.UpdateHomeAddress
parameters:
- name: UserName
in: path
@@ -6032,44 +14165,74 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $orderby
- in: query
- description: Order items by property values
- style: form
- explode: false
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - People.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.GetHomeAddress.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ description: Casts the previous resource to Employee.
+ get:
+ tags:
+ - People.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
+ operationId: People.Person.GetPerson.AsEmployee
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
- name: $select
in: query
description: Select properties to be returned
@@ -6112,54 +14275,27 @@ paths:
type: string
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
- default:
- $ref: '#/components/responses/error'
- x-ms-docs-operation-type: operation
- '/NewComePeople/{UserName}/Friends/{UserName1}/$ref':
- description: Provides operations to manage the collection of Person entities.
- delete:
- tags:
- - NewComePeople.Person
- summary: Delete ref of navigation property Friends for NewComePeople
- operationId: NewComePeople.DeleteRefFriends
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- - name: If-Match
- in: header
- description: ETag
- schema:
- type: string
- - name: '@id'
- in: query
- description: Delete Uri
- schema:
- type: string
- responses:
- '204':
- description: Success
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
default:
$ref: '#/components/responses/error'
- x-ms-docs-operation-type: operation
- '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend':
+ description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
get:
tags:
- - NewComePeople.Person.Location
- summary: Get AddressInfo property value
- operationId: NewComePeople.Friends.ListAddressInfo
+ - People.Person
+ summary: Get BestFriend from People
+ description: The best friend.
+ operationId: People.GetBestFriend
parameters:
- name: UserName
in: path
@@ -6168,33 +14304,6 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $orderby
- in: query
- description: Order items by property values
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - Address
- - Address desc
- - City
- - City desc
- type: string
- name: $select
in: query
description: Select properties to be returned
@@ -6205,8 +14314,20 @@ paths:
type: array
items:
enum:
- - Address
- - City
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
type: string
- name: $expand
in: query
@@ -6219,51 +14340,32 @@ paths:
items:
enum:
- '*'
+ - Friends
+ - BestFriend
+ - Trips
type: string
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ description: Retrieved navigation property
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
default:
$ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
patch:
tags:
- - NewComePeople.Person.Location
- summary: Update property AddressInfo value.
- operationId: NewComePeople.Friends.UpdateAddressInfo
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- requestBody:
- description: New property values
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- required: true
- responses:
- '204':
- description: Success
- default:
- $ref: '#/components/responses/error'
- post:
- tags:
- - NewComePeople.Person.Location
- summary: Sets a new value for the collection of Location.
- operationId: NewComePeople.Friends.SetAddressInfo
+ - People.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: People.UpdateBestFriend
parameters:
- name: UserName
in: path
@@ -6272,77 +14374,36 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- - name: If-Match
- in: header
- description: ETag
- schema:
- type: string
requestBody:
- description: New property values
+ description: New navigation property values
content:
application/json:
schema:
- type: array
- items:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
required: true
responses:
'204':
description: Success
default:
$ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/$count':
- description: Provides operations to count the resources in the collection.
- get:
- tags:
- - NewComePeople.Person.Location
- summary: Get the number of the resource
- operationId: NewComePeople.Friends.AddressInfo.GetCount-9334
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- - name: ConsistencyLevel
- in: header
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
- schema:
- type: string
- examples:
- example-1:
- description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
- value: eventual
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- responses:
- '200':
- $ref: '#/components/responses/ODataCountResponse'
- default:
- $ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- description: Casts the previous resource to EventLocation.
- get:
- tags:
- - NewComePeople.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: NewComePeople.Friends.ListAddressInfo.AsEventLocation
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/BestFriend'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - People.Person
+ summary: Get ref of BestFriend from People
+ description: The best friend.
+ operationId: People.GetRefBestFriend
parameters:
- name: UserName
in: path
@@ -6351,23 +14412,28 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ description: Retrieved navigation property link
+ content:
+ application/json:
+ schema:
+ type: string
default:
$ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
- description: Provides operations to count the resources in the collection.
- get:
- summary: Get the number of the resource
- operationId: NewComePeople.Friends.ListAddressInfo.GetCount.AsEventLocation-be92
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ put:
+ tags:
+ - People.Person
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: People.UpdateRefBestFriend
parameters:
- name: UserName
in: path
@@ -6376,35 +14442,56 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
+ requestBody:
+ $ref: '#/components/requestBodies/refPutBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - People.Person
+ summary: Delete ref of navigation property BestFriend for People
+ operationId: People.DeleteRefBestFriend
+ parameters:
+ - name: UserName
in: path
description: The unique identifier of Person
required: true
schema:
type: string
x-ms-docs-key-type: Person
- - name: ConsistencyLevel
+ - name: If-Match
in: header
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ description: ETag
schema:
type: string
- examples:
- example-1:
- description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
- value: eventual
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
responses:
- '200':
- $ref: '#/components/responses/ODataCountResponse'
+ '204':
+ description: Success
default:
$ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo':
get:
tags:
- - NewComePeople.Person.Location
- summary: Get HomeAddress property value
- operationId: NewComePeople.Friends.GetHomeAddress
+ - People.Person.Location
+ summary: Get AddressInfo property value
+ operationId: People.BestFriend.ListAddressInfo
parameters:
- name: UserName
in: path
@@ -6413,13 +14500,26 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
schema:
- type: string
- x-ms-docs-key-type: Person
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
- name: $select
in: query
description: Select properties to be returned
@@ -6447,18 +14547,20 @@ paths:
type: string
responses:
'200':
- description: Result entities
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
default:
$ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
patch:
tags:
- - NewComePeople.Person.Location
- summary: Update property HomeAddress value.
- operationId: NewComePeople.Friends.UpdateHomeAddress
+ - People.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: People.BestFriend.UpdateAddressInfo
parameters:
- name: UserName
in: path
@@ -6467,32 +14569,31 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
requestBody:
description: New property values
content:
application/json:
schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
required: true
responses:
'204':
description: Success
default:
$ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- description: Casts the previous resource to EventLocation.
- get:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ post:
tags:
- - NewComePeople.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: NewComePeople.Friends.GetHomeAddress.AsEventLocation
+ - People.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: People.BestFriend.SetAddressInfo
parameters:
- name: UserName
in: path
@@ -6501,25 +14602,38 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
+ - name: If-Match
+ in: header
+ description: ETag
schema:
type: string
- x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
responses:
- '200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ '204':
+ description: Success
default:
$ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
- description: Casts the previous resource to Employee.
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/$count':
+ description: Provides operations to count the resources in the collection.
get:
tags:
- - NewComePeople.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
- operationId: NewComePeople.GetFriends.AsEmployee
+ - People.Person.Location
+ summary: Get the number of the resource
+ operationId: People.BestFriend.AddressInfo.GetCount-cb8a
parameters:
- name: UserName
in: path
@@ -6528,69 +14642,50 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.BestFriend.ListAddressInfo.AsEventLocation
+ parameters:
+ - name: UserName
in: path
description: The unique identifier of Person
required: true
schema:
- type: string
- x-ms-docs-key-type: Person
- - name: $select
- in: query
- description: Select properties to be returned
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - name: $expand
- in: query
- description: Expand related entities
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
- type: string
+ type: string
+ x-ms-docs-key-type: Person
responses:
'200':
- description: Result entities
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
- description: Casts the previous resource to Manager.
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ description: Provides operations to count the resources in the collection.
get:
- tags:
- - NewComePeople.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
- operationId: NewComePeople.GetFriends.AsManager
+ summary: Get the number of the resource
+ operationId: People.BestFriend.ListAddressInfo.GetCount.AsEventLocation-0343
parameters:
- name: UserName
in: path
@@ -6599,7 +14694,27 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get HomeAddress property value
+ operationId: People.BestFriend.GetHomeAddress
+ parameters:
+ - name: UserName
in: path
description: The unique identifier of Person
required: true
@@ -6616,20 +14731,8 @@ paths:
type: array
items:
enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
+ - Address
+ - City
type: string
- name: $expand
in: query
@@ -6642,9 +14745,6 @@ paths:
items:
enum:
- '*'
- - Friends
- - BestFriend
- - Trips
type: string
responses:
'200':
@@ -6652,16 +14752,20 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
default:
$ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/Friends/$count':
- description: Provides operations to count the resources in the collection.
- get:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
tags:
- - NewComePeople.Person
- summary: Get the number of the resource
- operationId: NewComePeople.Friends.GetCount-2ec1
+ - People.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: People.BestFriend.UpdateHomeAddress
parameters:
- name: UserName
in: path
@@ -6670,20 +14774,31 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
responses:
- '200':
- $ref: '#/components/responses/ODataCountResponse'
+ '204':
+ description: Success
default:
$ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/Friends/$ref':
- description: Provides operations to manage the collection of Person entities.
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
get:
tags:
- - NewComePeople.Person
- summary: Get ref of Friends from NewComePeople
- operationId: NewComePeople.ListRefFriends
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.BestFriend.GetHomeAddress.AsEventLocation
parameters:
- name: UserName
in: path
@@ -6692,78 +14807,24 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $orderby
- in: query
- description: Order items by property values
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
responses:
'200':
- $ref: '#/components/responses/StringCollectionResponse'
- default:
- $ref: '#/components/responses/error'
- x-ms-docs-operation-type: operation
- post:
- tags:
- - NewComePeople.Person
- summary: Create new navigation property ref to Friends for NewComePeople
- operationId: NewComePeople.CreateRefFriends
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- requestBody:
- $ref: '#/components/requestBodies/refPostBody'
- responses:
- '204':
- description: Success
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
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.
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ description: Casts the previous resource to Manager.
get:
tags:
- - NewComePeople.Person
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
- operationId: NewComePeople.ListFriends.AsEmployee
+ - People.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: People.GetBestFriend.AsManager
parameters:
- name: UserName
in: path
@@ -6772,44 +14833,6 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $orderby
- in: query
- description: Order items by property values
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
- name: $select
in: query
description: Select properties to be returned
@@ -6839,51 +14862,39 @@ paths:
in: query
description: Expand related entities
style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
- type: string
- responses:
- '200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse'
- default:
- $ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count':
- description: Provides operations to count the resources in the collection.
- get:
- tags:
- - NewComePeople.Person
- summary: Get the number of the resource
- operationId: NewComePeople.ListFriends.GetCount.AsEmployee-4069
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
responses:
'200':
- $ref: '#/components/responses/ODataCountResponse'
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
default:
$ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
- description: Casts the previous resource to Manager.
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends':
+ description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
get:
tags:
- - NewComePeople.Person
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
- operationId: NewComePeople.ListFriends.AsManager
+ - People.Person
+ summary: Get Friends from People
+ operationId: People.ListFriends
parameters:
- name: UserName
in: path
@@ -6972,16 +14983,26 @@ paths:
type: string
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
default:
$ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count':
- description: Provides operations to count the resources in the collection.
- get:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Friends'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ delete:
tags:
- - NewComePeople.Person
- summary: Get the number of the resource
- operationId: NewComePeople.ListFriends.GetCount.AsManager-d1d3
+ - People.Person
+ summary: Delete ref of navigation property Friends for People
+ operationId: People.DeleteRefFriends
parameters:
- name: UserName
in: path
@@ -6990,19 +15011,41 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ - name: '@id'
+ in: query
+ description: Delete Uri
+ schema:
+ type: string
responses:
- '200':
- $ref: '#/components/responses/ODataCountResponse'
+ '204':
+ description: Success
default:
$ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/HomeAddress':
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo':
get:
tags:
- - NewComePeople.Location
- summary: Get HomeAddress property value
- operationId: NewComePeople.GetHomeAddress
+ - People.Person.Location
+ summary: Get AddressInfo property value
+ operationId: People.Friends.ListAddressInfo
parameters:
- name: UserName
in: path
@@ -7011,6 +15054,33 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
- name: $select
in: query
description: Select properties to be returned
@@ -7038,65 +15108,20 @@ paths:
type: string
responses:
'200':
- description: Result entities
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
default:
$ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
patch:
tags:
- - NewComePeople.Location
- summary: Update property HomeAddress value.
- operationId: NewComePeople.UpdateHomeAddress
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- requestBody:
- description: New property values
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- required: true
- responses:
- '204':
- description: Success
- default:
- $ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- description: Casts the previous resource to EventLocation.
- get:
- tags:
- - NewComePeople.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: NewComePeople.GetHomeAddress.AsEventLocation
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- responses:
- '200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
- default:
- $ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()':
- description: Provides operations to call the GetFavoriteAirline method.
- get:
- tags:
- - NewComePeople.Functions
- summary: Invoke function GetFavoriteAirline
- operationId: NewComePeople.Person.GetFavoriteAirline
+ - People.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: People.Friends.UpdateAddressInfo
parameters:
- name: UserName
in: path
@@ -7105,104 +15130,38 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- responses:
- '200':
- $ref: '#/components/responses/GetFavoriteAirlineResponse'
- default:
- $ref: '#/components/responses/error'
- x-ms-docs-operation-type: function
- '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')':
- description: Provides operations to call the GetFriendsTrips method.
- get:
- tags:
- - NewComePeople.Functions
- summary: Invoke function GetFriendsTrips
- operationId: NewComePeople.Person.GetFriendsTrips
- parameters:
- - name: UserName
+ - name: UserName1
in: path
description: The unique identifier of Person
required: true
schema:
type: string
- x-ms-docs-key-type: Person
- - name: userName
- in: path
- description: 'Usage: userName=''{userName}'''
- required: true
- schema:
- type: string
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $select
- in: query
- description: Select properties to be returned
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - TripId
- - ShareId
- - Name
- - Budget
- - Description
- - Tags
- - StartsAt
- - EndsAt
- - PlanItems
- type: string
- - name: $orderby
- in: query
- description: Order items by property values
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - TripId
- - TripId desc
- - ShareId
- - ShareId desc
- - Name
- - Name desc
- - Budget
- - Budget desc
- - Description
- - Description desc
- - Tags
- - Tags desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
- type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
responses:
- '200':
- $ref: '#/components/responses/GetFriendsTripsResponse'
+ '204':
+ description: Success
default:
$ref: '#/components/responses/error'
deprecated: true
x-ms-deprecation:
removalDate: '2023-03-15T00:00:00.0000000'
date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/trips
- description: The GetFriendsTrips API is deprecated and will stop returning data on March 2023. Please use the new trips API on friends.
- x-ms-docs-operation-type: function
- '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip':
- description: Provides operations to call the GetPeersForTrip method.
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
post:
tags:
- - NewComePeople.Actions
- summary: Invoke action GetPeersForTrip
- operationId: NewComePeople.Person.GetPeersForTrip
+ - People.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: People.Friends.SetAddressInfo
parameters:
- name: UserName
in: path
@@ -7211,57 +15170,45 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- requestBody:
- $ref: '#/components/requestBodies/GetPeersForTripRequestBody'
- responses:
- '200':
- $ref: '#/components/responses/GetPeersForTripResponse'
- default:
- $ref: '#/components/responses/error'
- x-ms-docs-operation-type: action
- '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire':
- description: Provides operations to call the Hire method.
- post:
- tags:
- - NewComePeople.Actions
- summary: Invoke action Hire
- description: Hires someone for the company.
- operationId: NewComePeople.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire
- parameters:
- - name: UserName
+ - name: UserName1
in: path
description: The unique identifier of Person
required: true
schema:
type: string
x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
requestBody:
- description: Action parameters
+ description: New property values
content:
application/json:
schema:
- type: object
- properties:
- hire:
- anyOf:
- - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
- - type: object
- nullable: true
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
required: true
responses:
'204':
description: Success
default:
$ref: '#/components/responses/error'
- x-ms-docs-operation-type: action
- '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip':
- description: Provides operations to call the ShareTrip method.
- post:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
tags:
- - NewComePeople.Actions
- summary: Invoke action ShareTrip
- description: Details of the shared trip.
- operationId: NewComePeople.Person.ShareTrip
+ - People.Person.Location
+ summary: Get the number of the resource
+ operationId: People.Friends.AddressInfo.GetCount-1e8b
parameters:
- name: UserName
in: path
@@ -7270,21 +15217,33 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- requestBody:
- $ref: '#/components/requestBodies/ShareTripRequestBody'
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
default:
$ref: '#/components/responses/error'
- x-ms-docs-operation-type: action
- '/NewComePeople/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName=''{lastName}'')':
- description: Provides operations to call the UpdatePersonLastName method.
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
get:
tags:
- - NewComePeople.Functions
- summary: Invoke function UpdatePersonLastName
- operationId: NewComePeople.Person.UpdatePersonLastName
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.Friends.ListAddressInfo.AsEventLocation
parameters:
- name: UserName
in: path
@@ -7293,26 +15252,29 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: lastName
+ - name: UserName1
in: path
- description: 'Usage: lastName=''{lastName}'''
+ description: The unique identifier of Person
required: true
schema:
type: string
+ x-ms-docs-key-type: Person
responses:
'200':
- $ref: '#/components/responses/UpdatePersonLastNameResponse'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/components/responses/error'
- x-ms-docs-operation-type: function
- '/NewComePeople/{UserName}/Trips':
- description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ description: Provides operations to count the resources in the collection.
get:
- tags:
- - NewComePeople.Trip
- summary: List trips.
- description: Retrieve a list of trips.
- operationId: NewComePeople.ListTrips
+ summary: Get the number of the resource
+ operationId: People.Friends.ListAddressInfo.GetCount.AsEventLocation-1f2b
parameters:
- name: UserName
in: path
@@ -7321,47 +15283,47 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: ConsistencyLevel
- in: header
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
schema:
type: string
- examples:
- example-1:
- description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
- value: eventual
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
+ x-ms-docs-key-type: Person
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $orderby
- in: query
- description: Order items by property values
- style: form
- explode: false
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/HomeAddress':
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get HomeAddress property value
+ operationId: People.Friends.GetHomeAddress
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - TripId
- - TripId desc
- - ShareId
- - ShareId desc
- - Name
- - Name desc
- - Budget
- - Budget desc
- - Description
- - Description desc
- - Tags
- - Tags desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
- type: string
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
- name: $select
in: query
description: Select properties to be returned
@@ -7372,15 +15334,8 @@ paths:
type: array
items:
enum:
- - TripId
- - ShareId
- - Name
- - Budget
- - Description
- - Tags
- - StartsAt
- - EndsAt
- - PlanItems
+ - Address
+ - City
type: string
- name: $expand
in: query
@@ -7393,20 +15348,67 @@ paths:
items:
enum:
- '*'
- - PlanItems
type: string
responses:
- '200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse'
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: People.Friends.UpdateHomeAddress
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
default:
$ref: '#/components/responses/error'
- x-ms-docs-operation-type: operation
- post:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
tags:
- - NewComePeople.Trip
- summary: Create a trip.
- description: Create a new trip.
- operationId: NewComePeople.CreateTrips
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.Friends.GetHomeAddress.AsEventLocation
parameters:
- name: UserName
in: path
@@ -7415,31 +15417,31 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- requestBody:
- description: New navigation property
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
- required: true
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
responses:
- '201':
- description: Created navigation property.
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/components/responses/error'
- x-ms-docs-operation-type: operation
- '/NewComePeople/{UserName}/Trips/{TripId}':
- description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ description: Casts the previous resource to Manager.
get:
tags:
- - NewComePeople.Trip
- summary: Get a trip.
- description: Retrieve the properties of a trip.
- operationId: NewComePeople.GetTrips
+ - People.Person
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: People.GetFriends.AsManager
parameters:
- name: UserName
in: path
@@ -7448,16 +15450,13 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: TripId
+ - name: UserName1
in: path
- description: The unique identifier of Trip
+ description: The unique identifier of Person
required: true
schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: Trip
+ type: string
+ x-ms-docs-key-type: Person
- name: $select
in: query
description: Select properties to be returned
@@ -7468,15 +15467,20 @@ paths:
type: array
items:
enum:
- - TripId
- - ShareId
- - Name
- - Budget
- - Description
- - Tags
- - StartsAt
- - EndsAt
- - PlanItems
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
type: string
- name: $expand
in: query
@@ -7489,24 +15493,32 @@ paths:
items:
enum:
- '*'
- - PlanItems
+ - Friends
+ - BestFriend
+ - Trips
type: string
responses:
'200':
- description: Retrieved navigation property
+ description: Result entities
content:
application/json:
schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
default:
$ref: '#/components/responses/error'
- x-ms-docs-operation-type: operation
- patch:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
tags:
- - NewComePeople.Trip
- summary: Update a trip.
- description: Update an instance of a trip.
- operationId: NewComePeople.UpdateTrips
+ - People.Person
+ summary: Get the number of the resource
+ operationId: People.Friends.GetCount-4db4
parameters:
- name: UserName
in: path
@@ -7515,35 +15527,26 @@ paths:
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
- requestBody:
- description: New navigation property values
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
- required: true
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
default:
$ref: '#/components/responses/error'
- x-ms-docs-operation-type: operation
- delete:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ get:
tags:
- - NewComePeople.Trip
- summary: Delete a trip.
- description: Delete an instance of a trip.
- operationId: NewComePeople.DeleteTrips
+ - People.Person
+ summary: Get ref of Friends from People
+ operationId: People.ListRefFriends
parameters:
- name: UserName
in: path
@@ -7552,60 +15555,106 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: TripId
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/StringCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - People.Person
+ summary: Create new navigation property ref to Friends for People
+ operationId: People.CreateRefFriends
+ parameters:
+ - name: UserName
in: path
- description: The unique identifier of Trip
+ description: The unique identifier of Person
required: true
- schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: Trip
- - name: If-Match
- in: header
- description: ETag
schema:
type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ $ref: '#/components/requestBodies/refPostBody'
responses:
'204':
description: Success
default:
$ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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
- '/NewComePeople/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
- description: Provides operations to call the GetInvolvedPeople method.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ description: Casts the previous resource to Manager.
get:
tags:
- - NewComePeople.Functions
- summary: Invoke function GetInvolvedPeople
- operationId: NewComePeople.Person.Trips.Trip.GetInvolvedPeople
+ - People.Person
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
+ operationId: People.ListFriends.AsManager
parameters:
- name: UserName
in: path
description: The unique identifier of Person
required: true
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
+ type: string
+ x-ms-docs-key-type: Person
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/skip'
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
- $ref: '#/components/parameters/count'
- - name: $select
+ - name: $orderby
in: query
- description: Select properties to be returned
+ description: Order items by property values
style: form
explode: false
schema:
@@ -7614,23 +15663,31 @@ paths:
items:
enum:
- UserName
+ - UserName desc
- FirstName
+ - FirstName desc
- LastName
+ - LastName desc
- MiddleName
+ - MiddleName desc
- Gender
+ - Gender desc
- Age
+ - Age desc
- Emails
+ - Emails desc
- AddressInfo
+ - AddressInfo desc
- HomeAddress
+ - HomeAddress desc
- FavoriteFeature
+ - FavoriteFeature desc
- Features
- - Friends
- - BestFriend
- - Trips
+ - Features desc
type: string
- - name: $orderby
+ - name: $select
in: query
- description: Order items by property values
+ description: Select properties to be returned
style: form
explode: false
schema:
@@ -7639,54 +15696,53 @@ paths:
items:
enum:
- UserName
- - UserName desc
- FirstName
- - FirstName desc
- LastName
- - LastName desc
- MiddleName
- - MiddleName desc
- Gender
- - Gender desc
- Age
- - Age desc
- Emails
- - Emails desc
- AddressInfo
- - AddressInfo desc
- HomeAddress
- - HomeAddress desc
- FavoriteFeature
- - FavoriteFeature desc
- Features
- - Features desc
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
type: string
responses:
'200':
- description: Success
- content:
- application/json:
- schema:
- title: Collection of Person
- type: object
- properties:
- value:
- type: array
- items:
- anyOf:
- - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
- - type: object
- nullable: true
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse'
default:
$ref: '#/components/responses/error'
- x-ms-docs-operation-type: function
- '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems':
- description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count':
+ description: Provides operations to count the resources in the collection.
get:
tags:
- - NewComePeople.Trips.PlanItem
- summary: Get PlanItems from NewComePeople
- operationId: NewComePeople.Trips.ListPlanItems
+ - People.Person
+ summary: Get the number of the resource
+ operationId: People.ListFriends.GetCount.AsManager-b145
parameters:
- name: UserName
in: path
@@ -7695,16 +15751,34 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: TripId
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers':
+ description: Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity.
+ get:
+ tags:
+ - People.Person
+ summary: Get Peers from People
+ operationId: People.ListPeers
+ parameters:
+ - name: UserName
in: path
- description: The unique identifier of Trip
+ description: The unique identifier of Person
required: true
schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: Trip
+ type: string
+ x-ms-docs-key-type: Person
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/skip'
- $ref: '#/components/parameters/search'
@@ -7720,16 +15794,28 @@ paths:
type: array
items:
enum:
- - PlanItemId
- - PlanItemId desc
- - ConfirmationCode
- - ConfirmationCode desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
- - Duration
- - Duration desc
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
type: string
- name: $select
in: query
@@ -7741,11 +15827,20 @@ paths:
type: array
items:
enum:
- - PlanItemId
- - ConfirmationCode
- - StartsAt
- - EndsAt
- - Duration
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
type: string
- name: $expand
in: query
@@ -7758,20 +15853,29 @@ paths:
items:
enum:
- '*'
+ - Friends
+ - BestFriend
+ - Trips
type: string
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
default:
$ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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
- '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/$ref':
description: Provides operations to manage the collection of Person entities.
delete:
tags:
- - NewComePeople.Trips.PlanItem
- summary: Delete ref of navigation property PlanItems for NewComePeople
- operationId: NewComePeople.Trips.DeleteRefPlanItems
+ - People.Person
+ summary: Delete ref of navigation property Peers for People
+ operationId: People.DeleteRefPeers
parameters:
- name: UserName
in: path
@@ -7780,26 +15884,13 @@ paths:
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: PlanItemId
+ - name: UserName1
in: path
- description: The unique identifier of PlanItem
+ description: The unique identifier of Person
required: true
schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: PlanItem
+ type: string
+ x-ms-docs-key-type: Person
- name: If-Match
in: header
description: ETag
@@ -7815,46 +15906,19 @@ paths:
description: Success
default:
$ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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
- '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$count':
- description: Provides operations to count the resources in the collection.
- get:
- tags:
- - NewComePeople.Trips.PlanItem
- summary: Get the number of the resource
- operationId: NewComePeople.Trips.PlanItems.GetCount-841f
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- - name: TripId
- in: path
- description: The unique identifier of Trip
- required: true
- schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: Trip
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- responses:
- '200':
- $ref: '#/components/responses/ODataCountResponse'
- default:
- $ref: '#/components/responses/error'
- '/NewComePeople/{UserName}/Trips/{TripId}/PlanItems/$ref':
- description: Provides operations to manage the collection of Person entities.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo':
get:
- tags:
- - NewComePeople.Trips.PlanItem
- summary: Get ref of PlanItems from NewComePeople
- operationId: NewComePeople.Trips.ListRefPlanItems
+ tags:
+ - People.Person.Location
+ summary: Get AddressInfo property value
+ operationId: People.Peers.ListAddressInfo
parameters:
- name: UserName
in: path
@@ -7863,16 +15927,13 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: TripId
+ - name: UserName1
in: path
- description: The unique identifier of Trip
+ description: The unique identifier of Person
required: true
schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: Trip
+ type: string
+ x-ms-docs-key-type: Person
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/skip'
- $ref: '#/components/parameters/search'
@@ -7888,28 +15949,52 @@ paths:
type: array
items:
enum:
- - PlanItemId
- - PlanItemId desc
- - ConfirmationCode
- - ConfirmationCode desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
- - Duration
- - Duration desc
+ - Address
+ - Address desc
+ - City
+ - City desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
type: string
responses:
'200':
- $ref: '#/components/responses/StringCollectionResponse'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
default:
$ref: '#/components/responses/error'
- x-ms-docs-operation-type: operation
- post:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
tags:
- - NewComePeople.Trips.PlanItem
- summary: Create new navigation property ref to PlanItems for NewComePeople
- operationId: NewComePeople.Trips.CreateRefPlanItems
+ - People.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: People.Peers.UpdateAddressInfo
parameters:
- name: UserName
in: path
@@ -7918,31 +16003,38 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: TripId
+ - name: UserName1
in: path
- description: The unique identifier of Trip
+ description: The unique identifier of Person
required: true
schema:
- maximum: 2147483647
- minimum: -2147483648
- type: integer
- format: int32
- x-ms-docs-key-type: Trip
+ type: string
+ x-ms-docs-key-type: Person
requestBody:
- $ref: '#/components/requestBodies/refPostBody'
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
responses:
'204':
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:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ post:
tags:
- - NewComePeople.Trip
- summary: Get the number of the resource
- operationId: NewComePeople.Trips.GetCount-d155
+ - People.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: People.Peers.SetAddressInfo
parameters:
- name: UserName
in: path
@@ -7951,30 +16043,60 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: ConsistencyLevel
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
in: header
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ description: ETag
schema:
type: string
- examples:
- example-1:
- description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
- value: eventual
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
responses:
- '200':
- $ref: '#/components/responses/ODataCountResponse'
+ '204':
+ description: Success
default:
$ref: '#/components/responses/error'
- /NewComePeople/$count:
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/$count':
description: Provides operations to count the resources in the collection.
get:
tags:
- - NewComePeople.Person
+ - People.Person.Location
summary: Get the number of the resource
- operationId: NewComePeople.GetCount-55d5
+ operationId: People.Peers.AddressInfo.GetCount-755d
parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
responses:
@@ -7982,104 +16104,37 @@ paths:
$ref: '#/components/responses/ODataCountResponse'
default:
$ref: '#/components/responses/error'
- /People:
- description: Provides operations to manage the collection of Person entities.
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
get:
tags:
- - People.Person
- summary: Get entities from People
- operationId: People.Person.ListPerson
- parameters:
- - name: ConsistencyLevel
- in: header
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
- schema:
- type: string
- examples:
- example-1:
- description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
- value: eventual
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $orderby
- in: query
- description: Order items by property values
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
- - name: $select
- in: query
- description: Select properties to be returned
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - name: $expand
- in: query
- description: Expand related entities
- style: form
- explode: false
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.Peers.ListAddressInfo.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
- type: string
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -8088,25 +16143,31 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- post:
- tags:
- - People.Person
- summary: Add new entity to People
- operationId: People.Person.CreatePerson
- requestBody:
- description: New entity
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
- required: true
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ summary: Get the number of the resource
+ operationId: People.Peers.ListAddressInfo.GetCount.AsEventLocation-ef5e
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
responses:
- '201':
- description: Created entity
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -8115,14 +16176,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: operation
- '/People/{UserName}':
- description: Provides operations to manage the collection of Person entities.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress':
get:
tags:
- - People.Person
- summary: Get entity from People by key
- operationId: People.Person.GetPerson
+ - People.Person.Location
+ summary: Get HomeAddress property value
+ operationId: People.Peers.GetHomeAddress
parameters:
- name: UserName
in: path
@@ -8131,15 +16190,13 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: ConsistencyLevel
- in: header
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
schema:
type: string
- examples:
- example-1:
- description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
- value: eventual
+ x-ms-docs-key-type: Person
- name: $select
in: query
description: Select properties to be returned
@@ -8150,20 +16207,8 @@ paths:
type: array
items:
enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
+ - Address
+ - City
type: string
- name: $expand
in: query
@@ -8176,17 +16221,14 @@ paths:
items:
enum:
- '*'
- - Friends
- - BestFriend
- - Trips
type: string
responses:
'200':
- description: Retrieved entity
+ description: Result entities
content:
application/json:
schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -8195,12 +16237,11 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: operation
patch:
tags:
- - People.Person
- summary: Update entity in People
- operationId: People.Person.UpdatePerson
+ - People.Person.Location
+ summary: Update property HomeAddress value.
+ operationId: People.Peers.UpdateHomeAddress
parameters:
- name: UserName
in: path
@@ -8209,12 +16250,19 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
requestBody:
description: New property values
content:
application/json:
schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
required: true
responses:
'204':
@@ -8227,12 +16275,137 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.Peers.GetHomeAddress.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - People.Person
+ summary: Get the number of the resource
+ operationId: People.Peers.GetCount-44d2
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - People.Person
+ summary: Get ref of Peers from People
+ operationId: People.ListRefPeers
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/StringCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: 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:
+ post:
tags:
- People.Person
- summary: Delete entity from People
- operationId: People.Person.DeletePerson
+ summary: Create new navigation property ref to Peers for People
+ operationId: People.CreateRefPeers
parameters:
- name: UserName
in: path
@@ -8241,11 +16414,8 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: If-Match
- in: header
- description: ETag
- schema:
- type: string
+ requestBody:
+ $ref: '#/components/requestBodies/refPostBody'
responses:
'204':
description: Success
@@ -8258,12 +16428,14 @@ paths:
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
x-ms-docs-operation-type: operation
- '/People/{UserName}/AddressInfo':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips':
+ description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
get:
tags:
- - People.Location
- summary: Get AddressInfo property value
- operationId: People.ListAddressInfo
+ - People.Trip
+ summary: List trips.
+ description: Retrieve a list of trips.
+ operationId: People.ListTrips
parameters:
- name: UserName
in: path
@@ -8272,6 +16444,15 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/skip'
- $ref: '#/components/parameters/search'
@@ -8287,10 +16468,22 @@ paths:
type: array
items:
enum:
- - Address
- - Address desc
- - City
- - City desc
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
type: string
- name: $select
in: query
@@ -8302,8 +16495,15 @@ paths:
type: array
items:
enum:
- - Address
- - City
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
type: string
- name: $expand
in: query
@@ -8316,10 +16516,11 @@ paths:
items:
enum:
- '*'
+ - PlanItems
type: string
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -8328,11 +16529,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- patch:
+ x-ms-docs-operation-type: operation
+ post:
tags:
- - People.Location
- summary: Update property AddressInfo value.
- operationId: People.UpdateAddressInfo
+ - People.Trip
+ summary: Create a trip.
+ description: Create a new trip.
+ operationId: People.CreateTrips
parameters:
- name: UserName
in: path
@@ -8342,17 +16545,19 @@ paths:
type: string
x-ms-docs-key-type: Person
requestBody:
- description: New property values
+ description: New navigation property
content:
application/json:
schema:
- type: array
- items:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
required: true
responses:
- '204':
- description: Success
+ '201':
+ description: Created navigation property.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -8361,11 +16566,18 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- post:
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips'
+ - '/People/{UserName}/Trips'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}':
+ description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ get:
tags:
- - People.Location
- summary: Sets a new value for the collection of Location.
- operationId: People.SetAddressInfo
+ - People.Trip
+ summary: Get a trip.
+ description: Retrieve the properties of a trip.
+ operationId: People.GetTrips
parameters:
- name: UserName
in: path
@@ -8374,23 +16586,56 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: If-Match
- in: header
- description: ETag
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
schema:
- type: string
- requestBody:
- description: New property values
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- required: true
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - PlanItems
+ type: string
responses:
- '204':
- description: Success
+ '200':
+ description: Retrieved navigation property
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -8399,13 +16644,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/AddressInfo/$count':
- description: Provides operations to count the resources in the collection.
- get:
+ x-ms-docs-operation-type: operation
+ patch:
tags:
- - People.Location
- summary: Get the number of the resource
- operationId: People.AddressInfo.GetCount-ed5a
+ - People.Trip
+ summary: Update a trip.
+ description: Update an instance of a trip.
+ operationId: People.UpdateTrips
parameters:
- name: UserName
in: path
@@ -8414,11 +16659,26 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ requestBody:
+ description: New navigation property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ required: true
responses:
- '200':
- $ref: '#/components/responses/ODataCountResponse'
+ '204':
+ description: Success
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -8427,13 +16687,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- description: Casts the previous resource to EventLocation.
- get:
+ x-ms-docs-operation-type: operation
+ delete:
tags:
- - People.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.ListAddressInfo.AsEventLocation
+ - People.Trip
+ summary: Delete a trip.
+ description: Delete an instance of a trip.
+ operationId: People.DeleteTrips
parameters:
- name: UserName
in: path
@@ -8442,35 +16702,24 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- responses:
- '200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
- description: Provides operations to count the resources in the collection.
- get:
- summary: Get the number of the resource
- operationId: People.ListAddressInfo.GetCount.AsEventLocation-4abd
- parameters:
- - name: UserName
+ - name: TripId
in: path
- description: The unique identifier of Person
+ 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
- x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
responses:
- '200':
- $ref: '#/components/responses/ODataCountResponse'
+ '204':
+ description: Success
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -8479,14 +16728,17 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/BestFriend':
- description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
- get:
- tags:
- - People.Person
- summary: Get BestFriend from People
- description: The best friend.
- operationId: People.GetBestFriend
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}'
+ - '/People/{UserName}/Trips/{TripId}'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
+ description: Provides operations to call the GetInvolvedPeople method.
+ get:
+ tags:
+ - People.Functions
+ summary: Invoke function GetInvolvedPeople
+ operationId: People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee.Trips.Trip.GetInvolvedPeople
parameters:
- name: UserName
in: path
@@ -8495,6 +16747,21 @@ paths:
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
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
- name: $select
in: query
description: Select properties to be returned
@@ -8520,9 +16787,9 @@ paths:
- BestFriend
- Trips
type: string
- - name: $expand
+ - name: $orderby
in: query
- description: Expand related entities
+ description: Order items by property values
style: form
explode: false
schema:
@@ -8530,18 +16797,45 @@ paths:
type: array
items:
enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
type: string
responses:
'200':
- description: Retrieved navigation property
+ description: Success
content:
application/json:
schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ title: Collection of Person
+ type: object
+ properties:
+ value:
+ type: array
+ items:
+ anyOf:
+ - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ - type: object
+ nullable: true
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -8550,13 +16844,17 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: operation
- patch:
+ x-ms-docs-operation-type: function
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ - '/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems':
+ description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
+ get:
tags:
- - People.Person
- summary: Update the best friend.
- description: Update an instance of a best friend.
- operationId: People.UpdateBestFriend
+ - People.Trips.PlanItem
+ summary: Get PlanItems from People
+ operationId: People.Trips.ListPlanItems
parameters:
- name: UserName
in: path
@@ -8565,16 +16863,73 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- requestBody:
- description: New navigation property values
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
- required: true
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - ConfirmationCode
+ - StartsAt
+ - EndsAt
+ - Duration
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -8584,14 +16939,16 @@ 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
- '/People/{UserName}/BestFriend/$ref':
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems'
+ - '/People/{UserName}/Trips/{TripId}/PlanItems'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
description: Provides operations to manage the collection of Person entities.
- get:
+ delete:
tags:
- - People.Person
- summary: Get ref of BestFriend from People
- description: The best friend.
- operationId: People.GetRefBestFriend
+ - People.Trips.PlanItem
+ summary: Delete ref of navigation property PlanItems for People
+ operationId: People.Trips.DeleteRefPlanItems
parameters:
- name: UserName
in: path
@@ -8600,38 +16957,36 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- responses:
- '200':
- description: Retrieved navigation property link
- content:
- application/json:
- schema:
- type: string
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: operation
- put:
- tags:
- - People.Person
- summary: Update the best friend.
- description: Update an instance of a best friend.
- operationId: People.UpdateRefBestFriend
- parameters:
- - name: UserName
+ - name: TripId
in: path
- description: The unique identifier of Person
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - name: PlanItemId
+ in: path
+ description: The unique identifier of PlanItem
required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: PlanItem
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ - name: '@id'
+ in: query
+ description: Delete Uri
schema:
type: string
- x-ms-docs-key-type: Person
- requestBody:
- $ref: '#/components/requestBodies/refPutBody'
responses:
'204':
description: Success
@@ -8644,11 +16999,13 @@ 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:
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
tags:
- - People.Person
- summary: Delete ref of navigation property BestFriend for People
- operationId: People.DeleteRefBestFriend
+ - People.Trips.PlanItem
+ summary: Get the number of the resource
+ operationId: People.Trips.PlanItems.GetCount-7df9
parameters:
- name: UserName
in: path
@@ -8657,14 +17014,21 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: If-Match
- in: header
- description: ETag
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
schema:
- type: string
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -8673,21 +17037,31 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: operation
- '/People/{UserName}/BestFriend/AddressInfo':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems/$ref':
+ description: Provides operations to manage the collection of Person entities.
get:
tags:
- - People.Person.Location
- summary: Get AddressInfo property value
- operationId: People.BestFriend.ListAddressInfo
+ - People.Trips.PlanItem
+ summary: Get ref of PlanItems from People
+ operationId: People.Trips.ListRefPlanItems
parameters:
- name: UserName
in: path
- description: The unique identifier of Person
+ 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:
- type: string
- x-ms-docs-key-type: Person
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/skip'
- $ref: '#/components/parameters/search'
@@ -8703,39 +17077,20 @@ paths:
type: array
items:
enum:
- - Address
- - Address desc
- - City
- - City desc
- type: string
- - name: $select
- in: query
- description: Select properties to be returned
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - Address
- - City
- type: string
- - name: $expand
- in: query
- description: Expand related entities
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - '*'
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
type: string
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ $ref: '#/components/responses/StringCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -8744,11 +17099,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- patch:
+ x-ms-docs-operation-type: operation
+ post:
tags:
- - People.Person.Location
- summary: Update property AddressInfo value.
- operationId: People.BestFriend.UpdateAddressInfo
+ - People.Trips.PlanItem
+ summary: Create new navigation property ref to PlanItems for People
+ operationId: People.Trips.CreateRefPlanItems
parameters:
- name: UserName
in: path
@@ -8757,53 +17113,18 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- requestBody:
- description: New property values
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- required: true
- responses:
- '204':
- description: Success
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- post:
- tags:
- - People.Person.Location
- summary: Sets a new value for the collection of Location.
- operationId: People.BestFriend.SetAddressInfo
- parameters:
- - name: UserName
+ - name: TripId
in: path
- description: The unique identifier of Person
+ description: The unique identifier of Trip
required: true
schema:
- type: string
- x-ms-docs-key-type: Person
- - name: If-Match
- in: header
- description: ETag
- schema:
- type: string
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
requestBody:
- description: New property values
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- required: true
+ $ref: '#/components/requestBodies/refPostBody'
responses:
'204':
description: Success
@@ -8815,13 +17136,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/BestFriend/AddressInfo/$count':
+ 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.Person.Location
+ - People.Trip
summary: Get the number of the resource
- operationId: People.BestFriend.AddressInfo.GetCount-16df
+ operationId: People.Trips.GetCount-c760
parameters:
- name: UserName
in: path
@@ -8830,6 +17152,15 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
responses:
@@ -8843,13 +17174,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- description: Casts the previous resource to EventLocation.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()':
+ description: Provides operations to call the GetFavoriteAirline method.
get:
tags:
- - People.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.BestFriend.ListAddressInfo.AsEventLocation
+ - People.Functions
+ summary: Invoke function GetFavoriteAirline
+ operationId: People.Person.GetFavoriteAirline
parameters:
- name: UserName
in: path
@@ -8860,7 +17191,7 @@ paths:
x-ms-docs-key-type: Person
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ $ref: '#/components/responses/GetFavoriteAirlineResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -8869,11 +17200,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
- description: Provides operations to count the resources in the collection.
+ x-ms-docs-operation-type: function
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')':
+ description: Provides operations to call the GetFriendsTrips method.
get:
- summary: Get the number of the resource
- operationId: People.BestFriend.ListAddressInfo.GetCount.AsEventLocation-fe88
+ tags:
+ - People.Functions
+ summary: Invoke function GetFriendsTrips
+ operationId: People.Person.GetFriendsTrips
parameters:
- name: UserName
in: path
@@ -8882,33 +17216,17 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- responses:
- '200':
- $ref: '#/components/responses/ODataCountResponse'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/BestFriend/HomeAddress':
- get:
- tags:
- - People.Person.Location
- summary: Get HomeAddress property value
- operationId: People.BestFriend.GetHomeAddress
- parameters:
- - name: UserName
+ - name: userName
in: path
- description: The unique identifier of Person
+ description: 'Usage: userName=''{userName}'''
required: true
schema:
type: string
- x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
- name: $select
in: query
description: Select properties to be returned
@@ -8919,12 +17237,19 @@ paths:
type: array
items:
enum:
- - Address
- - City
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
type: string
- - name: $expand
+ - name: $orderby
in: query
- description: Expand related entities
+ description: Order items by property values
style: form
explode: false
schema:
@@ -8932,46 +17257,26 @@ paths:
type: array
items:
enum:
- - '*'
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
type: string
responses:
'200':
- description: Result entities
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- patch:
- tags:
- - People.Person.Location
- summary: Update property HomeAddress value.
- operationId: People.BestFriend.UpdateHomeAddress
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- requestBody:
- description: New property values
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- required: true
- responses:
- '204':
- description: Success
+ $ref: '#/components/responses/GetFriendsTripsResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -8980,13 +17285,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- description: Casts the previous resource to EventLocation.
- get:
- tags:
- - People.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.BestFriend.GetHomeAddress.AsEventLocation
+ x-ms-docs-operation-type: function
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip':
+ description: Provides operations to call the GetPeersForTrip method.
+ post:
+ tags:
+ - People.Actions
+ summary: Invoke action GetPeersForTrip
+ operationId: People.Person.GetPeersForTrip
parameters:
- name: UserName
in: path
@@ -8995,9 +17301,11 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ requestBody:
+ $ref: '#/components/requestBodies/GetPeersForTripRequestBody'
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ $ref: '#/components/responses/GetPeersForTripResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -9006,13 +17314,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
- description: Casts the previous resource to Employee.
+ x-ms-docs-operation-type: action
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
+ description: Casts the previous resource to Manager.
get:
tags:
- People.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
- operationId: People.GetBestFriend.AsEmployee
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
+ operationId: People.Person.GetPerson.AsManager
parameters:
- name: UserName
in: path
@@ -9021,6 +17330,15 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
- name: $select
in: query
description: Select properties to be returned
@@ -9067,7 +17385,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -9076,13 +17394,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
- description: Casts the previous resource to Manager.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend':
+ description: Provides operations to manage the BestFriend property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
get:
tags:
- People.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
- operationId: People.GetBestFriend.AsManager
+ summary: Get BestFriend from People
+ description: The best friend.
+ operationId: People.GetBestFriend
parameters:
- name: UserName
in: path
@@ -9133,11 +17452,11 @@ paths:
type: string
responses:
'200':
- description: Result entities
+ description: Retrieved navigation property
content:
application/json:
schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -9146,13 +17465,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Friends':
- description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
- get:
+ x-ms-docs-operation-type: operation
+ patch:
tags:
- People.Person
- summary: Get Friends from People
- operationId: People.ListFriends
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: People.UpdateBestFriend
parameters:
- name: UserName
in: path
@@ -9161,87 +17480,51 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $orderby
- in: query
- description: Order items by property values
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
- - name: $select
- in: query
- description: Select properties to be returned
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - name: $expand
- in: query
- description: Expand related entities
- style: form
- explode: false
+ requestBody:
+ description: New navigation property values
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/BestFriend'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/BestFriend'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - People.Person
+ summary: Get ref of BestFriend from People
+ description: The best friend.
+ operationId: People.GetRefBestFriend
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
- type: string
+ type: string
+ x-ms-docs-key-type: Person
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ description: Retrieved navigation property link
+ content:
+ application/json:
+ schema:
+ type: string
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -9251,13 +17534,12 @@ 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
- '/People/{UserName}/Friends/{UserName1}/$ref':
- description: Provides operations to manage the collection of Person entities.
- delete:
+ put:
tags:
- People.Person
- summary: Delete ref of navigation property Friends for People
- operationId: People.DeleteRefFriends
+ summary: Update the best friend.
+ description: Update an instance of a best friend.
+ operationId: People.UpdateRefBestFriend
parameters:
- name: UserName
in: path
@@ -9266,7 +17548,27 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
+ requestBody:
+ $ref: '#/components/requestBodies/refPutBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ delete:
+ tags:
+ - People.Person
+ summary: Delete ref of navigation property BestFriend for People
+ operationId: People.DeleteRefBestFriend
+ parameters:
+ - name: UserName
in: path
description: The unique identifier of Person
required: true
@@ -9278,11 +17580,6 @@ paths:
description: ETag
schema:
type: string
- - name: '@id'
- in: query
- description: Delete Uri
- schema:
- type: string
responses:
'204':
description: Success
@@ -9295,12 +17592,12 @@ 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
- '/People/{UserName}/Friends/{UserName1}/AddressInfo':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo':
get:
tags:
- People.Person.Location
summary: Get AddressInfo property value
- operationId: People.Friends.ListAddressInfo
+ operationId: People.BestFriend.ListAddressInfo
parameters:
- name: UserName
in: path
@@ -9309,13 +17606,6 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/skip'
- $ref: '#/components/parameters/search'
@@ -9376,7 +17666,7 @@ paths:
tags:
- People.Person.Location
summary: Update property AddressInfo value.
- operationId: People.Friends.UpdateAddressInfo
+ operationId: People.BestFriend.UpdateAddressInfo
parameters:
- name: UserName
in: path
@@ -9385,13 +17675,6 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
requestBody:
description: New property values
content:
@@ -9416,7 +17699,7 @@ paths:
tags:
- People.Person.Location
summary: Sets a new value for the collection of Location.
- operationId: People.Friends.SetAddressInfo
+ operationId: People.BestFriend.SetAddressInfo
parameters:
- name: UserName
in: path
@@ -9425,13 +17708,6 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- name: If-Match
in: header
description: ETag
@@ -9457,13 +17733,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Friends/{UserName1}/AddressInfo/$count':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/$count':
description: Provides operations to count the resources in the collection.
get:
tags:
- People.Person.Location
summary: Get the number of the resource
- operationId: People.Friends.AddressInfo.GetCount-bdaf
+ operationId: People.BestFriend.AddressInfo.GetCount-5a39
parameters:
- name: UserName
in: path
@@ -9472,13 +17748,15 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
schema:
type: string
- x-ms-docs-key-type: Person
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
responses:
@@ -9492,13 +17770,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
description: Casts the previous resource to EventLocation.
get:
tags:
- People.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.Friends.ListAddressInfo.AsEventLocation
+ operationId: People.BestFriend.ListAddressInfo.AsEventLocation
parameters:
- name: UserName
in: path
@@ -9507,13 +17785,6 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
responses:
'200':
$ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
@@ -9525,11 +17796,11 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
description: Provides operations to count the resources in the collection.
get:
summary: Get the number of the resource
- operationId: People.Friends.ListAddressInfo.GetCount.AsEventLocation-2795
+ operationId: People.BestFriend.ListAddressInfo.GetCount.AsEventLocation-5af3
parameters:
- name: UserName
in: path
@@ -9538,13 +17809,15 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
schema:
type: string
- x-ms-docs-key-type: Person
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
responses:
@@ -9558,12 +17831,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Friends/{UserName1}/HomeAddress':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress':
get:
tags:
- People.Person.Location
summary: Get HomeAddress property value
- operationId: People.Friends.GetHomeAddress
+ operationId: People.BestFriend.GetHomeAddress
parameters:
- name: UserName
in: path
@@ -9572,13 +17845,6 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- name: $select
in: query
description: Select properties to be returned
@@ -9623,7 +17889,7 @@ paths:
tags:
- People.Person.Location
summary: Update property HomeAddress value.
- operationId: People.Friends.UpdateHomeAddress
+ operationId: People.BestFriend.UpdateHomeAddress
parameters:
- name: UserName
in: path
@@ -9632,13 +17898,6 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
requestBody:
description: New property values
content:
@@ -9657,13 +17916,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
description: Casts the previous resource to EventLocation.
get:
tags:
- People.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.Friends.GetHomeAddress.AsEventLocation
+ operationId: People.BestFriend.GetHomeAddress.AsEventLocation
parameters:
- name: UserName
in: path
@@ -9672,13 +17931,6 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
responses:
'200':
$ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
@@ -9690,90 +17942,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/BestFriend/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
description: Casts the previous resource to Employee.
get:
tags:
- People.Person
summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
- operationId: People.GetFriends.AsEmployee
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- - name: $select
- in: query
- description: Select properties to be returned
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - name: $expand
- in: query
- description: Expand related entities
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
- type: string
- responses:
- '200':
- description: Result entities
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
- description: Casts the previous resource to Manager.
- get:
- tags:
- - People.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
- operationId: People.GetFriends.AsManager
+ operationId: People.GetBestFriend.AsEmployee
parameters:
- name: UserName
in: path
@@ -9782,13 +17957,6 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- name: $select
in: query
description: Select properties to be returned
@@ -9825,136 +17993,17 @@ paths:
items:
enum:
- '*'
- - Friends
- - BestFriend
- - Trips
- type: string
- responses:
- '200':
- description: Result entities
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Friends/$count':
- description: Provides operations to count the resources in the collection.
- get:
- tags:
- - People.Person
- summary: Get the number of the resource
- operationId: People.Friends.GetCount-92b9
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- responses:
- '200':
- $ref: '#/components/responses/ODataCountResponse'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Friends/$ref':
- description: Provides operations to manage the collection of Person entities.
- get:
- tags:
- - People.Person
- summary: Get ref of Friends from People
- operationId: People.ListRefFriends
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $orderby
- in: query
- description: Order items by property values
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
- type: string
- responses:
- '200':
- $ref: '#/components/responses/StringCollectionResponse'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: operation
- post:
- tags:
- - People.Person
- summary: Create new navigation property ref to Friends for People
- operationId: People.CreateRefFriends
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- requestBody:
- $ref: '#/components/requestBodies/refPostBody'
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
responses:
- '204':
- description: Success
+ '200':
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -9963,14 +18012,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: operation
- '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
- description: Casts the previous resource to Employee.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports':
+ description: Provides operations to manage the DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity.
get:
tags:
- People.Person
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
- operationId: People.ListFriends.AsEmployee
+ summary: Get DirectReports from People
+ operationId: People.ListDirectReports
parameters:
- name: UserName
in: path
@@ -10059,7 +18107,7 @@ paths:
type: string
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -10068,13 +18116,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count':
- description: Provides operations to count the resources in the collection.
- get:
+ x-ms-docs-operation-type: operation
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ delete:
tags:
- People.Person
- summary: Get the number of the resource
- operationId: People.ListFriends.GetCount.AsEmployee-a96c
+ summary: Delete ref of navigation property DirectReports for People
+ operationId: People.DeleteRefDirectReports
parameters:
- name: UserName
in: path
@@ -10083,11 +18132,26 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ - name: '@id'
+ in: query
+ description: Delete Uri
+ schema:
+ type: string
responses:
- '200':
- $ref: '#/components/responses/ODataCountResponse'
+ '204':
+ description: Success
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -10096,13 +18160,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
- description: Casts the previous resource to Manager.
+ x-ms-docs-operation-type: operation
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo':
get:
tags:
- - People.Person
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
- operationId: People.ListFriends.AsManager
+ - People.Person.Location
+ summary: Get AddressInfo property value
+ operationId: People.DirectReports.ListAddressInfo
parameters:
- name: UserName
in: path
@@ -10111,6 +18175,13 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/skip'
- $ref: '#/components/parameters/search'
@@ -10126,28 +18197,10 @@ paths:
type: array
items:
enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
+ - Address
+ - Address desc
+ - City
+ - City desc
type: string
- name: $select
in: query
@@ -10155,43 +18208,190 @@ paths:
style: form
explode: false
schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - UserName
- - FirstName
- - LastName
- - MiddleName
- - Gender
- - Age
- - Emails
- - AddressInfo
- - HomeAddress
- - FavoriteFeature
- - Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - name: $expand
- in: query
- description: Expand related entities
- style: form
- explode: false
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - Address
+ - City
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ patch:
+ tags:
+ - People.Person.Location
+ summary: Update property AddressInfo value.
+ operationId: People.DirectReports.UpdateAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ post:
+ tags:
+ - People.Person.Location
+ summary: Sets a new value for the collection of Location.
+ operationId: People.DirectReports.SetAddressInfo
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: If-Match
+ in: header
+ description: ETag
+ schema:
+ type: string
+ requestBody:
+ description: New property values
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ required: true
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the number of the resource
+ operationId: People.DirectReports.AddressInfo.GetCount-f46e
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ description: Casts the previous resource to EventLocation.
+ get:
+ tags:
+ - People.Person.Location
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
+ operationId: People.DirectReports.ListAddressInfo.AsEventLocation
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
- type: string
+ type: string
+ x-ms-docs-key-type: Person
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ManagerCollectionResponse'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -10200,13 +18400,11 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/$count':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
description: Provides operations to count the resources in the collection.
get:
- tags:
- - People.Person
summary: Get the number of the resource
- operationId: People.ListFriends.GetCount.AsManager-26b3
+ operationId: People.DirectReports.ListAddressInfo.GetCount.AsEventLocation-5d49
parameters:
- name: UserName
in: path
@@ -10215,6 +18413,22 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
responses:
@@ -10228,12 +18442,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/HomeAddress':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress':
get:
tags:
- - People.Location
+ - People.Person.Location
summary: Get HomeAddress property value
- operationId: People.GetHomeAddress
+ operationId: People.DirectReports.GetHomeAddress
parameters:
- name: UserName
in: path
@@ -10242,6 +18456,13 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
- name: $select
in: query
description: Select properties to be returned
@@ -10284,9 +18505,9 @@ paths:
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
patch:
tags:
- - People.Location
+ - People.Person.Location
summary: Update property HomeAddress value.
- operationId: People.UpdateHomeAddress
+ operationId: People.DirectReports.UpdateHomeAddress
parameters:
- name: UserName
in: path
@@ -10295,6 +18516,13 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
requestBody:
description: New property values
content:
@@ -10313,13 +18541,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
description: Casts the previous resource to EventLocation.
get:
tags:
- - People.Location
+ - People.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.GetHomeAddress.AsEventLocation
+ operationId: People.DirectReports.GetHomeAddress.AsEventLocation
parameters:
- name: UserName
in: path
@@ -10328,6 +18556,13 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
+ - name: UserName1
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
responses:
'200':
$ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
@@ -10339,13 +18574,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
- description: Casts the previous resource to Employee.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count':
+ description: Provides operations to count the resources in the collection.
get:
tags:
- People.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
- operationId: People.Person.GetPerson.AsEmployee
+ summary: Get the number of the resource
+ operationId: People.DirectReports.GetCount-0ec4
parameters:
- name: UserName
in: path
@@ -10354,18 +18589,42 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: ConsistencyLevel
- in: header
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ get:
+ tags:
+ - People.Person
+ summary: Get ref of DirectReports from People
+ operationId: People.ListRefDirectReports
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
schema:
type: string
- examples:
- example-1:
- description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
- value: eventual
- - name: $select
+ x-ms-docs-key-type: Person
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
in: query
- description: Select properties to be returned
+ description: Order items by property values
style: form
explode: false
schema:
@@ -10374,42 +18633,31 @@ paths:
items:
enum:
- UserName
+ - UserName desc
- FirstName
+ - FirstName desc
- LastName
+ - LastName desc
- MiddleName
+ - MiddleName desc
- Gender
+ - Gender desc
- Age
+ - Age desc
- Emails
+ - Emails desc
- AddressInfo
+ - AddressInfo desc
- HomeAddress
+ - HomeAddress desc
- FavoriteFeature
+ - FavoriteFeature desc
- Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - name: $expand
- in: query
- description: Expand related entities
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
+ - Features desc
type: string
responses:
'200':
- description: Result entities
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
+ $ref: '#/components/responses/StringCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -10418,13 +18666,41 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers':
- description: Provides operations to manage the Peers property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee entity.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - People.Person
+ summary: Create new navigation property ref to DirectReports for People
+ operationId: People.CreateRefDirectReports
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ $ref: '#/components/requestBodies/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends':
+ description: Provides operations to manage the Friends property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
get:
tags:
- People.Person
- summary: Get Peers from People
- operationId: People.ListPeers
+ summary: Get Friends from People
+ operationId: People.ListFriends
parameters:
- name: UserName
in: path
@@ -10523,13 +18799,16 @@ 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
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/$ref':
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Friends'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Friends'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/$ref':
description: Provides operations to manage the collection of Person entities.
delete:
tags:
- People.Person
- summary: Delete ref of navigation property Peers for People
- operationId: People.DeleteRefPeers
+ summary: Delete ref of navigation property Friends for People
+ operationId: People.DeleteRefFriends
parameters:
- name: UserName
in: path
@@ -10567,12 +18846,12 @@ 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
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo':
get:
tags:
- People.Person.Location
summary: Get AddressInfo property value
- operationId: People.Peers.ListAddressInfo
+ operationId: People.Friends.ListAddressInfo
parameters:
- name: UserName
in: path
@@ -10648,7 +18927,7 @@ paths:
tags:
- People.Person.Location
summary: Update property AddressInfo value.
- operationId: People.Peers.UpdateAddressInfo
+ operationId: People.Friends.UpdateAddressInfo
parameters:
- name: UserName
in: path
@@ -10688,7 +18967,7 @@ paths:
tags:
- People.Person.Location
summary: Sets a new value for the collection of Location.
- operationId: People.Peers.SetAddressInfo
+ operationId: People.Friends.SetAddressInfo
parameters:
- name: UserName
in: path
@@ -10729,13 +19008,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/$count':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/$count':
description: Provides operations to count the resources in the collection.
get:
tags:
- People.Person.Location
summary: Get the number of the resource
- operationId: People.Peers.AddressInfo.GetCount-755d
+ operationId: People.Friends.AddressInfo.GetCount-f486
parameters:
- name: UserName
in: path
@@ -10764,13 +19043,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
description: Casts the previous resource to EventLocation.
get:
tags:
- People.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.Peers.ListAddressInfo.AsEventLocation
+ operationId: People.Friends.ListAddressInfo.AsEventLocation
parameters:
- name: UserName
in: path
@@ -10797,11 +19076,11 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
description: Provides operations to count the resources in the collection.
get:
summary: Get the number of the resource
- operationId: People.Peers.ListAddressInfo.GetCount.AsEventLocation-ef5e
+ operationId: People.Friends.ListAddressInfo.GetCount.AsEventLocation-4480
parameters:
- name: UserName
in: path
@@ -10830,12 +19109,12 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/HomeAddress':
get:
tags:
- People.Person.Location
summary: Get HomeAddress property value
- operationId: People.Peers.GetHomeAddress
+ operationId: People.Friends.GetHomeAddress
parameters:
- name: UserName
in: path
@@ -10895,7 +19174,7 @@ paths:
tags:
- People.Person.Location
summary: Update property HomeAddress value.
- operationId: People.Peers.UpdateHomeAddress
+ operationId: People.Friends.UpdateHomeAddress
parameters:
- name: UserName
in: path
@@ -10929,13 +19208,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
description: Casts the previous resource to EventLocation.
get:
tags:
- People.Person.Location
summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.Peers.GetHomeAddress.AsEventLocation
+ operationId: People.Friends.GetHomeAddress.AsEventLocation
parameters:
- name: UserName
in: path
@@ -10962,13 +19241,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$count':
- description: Provides operations to count the resources in the collection.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/{UserName1}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ description: Casts the previous resource to Employee.
get:
tags:
- People.Person
- summary: Get the number of the resource
- operationId: People.Peers.GetCount-44d2
+ summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee
+ operationId: People.GetFriends.AsEmployee
parameters:
- name: UserName
in: path
@@ -10977,42 +19256,16 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- responses:
- '200':
- $ref: '#/components/responses/ODataCountResponse'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Peers/$ref':
- description: Provides operations to manage the collection of Person entities.
- get:
- tags:
- - People.Person
- summary: Get ref of Peers from People
- operationId: People.ListRefPeers
- parameters:
- - name: UserName
+ - name: UserName1
in: path
description: The unique identifier of Person
required: true
schema:
type: string
x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $orderby
+ - name: $select
in: query
- description: Order items by property values
+ description: Select properties to be returned
style: form
explode: false
schema:
@@ -11021,143 +19274,23 @@ paths:
items:
enum:
- UserName
- - UserName desc
- FirstName
- - FirstName desc
- LastName
- - LastName desc
- MiddleName
- - MiddleName desc
- Gender
- - Gender desc
- Age
- - Age desc
- Emails
- - Emails desc
- AddressInfo
- - AddressInfo desc
- HomeAddress
- - HomeAddress desc
- FavoriteFeature
- - FavoriteFeature desc
- Features
- - Features desc
- type: string
- responses:
- '200':
- $ref: '#/components/responses/StringCollectionResponse'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: operation
- post:
- tags:
- - People.Person
- summary: Create new navigation property ref to Peers for People
- operationId: People.CreateRefPeers
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- requestBody:
- $ref: '#/components/requestBodies/refPostBody'
- responses:
- '204':
- description: Success
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: 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.GetFavoriteAirline()':
- description: Provides operations to call the GetFavoriteAirline method.
- get:
- tags:
- - People.Functions
- summary: Invoke function GetFavoriteAirline
- operationId: People.Person.GetFavoriteAirline
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- responses:
- '200':
- $ref: '#/components/responses/GetFavoriteAirlineResponse'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: function
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName=''{userName}'')':
- description: Provides operations to call the GetFriendsTrips method.
- get:
- tags:
- - People.Functions
- summary: Invoke function GetFriendsTrips
- operationId: People.Person.GetFriendsTrips
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- - name: userName
- in: path
- description: 'Usage: userName=''{userName}'''
- required: true
- schema:
- type: string
- - $ref: '#/components/parameters/top'
- - $ref: '#/components/parameters/skip'
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
- - $ref: '#/components/parameters/count'
- - name: $select
- in: query
- description: Select properties to be returned
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - TripId
- - ShareId
- - Name
- - Budget
- - Description
- - Tags
- - StartsAt
- - EndsAt
- - PlanItems
+ - Friends
+ - BestFriend
+ - Trips
type: string
- - name: $orderby
+ - name: $expand
in: query
- description: Order items by property values
+ description: Expand related entities
style: form
explode: false
schema:
@@ -11165,26 +19298,18 @@ paths:
type: array
items:
enum:
- - TripId
- - TripId desc
- - ShareId
- - ShareId desc
- - Name
- - Name desc
- - Budget
- - Budget desc
- - Description
- - Description desc
- - Tags
- - Tags desc
- - StartsAt
- - StartsAt desc
- - EndsAt
- - EndsAt desc
+ - '*'
+ - Friends
+ - BestFriend
+ - Trips
type: string
responses:
'200':
- $ref: '#/components/responses/GetFriendsTripsResponse'
+ description: Result entities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -11193,14 +19318,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: function
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetPeersForTrip':
- description: Provides operations to call the GetPeersForTrip method.
- post:
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
tags:
- - People.Actions
- summary: Invoke action GetPeersForTrip
- operationId: People.Person.GetPeersForTrip
+ - People.Person
+ summary: Get the number of the resource
+ operationId: People.Friends.GetCount-1c0c
parameters:
- name: UserName
in: path
@@ -11209,11 +19333,11 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- requestBody:
- $ref: '#/components/requestBodies/GetPeersForTripRequestBody'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
responses:
'200':
- $ref: '#/components/responses/GetPeersForTripResponse'
+ $ref: '#/components/responses/ODataCountResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -11222,14 +19346,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: action
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager':
- description: Casts the previous resource to Manager.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/$ref':
+ description: Provides operations to manage the collection of Person entities.
get:
tags:
- People.Person
- summary: Get the item of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person as Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager
- operationId: People.Person.GetPerson.AsManager
+ summary: Get ref of Friends from People
+ operationId: People.ListRefFriends
parameters:
- name: UserName
in: path
@@ -11238,18 +19361,14 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: ConsistencyLevel
- in: header
- description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
- schema:
- type: string
- examples:
- example-1:
- description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
- value: eventual
- - name: $select
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
in: query
- description: Select properties to be returned
+ description: Order items by property values
style: form
explode: false
schema:
@@ -11258,42 +19377,31 @@ paths:
items:
enum:
- UserName
+ - UserName desc
- FirstName
+ - FirstName desc
- LastName
+ - LastName desc
- MiddleName
+ - MiddleName desc
- Gender
+ - Gender desc
- Age
+ - Age desc
- Emails
+ - Emails desc
- AddressInfo
+ - AddressInfo desc
- HomeAddress
+ - HomeAddress desc
- FavoriteFeature
+ - FavoriteFeature desc
- Features
- - Friends
- - BestFriend
- - Trips
- type: string
- - name: $expand
- in: query
- description: Expand related entities
- style: form
- explode: false
- schema:
- uniqueItems: true
- type: array
- items:
- enum:
- - '*'
- - Friends
- - BestFriend
- - Trips
+ - Features desc
type: string
responses:
'200':
- description: Result entities
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager'
+ $ref: '#/components/responses/StringCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -11302,13 +19410,41 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports':
- description: Provides operations to manage the DirectReports property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager entity.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - People.Person
+ summary: Create new navigation property ref to Friends for People
+ operationId: People.CreateRefFriends
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ $ref: '#/components/requestBodies/refPostBody'
+ responses:
+ '204':
+ description: Success
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee':
+ description: Casts the previous resource to Employee.
get:
tags:
- People.Person
- summary: Get DirectReports from People
- operationId: People.ListDirectReports
+ summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person collection
+ operationId: People.ListFriends.AsEmployee
parameters:
- name: UserName
in: path
@@ -11397,7 +19533,7 @@ paths:
type: string
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EmployeeCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -11406,14 +19542,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: operation
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/$ref':
- description: Provides operations to manage the collection of Person entities.
- delete:
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Friends/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
tags:
- People.Person
- summary: Delete ref of navigation property DirectReports for People
- operationId: People.DeleteRefDirectReports
+ summary: Get the number of the resource
+ operationId: People.ListFriends.GetCount.AsEmployee-f325
parameters:
- name: UserName
in: path
@@ -11422,23 +19557,48 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ responses:
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire':
+ description: Provides operations to call the Hire method.
+ post:
+ tags:
+ - People.Actions
+ summary: Invoke action Hire
+ description: Hires someone for the company.
+ operationId: People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire
+ parameters:
+ - name: UserName
in: path
description: The unique identifier of Person
required: true
schema:
type: string
x-ms-docs-key-type: Person
- - name: If-Match
- in: header
- description: ETag
- schema:
- type: string
- - name: '@id'
- in: query
- description: Delete Uri
- schema:
- type: string
+ requestBody:
+ description: Action parameters
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ hire:
+ anyOf:
+ - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ - type: object
+ nullable: true
+ required: true
responses:
'204':
description: Success
@@ -11450,13 +19610,15 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: operation
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo':
+ x-ms-docs-operation-type: action
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips':
+ description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
get:
tags:
- - People.Person.Location
- summary: Get AddressInfo property value
- operationId: People.DirectReports.ListAddressInfo
+ - People.Trip
+ summary: List trips.
+ description: Retrieve a list of trips.
+ operationId: People.ListTrips
parameters:
- name: UserName
in: path
@@ -11465,13 +19627,15 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
schema:
type: string
- x-ms-docs-key-type: Person
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/skip'
- $ref: '#/components/parameters/search'
@@ -11487,11 +19651,134 @@ paths:
type: array
items:
enum:
- - Address
- - Address desc
- - City
- - City desc
+ - TripId
+ - TripId desc
+ - ShareId
+ - ShareId desc
+ - Name
+ - Name desc
+ - Budget
+ - Budget desc
+ - Description
+ - Description desc
+ - Tags
+ - Tags desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ type: string
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
+ type: string
+ - name: $expand
+ in: query
+ description: Expand related entities
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - '*'
+ - PlanItems
type: string
+ responses:
+ '200':
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.TripCollectionResponse'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ post:
+ tags:
+ - People.Trip
+ summary: Create a trip.
+ description: Create a new trip.
+ operationId: People.CreateTrips
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ requestBody:
+ description: New navigation property
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ required: true
+ responses:
+ '201':
+ description: Created navigation property.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
+ default:
+ $ref: '#/components/responses/error'
+ deprecated: true
+ x-ms-deprecation:
+ removalDate: '2023-03-15T00:00:00.0000000'
+ date: '2021-08-24T00:00:00.0000000'
+ version: 2021-05/people
+ description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips'
+ - '/People/{UserName}/Trips'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}':
+ description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
+ get:
+ tags:
+ - People.Trip
+ summary: Get a trip.
+ description: Retrieve the properties of a trip.
+ operationId: People.GetTrips
+ parameters:
+ - name: UserName
+ in: path
+ description: The unique identifier of Person
+ required: true
+ schema:
+ type: string
+ x-ms-docs-key-type: Person
+ - name: TripId
+ in: path
+ description: The unique identifier of Trip
+ required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
- name: $select
in: query
description: Select properties to be returned
@@ -11502,8 +19789,15 @@ paths:
type: array
items:
enum:
- - Address
- - City
+ - TripId
+ - ShareId
+ - Name
+ - Budget
+ - Description
+ - Tags
+ - StartsAt
+ - EndsAt
+ - PlanItems
type: string
- name: $expand
in: query
@@ -11516,10 +19810,15 @@ paths:
items:
enum:
- '*'
+ - PlanItems
type: string
responses:
'200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.LocationCollectionResponse'
+ description: Retrieved navigation property
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -11528,11 +19827,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
+ x-ms-docs-operation-type: operation
patch:
tags:
- - People.Person.Location
- summary: Update property AddressInfo value.
- operationId: People.DirectReports.UpdateAddressInfo
+ - People.Trip
+ summary: Update a trip.
+ description: Update an instance of a trip.
+ operationId: People.UpdateTrips
parameters:
- name: UserName
in: path
@@ -11541,21 +19842,22 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
+ - name: TripId
in: path
- description: The unique identifier of Person
+ description: The unique identifier of Trip
required: true
schema:
- type: string
- x-ms-docs-key-type: Person
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
requestBody:
- description: New property values
+ description: New navigation property values
content:
application/json:
schema:
- type: array
- items:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
required: true
responses:
'204':
@@ -11568,11 +19870,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- post:
+ x-ms-docs-operation-type: operation
+ delete:
tags:
- - People.Person.Location
- summary: Sets a new value for the collection of Location.
- operationId: People.DirectReports.SetAddressInfo
+ - People.Trip
+ summary: Delete a trip.
+ description: Delete an instance of a trip.
+ operationId: People.DeleteTrips
parameters:
- name: UserName
in: path
@@ -11581,27 +19885,21 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
+ - name: TripId
in: path
- description: The unique identifier of Person
+ description: The unique identifier of Trip
required: true
schema:
- type: string
- x-ms-docs-key-type: Person
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
- name: If-Match
in: header
description: ETag
schema:
type: string
- requestBody:
- description: New property values
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- required: true
responses:
'204':
description: Success
@@ -11613,13 +19911,17 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/$count':
- description: Provides operations to count the resources in the collection.
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}'
+ - '/People/{UserName}/Trips/{TripId}'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
+ description: Provides operations to call the GetInvolvedPeople method.
get:
tags:
- - People.Person.Location
- summary: Get the number of the resource
- operationId: People.DirectReports.AddressInfo.GetCount-f46e
+ - People.Functions
+ summary: Invoke function GetInvolvedPeople
+ operationId: People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Trips.Trip.GetInvolvedPeople
parameters:
- name: UserName
in: path
@@ -11628,84 +19930,95 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
+ - name: TripId
in: path
- description: The unique identifier of Person
+ description: The unique identifier of Trip
required: true
schema:
- type: string
- x-ms-docs-key-type: Person
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
- responses:
- '200':
- $ref: '#/components/responses/ODataCountResponse'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- description: Casts the previous resource to EventLocation.
- get:
- tags:
- - People.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.DirectReports.ListAddressInfo.AsEventLocation
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
- schema:
- type: string
- x-ms-docs-key-type: Person
- responses:
- '200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/AddressInfo/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation/$count':
- description: Provides operations to count the resources in the collection.
- get:
- summary: Get the number of the resource
- operationId: People.DirectReports.ListAddressInfo.GetCount.AsEventLocation-5d49
- parameters:
- - name: UserName
- in: path
- description: The unique identifier of Person
- required: true
+ - $ref: '#/components/parameters/count'
+ - name: $select
+ in: query
+ description: Select properties to be returned
+ style: form
+ explode: false
schema:
- type: string
- x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - FirstName
+ - LastName
+ - MiddleName
+ - Gender
+ - Age
+ - Emails
+ - AddressInfo
+ - HomeAddress
+ - FavoriteFeature
+ - Features
+ - Friends
+ - BestFriend
+ - Trips
+ type: string
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
schema:
- type: string
- x-ms-docs-key-type: Person
- - $ref: '#/components/parameters/search'
- - $ref: '#/components/parameters/filter'
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - UserName
+ - UserName desc
+ - FirstName
+ - FirstName desc
+ - LastName
+ - LastName desc
+ - MiddleName
+ - MiddleName desc
+ - Gender
+ - Gender desc
+ - Age
+ - Age desc
+ - Emails
+ - Emails desc
+ - AddressInfo
+ - AddressInfo desc
+ - HomeAddress
+ - HomeAddress desc
+ - FavoriteFeature
+ - FavoriteFeature desc
+ - Features
+ - Features desc
+ type: string
responses:
'200':
- $ref: '#/components/responses/ODataCountResponse'
+ description: Success
+ content:
+ application/json:
+ schema:
+ title: Collection of Person
+ type: object
+ properties:
+ value:
+ type: array
+ items:
+ anyOf:
+ - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
+ - type: object
+ nullable: true
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -11714,12 +20027,17 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress':
+ x-ms-docs-operation-type: function
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ - '/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems':
+ description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
get:
tags:
- - People.Person.Location
- summary: Get HomeAddress property value
- operationId: People.DirectReports.GetHomeAddress
+ - People.Trips.PlanItem
+ summary: Get PlanItems from People
+ operationId: People.Trips.ListPlanItems
parameters:
- name: UserName
in: path
@@ -11728,13 +20046,42 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
+ - name: TripId
in: path
- description: The unique identifier of Person
+ description: The unique identifier of Trip
required: true
schema:
- type: string
- x-ms-docs-key-type: Person
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - $ref: '#/components/parameters/top'
+ - $ref: '#/components/parameters/skip'
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
+ - $ref: '#/components/parameters/count'
+ - name: $orderby
+ in: query
+ description: Order items by property values
+ style: form
+ explode: false
+ schema:
+ uniqueItems: true
+ type: array
+ items:
+ enum:
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
+ type: string
- name: $select
in: query
description: Select properties to be returned
@@ -11745,8 +20092,11 @@ paths:
type: array
items:
enum:
- - Address
- - City
+ - PlanItemId
+ - ConfirmationCode
+ - StartsAt
+ - EndsAt
+ - Duration
type: string
- name: $expand
in: query
@@ -11762,11 +20112,7 @@ paths:
type: string
responses:
'200':
- description: Result entities
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
+ $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItemCollectionResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -11775,11 +20121,17 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- patch:
+ x-ms-docs-operation-type: operation
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems'
+ - '/People/{UserName}/Trips/{TripId}/PlanItems'
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
+ description: Provides operations to manage the collection of Person entities.
+ delete:
tags:
- - People.Person.Location
- summary: Update property HomeAddress value.
- operationId: People.DirectReports.UpdateHomeAddress
+ - People.Trips.PlanItem
+ summary: Delete ref of navigation property PlanItems for People
+ operationId: People.Trips.DeleteRefPlanItems
parameters:
- name: UserName
in: path
@@ -11788,56 +20140,39 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- - name: UserName1
+ - name: TripId
in: path
- description: The unique identifier of Person
+ description: The unique identifier of Trip
required: true
schema:
- type: string
- x-ms-docs-key-type: Person
- requestBody:
- description: New property values
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location'
- required: true
- responses:
- '204':
- description: Success
- default:
- $ref: '#/components/responses/error'
- deprecated: true
- x-ms-deprecation:
- removalDate: '2023-03-15T00:00:00.0000000'
- date: '2021-08-24T00:00:00.0000000'
- version: 2021-05/people
- description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/{UserName1}/HomeAddress/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation':
- description: Casts the previous resource to EventLocation.
- get:
- tags:
- - People.Person.Location
- summary: Get the items of type Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation in the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location collection
- operationId: People.DirectReports.GetHomeAddress.AsEventLocation
- parameters:
- - name: UserName
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: Trip
+ - name: PlanItemId
in: path
- description: The unique identifier of Person
+ description: The unique identifier of PlanItem
required: true
+ schema:
+ maximum: 2147483647
+ minimum: -2147483648
+ type: integer
+ format: int32
+ x-ms-docs-key-type: PlanItem
+ - name: If-Match
+ in: header
+ description: ETag
schema:
type: string
- x-ms-docs-key-type: Person
- - name: UserName1
- in: path
- description: The unique identifier of Person
- required: true
+ - name: '@id'
+ in: query
+ description: Delete Uri
schema:
type: string
- x-ms-docs-key-type: Person
responses:
- '200':
- $ref: '#/components/responses/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocationCollectionResponse'
+ '204':
+ description: Success
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -11846,13 +20181,14 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$count':
+ x-ms-docs-operation-type: operation
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$count':
description: Provides operations to count the resources in the collection.
get:
tags:
- - People.Person
+ - People.Trips.PlanItem
summary: Get the number of the resource
- operationId: People.DirectReports.GetCount-0ec4
+ operationId: People.Trips.PlanItems.GetCount-fa08
parameters:
- name: UserName
in: path
@@ -11861,6 +20197,16 @@ paths:
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
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
responses:
@@ -11874,13 +20220,13 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/DirectReports/$ref':
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems/$ref':
description: Provides operations to manage the collection of Person entities.
get:
tags:
- - People.Person
- summary: Get ref of DirectReports from People
- operationId: People.ListRefDirectReports
+ - People.Trips.PlanItem
+ summary: Get ref of PlanItems from People
+ operationId: People.Trips.ListRefPlanItems
parameters:
- name: UserName
in: path
@@ -11889,6 +20235,16 @@ paths:
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
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/skip'
- $ref: '#/components/parameters/search'
@@ -11904,28 +20260,16 @@ paths:
type: array
items:
enum:
- - UserName
- - UserName desc
- - FirstName
- - FirstName desc
- - LastName
- - LastName desc
- - MiddleName
- - MiddleName desc
- - Gender
- - Gender desc
- - Age
- - Age desc
- - Emails
- - Emails desc
- - AddressInfo
- - AddressInfo desc
- - HomeAddress
- - HomeAddress desc
- - FavoriteFeature
- - FavoriteFeature desc
- - Features
- - Features desc
+ - PlanItemId
+ - PlanItemId desc
+ - ConfirmationCode
+ - ConfirmationCode desc
+ - StartsAt
+ - StartsAt desc
+ - EndsAt
+ - EndsAt desc
+ - Duration
+ - Duration desc
type: string
responses:
'200':
@@ -11941,9 +20285,9 @@ paths:
x-ms-docs-operation-type: operation
post:
tags:
- - People.Person
- summary: Create new navigation property ref to DirectReports for People
- operationId: People.CreateRefDirectReports
+ - People.Trips.PlanItem
+ summary: Create new navigation property ref to PlanItems for People
+ operationId: People.Trips.CreateRefPlanItems
parameters:
- name: UserName
in: path
@@ -11952,6 +20296,16 @@ paths:
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
requestBody:
$ref: '#/components/requestBodies/refPostBody'
responses:
@@ -11966,14 +20320,13 @@ 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
- '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire':
- description: Provides operations to call the Hire method.
- post:
+ '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/$count':
+ description: Provides operations to count the resources in the collection.
+ get:
tags:
- - People.Actions
- summary: Invoke action Hire
- description: Hires someone for the company.
- operationId: People.Person.Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager.Hire
+ - People.Trip
+ summary: Get the number of the resource
+ operationId: People.Trips.GetCount-1f8c
parameters:
- name: UserName
in: path
@@ -11982,22 +20335,20 @@ paths:
schema:
type: string
x-ms-docs-key-type: Person
- requestBody:
- description: Action parameters
- content:
- application/json:
- schema:
- type: object
- properties:
- hire:
- anyOf:
- - $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
- - type: object
- nullable: true
- required: true
+ - name: ConsistencyLevel
+ in: header
+ description: 'Indicates the requested consistency level. Documentation URL: https://docs.tripservice.com/advanced-queries'
+ schema:
+ type: string
+ examples:
+ example-1:
+ description: $search and $count queries require the client to set the ConsistencyLevel HTTP header to 'eventual'.
+ value: eventual
+ - $ref: '#/components/parameters/search'
+ - $ref: '#/components/parameters/filter'
responses:
- '204':
- description: Success
+ '200':
+ $ref: '#/components/responses/ODataCountResponse'
default:
$ref: '#/components/responses/error'
deprecated: true
@@ -12006,7 +20357,6 @@ paths:
date: '2021-08-24T00:00:00.0000000'
version: 2021-05/people
description: The People API is deprecated and will stop returning data on March 2023. Please use the new newPeople API.
- x-ms-docs-operation-type: action
'/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip':
description: Provides operations to call the ShareTrip method.
post:
@@ -12209,6 +20559,9 @@ 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
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips'
'/People/{UserName}/Trips/{TripId}':
description: Provides operations to manage the Trips property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person entity.
get:
@@ -12368,6 +20721,9 @@ 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
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}'
'/People/{UserName}/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()':
description: Provides operations to call the GetInvolvedPeople method.
get:
@@ -12481,6 +20837,9 @@ 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: function
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetInvolvedPeople()'
'/People/{UserName}/Trips/{TripId}/PlanItems':
description: Provides operations to manage the PlanItems property of the Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip entity.
get:
@@ -12572,6 +20931,9 @@ 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
+ x-ms-docs-grouped-path:
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee/Trips/{TripId}/PlanItems'
+ - '/People/{UserName}/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/Trips/{TripId}/PlanItems'
'/People/{UserName}/Trips/{TripId}/PlanItems/{PlanItemId}/$ref':
description: Provides operations to manage the collection of Person entities.
delete:
@@ -14099,14 +22461,14 @@ tags:
x-ms-docs-toc-type: page
- name: Me.Person.Location
x-ms-docs-toc-type: page
- - name: Me.Functions
- x-ms-docs-toc-type: container
- - name: Me.Actions
- x-ms-docs-toc-type: container
- name: Me.Trip
x-ms-docs-toc-type: page
+ - name: Me.Functions
+ x-ms-docs-toc-type: container
- name: Me.Trips.PlanItem
x-ms-docs-toc-type: page
+ - name: Me.Actions
+ x-ms-docs-toc-type: container
- name: NewComePeople.Person
x-ms-docs-toc-type: page
- name: NewComePeople.Location
@@ -14127,13 +22489,13 @@ tags:
x-ms-docs-toc-type: page
- name: People.Person.Location
x-ms-docs-toc-type: page
- - name: People.Functions
- x-ms-docs-toc-type: container
- - name: People.Actions
- x-ms-docs-toc-type: container
- name: People.Trip
x-ms-docs-toc-type: page
+ - name: People.Functions
+ x-ms-docs-toc-type: container
- name: People.Trips.PlanItem
x-ms-docs-toc-type: page
+ - name: People.Actions
+ x-ms-docs-toc-type: container
- name: ResetDataSource
x-ms-docs-toc-type: container
\ No newline at end of file