2017-10-19 23:39:57 +02:00
|
|
|
|
{
|
2017-12-20 20:44:43 +01:00
|
|
|
|
"openapi": "3.0.1",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"info": {
|
|
|
|
|
"title": "OData Service for namespace Microsoft.OData.Service.Sample.TrippinInMemory.Models",
|
2017-11-22 04:44:38 +01:00
|
|
|
|
"description": "This OData service is located at http://services.odata.org/TrippinRESTierService",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"version": "1.0.1"
|
|
|
|
|
},
|
|
|
|
|
"servers": [
|
|
|
|
|
{
|
2017-11-22 04:44:38 +01:00
|
|
|
|
"url": "http://services.odata.org/TrippinRESTierService"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"paths": {
|
|
|
|
|
"/People": {
|
|
|
|
|
"get": {
|
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"People"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Get entities from People",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"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",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"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"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$select",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Select properties to be returned",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"UserName",
|
|
|
|
|
"FirstName",
|
|
|
|
|
"LastName",
|
|
|
|
|
"MiddleName",
|
|
|
|
|
"Gender",
|
|
|
|
|
"Age",
|
|
|
|
|
"Emails",
|
|
|
|
|
"AddressInfo",
|
|
|
|
|
"HomeAddress",
|
|
|
|
|
"FavoriteFeature",
|
|
|
|
|
"Features"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$expand",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Expand related entities",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"*",
|
|
|
|
|
"Friends",
|
|
|
|
|
"BestFriend",
|
|
|
|
|
"Trips"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Retrieved entities",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"title": "Collection of People",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"value": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"People"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Add new entity to People",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"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"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/People('{UserName}')": {
|
|
|
|
|
"get": {
|
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"People"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Get entity from People by key",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "UserName",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"description": "key: UserName",
|
|
|
|
|
"required": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$select",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Select properties to be returned",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"UserName",
|
|
|
|
|
"FirstName",
|
|
|
|
|
"LastName",
|
|
|
|
|
"MiddleName",
|
|
|
|
|
"Gender",
|
|
|
|
|
"Age",
|
|
|
|
|
"Emails",
|
|
|
|
|
"AddressInfo",
|
|
|
|
|
"HomeAddress",
|
|
|
|
|
"FavoriteFeature",
|
|
|
|
|
"Features"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$expand",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Expand related entities",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"*",
|
|
|
|
|
"Friends",
|
|
|
|
|
"BestFriend",
|
|
|
|
|
"Trips"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Retrieved entity",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"patch": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"People"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Update entity in People",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "UserName",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"description": "key: UserName",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"requestBody": {
|
|
|
|
|
"description": "New property values",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"responses": {
|
|
|
|
|
"204": {
|
|
|
|
|
"description": "Success"
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"delete": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"People"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Delete entity from People",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "UserName",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"description": "key: UserName",
|
|
|
|
|
"required": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-15 01:54:03 +01:00
|
|
|
|
{
|
|
|
|
|
"name": "If-Match",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"description": "ETag",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"responses": {
|
|
|
|
|
"204": {
|
|
|
|
|
"description": "Success"
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-30 00:44:42 +01:00
|
|
|
|
"/People('{UserName}')/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"get": {
|
|
|
|
|
"tags": [
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"People"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Invoke function GetFavoriteAirline",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"name": "UserName",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"in": "path",
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"description": "key: UserName",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Success",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-30 00:44:42 +01:00
|
|
|
|
"/People('{UserName}')/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName={userName})": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"get": {
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"tags": [
|
|
|
|
|
"People"
|
|
|
|
|
],
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"summary": "Invoke function GetFriendsTrips",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"name": "UserName",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"in": "path",
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"description": "key: UserName",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"required": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Success",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-30 00:44:42 +01:00
|
|
|
|
"/People('{UserName}')/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName={lastName})": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"get": {
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"tags": [
|
|
|
|
|
"People"
|
|
|
|
|
],
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"summary": "Invoke function UpdatePersonLastName",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"name": "UserName",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"in": "path",
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"description": "key: UserName",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"required": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Success",
|
|
|
|
|
"content": {
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": false
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"/People('{UserName}')/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"post": {
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"tags": [
|
|
|
|
|
"People"
|
|
|
|
|
],
|
2017-11-29 19:22:43 +01:00
|
|
|
|
"summary": "Invoke action ShareTrip",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"name": "UserName",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"in": "path",
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"description": "key: UserName",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"required": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
],
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"requestBody": {
|
|
|
|
|
"description": "Action parameters",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"userName": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"tripId": {
|
|
|
|
|
"maximum": 2147483647,
|
|
|
|
|
"minimum": -2147483648,
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"format": "int32"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"responses": {
|
|
|
|
|
"204": {
|
|
|
|
|
"description": "Success"
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/Airlines": {
|
|
|
|
|
"get": {
|
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"Airlines"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Get entities from Airlines",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"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",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"AirlineCode",
|
|
|
|
|
"AirlineCode desc",
|
|
|
|
|
"Name",
|
|
|
|
|
"Name desc"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$select",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Select properties to be returned",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"AirlineCode",
|
|
|
|
|
"Name"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$expand",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Expand related entities",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"*"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Retrieved entities",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"title": "Collection of Airlines",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"value": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"Airlines"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Add new entity to Airlines",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"requestBody": {
|
|
|
|
|
"description": "New entity",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"responses": {
|
|
|
|
|
"201": {
|
|
|
|
|
"description": "Created entity",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/Airlines('{AirlineCode}')": {
|
|
|
|
|
"get": {
|
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"Airlines"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Get entity from Airlines by key",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "AirlineCode",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"description": "key: AirlineCode",
|
|
|
|
|
"required": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$select",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Select properties to be returned",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"AirlineCode",
|
|
|
|
|
"Name"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$expand",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Expand related entities",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"*"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Retrieved entity",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"patch": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"Airlines"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Update entity in Airlines",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "AirlineCode",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"description": "key: AirlineCode",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"requestBody": {
|
|
|
|
|
"description": "New property values",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"responses": {
|
|
|
|
|
"204": {
|
|
|
|
|
"description": "Success"
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"delete": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"Airlines"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Delete entity from Airlines",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "AirlineCode",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"description": "key: AirlineCode",
|
|
|
|
|
"required": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-15 01:54:03 +01:00
|
|
|
|
{
|
|
|
|
|
"name": "If-Match",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"description": "ETag",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"responses": {
|
|
|
|
|
"204": {
|
|
|
|
|
"description": "Success"
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/Airports": {
|
|
|
|
|
"get": {
|
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"Airports"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Get entities from Airports",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"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",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"Name",
|
|
|
|
|
"Name desc",
|
|
|
|
|
"IcaoCode",
|
|
|
|
|
"IcaoCode desc",
|
|
|
|
|
"IataCode",
|
|
|
|
|
"IataCode desc",
|
|
|
|
|
"Location",
|
|
|
|
|
"Location desc"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$select",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Select properties to be returned",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"Name",
|
|
|
|
|
"IcaoCode",
|
|
|
|
|
"IataCode",
|
|
|
|
|
"Location"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$expand",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Expand related entities",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"*"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Retrieved entities",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"title": "Collection of Airports",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"value": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"Airports"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Add new entity to Airports",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"requestBody": {
|
|
|
|
|
"description": "New entity",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"responses": {
|
|
|
|
|
"201": {
|
|
|
|
|
"description": "Created entity",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/Airports('{IcaoCode}')": {
|
|
|
|
|
"get": {
|
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"Airports"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Get entity from Airports by key",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "IcaoCode",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"description": "key: IcaoCode",
|
|
|
|
|
"required": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$select",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Select properties to be returned",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"Name",
|
|
|
|
|
"IcaoCode",
|
|
|
|
|
"IataCode",
|
|
|
|
|
"Location"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$expand",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Expand related entities",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"*"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Retrieved entity",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"patch": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"Airports"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Update entity in Airports",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "IcaoCode",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"description": "key: IcaoCode",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"requestBody": {
|
|
|
|
|
"description": "New property values",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"responses": {
|
|
|
|
|
"204": {
|
|
|
|
|
"description": "Success"
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"delete": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"Airports"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Delete entity from Airports",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "IcaoCode",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"description": "key: IcaoCode",
|
|
|
|
|
"required": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-15 01:54:03 +01:00
|
|
|
|
{
|
|
|
|
|
"name": "If-Match",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"description": "ETag",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"responses": {
|
|
|
|
|
"204": {
|
|
|
|
|
"description": "Success"
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/NewComePeople": {
|
|
|
|
|
"get": {
|
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"NewComePeople"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Get entities from NewComePeople",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"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",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"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"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$select",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Select properties to be returned",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"UserName",
|
|
|
|
|
"FirstName",
|
|
|
|
|
"LastName",
|
|
|
|
|
"MiddleName",
|
|
|
|
|
"Gender",
|
|
|
|
|
"Age",
|
|
|
|
|
"Emails",
|
|
|
|
|
"AddressInfo",
|
|
|
|
|
"HomeAddress",
|
|
|
|
|
"FavoriteFeature",
|
|
|
|
|
"Features"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$expand",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Expand related entities",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"*",
|
|
|
|
|
"Friends",
|
|
|
|
|
"BestFriend",
|
|
|
|
|
"Trips"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Retrieved entities",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"title": "Collection of NewComePeople",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"value": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"NewComePeople"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Add new entity to NewComePeople",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"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"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/NewComePeople('{UserName}')": {
|
|
|
|
|
"get": {
|
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"NewComePeople"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Get entity from NewComePeople by key",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "UserName",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"description": "key: UserName",
|
|
|
|
|
"required": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$select",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Select properties to be returned",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"UserName",
|
|
|
|
|
"FirstName",
|
|
|
|
|
"LastName",
|
|
|
|
|
"MiddleName",
|
|
|
|
|
"Gender",
|
|
|
|
|
"Age",
|
|
|
|
|
"Emails",
|
|
|
|
|
"AddressInfo",
|
|
|
|
|
"HomeAddress",
|
|
|
|
|
"FavoriteFeature",
|
|
|
|
|
"Features"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$expand",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Expand related entities",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"*",
|
|
|
|
|
"Friends",
|
|
|
|
|
"BestFriend",
|
|
|
|
|
"Trips"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Retrieved entity",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"patch": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"NewComePeople"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Update entity in NewComePeople",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "UserName",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"description": "key: UserName",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"requestBody": {
|
|
|
|
|
"description": "New property values",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"responses": {
|
|
|
|
|
"204": {
|
|
|
|
|
"description": "Success"
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"delete": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"NewComePeople"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Delete entity from NewComePeople",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "UserName",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"description": "key: UserName",
|
|
|
|
|
"required": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-15 01:54:03 +01:00
|
|
|
|
{
|
|
|
|
|
"name": "If-Match",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"description": "ETag",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"responses": {
|
|
|
|
|
"204": {
|
|
|
|
|
"description": "Success"
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-30 00:44:42 +01:00
|
|
|
|
"/NewComePeople('{UserName}')/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"get": {
|
|
|
|
|
"tags": [
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"NewComePeople"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Invoke function GetFavoriteAirline",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"name": "UserName",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"in": "path",
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"description": "key: UserName",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Success",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-30 00:44:42 +01:00
|
|
|
|
"/NewComePeople('{UserName}')/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName={userName})": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"get": {
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"tags": [
|
|
|
|
|
"NewComePeople"
|
|
|
|
|
],
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"summary": "Invoke function GetFriendsTrips",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"name": "UserName",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"in": "path",
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"description": "key: UserName",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"required": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Success",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-30 00:44:42 +01:00
|
|
|
|
"/NewComePeople('{UserName}')/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName={lastName})": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"get": {
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"tags": [
|
|
|
|
|
"NewComePeople"
|
|
|
|
|
],
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"summary": "Invoke function UpdatePersonLastName",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"name": "UserName",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"in": "path",
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"description": "key: UserName",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"required": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Success",
|
|
|
|
|
"content": {
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": false
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"/NewComePeople('{UserName}')/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"post": {
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"tags": [
|
|
|
|
|
"NewComePeople"
|
|
|
|
|
],
|
2017-11-29 19:22:43 +01:00
|
|
|
|
"summary": "Invoke action ShareTrip",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"name": "UserName",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"in": "path",
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"description": "key: UserName",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"required": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
],
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"requestBody": {
|
|
|
|
|
"description": "Action parameters",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"userName": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"tripId": {
|
|
|
|
|
"maximum": 2147483647,
|
|
|
|
|
"minimum": -2147483648,
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"format": "int32"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"responses": {
|
|
|
|
|
"204": {
|
|
|
|
|
"description": "Success"
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/Me": {
|
|
|
|
|
"get": {
|
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"Me"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Get Me",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "$select",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Select properties to be returned",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"UserName",
|
|
|
|
|
"FirstName",
|
|
|
|
|
"LastName",
|
|
|
|
|
"MiddleName",
|
|
|
|
|
"Gender",
|
|
|
|
|
"Age",
|
|
|
|
|
"Emails",
|
|
|
|
|
"AddressInfo",
|
|
|
|
|
"HomeAddress",
|
|
|
|
|
"FavoriteFeature",
|
|
|
|
|
"Features"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "$expand",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Expand related entities",
|
|
|
|
|
"schema": {
|
|
|
|
|
"uniqueItems": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "array",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"*",
|
|
|
|
|
"Friends",
|
|
|
|
|
"BestFriend",
|
|
|
|
|
"Trips"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Retrieved entity",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"patch": {
|
|
|
|
|
"tags": [
|
2017-11-20 19:46:18 +01:00
|
|
|
|
"Me"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Update Me",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"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"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-30 00:44:42 +01:00
|
|
|
|
"/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFavoriteAirline()": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"get": {
|
|
|
|
|
"tags": [
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"Me"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"summary": "Invoke function GetFavoriteAirline",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Success",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-30 00:44:42 +01:00
|
|
|
|
"/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.GetFriendsTrips(userName={userName})": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"get": {
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"tags": [
|
|
|
|
|
"Me"
|
|
|
|
|
],
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"summary": "Invoke function GetFriendsTrips",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "userName",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Success",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-30 00:44:42 +01:00
|
|
|
|
"/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.UpdatePersonLastName(lastName={lastName})": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"get": {
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"tags": [
|
|
|
|
|
"Me"
|
|
|
|
|
],
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"summary": "Invoke function UpdatePersonLastName",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "lastName",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true,
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Success",
|
|
|
|
|
"content": {
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": false
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"/Me/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip": {
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"post": {
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"tags": [
|
|
|
|
|
"Me"
|
|
|
|
|
],
|
2017-11-29 19:22:43 +01:00
|
|
|
|
"summary": "Invoke action ShareTrip",
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"requestBody": {
|
|
|
|
|
"description": "Action parameters",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"userName": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"tripId": {
|
|
|
|
|
"maximum": 2147483647,
|
|
|
|
|
"minimum": -2147483648,
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"format": "int32"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-11-15 01:54:03 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"required": true
|
|
|
|
|
},
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"responses": {
|
|
|
|
|
"204": {
|
|
|
|
|
"description": "Success"
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/GetPersonWithMostFriends()": {
|
|
|
|
|
"get": {
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"tags": [
|
|
|
|
|
"People"
|
|
|
|
|
],
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"summary": "Invoke function GetPersonWithMostFriends",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Success",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/GetNearestAirport(lat={lat},lon={lon})": {
|
|
|
|
|
"get": {
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"tags": [
|
|
|
|
|
"Airports"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
],
|
2017-11-29 04:21:52 +01:00
|
|
|
|
"summary": "Invoke function GetNearestAirport",
|
2017-11-30 00:44:42 +01:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "lat",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"oneOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"enum": [
|
|
|
|
|
"-INF",
|
|
|
|
|
"INF",
|
|
|
|
|
"NaN"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"format": "double"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "lon",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"oneOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"enum": [
|
|
|
|
|
"-INF",
|
|
|
|
|
"INF",
|
|
|
|
|
"NaN"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"format": "double"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Success",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/ResetDataSource": {
|
|
|
|
|
"post": {
|
2017-11-29 19:22:43 +01:00
|
|
|
|
"summary": "Invoke action ResetDataSource",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"responses": {
|
|
|
|
|
"204": {
|
|
|
|
|
"description": "Success"
|
|
|
|
|
},
|
|
|
|
|
"default": {
|
|
|
|
|
"$ref": "#/components/responses/error"
|
|
|
|
|
}
|
2017-11-20 19:46:18 +01:00
|
|
|
|
}
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"components": {
|
|
|
|
|
"schemas": {
|
|
|
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person": {
|
|
|
|
|
"title": "Person",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"UserName": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"FirstName": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"LastName": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
},
|
|
|
|
|
"MiddleName": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
},
|
|
|
|
|
"Gender": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender"
|
|
|
|
|
}
|
|
|
|
|
]
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"Age": {
|
2017-12-08 20:50:35 +01:00
|
|
|
|
"anyOf": [
|
2017-10-19 23:39:57 +02:00
|
|
|
|
{
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"format": "int64",
|
|
|
|
|
"nullable": true
|
|
|
|
|
},
|
|
|
|
|
"Emails": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"AddressInfo": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"HomeAddress": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"FavoriteFeature": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature"
|
|
|
|
|
}
|
|
|
|
|
]
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"Features": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature"
|
|
|
|
|
}
|
|
|
|
|
]
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Friends": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"BestFriend": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"Trips": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline": {
|
|
|
|
|
"title": "Airline",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"AirlineCode": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"Name": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport": {
|
|
|
|
|
"title": "Airport",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"Name": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
},
|
|
|
|
|
"IcaoCode": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"IataCode": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
},
|
|
|
|
|
"Location": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location": {
|
|
|
|
|
"title": "Location",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"Address": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
},
|
|
|
|
|
"City": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.City"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.City": {
|
|
|
|
|
"title": "City",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"Name": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
},
|
|
|
|
|
"CountryRegion": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
},
|
|
|
|
|
"Region": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation": {
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "AirportLocation",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"Loc": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"$ref": "#/components/schemas/Edm.GeographyPoint"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation": {
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "EventLocation",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"BuildingInfo": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip": {
|
|
|
|
|
"title": "Trip",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"TripId": {
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"maximum": 2147483647,
|
|
|
|
|
"minimum": -2147483648,
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"format": "int32"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"ShareId": {
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
|
|
|
"type": "string",
|
|
|
|
|
"format": "uuid"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"Name": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
},
|
|
|
|
|
"Budget": {
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"oneOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"enum": [
|
|
|
|
|
"-INF",
|
|
|
|
|
"INF",
|
|
|
|
|
"NaN"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"format": "float"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"Description": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
},
|
|
|
|
|
"Tags": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"StartsAt": {
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
|
|
|
|
|
"type": "string",
|
|
|
|
|
"format": "date-time"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"EndsAt": {
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
|
|
|
|
|
"type": "string",
|
|
|
|
|
"format": "date-time"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"PlanItems": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem": {
|
|
|
|
|
"title": "PlanItem",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"PlanItemId": {
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"maximum": 2147483647,
|
|
|
|
|
"minimum": -2147483648,
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"format": "int32"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"ConfirmationCode": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
},
|
|
|
|
|
"StartsAt": {
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
|
|
|
|
|
"type": "string",
|
|
|
|
|
"format": "date-time"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"EndsAt": {
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
|
|
|
|
|
"type": "string",
|
|
|
|
|
"format": "date-time"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"Duration": {
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"pattern": "^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$",
|
|
|
|
|
"type": "string",
|
|
|
|
|
"format": "duration"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Event": {
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Event",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"OccursAt": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"Description": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation": {
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PlanItem"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "PublicTransportation",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"SeatNumber": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight": {
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.PublicTransportation"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Flight",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"FlightNumber": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
},
|
|
|
|
|
"Airline": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airline"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"From": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"To": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Employee": {
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Employee",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"Cost": {
|
2017-12-08 20:50:35 +01:00
|
|
|
|
"anyOf": [
|
2017-10-19 23:39:57 +02:00
|
|
|
|
{
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"format": "int64"
|
|
|
|
|
},
|
|
|
|
|
"Peers": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager": {
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Manager",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"Budget": {
|
2017-12-08 20:50:35 +01:00
|
|
|
|
"anyOf": [
|
2017-10-19 23:39:57 +02:00
|
|
|
|
{
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"format": "int64"
|
|
|
|
|
},
|
|
|
|
|
"BossOffice": {
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"nullable": true
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"DirectReports": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender": {
|
|
|
|
|
"title": "PersonGender",
|
|
|
|
|
"enum": [
|
|
|
|
|
"Male",
|
|
|
|
|
"Female",
|
|
|
|
|
"Unknow"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.Feature": {
|
|
|
|
|
"title": "Feature",
|
|
|
|
|
"enum": [
|
|
|
|
|
"Feature1",
|
|
|
|
|
"Feature2",
|
|
|
|
|
"Feature3",
|
|
|
|
|
"Feature4"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
2017-12-02 00:11:18 +01:00
|
|
|
|
"Edm.Geography": {
|
|
|
|
|
"$ref": "#/components/schemas/Edm.Geometry"
|
|
|
|
|
},
|
|
|
|
|
"Edm.GeographyPoint": {
|
|
|
|
|
"$ref": "#/components/schemas/Edm.GeometryPoint"
|
|
|
|
|
},
|
|
|
|
|
"Edm.GeographyLineString": {
|
|
|
|
|
"$ref": "#/components/schemas/Edm.GeometryLineString"
|
|
|
|
|
},
|
|
|
|
|
"Edm.GeographyPolygon": {
|
|
|
|
|
"$ref": "#/components/schemas/Edm.GeometryPolygon"
|
|
|
|
|
},
|
|
|
|
|
"Edm.GeographyMultiPoint": {
|
|
|
|
|
"$ref": "#/components/schemas/Edm.GeometryMultiPoint"
|
|
|
|
|
},
|
|
|
|
|
"Edm.GeographyMultiLineString": {
|
|
|
|
|
"$ref": "#/components/schemas/Edm.GeometryMultiLineString"
|
|
|
|
|
},
|
|
|
|
|
"Edm.GeographyMultiPolygon": {
|
|
|
|
|
"$ref": "#/components/schemas/Edm.GeometryMultiPolygon"
|
|
|
|
|
},
|
|
|
|
|
"Edm.GeographyCollection": {
|
|
|
|
|
"$ref": "#/components/schemas/Edm.GeometryCollection"
|
|
|
|
|
},
|
|
|
|
|
"Edm.Geometry": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Edm.GeometryPoint"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Edm.GeometryLineString"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Edm.GeometryPolygon"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Edm.GeometryMultiPoint"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Edm.GeometryMultiLineString"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Edm.GeometryMultiPolygon"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Edm.GeometryCollection"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Edm.GeometryPoint": {
|
|
|
|
|
"required": [
|
|
|
|
|
"type",
|
|
|
|
|
"coordinates"
|
|
|
|
|
],
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"type": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"Point"
|
|
|
|
|
],
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": "Point"
|
|
|
|
|
},
|
|
|
|
|
"coordinates": {
|
|
|
|
|
"$ref": "#/components/schemas/GeoJSON.position"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Edm.GeometryLineString": {
|
|
|
|
|
"required": [
|
|
|
|
|
"type",
|
|
|
|
|
"coordinates"
|
|
|
|
|
],
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"type": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"LineString"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"coordinates": {
|
|
|
|
|
"minItems": 2,
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/GeoJSON.position"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Edm.GeometryPolygon": {
|
|
|
|
|
"required": [
|
|
|
|
|
"type",
|
|
|
|
|
"coordinates"
|
|
|
|
|
],
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"type": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"Polygon"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"coordinates": {
|
|
|
|
|
"minItems": 4,
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/GeoJSON.position"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Edm.GeometryMultiPoint": {
|
|
|
|
|
"required": [
|
|
|
|
|
"type",
|
|
|
|
|
"coordinates"
|
|
|
|
|
],
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"type": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"MultiPoint"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"coordinates": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/GeoJSON.position"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Edm.GeometryMultiLineString": {
|
|
|
|
|
"required": [
|
|
|
|
|
"type",
|
|
|
|
|
"coordinates"
|
|
|
|
|
],
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"type": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"MultiLineString"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"coordinates": {
|
|
|
|
|
"minItems": 2,
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/GeoJSON.position"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Edm.GeometryMultiPolygon": {
|
|
|
|
|
"required": [
|
|
|
|
|
"type",
|
|
|
|
|
"coordinates"
|
|
|
|
|
],
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"type": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"MultiPolygon"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"coordinates": {
|
|
|
|
|
"minItems": 4,
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/GeoJSON.position"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Edm.GeometryCollection": {
|
|
|
|
|
"required": [
|
|
|
|
|
"type",
|
|
|
|
|
"coordinates"
|
|
|
|
|
],
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"type": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"GeometryCollection"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"coordinates": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/Edm.Geometry"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"GeoJSON.position": {
|
|
|
|
|
"minItems": 2,
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "number"
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"odata.error": {
|
|
|
|
|
"required": [
|
|
|
|
|
"error"
|
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"error": {
|
|
|
|
|
"$ref": "#/components/schemas/odata.error.main"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"odata.error.main": {
|
|
|
|
|
"required": [
|
|
|
|
|
"code",
|
|
|
|
|
"message"
|
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"target": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"details": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/odata.error.detail"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"innererror": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"description": "The structure of this object is service-specific"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"odata.error.detail": {
|
|
|
|
|
"required": [
|
|
|
|
|
"code",
|
|
|
|
|
"message"
|
|
|
|
|
],
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"type": "object",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"target": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"responses": {
|
|
|
|
|
"error": {
|
|
|
|
|
"description": "error",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/odata.error"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"parameters": {
|
|
|
|
|
"top": {
|
|
|
|
|
"name": "$top",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Show only the first n items",
|
|
|
|
|
"schema": {
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"minimum": 0,
|
|
|
|
|
"type": "integer"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"example": 50
|
2017-10-19 23:39:57 +02:00
|
|
|
|
},
|
|
|
|
|
"skip": {
|
|
|
|
|
"name": "$skip",
|
|
|
|
|
"in": "query",
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"description": "Skip the first n items",
|
2017-10-19 23:39:57 +02:00
|
|
|
|
"schema": {
|
2017-11-15 01:54:03 +01:00
|
|
|
|
"minimum": 0,
|
|
|
|
|
"type": "integer"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"count": {
|
|
|
|
|
"name": "$count",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Include count of items",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"filter": {
|
|
|
|
|
"name": "$filter",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Filter items by property values",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"search": {
|
|
|
|
|
"name": "$search",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Search items by search phrases",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"tags": [
|
|
|
|
|
{
|
|
|
|
|
"name": "People"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "Airlines"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "Airports"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "NewComePeople"
|
2017-11-15 01:54:03 +01:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "Me"
|
2017-11-22 04:44:38 +01:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "ResetDataSource"
|
2017-10-19 23:39:57 +02:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|