You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/databases/wide-world-importers/wwi-app/wwwroot/OData.tt
+17-12Lines changed: 17 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -36,21 +36,23 @@ paths:
36
36
get:
37
37
tags:
38
38
- "<#= t.Table #>"
39
-
summary: "Find information about <#= t.Table #>"
40
-
description: "Multiple status values can be provided with comma separated strings"
39
+
summary: "Provides information about <#= t.Table #> using OData protocol."
40
+
description: "Enables querying <#= t.Table #> information using OData parameters."
41
41
operationId: "<#= t.Table #>"
42
42
produces:
43
43
- "application/json"
44
44
parameters:
45
45
- name: "$select"
46
46
in: "query"
47
-
description: "Selecting the properties that should be returned by service"
47
+
description: "Selecting the <#= t.Table #> properties that should be returned by service."
48
48
required: false
49
49
type: "array"
50
50
items:
51
51
type: "string"
52
-
enum:<# foreach(var c in t.ODataColumns.Split(',')) {#>
53
-
- "<#= c #>"<# } #>
52
+
enum:
53
+
<# foreach(var c in t.ODataColumns.Split(',')) {#>
54
+
- "<#= c #>"
55
+
<# } #>
54
56
collectionFormat: "multi"
55
57
- name: "$orderby"
56
58
in: "query"
@@ -59,29 +61,31 @@ paths:
59
61
type: "array"
60
62
items:
61
63
type: "string"
62
-
enum:<# foreach(var c in t.ODataColumns.Split(',')) {#>
64
+
enum:
65
+
<# foreach(var c in t.ODataColumns.Split(',')) {#>
63
66
- "<#= c #>"
64
67
- "<#= c #> asc"
65
-
- "<#= c #> desc"<# } #>
68
+
- "<#= c #> desc"
69
+
<# } #>
66
70
collectionFormat: "multi"
67
71
- name: "$top"
68
72
in: "query"
69
-
description: "Selecting the properties that should be returned by service"
73
+
description: "Selecting the <#= t.Table #> properties that should be returned by the API."
70
74
required: false
71
75
type: "integer"
72
76
- name: "$skip"
73
77
in: "query"
74
-
description: "Selecting the properties that should be returned by service"
78
+
description: "Specify number of <#= t.Table #> records that should be skipped."
75
79
required: false
76
80
type: "integer"
77
81
- name: "$apply"
78
82
in: "query"
79
-
description: "aggregation function that should be applied on the results"
83
+
description: "Aggregation function that should be applied on the results."
80
84
required: false
81
85
type: "string"
82
86
- name: "$filter"
83
87
in: "query"
84
-
description: "Condition that returned items must satisfy"
88
+
description: "Condition that returned <#= t.Table #> items must satisfy. It can contain and, or, not logical operators and lt, le, gt, ge, ne, eq relational operators."
85
89
required: false
86
90
type: "string"
87
91
responses:
@@ -90,12 +94,13 @@ paths:
90
94
400:
91
95
description: "The OData request is not valid"
92
96
500:
93
-
description: "Cannot process request"<# } #>
97
+
description: "OData service cannot process request"<# } #>
0 commit comments