4484 lines
114 KiB
JSON
4484 lines
114 KiB
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"title": "OData Service for namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models",
|
|
"description": "This OData service is located at http://localhost",
|
|
"version": "1.0.1"
|
|
},
|
|
"host": "localhost",
|
|
"schemes": [
|
|
"http"
|
|
],
|
|
"paths": {
|
|
"/Airlines": {
|
|
"get": {
|
|
"tags": [
|
|
"Airlines.Airline"
|
|
],
|
|
"summary": "Get entities from Airlines",
|
|
"operationId": "Airlines.Airline.ListAirline",
|
|
"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": [
|
|
"AirlineCode",
|
|
"AirlineCode desc",
|
|
"Name",
|
|
"Name desc"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "$select",
|
|
"description": "Select properties to be returned",
|
|
"type": "array",
|
|
"items": {
|
|
"enum": [
|
|
"AirlineCode",
|
|
"Name"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "$expand",
|
|
"description": "Expand related entities",
|
|
"type": "array",
|
|
"items": {
|
|
"enum": [
|
|
"*"
|
|
],
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Retrieved entities",
|
|
"schema": {
|
|
"title": "Collection of Airline",
|
|
"type": "object",
|
|
"properties": {
|
|
"value": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
}
|
|
},
|
|
"post": {
|
|
"tags": [
|
|
"Airlines.Airline"
|
|
],
|
|
"summary": "Add new entity to Airlines",
|
|
"operationId": "Airlines.Airline.CreateAirline",
|
|
"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.Airline"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"201": {
|
|
"description": "Created entity",
|
|
"schema": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline"
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/Airlines/{AirlineCode}": {
|
|
"get": {
|
|
"tags": [
|
|
"Airlines.Airline"
|
|
],
|
|
"summary": "Get entity from Airlines by key",
|
|
"operationId": "Airlines.Airline.GetAirline",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "AirlineCode",
|
|
"description": "key: AirlineCode of Airline",
|
|
"required": true,
|
|
"type": "string",
|
|
"x-ms-docs-key-type": "Airline"
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "$select",
|
|
"description": "Select properties to be returned",
|
|
"type": "array",
|
|
"items": {
|
|
"enum": [
|
|
"AirlineCode",
|
|
"Name"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "$expand",
|
|
"description": "Expand related entities",
|
|
"type": "array",
|
|
"items": {
|
|
"enum": [
|
|
"*"
|
|
],
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Retrieved entity",
|
|
"schema": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline"
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
},
|
|
"patch": {
|
|
"tags": [
|
|
"Airlines.Airline"
|
|
],
|
|
"summary": "Update entity in Airlines",
|
|
"operationId": "Airlines.Airline.UpdateAirline",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "AirlineCode",
|
|
"description": "key: AirlineCode of Airline",
|
|
"required": true,
|
|
"type": "string",
|
|
"x-ms-docs-key-type": "Airline"
|
|
},
|
|
{
|
|
"in": "body",
|
|
"name": "body",
|
|
"description": "New property values",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"204": {
|
|
"description": "Success"
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
},
|
|
"delete": {
|
|
"tags": [
|
|
"Airlines.Airline"
|
|
],
|
|
"summary": "Delete entity from Airlines",
|
|
"operationId": "Airlines.Airline.DeleteAirline",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "AirlineCode",
|
|
"description": "key: AirlineCode of Airline",
|
|
"required": true,
|
|
"type": "string",
|
|
"x-ms-docs-key-type": "Airline"
|
|
},
|
|
{
|
|
"in": "header",
|
|
"name": "If-Match",
|
|
"description": "ETag",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"responses": {
|
|
"204": {
|
|
"description": "Success"
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/Airports": {
|
|
"get": {
|
|
"tags": [
|
|
"Airports.Airport"
|
|
],
|
|
"summary": "Get entities from Airports",
|
|
"operationId": "Airports.Airport.ListAirport",
|
|
"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": [
|
|
"Name",
|
|
"Name desc",
|
|
"IcaoCode",
|
|
"IcaoCode desc",
|
|
"IataCode",
|
|
"IataCode desc",
|
|
"Location",
|
|
"Location desc"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "$select",
|
|
"description": "Select properties to be returned",
|
|
"type": "array",
|
|
"items": {
|
|
"enum": [
|
|
"Name",
|
|
"IcaoCode",
|
|
"IataCode",
|
|
"Location"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "$expand",
|
|
"description": "Expand related entities",
|
|
"type": "array",
|
|
"items": {
|
|
"enum": [
|
|
"*"
|
|
],
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Retrieved entities",
|
|
"schema": {
|
|
"title": "Collection of Airport",
|
|
"type": "object",
|
|
"properties": {
|
|
"value": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
}
|
|
},
|
|
"post": {
|
|
"tags": [
|
|
"Airports.Airport"
|
|
],
|
|
"summary": "Add new entity to Airports",
|
|
"operationId": "Airports.Airport.CreateAirport",
|
|
"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.Airport"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"201": {
|
|
"description": "Created entity",
|
|
"schema": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport"
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/Airports/{IcaoCode}": {
|
|
"get": {
|
|
"tags": [
|
|
"Airports.Airport"
|
|
],
|
|
"summary": "Get entity from Airports by key",
|
|
"operationId": "Airports.Airport.GetAirport",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "IcaoCode",
|
|
"description": "key: IcaoCode of Airport",
|
|
"required": true,
|
|
"type": "string",
|
|
"x-ms-docs-key-type": "Airport"
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "$select",
|
|
"description": "Select properties to be returned",
|
|
"type": "array",
|
|
"items": {
|
|
"enum": [
|
|
"Name",
|
|
"IcaoCode",
|
|
"IataCode",
|
|
"Location"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "$expand",
|
|
"description": "Expand related entities",
|
|
"type": "array",
|
|
"items": {
|
|
"enum": [
|
|
"*"
|
|
],
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Retrieved entity",
|
|
"schema": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport"
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
},
|
|
"patch": {
|
|
"tags": [
|
|
"Airports.Airport"
|
|
],
|
|
"summary": "Update entity in Airports",
|
|
"operationId": "Airports.Airport.UpdateAirport",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "IcaoCode",
|
|
"description": "key: IcaoCode of Airport",
|
|
"required": true,
|
|
"type": "string",
|
|
"x-ms-docs-key-type": "Airport"
|
|
},
|
|
{
|
|
"in": "body",
|
|
"name": "body",
|
|
"description": "New property values",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"204": {
|
|
"description": "Success"
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
},
|
|
"delete": {
|
|
"tags": [
|
|
"Airports.Airport"
|
|
],
|
|
"summary": "Delete entity from Airports",
|
|
"operationId": "Airports.Airport.DeleteAirport",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "IcaoCode",
|
|
"description": "key: IcaoCode of Airport",
|
|
"required": true,
|
|
"type": "string",
|
|
"x-ms-docs-key-type": "Airport"
|
|
},
|
|
{
|
|
"in": "header",
|
|
"name": "If-Match",
|
|
"description": "ETag",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"responses": {
|
|
"204": {
|
|
"description": "Success"
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/GetNearestAirport(lat={lat},lon={lon})": {
|
|
"get": {
|
|
"tags": [
|
|
"Airports"
|
|
],
|
|
"summary": "Invoke functionImport GetNearestAirport",
|
|
"operationId": "FunctionImport.GetNearestAirport",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "lat",
|
|
"required": true,
|
|
"format": "double"
|
|
},
|
|
{
|
|
"in": "path",
|
|
"name": "lon",
|
|
"required": true,
|
|
"format": "double"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Success",
|
|
"schema": { }
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "functionImport"
|
|
}
|
|
},
|
|
"/GetPersonWithMostFriends()": {
|
|
"get": {
|
|
"tags": [
|
|
"People"
|
|
],
|
|
"summary": "Invoke functionImport GetPersonWithMostFriends",
|
|
"operationId": "FunctionImport.GetPersonWithMostFriends",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Success",
|
|
"schema": { }
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "functionImport"
|
|
}
|
|
},
|
|
"/Me": {
|
|
"get": {
|
|
"tags": [
|
|
"Me.Person"
|
|
],
|
|
"summary": "Get Me",
|
|
"operationId": "Me.Person.GetPerson",
|
|
"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 entity",
|
|
"schema": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
},
|
|
"patch": {
|
|
"tags": [
|
|
"Me.Person"
|
|
],
|
|
"summary": "Update Me",
|
|
"operationId": "Me.Person.UpdatePerson",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"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"
|
|
}
|
|
},
|
|
"/Me/BestFriend": {
|
|
"get": {
|
|
"tags": [
|
|
"Me.Person"
|
|
],
|
|
"summary": "Get BestFriend from Me",
|
|
"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"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/Me/BestFriend/$ref": {
|
|
"get": {
|
|
"tags": [
|
|
"Me.Person"
|
|
],
|
|
"summary": "Get ref of BestFriend from Me",
|
|
"operationId": "Me.GetRefBestFriend",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Retrieved navigation property link",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
},
|
|
"put": {
|
|
"tags": [
|
|
"Me.Person"
|
|
],
|
|
"summary": "Update the ref of navigation property BestFriend in Me",
|
|
"operationId": "Me.UpdateRefBestFriend",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "body",
|
|
"name": "body",
|
|
"description": "New navigation property ref values",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"204": {
|
|
"description": "Success"
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/Me/Friends": {
|
|
"get": {
|
|
"tags": [
|
|
"Me.Person"
|
|
],
|
|
"summary": "Get Friends from Me",
|
|
"operationId": "Me.ListFriends",
|
|
"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",
|
|
"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": {
|
|
"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": "operation"
|
|
}
|
|
},
|
|
"/Me/Friends/$ref": {
|
|
"get": {
|
|
"tags": [
|
|
"Me.Person"
|
|
],
|
|
"summary": "Get ref of Friends from Me",
|
|
"operationId": "Me.ListRefFriends",
|
|
"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": {
|
|
"description": "Retrieved navigation property links",
|
|
"schema": {
|
|
"title": "Collection of links of Person",
|
|
"type": "object",
|
|
"properties": {
|
|
"value": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
},
|
|
"post": {
|
|
"tags": [
|
|
"Me.Person"
|
|
],
|
|
"summary": "Create new navigation property ref to Friends for Me",
|
|
"operationId": "Me.CreateRefFriends",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "body",
|
|
"name": "body",
|
|
"description": "New navigation property ref value",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"201": {
|
|
"description": "Created navigation property link.",
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/Me/GetFavoriteAirline()": {
|
|
"get": {
|
|
"tags": [
|
|
"Me.Functions"
|
|
],
|
|
"summary": "Invoke function GetFavoriteAirline",
|
|
"operationId": "Me.GetFavoriteAirline",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Success",
|
|
"schema": { }
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "function"
|
|
}
|
|
},
|
|
"/Me/GetFriendsTrips(userName={userName})": {
|
|
"get": {
|
|
"tags": [
|
|
"Me.Functions"
|
|
],
|
|
"summary": "Invoke function GetFriendsTrips",
|
|
"operationId": "Me.GetFriendsTrips",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "userName",
|
|
"description": "Usage: userName={userName}",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Success",
|
|
"schema": {
|
|
"type": "array",
|
|
"items": { }
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "function"
|
|
}
|
|
},
|
|
"/Me/ShareTrip": {
|
|
"post": {
|
|
"tags": [
|
|
"Me.Actions"
|
|
],
|
|
"summary": "Invoke action ShareTrip",
|
|
"operationId": "Me.ShareTrip",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "body",
|
|
"name": "body",
|
|
"description": "Action parameters",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"userName": {
|
|
"type": "string"
|
|
},
|
|
"tripId": {
|
|
"format": "int32",
|
|
"maximum": 2147483647,
|
|
"minimum": -2147483648,
|
|
"type": "integer"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"204": {
|
|
"description": "Success"
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "action"
|
|
}
|
|
},
|
|
"/Me/UpdatePersonLastName(lastName={lastName})": {
|
|
"get": {
|
|
"tags": [
|
|
"Me.Functions"
|
|
],
|
|
"summary": "Invoke function UpdatePersonLastName",
|
|
"operationId": "Me.UpdatePersonLastName",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "lastName",
|
|
"description": "Usage: lastName={lastName}",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Success",
|
|
"schema": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "function"
|
|
}
|
|
},
|
|
"/Me/Trips": {
|
|
"get": {
|
|
"tags": [
|
|
"Me.Trip"
|
|
],
|
|
"summary": "Get Trips from Me",
|
|
"operationId": "Me.ListTrips",
|
|
"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": [
|
|
"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": {
|
|
"description": "Retrieved navigation property",
|
|
"schema": {
|
|
"title": "Collection of Trip",
|
|
"type": "object",
|
|
"properties": {
|
|
"value": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/Me/Trips/$ref": {
|
|
"get": {
|
|
"tags": [
|
|
"Me.Trip"
|
|
],
|
|
"summary": "Get ref of Trips from Me",
|
|
"operationId": "Me.ListRefTrips",
|
|
"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": [
|
|
"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": "Retrieved navigation property links",
|
|
"schema": {
|
|
"title": "Collection of links of Trip",
|
|
"type": "object",
|
|
"properties": {
|
|
"value": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
},
|
|
"post": {
|
|
"tags": [
|
|
"Me.Trip"
|
|
],
|
|
"summary": "Create new navigation property ref to Trips for Me",
|
|
"operationId": "Me.CreateRefTrips",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "body",
|
|
"name": "body",
|
|
"description": "New navigation property ref value",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"201": {
|
|
"description": "Created navigation property link.",
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/NewComePeople": {
|
|
"get": {
|
|
"tags": [
|
|
"NewComePeople.Person"
|
|
],
|
|
"summary": "Get entities from NewComePeople",
|
|
"operationId": "NewComePeople.Person.ListPerson",
|
|
"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",
|
|
"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 entities",
|
|
"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"
|
|
}
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"/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": "key: UserName 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": "key: UserName 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": "key: UserName 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"
|
|
}
|
|
},
|
|
"/NewComePeople/{UserName}/BestFriend": {
|
|
"get": {
|
|
"tags": [
|
|
"NewComePeople.Person"
|
|
],
|
|
"summary": "Get BestFriend from NewComePeople",
|
|
"operationId": "NewComePeople.GetBestFriend",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/NewComePeople/{UserName}/BestFriend/$ref": {
|
|
"get": {
|
|
"tags": [
|
|
"NewComePeople.Person"
|
|
],
|
|
"summary": "Get ref of BestFriend from NewComePeople",
|
|
"operationId": "NewComePeople.GetRefBestFriend",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
},
|
|
"put": {
|
|
"tags": [
|
|
"NewComePeople.Person"
|
|
],
|
|
"summary": "Update the ref of navigation property BestFriend in NewComePeople",
|
|
"operationId": "NewComePeople.UpdateRefBestFriend",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName of Person",
|
|
"required": true,
|
|
"type": "string",
|
|
"x-ms-docs-key-type": "Person"
|
|
},
|
|
{
|
|
"in": "body",
|
|
"name": "body",
|
|
"description": "New navigation property ref values",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"204": {
|
|
"description": "Success"
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"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": "key: UserName 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"
|
|
}
|
|
},
|
|
"/NewComePeople/{UserName}/Friends": {
|
|
"get": {
|
|
"tags": [
|
|
"NewComePeople.Person"
|
|
],
|
|
"summary": "Get Friends from NewComePeople",
|
|
"operationId": "NewComePeople.ListFriends",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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": {
|
|
"description": "Retrieved navigation property",
|
|
"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": "operation"
|
|
}
|
|
},
|
|
"/NewComePeople/{UserName}/Friends/$ref": {
|
|
"get": {
|
|
"tags": [
|
|
"NewComePeople.Person"
|
|
],
|
|
"summary": "Get ref of Friends from NewComePeople",
|
|
"operationId": "NewComePeople.ListRefFriends",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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": {
|
|
"description": "Retrieved navigation property links",
|
|
"schema": {
|
|
"title": "Collection of links of Person",
|
|
"type": "object",
|
|
"properties": {
|
|
"value": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"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",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName of Person",
|
|
"required": true,
|
|
"type": "string",
|
|
"x-ms-docs-key-type": "Person"
|
|
},
|
|
{
|
|
"in": "body",
|
|
"name": "body",
|
|
"description": "New navigation property ref value",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"201": {
|
|
"description": "Created navigation property link.",
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/NewComePeople/{UserName}/GetFavoriteAirline()": {
|
|
"get": {
|
|
"tags": [
|
|
"NewComePeople.Functions"
|
|
],
|
|
"summary": "Invoke function GetFavoriteAirline",
|
|
"operationId": "NewComePeople.GetFavoriteAirline",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName of Person",
|
|
"required": true,
|
|
"type": "string",
|
|
"x-ms-docs-key-type": "Person"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Success",
|
|
"schema": { }
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "function"
|
|
}
|
|
},
|
|
"/NewComePeople/{UserName}/GetFriendsTrips(userName={userName})": {
|
|
"get": {
|
|
"tags": [
|
|
"NewComePeople.Functions"
|
|
],
|
|
"summary": "Invoke function GetFriendsTrips",
|
|
"operationId": "NewComePeople.GetFriendsTrips",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName of Person",
|
|
"required": true,
|
|
"type": "string",
|
|
"x-ms-docs-key-type": "Person"
|
|
},
|
|
{
|
|
"in": "path",
|
|
"name": "userName",
|
|
"description": "Usage: userName={userName}",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Success",
|
|
"schema": {
|
|
"type": "array",
|
|
"items": { }
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "function"
|
|
}
|
|
},
|
|
"/NewComePeople/{UserName}/ShareTrip": {
|
|
"post": {
|
|
"tags": [
|
|
"NewComePeople.Actions"
|
|
],
|
|
"summary": "Invoke action ShareTrip",
|
|
"operationId": "NewComePeople.ShareTrip",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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": {
|
|
"userName": {
|
|
"type": "string"
|
|
},
|
|
"tripId": {
|
|
"format": "int32",
|
|
"maximum": 2147483647,
|
|
"minimum": -2147483648,
|
|
"type": "integer"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"204": {
|
|
"description": "Success"
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "action"
|
|
}
|
|
},
|
|
"/NewComePeople/{UserName}/UpdatePersonLastName(lastName={lastName})": {
|
|
"get": {
|
|
"tags": [
|
|
"NewComePeople.Functions"
|
|
],
|
|
"summary": "Invoke function UpdatePersonLastName",
|
|
"operationId": "NewComePeople.UpdatePersonLastName",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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": {
|
|
"description": "Success",
|
|
"schema": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "function"
|
|
}
|
|
},
|
|
"/NewComePeople/{UserName}/Trips": {
|
|
"get": {
|
|
"tags": [
|
|
"NewComePeople.Trip"
|
|
],
|
|
"summary": "Get Trips from NewComePeople",
|
|
"operationId": "NewComePeople.ListTrips",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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": [
|
|
"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": {
|
|
"description": "Retrieved navigation property",
|
|
"schema": {
|
|
"title": "Collection of Trip",
|
|
"type": "object",
|
|
"properties": {
|
|
"value": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/NewComePeople/{UserName}/Trips/$ref": {
|
|
"get": {
|
|
"tags": [
|
|
"NewComePeople.Trip"
|
|
],
|
|
"summary": "Get ref of Trips from NewComePeople",
|
|
"operationId": "NewComePeople.ListRefTrips",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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": [
|
|
"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": "Retrieved navigation property links",
|
|
"schema": {
|
|
"title": "Collection of links of Trip",
|
|
"type": "object",
|
|
"properties": {
|
|
"value": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
},
|
|
"post": {
|
|
"tags": [
|
|
"NewComePeople.Trip"
|
|
],
|
|
"summary": "Create new navigation property ref to Trips for NewComePeople",
|
|
"operationId": "NewComePeople.CreateRefTrips",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName of Person",
|
|
"required": true,
|
|
"type": "string",
|
|
"x-ms-docs-key-type": "Person"
|
|
},
|
|
{
|
|
"in": "body",
|
|
"name": "body",
|
|
"description": "New navigation property ref value",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"201": {
|
|
"description": "Created navigation property link.",
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/People": {
|
|
"get": {
|
|
"tags": [
|
|
"People.Person"
|
|
],
|
|
"summary": "Get entities from People",
|
|
"operationId": "People.Person.ListPerson",
|
|
"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",
|
|
"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 entities",
|
|
"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"
|
|
}
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/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": "key: UserName 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": [
|
|
"People.Person"
|
|
],
|
|
"summary": "Update entity in People",
|
|
"operationId": "People.Person.UpdatePerson",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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": [
|
|
"People.Person"
|
|
],
|
|
"summary": "Delete entity from People",
|
|
"operationId": "People.Person.DeletePerson",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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"
|
|
}
|
|
},
|
|
"/People/{UserName}/BestFriend": {
|
|
"get": {
|
|
"tags": [
|
|
"People.Person"
|
|
],
|
|
"summary": "Get BestFriend from People",
|
|
"operationId": "People.GetBestFriend",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/People/{UserName}/BestFriend/$ref": {
|
|
"get": {
|
|
"tags": [
|
|
"People.Person"
|
|
],
|
|
"summary": "Get ref of BestFriend from People",
|
|
"operationId": "People.GetRefBestFriend",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
},
|
|
"put": {
|
|
"tags": [
|
|
"People.Person"
|
|
],
|
|
"summary": "Update the ref of navigation property BestFriend in People",
|
|
"operationId": "People.UpdateRefBestFriend",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName of Person",
|
|
"required": true,
|
|
"type": "string",
|
|
"x-ms-docs-key-type": "Person"
|
|
},
|
|
{
|
|
"in": "body",
|
|
"name": "body",
|
|
"description": "New navigation property ref values",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"204": {
|
|
"description": "Success"
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"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": "key: UserName 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"
|
|
}
|
|
},
|
|
"/People/{UserName}/Friends": {
|
|
"get": {
|
|
"tags": [
|
|
"People.Person"
|
|
],
|
|
"summary": "Get Friends from People",
|
|
"operationId": "People.ListFriends",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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": {
|
|
"description": "Retrieved navigation property",
|
|
"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": "operation"
|
|
}
|
|
},
|
|
"/People/{UserName}/Friends/$ref": {
|
|
"get": {
|
|
"tags": [
|
|
"People.Person"
|
|
],
|
|
"summary": "Get ref of Friends from People",
|
|
"operationId": "People.ListRefFriends",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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": {
|
|
"description": "Retrieved navigation property links",
|
|
"schema": {
|
|
"title": "Collection of links of Person",
|
|
"type": "object",
|
|
"properties": {
|
|
"value": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
},
|
|
"post": {
|
|
"tags": [
|
|
"People.Person"
|
|
],
|
|
"summary": "Create new navigation property ref to Friends for People",
|
|
"operationId": "People.CreateRefFriends",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName of Person",
|
|
"required": true,
|
|
"type": "string",
|
|
"x-ms-docs-key-type": "Person"
|
|
},
|
|
{
|
|
"in": "body",
|
|
"name": "body",
|
|
"description": "New navigation property ref value",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"201": {
|
|
"description": "Created navigation property link.",
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/People/{UserName}/GetFavoriteAirline()": {
|
|
"get": {
|
|
"tags": [
|
|
"People.Functions"
|
|
],
|
|
"summary": "Invoke function GetFavoriteAirline",
|
|
"operationId": "People.GetFavoriteAirline",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName of Person",
|
|
"required": true,
|
|
"type": "string",
|
|
"x-ms-docs-key-type": "Person"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Success",
|
|
"schema": { }
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "function"
|
|
}
|
|
},
|
|
"/People/{UserName}/GetFriendsTrips(userName={userName})": {
|
|
"get": {
|
|
"tags": [
|
|
"People.Functions"
|
|
],
|
|
"summary": "Invoke function GetFriendsTrips",
|
|
"operationId": "People.GetFriendsTrips",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName of Person",
|
|
"required": true,
|
|
"type": "string",
|
|
"x-ms-docs-key-type": "Person"
|
|
},
|
|
{
|
|
"in": "path",
|
|
"name": "userName",
|
|
"description": "Usage: userName={userName}",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Success",
|
|
"schema": {
|
|
"type": "array",
|
|
"items": { }
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "function"
|
|
}
|
|
},
|
|
"/People/{UserName}/ShareTrip": {
|
|
"post": {
|
|
"tags": [
|
|
"People.Actions"
|
|
],
|
|
"summary": "Invoke action ShareTrip",
|
|
"operationId": "People.ShareTrip",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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": {
|
|
"userName": {
|
|
"type": "string"
|
|
},
|
|
"tripId": {
|
|
"format": "int32",
|
|
"maximum": 2147483647,
|
|
"minimum": -2147483648,
|
|
"type": "integer"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"204": {
|
|
"description": "Success"
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "action"
|
|
}
|
|
},
|
|
"/People/{UserName}/UpdatePersonLastName(lastName={lastName})": {
|
|
"get": {
|
|
"tags": [
|
|
"People.Functions"
|
|
],
|
|
"summary": "Invoke function UpdatePersonLastName",
|
|
"operationId": "People.UpdatePersonLastName",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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": {
|
|
"description": "Success",
|
|
"schema": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "function"
|
|
}
|
|
},
|
|
"/People/{UserName}/Trips": {
|
|
"get": {
|
|
"tags": [
|
|
"People.Trip"
|
|
],
|
|
"summary": "Get Trips from People",
|
|
"operationId": "People.ListTrips",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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": [
|
|
"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": {
|
|
"description": "Retrieved navigation property",
|
|
"schema": {
|
|
"title": "Collection of Trip",
|
|
"type": "object",
|
|
"properties": {
|
|
"value": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/People/{UserName}/Trips/$ref": {
|
|
"get": {
|
|
"tags": [
|
|
"People.Trip"
|
|
],
|
|
"summary": "Get ref of Trips from People",
|
|
"operationId": "People.ListRefTrips",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName 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": [
|
|
"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": "Retrieved navigation property links",
|
|
"schema": {
|
|
"title": "Collection of links of Trip",
|
|
"type": "object",
|
|
"properties": {
|
|
"value": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
},
|
|
"post": {
|
|
"tags": [
|
|
"People.Trip"
|
|
],
|
|
"summary": "Create new navigation property ref to Trips for People",
|
|
"operationId": "People.CreateRefTrips",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "UserName",
|
|
"description": "key: UserName of Person",
|
|
"required": true,
|
|
"type": "string",
|
|
"x-ms-docs-key-type": "Person"
|
|
},
|
|
{
|
|
"in": "body",
|
|
"name": "body",
|
|
"description": "New navigation property ref value",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"201": {
|
|
"description": "Created navigation property link.",
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "operation"
|
|
}
|
|
},
|
|
"/ResetDataSource": {
|
|
"post": {
|
|
"tags": [
|
|
"ResetDataSource"
|
|
],
|
|
"summary": "Invoke actionImport ResetDataSource",
|
|
"operationId": "ActionImport.ResetDataSource",
|
|
"responses": {
|
|
"204": {
|
|
"description": "Success"
|
|
},
|
|
"default": {
|
|
"$ref": "#/responses/error"
|
|
}
|
|
},
|
|
"x-ms-docs-operation-type": "actionImport"
|
|
}
|
|
}
|
|
},
|
|
"definitions": {
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person": {
|
|
"title": "Person",
|
|
"type": "object",
|
|
"properties": {
|
|
"UserName": {
|
|
"type": "string"
|
|
},
|
|
"FirstName": {
|
|
"type": "string"
|
|
},
|
|
"LastName": {
|
|
"type": "string"
|
|
},
|
|
"MiddleName": {
|
|
"type": "string"
|
|
},
|
|
"Gender": { },
|
|
"Age": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"Emails": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"AddressInfo": {
|
|
"type": "array",
|
|
"items": { }
|
|
},
|
|
"HomeAddress": { },
|
|
"FavoriteFeature": { },
|
|
"Features": {
|
|
"type": "array",
|
|
"items": { }
|
|
},
|
|
"Friends": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
}
|
|
},
|
|
"BestFriend": { },
|
|
"Trips": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline": {
|
|
"title": "Airline",
|
|
"type": "object",
|
|
"properties": {
|
|
"AirlineCode": {
|
|
"type": "string"
|
|
},
|
|
"Name": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport": {
|
|
"title": "Airport",
|
|
"type": "object",
|
|
"properties": {
|
|
"Name": {
|
|
"type": "string"
|
|
},
|
|
"IcaoCode": {
|
|
"type": "string"
|
|
},
|
|
"IataCode": {
|
|
"type": "string"
|
|
},
|
|
"Location": { }
|
|
}
|
|
},
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location": {
|
|
"title": "Location",
|
|
"type": "object",
|
|
"properties": {
|
|
"Address": {
|
|
"type": "string"
|
|
},
|
|
"City": { }
|
|
}
|
|
},
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.City": {
|
|
"title": "City",
|
|
"type": "object",
|
|
"properties": {
|
|
"Name": {
|
|
"type": "string"
|
|
},
|
|
"CountryRegion": {
|
|
"type": "string"
|
|
},
|
|
"Region": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
|
|
},
|
|
{
|
|
"title": "AirportLocation",
|
|
"type": "object",
|
|
"properties": {
|
|
"Loc": {
|
|
"$ref": "#/definitions/Edm.GeographyPoint"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
|
|
},
|
|
{
|
|
"title": "EventLocation",
|
|
"type": "object",
|
|
"properties": {
|
|
"BuildingInfo": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip": {
|
|
"title": "Trip",
|
|
"type": "object",
|
|
"properties": {
|
|
"TripId": {
|
|
"format": "int32",
|
|
"maximum": 2147483647,
|
|
"minimum": -2147483648,
|
|
"type": "integer"
|
|
},
|
|
"ShareId": {
|
|
"format": "uuid",
|
|
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
"type": "string"
|
|
},
|
|
"Name": {
|
|
"type": "string"
|
|
},
|
|
"Budget": {
|
|
"format": "float"
|
|
},
|
|
"Description": {
|
|
"type": "string"
|
|
},
|
|
"Tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"StartsAt": {
|
|
"format": "date-time",
|
|
"pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
|
|
"type": "string"
|
|
},
|
|
"EndsAt": {
|
|
"format": "date-time",
|
|
"pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
|
|
"type": "string"
|
|
},
|
|
"PlanItems": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem": {
|
|
"title": "PlanItem",
|
|
"type": "object",
|
|
"properties": {
|
|
"PlanItemId": {
|
|
"format": "int32",
|
|
"maximum": 2147483647,
|
|
"minimum": -2147483648,
|
|
"type": "integer"
|
|
},
|
|
"ConfirmationCode": {
|
|
"type": "string"
|
|
},
|
|
"StartsAt": {
|
|
"format": "date-time",
|
|
"pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
|
|
"type": "string"
|
|
},
|
|
"EndsAt": {
|
|
"format": "date-time",
|
|
"pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
|
|
"type": "string"
|
|
},
|
|
"Duration": {
|
|
"format": "duration",
|
|
"pattern": "^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Event": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem"
|
|
},
|
|
{
|
|
"title": "Event",
|
|
"type": "object",
|
|
"properties": {
|
|
"OccursAt": { },
|
|
"Description": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem"
|
|
},
|
|
{
|
|
"title": "PublicTransportation",
|
|
"type": "object",
|
|
"properties": {
|
|
"SeatNumber": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation"
|
|
},
|
|
{
|
|
"title": "Flight",
|
|
"type": "object",
|
|
"properties": {
|
|
"FlightNumber": {
|
|
"type": "string"
|
|
},
|
|
"Airline": { },
|
|
"From": { },
|
|
"To": { }
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
},
|
|
{
|
|
"title": "Employee",
|
|
"type": "object",
|
|
"properties": {
|
|
"Cost": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"Peers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
},
|
|
{
|
|
"title": "Manager",
|
|
"type": "object",
|
|
"properties": {
|
|
"Budget": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"BossOffice": { },
|
|
"DirectReports": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender": {
|
|
"title": "PersonGender",
|
|
"enum": [
|
|
"Male",
|
|
"Female",
|
|
"Unknow"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature": {
|
|
"title": "Feature",
|
|
"enum": [
|
|
"Feature1",
|
|
"Feature2",
|
|
"Feature3",
|
|
"Feature4"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Edm.Geography": {
|
|
"$ref": "#/definitions/Edm.Geometry"
|
|
},
|
|
"Edm.GeographyPoint": {
|
|
"$ref": "#/definitions/Edm.GeometryPoint"
|
|
},
|
|
"Edm.GeographyLineString": {
|
|
"$ref": "#/definitions/Edm.GeometryLineString"
|
|
},
|
|
"Edm.GeographyPolygon": {
|
|
"$ref": "#/definitions/Edm.GeometryPolygon"
|
|
},
|
|
"Edm.GeographyMultiPoint": {
|
|
"$ref": "#/definitions/Edm.GeometryMultiPoint"
|
|
},
|
|
"Edm.GeographyMultiLineString": {
|
|
"$ref": "#/definitions/Edm.GeometryMultiLineString"
|
|
},
|
|
"Edm.GeographyMultiPolygon": {
|
|
"$ref": "#/definitions/Edm.GeometryMultiPolygon"
|
|
},
|
|
"Edm.GeographyCollection": {
|
|
"$ref": "#/definitions/Edm.GeometryCollection"
|
|
},
|
|
"Edm.Geometry": {
|
|
"type": "object"
|
|
},
|
|
"Edm.GeometryPoint": {
|
|
"required": [
|
|
"type",
|
|
"coordinates"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"default": "Point",
|
|
"enum": [
|
|
"Point"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"coordinates": {
|
|
"$ref": "#/definitions/GeoJSON.position"
|
|
}
|
|
}
|
|
},
|
|
"Edm.GeometryLineString": {
|
|
"required": [
|
|
"type",
|
|
"coordinates"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
"LineString"
|
|
]
|
|
},
|
|
"coordinates": {
|
|
"minItems": 2,
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GeoJSON.position"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"Edm.GeometryPolygon": {
|
|
"required": [
|
|
"type",
|
|
"coordinates"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
"Polygon"
|
|
]
|
|
},
|
|
"coordinates": {
|
|
"minItems": 4,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GeoJSON.position"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"Edm.GeometryMultiPoint": {
|
|
"required": [
|
|
"type",
|
|
"coordinates"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
"MultiPoint"
|
|
]
|
|
},
|
|
"coordinates": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GeoJSON.position"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"Edm.GeometryMultiLineString": {
|
|
"required": [
|
|
"type",
|
|
"coordinates"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
"MultiLineString"
|
|
]
|
|
},
|
|
"coordinates": {
|
|
"minItems": 2,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GeoJSON.position"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"Edm.GeometryMultiPolygon": {
|
|
"required": [
|
|
"type",
|
|
"coordinates"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
"MultiPolygon"
|
|
]
|
|
},
|
|
"coordinates": {
|
|
"minItems": 4,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GeoJSON.position"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"Edm.GeometryCollection": {
|
|
"required": [
|
|
"type",
|
|
"coordinates"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
"GeometryCollection"
|
|
]
|
|
},
|
|
"coordinates": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Edm.Geometry"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"GeoJSON.position": {
|
|
"minItems": 2,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"odata.error": {
|
|
"required": [
|
|
"error"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"error": {
|
|
"$ref": "#/definitions/odata.error.main"
|
|
}
|
|
}
|
|
},
|
|
"odata.error.main": {
|
|
"required": [
|
|
"code",
|
|
"message"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/odata.error.detail"
|
|
}
|
|
},
|
|
"innererror": {
|
|
"description": "The structure of this object is service-specific",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"odata.error.detail": {
|
|
"required": [
|
|
"code",
|
|
"message"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": {
|
|
"top": {
|
|
"in": "query",
|
|
"name": "$top",
|
|
"description": "Show only the first n items",
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"skip": {
|
|
"in": "query",
|
|
"name": "$skip",
|
|
"description": "Skip the first n items",
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"count": {
|
|
"in": "query",
|
|
"name": "$count",
|
|
"description": "Include count of items",
|
|
"type": "boolean"
|
|
},
|
|
"filter": {
|
|
"in": "query",
|
|
"name": "$filter",
|
|
"description": "Filter items by property values",
|
|
"type": "string"
|
|
},
|
|
"search": {
|
|
"in": "query",
|
|
"name": "$search",
|
|
"description": "Search items by search phrases",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"responses": {
|
|
"error": {
|
|
"description": "error",
|
|
"schema": {
|
|
"$ref": "#/definitions/odata.error"
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
{
|
|
"name": "Airlines.Airline",
|
|
"x-ms-docs-toc-type": "page"
|
|
},
|
|
{
|
|
"name": "Airports.Airport",
|
|
"x-ms-docs-toc-type": "page"
|
|
},
|
|
{
|
|
"name": "Airports",
|
|
"x-ms-docs-toc-type": "container"
|
|
},
|
|
{
|
|
"name": "People",
|
|
"x-ms-docs-toc-type": "container"
|
|
},
|
|
{
|
|
"name": "Me.Person",
|
|
"x-ms-docs-toc-type": "page"
|
|
},
|
|
{
|
|
"name": "Me.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": "NewComePeople.Person",
|
|
"x-ms-docs-toc-type": "page"
|
|
},
|
|
{
|
|
"name": "NewComePeople.Functions",
|
|
"x-ms-docs-toc-type": "container"
|
|
},
|
|
{
|
|
"name": "NewComePeople.Actions",
|
|
"x-ms-docs-toc-type": "container"
|
|
},
|
|
{
|
|
"name": "NewComePeople.Trip",
|
|
"x-ms-docs-toc-type": "page"
|
|
},
|
|
{
|
|
"name": "People.Person",
|
|
"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": "ResetDataSource",
|
|
"x-ms-docs-toc-type": "container"
|
|
}
|
|
]
|
|
} |