...
- To add controller or method specific query parameter, use [QueryParameter] attribute (see example below). Parameter type and description should be entered directly when adding the attribute.
... and this is how it looks like in Swagger UI
- To add general purpose query parameter(s) that can be reused throughout multiple controllers, use [QueryParameters] attribute, typically paging query parameters, etc ... (see example below). Parameter type and description is predefined in this class : https://git.allplan.com/projects/SRVC/repos/api/browse/src/BimPlus.Server.Web/Core/QueryParametersAttribute.cs
... and this is how it looks like in Swagger UI
Adding optional request body
...
- To add optional request body, use the attribute with the appropriate Dto (see the example below)
... and this is how it looks like in Swagger UI
Adding conditional headers
...