From 9fab034f149736efdbc14cc7dc6bc21b22081ce9 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 25 Nov 2017 19:42:56 +0100 Subject: [PATCH] Web API: /sdrangel/preset (DELETE) implementation --- sdrbase/resources/index.html | 211 +++++++++++++++++++++- sdrbase/webapi/webapiadapterinterface.h | 9 + sdrbase/webapi/webapirequestmapper.cpp | 110 +++++++++-- sdrbase/webapi/webapirequestmapper.h | 9 + sdrgui/mainwindow.cpp | 32 ++++ sdrgui/mainwindow.h | 22 ++- sdrgui/webapi/webapiadaptergui.cpp | 28 +++ sdrgui/webapi/webapiadaptergui.h | 4 + swagger/sdrangel/api/swagger/swagger.yaml | 18 +- swagger/sdrangel/code/html2/index.html | 211 +++++++++++++++++++++- 10 files changed, 623 insertions(+), 31 deletions(-) diff --git a/sdrbase/resources/index.html b/sdrbase/resources/index.html index 95b9c8dce..fd82e42d5 100644 --- a/sdrbase/resources/index.html +++ b/sdrbase/resources/index.html @@ -5527,20 +5527,90 @@ $(document).ready(function() { -

Status: 400 - Invalid frequency

+

Status: 400 - Invalid JSON request

+
+
+ +
+ +

Status: 404 - Preset not found

+
+
+ +
+ +

Status: 500 - Error

@@ -6195,7 +6265,7 @@ $(document).ready(function() { -

Status: 400 - Preset type and device set type mismatch

+

Status: 400 - Invalid JSON request or preset type and device set type mismatch