Closed oben01 closed 3 years ago
Just to complete,
If I declared my endpoint as :
ENDPOINT_INFO(getKeywordListLastData)
{
info->addTag("Keyword List Last data");
info->description = "Get the last acquisition for a list of keywords passed as a body";
//info->body.example = oatpp::Vector<oatpp::String>({ "a", "b", "c" });
//info->addResponse<Object<KeywordsLastDataResponse>>(
// Status::CODE_200,
// "application/json"
//);
info->addConsumes<Object<KeywordsLastDataBody>>(
"application/json",
"Your description"
);
info->addResponse<Object<KeywordsLastDataResponse>>(
Status::CODE_200,
"application/json"
);
}
ENDPOINT("PUT", "/acquisition/keyword/lastdata", getKeywordListLastData)//,
//BODY_DTO(Object<KeywordsLastDataBody>, keywords))
{
return createResponse(Status::CODE_200, "OK");
}
Request body description disappear.
@oben01
Fixed. Please get the latest oatpp-swagger
master.
@lganzzzo thank you ! you rock !
Hello ,
I declared my endpoint as :
I can see the info description in both endpoint and request body :