You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to design an API, say POST /files. By using this API the user can upload single or multiple files. Its content type must be multipart/form-data. Thanks to oatpp, it functions excellent. Now, I try to use oatpp-swagger to describe this API.
I tried to use the following code but it does not work. In more detail, compile ok but not display the GUI as my imagination :-Q.
ENDPOINT_INFO(uploadMultipart) {
info->summary = "Upload one or more files.";
info->addConsumes<oatpp::swagger::Binary>("multipart/form-data");
}
I expect I can see something in Swagger GUI to allow a user to upload one or more files by using multipart/form-data but not.
So, how should I do?
The text was updated successfully, but these errors were encountered:
I want to design an API, say POST /files. By using this API the user can upload single or multiple files. Its content type must be multipart/form-data. Thanks to oatpp, it functions excellent. Now, I try to use oatpp-swagger to describe this API.
I tried to use the following code but it does not work. In more detail, compile ok but not display the GUI as my imagination :-Q.
ENDPOINT_INFO(uploadMultipart) {
info->summary = "Upload one or more files.";
info->addConsumes<oatpp::swagger::Binary>("multipart/form-data");
}
I expect I can see something in Swagger GUI to allow a user to upload one or more files by using multipart/form-data but not.
I want to design an API, say
POST /files
. By using this API the user can upload single or multiple files. Its content type must bemultipart/form-data
. Thanks tooatpp
, it functions excellent. Now, I try to useoatpp-swagger
to describe this API.I tried to use the following code but it does not work. In more detail, compile ok but not display the GUI as my imagination :-Q.
I expect I can see something in Swagger GUI to allow a user to upload one or more files by using
multipart/form-data
but not.So, how should I do?
The text was updated successfully, but these errors were encountered: