Web API: return more descriptive messages on status 202

pull/127/head
f4exb 2017-12-21 22:35:25 +01:00
rodzic 5d0fafdfe6
commit a945d582bc
4 zmienionych plików z 9 dodań i 9 usunięć

Wyświetl plik

@ -16202,7 +16202,7 @@ except ApiException as e:
</div>
<div id="generator">
<div class="content">
Generated 2017-12-21T18:47:36.189+01:00
Generated 2017-12-21T22:33:40.914+01:00
</div>
</div>
</div>

Wyświetl plik

@ -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;
}

Wyświetl plik

@ -94,7 +94,7 @@ int WebAPIAdapterSrv::instanceDelete(
m_mainCore.getInputMessageQueue()->push(msg);
response.init();
*response.getMessage() = QString("MsgDeleteInstance message submitted");
*response.getMessage() = QString("Message to stop the SDRangel instance (MsgDeleteInstance) was submitted successfully");
return 202;
}
@ -697,7 +697,7 @@ int WebAPIAdapterSrv::instanceDeviceSetsPost(
m_mainCore.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;
}
@ -712,7 +712,7 @@ int WebAPIAdapterSrv::instanceDeviceSetsDelete(
m_mainCore.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;
}

Wyświetl plik

@ -16202,7 +16202,7 @@ except ApiException as e:
</div>
<div id="generator">
<div class="content">
Generated 2017-12-21T18:47:36.189+01:00
Generated 2017-12-21T22:33:40.914+01:00
</div>
</div>
</div>