1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

Web API: return more descriptive messages on status 202

This commit is contained in:
f4exb
2017-12-21 22:35:25 +01:00
parent 5d0fafdfe6
commit a945d582bc
4 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -569,7 +569,7 @@ int WebAPIAdapterGUI::instanceDeviceSetsPost(
m_mainWindow.m_inputMessageQueue.push(msg);
response.init();
*response.getMessage() = QString("MsgAddDeviceSet message submitted");
*response.getMessage() = QString("Message to add a new device set (MsgAddDeviceSet) was submitted successfully");
return 202;
}
@@ -584,7 +584,7 @@ int WebAPIAdapterGUI::instanceDeviceSetsDelete(
m_mainWindow.m_inputMessageQueue.push(msg);
response.init();
*response.getMessage() = QString("MsgRemoveLastDeviceSet message submitted");
*response.getMessage() = QString("Message to remove last device set (MsgRemoveLastDeviceSet) was submitted successfully");
return 202;
}
@@ -931,7 +931,7 @@ int WebAPIAdapterGUI::devicesetChannelPost(
m_mainWindow.m_inputMessageQueue.push(msg);
response.init();
*response.getMessage() = QString("MsgAddChannel message submitted");
*response.getMessage() = QString("Message to add a channel (MsgAddChannel) was submitted successfully");
return 202;
}
@@ -967,7 +967,7 @@ int WebAPIAdapterGUI::devicesetChannelPost(
m_mainWindow.m_inputMessageQueue.push(msg);
response.init();
*response.getMessage() = QString("MsgAddChannel message submitted");
*response.getMessage() = QString("Message to add a channel (MsgAddChannel) was submitted successfully");
return 202;
}