1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05: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

View File

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

View File

@ -569,7 +569,7 @@ int WebAPIAdapterGUI::instanceDeviceSetsPost(
m_mainWindow.m_inputMessageQueue.push(msg); m_mainWindow.m_inputMessageQueue.push(msg);
response.init(); response.init();
*response.getMessage() = QString("MsgAddDeviceSet message submitted"); *response.getMessage() = QString("Message to add a new device set (MsgAddDeviceSet) was submitted successfully");
return 202; return 202;
} }
@ -584,7 +584,7 @@ int WebAPIAdapterGUI::instanceDeviceSetsDelete(
m_mainWindow.m_inputMessageQueue.push(msg); m_mainWindow.m_inputMessageQueue.push(msg);
response.init(); response.init();
*response.getMessage() = QString("MsgRemoveLastDeviceSet message submitted"); *response.getMessage() = QString("Message to remove last device set (MsgRemoveLastDeviceSet) was submitted successfully");
return 202; return 202;
} }
@ -931,7 +931,7 @@ int WebAPIAdapterGUI::devicesetChannelPost(
m_mainWindow.m_inputMessageQueue.push(msg); m_mainWindow.m_inputMessageQueue.push(msg);
response.init(); response.init();
*response.getMessage() = QString("MsgAddChannel message submitted"); *response.getMessage() = QString("Message to add a channel (MsgAddChannel) was submitted successfully");
return 202; return 202;
} }
@ -967,7 +967,7 @@ int WebAPIAdapterGUI::devicesetChannelPost(
m_mainWindow.m_inputMessageQueue.push(msg); m_mainWindow.m_inputMessageQueue.push(msg);
response.init(); response.init();
*response.getMessage() = QString("MsgAddChannel message submitted"); *response.getMessage() = QString("Message to add a channel (MsgAddChannel) was submitted successfully");
return 202; return 202;
} }

View File

@ -94,7 +94,7 @@ int WebAPIAdapterSrv::instanceDelete(
m_mainCore.getInputMessageQueue()->push(msg); m_mainCore.getInputMessageQueue()->push(msg);
response.init(); response.init();
*response.getMessage() = QString("MsgDeleteInstance message submitted"); *response.getMessage() = QString("Message to stop the SDRangel instance (MsgDeleteInstance) was submitted successfully");
return 202; return 202;
} }
@ -697,7 +697,7 @@ int WebAPIAdapterSrv::instanceDeviceSetsPost(
m_mainCore.m_inputMessageQueue.push(msg); m_mainCore.m_inputMessageQueue.push(msg);
response.init(); response.init();
*response.getMessage() = QString("MsgAddDeviceSet message submitted"); *response.getMessage() = QString("Message to add a new device set (MsgAddDeviceSet) was submitted successfully");
return 202; return 202;
} }
@ -712,7 +712,7 @@ int WebAPIAdapterSrv::instanceDeviceSetsDelete(
m_mainCore.m_inputMessageQueue.push(msg); m_mainCore.m_inputMessageQueue.push(msg);
response.init(); response.init();
*response.getMessage() = QString("MsgRemoveLastDeviceSet message submitted"); *response.getMessage() = QString("Message to remove last device set (MsgRemoveLastDeviceSet) was submitted successfully");
return 202; return 202;
} }

View File

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