i want to change the type in swagger ui from form (Parametertype) to body.
How can i change this or setup so it’s default this way?
You can change
ParameterType used with
[ApiMember] attribute however body wont work as the body is the entire Request / Response DTO, not a single property.
Here are some existing threads for background info:
Any additional customizations can be applied using Operation Filters which lets you modify the returned typed DTO representing the OpenApi v2 specification.