File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -141,20 +141,30 @@ public static async Task<IActionResult> MyFunction2(...)
141
141
{
142
142
.. .
143
143
}
144
+
145
+ [FunctionName (" MyOptionFunction1" )]
146
+ [OpenApiOperation (operationId : .. ., tags : new [] { " option" })]
147
+ .. .
148
+ public static async Task < IActionResult > MyOptionFunction1 (.. .)
149
+ {
150
+ .. .
151
+ }
152
+
144
153
```
145
154
146
- If you only want to only show the admin API endpoints, add ` filter =admin` to the querystring:
155
+ If you only want to only show the admin API endpoints, add ` tag =admin` to the querystring:
147
156
148
157
```
149
- http://localhost:7071/api/swagger/ui?filter =admin
150
- http://localhost:7071/api/swagger.json?filter =admin
158
+ http://localhost:7071/api/swagger/ui?tag =admin
159
+ http://localhost:7071/api/swagger.json?tag =admin
151
160
```
152
161
153
- If you want to only show the product related API endpoints, add ` filter=product ` to the querystring:
162
+ The ` tag ` parameter accepts a commma separated list of tags. Any function with any tag passed on the ` tag ` parameter will be selected.
163
+ If you only want to show the API endpoints related to ` product ` or ` option ` tag, add ` tag=product,option ` to the querystring:
154
164
155
165
```
156
- http://localhost:7071/api/swagger/ui?filter =product
157
- http://localhost:7071/api/swagger.json?filter =product
166
+ http://localhost:7071/api/swagger/ui?tag =product,option
167
+ http://localhost:7071/api/swagger.json?tag =product,option
158
168
```
159
169
160
170
You can’t perform that action at this time.
0 commit comments