1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 16:34:45 -04:00

REST API: config: GET (1) preferences and partial presets

This commit is contained in:
f4exb
2019-08-01 02:16:56 +02:00
parent 9588d53327
commit 62ef01c21c
16 changed files with 244 additions and 1 deletions
+16
View File
@@ -30,6 +30,7 @@
namespace SWGSDRangel
{
class SWGInstanceSummaryResponse;
class SWGInstanceConfigResponse;
class SWGInstanceDevicesResponse;
class SWGInstanceChannelsResponse;
class SWGLoggingInfo;
@@ -89,6 +90,20 @@ public:
return 501;
}
/**
* Handler of /sdrangel/config (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceSummary
* returns the Http status code (default 501: not implemented)
*/
virtual int instanceConfigGet(
SWGSDRangel::SWGInstanceConfigResponse& response,
SWGSDRangel::SWGErrorResponse& error)
{
(void) response;
error.init();
*error.getMessage() = QString("Function not implemented");
return 501;
}
/**
* Handler of /sdrangel/devices (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceDevices
* returns the Http status code (default 501: not implemented)
@@ -770,6 +785,7 @@ public:
}
static QString instanceSummaryURL;
static QString instanceConfigURL;
static QString instanceDevicesURL;
static QString instanceChannelsURL;
static QString instanceLoggingURL;