Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions App/Server/OpenAPIGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ QJsonObject OpenAPIGenerator::retrieveJson(const QString &_host, const quint16 _
QString HTTPMethod = Key.split(" ").first().toLower();
QStringList PKInPathStorage;

// if (PathString != "/Account/User/photo")
// {
// continue;
// }

clsAPIObject* APIObject = RESTAPIRegistry::Registry.value(Key);

auto paramName = [APIObject](quint8 i) {
Expand Down
4 changes: 2 additions & 2 deletions Modules/Account/functionalTest/testAccount.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ private slots:
qDebug() << Result;
}
void User_Photo_Delete() {
QVariant Result = callAPI(RESTClientHelper::DELETE,
"Account/User/photo",
QVariant Result = callAPI(RESTClientHelper::POST,
"Account/User/deletePhoto",
{},
{}
);
Expand Down
2 changes: 1 addition & 1 deletion Modules/Account/moduleSrc/ORM/User.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ bool User::apiUPDATEphoto(TAPI::JWT_t _JWT, TAPI::Base64Image_t _image)
return Result.numRowsAffected() > 0;
}

bool User::apiDELETEphoto(TAPI::JWT_t _JWT)
bool User::apiPOSTdeletePhoto(TAPI::JWT_t _JWT)
{
quint64 CurrentUserID = clsJWT(_JWT).usrID();

Expand Down
4 changes: 2 additions & 2 deletions Modules/Account/moduleSrc/ORM/User.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ private slots:
),
"Updates user image based using a base64 encoded image"
)
bool REST_DELETE(
photo,
bool REST_POST(
deletePhoto,
(
TAPI::JWT_t _JWT
),
Expand Down