diff --git a/sdrbase/resources/index.html b/sdrbase/resources/index.html index ab48c0131..1240833f9 100644 --- a/sdrbase/resources/index.html +++ b/sdrbase/resources/index.html @@ -1548,6 +1548,14 @@ margin-bottom: 20px; } }, "description" : "Information about a logical device available from an attached hardware device that can be used as a sampling device" +}; + defs.SuccessResponse = { + "required" : [ "message" ], + "properties" : { + "message" : { + "type" : "string" + } + } }; @@ -2216,7 +2224,7 @@ public class DeviceSetApiExample { Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list ChannelSettings body = ; // ChannelSettings | Channel identification (no settings data) try { - ChannelSettings result = apiInstance.devicesetChannelPost(deviceSetIndex, body); + SuccessResponse result = apiInstance.devicesetChannelPost(deviceSetIndex, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DeviceSetApi#devicesetChannelPost"); @@ -2236,7 +2244,7 @@ public class DeviceSetApiExample { Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list ChannelSettings body = ; // ChannelSettings | Channel identification (no settings data) try { - ChannelSettings result = apiInstance.devicesetChannelPost(deviceSetIndex, body); + SuccessResponse result = apiInstance.devicesetChannelPost(deviceSetIndex, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DeviceSetApi#devicesetChannelPost"); @@ -2257,7 +2265,7 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init]; [apiInstance devicesetChannelPostWith:deviceSetIndex body:body - completionHandler: ^(ChannelSettings output, NSError* error) { + completionHandler: ^(SuccessResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -2312,7 +2320,7 @@ namespace Example try { - ChannelSettings result = apiInstance.devicesetChannelPost(deviceSetIndex, body); + SuccessResponse result = apiInstance.devicesetChannelPost(deviceSetIndex, body); Debug.WriteLine(result); } catch (Exception e) @@ -2460,7 +2468,7 @@ $(document).ready(function() {

Responses

-

Status: 200 - On success return new channel settings

+

Status: 200 - On success return informative message