Skip to content

Commit

Permalink
Path items for single-valued navigation properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl committed Nov 15, 2018
1 parent 82d4ba6 commit fcb2536
Show file tree
Hide file tree
Showing 29 changed files with 21,895 additions and 2,127 deletions.
1,857 changes: 1,745 additions & 112 deletions examples/ExampleService.openapi.json

Large diffs are not rendered by default.

2,164 changes: 2,023 additions & 141 deletions examples/ExampleService.openapi3.json

Large diffs are not rendered by default.

1,400 changes: 1,298 additions & 102 deletions examples/Northwind-V2.openapi.json

Large diffs are not rendered by default.

1,644 changes: 1,499 additions & 145 deletions examples/Northwind-V2.openapi3.json

Large diffs are not rendered by default.

1,784 changes: 1,457 additions & 327 deletions examples/Northwind-V3.openapi.json

Large diffs are not rendered by default.

1,566 changes: 1,427 additions & 139 deletions examples/Northwind-V3.openapi3.json

Large diffs are not rendered by default.

1,795 changes: 1,476 additions & 319 deletions examples/Northwind-key-as-segment.openapi.json

Large diffs are not rendered by default.

1,679 changes: 1,497 additions & 182 deletions examples/Northwind-key-as-segment.openapi3.json

Large diffs are not rendered by default.

1,795 changes: 1,476 additions & 319 deletions examples/Northwind.openapi.json

Large diffs are not rendered by default.

1,679 changes: 1,497 additions & 182 deletions examples/Northwind.openapi3.json

Large diffs are not rendered by default.

213 changes: 213 additions & 0 deletions examples/People.openapi.json
Expand Up @@ -572,6 +572,119 @@
}
}
},
"/People({ID})/PersonDetail": {
"get": {
"summary": "Get related PersonDetails",
"tags": [
"People",
"PersonDetails"
],
"parameters": [
{
"name": "ID",
"in": "path",
"required": true,
"description": "key: ID",
"type": "integer",
"format": "int32"
},
{
"$ref": "#/parameters/top"
},
{
"$ref": "#/parameters/skip"
},
{
"$ref": "#/parameters/search"
},
{
"name": "$filter",
"in": "query",
"description": "Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionfilter)",
"type": "string"
},
{
"$ref": "#/parameters/count"
},
{
"name": "$orderby",
"in": "query",
"description": "Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionorderby)",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"PersonID",
"PersonID desc",
"Age",
"Age desc",
"Gender",
"Gender desc",
"Phone",
"Phone desc",
"Address",
"Address desc",
"Photo",
"Photo desc"
]
}
},
{
"name": "$select",
"in": "query",
"description": "Select properties to be returned, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionselect)",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"PersonID",
"Age",
"Gender",
"Phone",
"Address",
"Photo"
]
}
},
{
"name": "$expand",
"in": "query",
"description": "Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionexpand)",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"*",
"Person"
]
}
}
],
"responses": {
"200": {
"description": "Retrieved entities",
"schema": {
"title": "Collection of PersonDetail",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/PeopleService.PersonDetail"
}
}
}
}
},
"default": {
"$ref": "#/responses/error"
}
}
}
},
"/PersonDetails": {
"get": {
"summary": "Get entities from PersonDetails",
Expand Down Expand Up @@ -825,6 +938,106 @@
}
}
}
},
"/PersonDetails({PersonID})/Person": {
"get": {
"summary": "Get related Person",
"tags": [
"PersonDetails"
],
"parameters": [
{
"name": "PersonID",
"in": "path",
"required": true,
"description": "key: PersonID",
"type": "integer",
"format": "int32"
},
{
"$ref": "#/parameters/top"
},
{
"$ref": "#/parameters/skip"
},
{
"$ref": "#/parameters/search"
},
{
"name": "$filter",
"in": "query",
"description": "Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionfilter)",
"type": "string"
},
{
"$ref": "#/parameters/count"
},
{
"name": "$orderby",
"in": "query",
"description": "Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionorderby)",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"ID",
"ID desc",
"Name",
"Name desc"
]
}
},
{
"name": "$select",
"in": "query",
"description": "Select properties to be returned, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionselect)",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"ID",
"Name"
]
}
},
{
"name": "$expand",
"in": "query",
"description": "Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionexpand)",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"*",
"PersonDetail"
]
}
}
],
"responses": {
"200": {
"description": "Retrieved entities",
"schema": {
"title": "Collection of Person",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/PeopleService.Person"
}
}
}
}
},
"default": {
"$ref": "#/responses/error"
}
}
}
}
},
"definitions": {
Expand Down

0 comments on commit fcb2536

Please sign in to comment.