@@ -19,6 +19,20 @@ public CommandMetadataRouteDefinitionInitialBuilder(Type apiEndpointType)
19
19
20
20
/// <summary>
21
21
/// Configure Post <paramref name="route"/>
22
+ /// <para />
23
+ /// Defaults values to the following:
24
+ /// <list type="bullet">
25
+ /// <item>
26
+ /// <description>
27
+ /// <see cref="MetadataRouteDefinition.SuccessStatusCode"/> = 201
28
+ /// </description>
29
+ /// </item>
30
+ /// <item>
31
+ /// <description>
32
+ /// <see cref="MetadataRouteDefinition.FailedStatusCode"/> = 400
33
+ /// </description>
34
+ /// </item>
35
+ /// </list>
22
36
/// </summary>
23
37
public MetadataRouteDefinitionBuilder Post ( string route )
24
38
{
@@ -33,6 +47,20 @@ public MetadataRouteDefinitionBuilder Post(string route)
33
47
/// <summary>
34
48
/// Configure Post <paramref name="route"/> with <paramref name="parameterDefinitions"/>
35
49
/// <para>You only need to specify the parameters that DO NOT use <see cref="MapFromAttribute"/></para>
50
+ /// <para />
51
+ /// Defaults values to the following:
52
+ /// <list type="bullet">
53
+ /// <item>
54
+ /// <description>
55
+ /// <see cref="MetadataRouteDefinition.SuccessStatusCode"/> = 201
56
+ /// </description>
57
+ /// </item>
58
+ /// <item>
59
+ /// <description>
60
+ /// <see cref="MetadataRouteDefinition.FailedStatusCode"/> = 400
61
+ /// </description>
62
+ /// </item>
63
+ /// </list>
36
64
/// </summary>
37
65
public MetadataRouteDefinitionBuilder Post ( string route , params ( string name , MetadataRouteParameterDefinitionType parameterDefinitionType , Type type ) [ ] parameterDefinitions )
38
66
{
@@ -47,6 +75,20 @@ public MetadataRouteDefinitionBuilder Post(string route, params (string name, Me
47
75
48
76
/// <summary>
49
77
/// Configure Put <paramref name="route"/>
78
+ /// <para />
79
+ /// Defaults values to the following:
80
+ /// <list type="bullet">
81
+ /// <item>
82
+ /// <description>
83
+ /// <see cref="MetadataRouteDefinition.SuccessStatusCode"/> = 201
84
+ /// </description>
85
+ /// </item>
86
+ /// <item>
87
+ /// <description>
88
+ /// <see cref="MetadataRouteDefinition.FailedStatusCode"/> = 404
89
+ /// </description>
90
+ /// </item>
91
+ /// </list>
50
92
/// </summary>
51
93
public MetadataRouteDefinitionBuilder Put ( string route )
52
94
{
@@ -61,6 +103,20 @@ public MetadataRouteDefinitionBuilder Put(string route)
61
103
/// <summary>
62
104
/// Configure Put <paramref name="route"/> with <paramref name="parameterDefinitions"/>
63
105
/// <para>You only need to specify the parameters that DO NOT use <see cref="MapFromAttribute"/></para>
106
+ /// <para />
107
+ /// Defaults values to the following:
108
+ /// <list type="bullet">
109
+ /// <item>
110
+ /// <description>
111
+ /// <see cref="MetadataRouteDefinition.SuccessStatusCode"/> = 201
112
+ /// </description>
113
+ /// </item>
114
+ /// <item>
115
+ /// <description>
116
+ /// <see cref="MetadataRouteDefinition.FailedStatusCode"/> = 404
117
+ /// </description>
118
+ /// </item>
119
+ /// </list>
64
120
/// </summary>
65
121
public MetadataRouteDefinitionBuilder Put ( string route , params ( string name , MetadataRouteParameterDefinitionType parameterDefinitionType , Type type ) [ ] parameterDefinitions )
66
122
{
@@ -75,6 +131,20 @@ public MetadataRouteDefinitionBuilder Put(string route, params (string name, Met
75
131
76
132
/// <summary>
77
133
/// Configure Patch <paramref name="route"/>
134
+ /// <para />
135
+ /// Defaults values to the following:
136
+ /// <list type="bullet">
137
+ /// <item>
138
+ /// <description>
139
+ /// <see cref="MetadataRouteDefinition.SuccessStatusCode"/> = 200
140
+ /// </description>
141
+ /// </item>
142
+ /// <item>
143
+ /// <description>
144
+ /// <see cref="MetadataRouteDefinition.FailedStatusCode"/> = 404
145
+ /// </description>
146
+ /// </item>
147
+ /// </list>
78
148
/// </summary>
79
149
public MetadataRouteDefinitionBuilder Patch ( string route )
80
150
{
@@ -89,6 +159,20 @@ public MetadataRouteDefinitionBuilder Patch(string route)
89
159
/// <summary>
90
160
/// Configure Patch <paramref name="route"/> with <paramref name="parameterDefinitions"/>
91
161
/// <para>You only need to specify the parameters that DO NOT use <see cref="MapFromAttribute"/></para>
162
+ /// <para />
163
+ /// Defaults values to the following:
164
+ /// <list type="bullet">
165
+ /// <item>
166
+ /// <description>
167
+ /// <see cref="MetadataRouteDefinition.SuccessStatusCode"/> = 200
168
+ /// </description>
169
+ /// </item>
170
+ /// <item>
171
+ /// <description>
172
+ /// <see cref="MetadataRouteDefinition.FailedStatusCode"/> = 404
173
+ /// </description>
174
+ /// </item>
175
+ /// </list>
92
176
/// </summary>
93
177
public MetadataRouteDefinitionBuilder Patch ( string route , params ( string name , MetadataRouteParameterDefinitionType parameterDefinitionType , Type type ) [ ] parameterDefinitions )
94
178
{
@@ -103,6 +187,20 @@ public MetadataRouteDefinitionBuilder Patch(string route, params (string name, M
103
187
104
188
/// <summary>
105
189
/// Configure Delete <paramref name="route"/>
190
+ /// <para />
191
+ /// Defaults values to the following:
192
+ /// <list type="bullet">
193
+ /// <item>
194
+ /// <description>
195
+ /// <see cref="MetadataRouteDefinition.SuccessStatusCode"/> = 200
196
+ /// </description>
197
+ /// </item>
198
+ /// <item>
199
+ /// <description>
200
+ /// <see cref="MetadataRouteDefinition.FailedStatusCode"/> = 404
201
+ /// </description>
202
+ /// </item>
203
+ /// </list>
106
204
/// </summary>
107
205
public MetadataRouteDefinitionBuilder Delete ( string route )
108
206
{
@@ -117,6 +215,20 @@ public MetadataRouteDefinitionBuilder Delete(string route)
117
215
/// <summary>
118
216
/// Configure Delete <paramref name="route"/> with <paramref name="parameterDefinitions"/>
119
217
/// <para>You only need to specify the parameters that DO NOT use <see cref="MapFromAttribute"/></para>
218
+ /// <para />
219
+ /// Defaults values to the following:
220
+ /// <list type="bullet">
221
+ /// <item>
222
+ /// <description>
223
+ /// <see cref="MetadataRouteDefinition.SuccessStatusCode"/> = 200
224
+ /// </description>
225
+ /// </item>
226
+ /// <item>
227
+ /// <description>
228
+ /// <see cref="MetadataRouteDefinition.FailedStatusCode"/> = 404
229
+ /// </description>
230
+ /// </item>
231
+ /// </list>
120
232
/// </summary>
121
233
public MetadataRouteDefinitionBuilder Delete ( string route , params ( string name , MetadataRouteParameterDefinitionType parameterDefinitionType , Type type ) [ ] parameterDefinitions )
122
234
{
0 commit comments