Skip to contentBrand Logo
RegisterSign In
  1. SmartBear Community
  2. Swagger Open Source Tools
  3. Swagger Open Source Tools Questions

Forum Discussion

mrvgulay's avatar
mrvgulay
Regular Visitor
5 years ago

How to set reference of the request body content as dynamic JSON?

I want to pass dynamic JSON to request body content. When I search on google, I see that this operation made by a DTO. 

Is it possible to do this without defining any DTO? 

 

I share below the example with DTO.

 

https://swagger.io/docs/specification/describing-request-body/

requestbody
Swagger Core
Swagger Editor
Swagger UI
No RepliesBe the first to reply

Recent Discussions

  • Maximum no of end-points in an API

    26 days ago
    Tejaswini01
  • The `<*>` symbol

    2 months ago
    juliansierr
  • How to define both fixed and dynamic fields in request body (visible in Swagger/Mintlify UI)?

    2 months ago
    Jaymeen-Sonara
Related Content
  • How to add a JSON example in a POST Request Body? (without a schema reference)

    6 years ago
    bdipasca
  • How to set different Content-Types in multipart/form-data POST Request?

    8 months ago
    rasierapparat
  • POST request data is getting truncated and error Content is not allowed in prolog shown

    5 years ago
    shadab1312
© 2025 SmartBear Software. All Rights Reserved.
  • Privacy
  • |
  • Terms of Use
  • |
  • Site Map
  • |
  • Website Terms of Use
  • |
  • Security
  • |
  • Community Terms of Service