I have an API where the “source” field in the request body should accept both text (string/URI) and file (binary).
When I test this inside the Apidog app, I see the option to change the field type (so I can test with both string and file). However, on the hosted website, it only shows any one option — either file or string — but not both so that we can change the type.
We are using multipart/form-data as the body type, and for text we are passing it with format: uri.
Could you please guide us on how to handle this case, so that we can upload both file and string on the hosted website ?
I am also sharing the screenshots of both the Apidog app and the hosted website for your reference.
Thanks for your reply. But this feature is very important — in our case, the “source” parameter must truly support both file and text inputs. The file option is needed for PDFs/docs, while the text option is needed for plain text and web links.
If the published documentation only shows one type, then our API purpose is not fulfilled. We need to give users the flexibility to choose whichever type they want (file or text) for this parameter.
Please prioritize this feature. Without it, our API documentation is incomplete for end users.