From 236ed10c8cbf57f04453d761157b0aca829fd3f2 Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 25 Jan 2018 00:16:07 +0100 Subject: [PATCH] Web API: removed host from Swagger yaml spec so that it takes the current host in Swagger UI --- sdrbase/resources/webapi/doc/html2/index.html | 72 +++++++++---------- .../resources/webapi/doc/swagger/swagger.yaml | 2 - swagger/sdrangel/api/swagger/swagger.yaml | 2 - swagger/sdrangel/code/html2/index.html | 72 +++++++++---------- 4 files changed, 72 insertions(+), 76 deletions(-) diff --git a/sdrbase/resources/webapi/doc/html2/index.html b/sdrbase/resources/webapi/doc/html2/index.html index 5a5f896b4..7879d98fd 100644 --- a/sdrbase/resources/webapi/doc/html2/index.html +++ b/sdrbase/resources/webapi/doc/html2/index.html @@ -1859,7 +1859,7 @@ margin-bottom: 20px;
-
curl -X DELETE "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}"
+
curl -X DELETE "http://localhost/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}"
import SWGSDRangel.*;
@@ -2353,7 +2353,7 @@ except ApiException as e:
 
                         
-
curl -X POST "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/channel"
+
curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/channel"
import SWGSDRangel.*;
@@ -2866,7 +2866,7 @@ $(document).ready(function() {
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings"
+
curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings"
import SWGSDRangel.*;
@@ -3360,7 +3360,7 @@ except ApiException as e:
 
                         
-
curl -X PATCH "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings"
+
curl -X PATCH "http://localhost/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings"
import SWGSDRangel.*;
@@ -3906,7 +3906,7 @@ $(document).ready(function() {
 
                         
-
curl -X PUT "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings"
+
curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings"
import SWGSDRangel.*;
@@ -4452,7 +4452,7 @@ $(document).ready(function() {
 
                         
-
curl -X PUT "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/device"
+
curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device"
import SWGSDRangel.*;
@@ -4965,7 +4965,7 @@ $(document).ready(function() {
 
                         
-
curl -X DELETE "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/device/run"
+
curl -X DELETE "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device/run"
import SWGSDRangel.*;
@@ -5426,7 +5426,7 @@ except ApiException as e:
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/device/run"
+
curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device/run"
import SWGSDRangel.*;
@@ -5887,7 +5887,7 @@ except ApiException as e:
 
                         
-
curl -X POST "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/device/run"
+
curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device/run"
import SWGSDRangel.*;
@@ -6348,7 +6348,7 @@ except ApiException as e:
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/device/settings"
+
curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device/settings"
import SWGSDRangel.*;
@@ -6766,7 +6766,7 @@ except ApiException as e:
 
                         
-
curl -X PATCH "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/device/settings"
+
curl -X PATCH "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device/settings"
import SWGSDRangel.*;
@@ -7236,7 +7236,7 @@ $(document).ready(function() {
 
                         
-
curl -X PUT "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/device/settings"
+
curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device/settings"
import SWGSDRangel.*;
@@ -7706,7 +7706,7 @@ $(document).ready(function() {
 
                         
-
curl -X PATCH "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/focus"
+
curl -X PATCH "http://localhost/sdrangel/deviceset/{deviceSetIndex}/focus"
import SWGSDRangel.*;
@@ -8167,7 +8167,7 @@ except ApiException as e:
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}"
+
curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}"
import SWGSDRangel.*;
@@ -8585,7 +8585,7 @@ except ApiException as e:
 
                         
-
curl -X DELETE "http://localhost:8091/sdrangel/deviceset"
+
curl -X DELETE "http://localhost/sdrangel/deviceset"
import SWGSDRangel.*;
@@ -8963,7 +8963,7 @@ except ApiException as e:
 
                         
-
curl -X POST "http://localhost:8091/sdrangel/deviceset?tx="
+
curl -X POST "http://localhost/sdrangel/deviceset?tx="
import SWGSDRangel.*;
@@ -9339,7 +9339,7 @@ except ApiException as e:
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/audio"
+
curl -X GET "http://localhost/sdrangel/audio"
import SWGSDRangel.*;
@@ -9674,7 +9674,7 @@ except ApiException as e:
 
                         
-
curl -X PATCH "http://localhost:8091/sdrangel/audio"
+
curl -X PATCH "http://localhost/sdrangel/audio"
import SWGSDRangel.*;
@@ -10061,7 +10061,7 @@ $(document).ready(function() {
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/channels?tx="
+
curl -X GET "http://localhost/sdrangel/channels?tx="
import SWGSDRangel.*;
@@ -10434,7 +10434,7 @@ except ApiException as e:
 
                         
-
curl -X PATCH "http://localhost:8091/sdrangel/dvserial?dvserial="
+
curl -X PATCH "http://localhost/sdrangel/dvserial?dvserial="
import SWGSDRangel.*;
@@ -10807,7 +10807,7 @@ except ApiException as e:
 
                         
-
curl -X DELETE "http://localhost:8091/sdrangel"
+
curl -X DELETE "http://localhost/sdrangel"
import SWGSDRangel.*;
@@ -11185,7 +11185,7 @@ except ApiException as e:
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/devicesets"
+
curl -X GET "http://localhost/sdrangel/devicesets"
import SWGSDRangel.*;
@@ -11520,7 +11520,7 @@ except ApiException as e:
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/devices?tx="
+
curl -X GET "http://localhost/sdrangel/devices?tx="
import SWGSDRangel.*;
@@ -11893,7 +11893,7 @@ except ApiException as e:
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/location"
+
curl -X GET "http://localhost/sdrangel/location"
import SWGSDRangel.*;
@@ -12228,7 +12228,7 @@ except ApiException as e:
 
                         
-
curl -X PUT "http://localhost:8091/sdrangel/location"
+
curl -X PUT "http://localhost/sdrangel/location"
import SWGSDRangel.*;
@@ -12623,7 +12623,7 @@ $(document).ready(function() {
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/logging"
+
curl -X GET "http://localhost/sdrangel/logging"
import SWGSDRangel.*;
@@ -12958,7 +12958,7 @@ except ApiException as e:
 
                         
-
curl -X PUT "http://localhost:8091/sdrangel/logging"
+
curl -X PUT "http://localhost/sdrangel/logging"
import SWGSDRangel.*;
@@ -13388,7 +13388,7 @@ $(document).ready(function() {
 
                         
-
curl -X DELETE "http://localhost:8091/sdrangel/preset"
+
curl -X DELETE "http://localhost/sdrangel/preset"
import SWGSDRangel.*;
@@ -13861,7 +13861,7 @@ $(document).ready(function() {
 
                         
-
curl -X POST "http://localhost:8091/sdrangel/preset/file"
+
curl -X POST "http://localhost/sdrangel/preset/file"
import SWGSDRangel.*;
@@ -14334,7 +14334,7 @@ $(document).ready(function() {
 
                         
-
curl -X PUT "http://localhost:8091/sdrangel/preset/file"
+
curl -X PUT "http://localhost/sdrangel/preset/file"
import SWGSDRangel.*;
@@ -14807,7 +14807,7 @@ $(document).ready(function() {
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/presets"
+
curl -X GET "http://localhost/sdrangel/presets"
import SWGSDRangel.*;
@@ -15142,7 +15142,7 @@ except ApiException as e:
 
                         
-
curl -X PATCH "http://localhost:8091/sdrangel/preset"
+
curl -X PATCH "http://localhost/sdrangel/preset"
import SWGSDRangel.*;
@@ -15615,7 +15615,7 @@ $(document).ready(function() {
 
                         
-
curl -X POST "http://localhost:8091/sdrangel/preset"
+
curl -X POST "http://localhost/sdrangel/preset"
import SWGSDRangel.*;
@@ -16131,7 +16131,7 @@ $(document).ready(function() {
 
                         
-
curl -X PUT "http://localhost:8091/sdrangel/preset"
+
curl -X PUT "http://localhost/sdrangel/preset"
import SWGSDRangel.*;
@@ -16604,7 +16604,7 @@ $(document).ready(function() {
 
                         
-
curl -X GET "http://localhost:8091/sdrangel"
+
curl -X GET "http://localhost/sdrangel"
import SWGSDRangel.*;
@@ -16921,7 +16921,7 @@ except ApiException as e:
           
- Generated 2018-01-22T23:06:33.396+01:00 + Generated 2018-01-25T00:10:31.068+01:00
diff --git a/sdrbase/resources/webapi/doc/swagger/swagger.yaml b/sdrbase/resources/webapi/doc/swagger/swagger.yaml index ab32d5bc8..adba3902f 100644 --- a/sdrbase/resources/webapi/doc/swagger/swagger.yaml +++ b/sdrbase/resources/webapi/doc/swagger/swagger.yaml @@ -21,8 +21,6 @@ info: contact: url: "https://github.com/f4exb/sdrangel" email: "f4exb06@gmail.com" -# during dev, should point to your local machine -host: localhost:8091 # basePath prefixes all resource paths basePath: / # diff --git a/swagger/sdrangel/api/swagger/swagger.yaml b/swagger/sdrangel/api/swagger/swagger.yaml index 3e3191f8f..3a0cc6387 100644 --- a/swagger/sdrangel/api/swagger/swagger.yaml +++ b/swagger/sdrangel/api/swagger/swagger.yaml @@ -21,8 +21,6 @@ info: contact: url: "https://github.com/f4exb/sdrangel" email: "f4exb06@gmail.com" -# during dev, should point to your local machine -host: localhost:8091 # basePath prefixes all resource paths basePath: / # diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html index 5a5f896b4..7879d98fd 100644 --- a/swagger/sdrangel/code/html2/index.html +++ b/swagger/sdrangel/code/html2/index.html @@ -1859,7 +1859,7 @@ margin-bottom: 20px;
-
curl -X DELETE "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}"
+
curl -X DELETE "http://localhost/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}"
import SWGSDRangel.*;
@@ -2353,7 +2353,7 @@ except ApiException as e:
 
                         
-
curl -X POST "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/channel"
+
curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/channel"
import SWGSDRangel.*;
@@ -2866,7 +2866,7 @@ $(document).ready(function() {
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings"
+
curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings"
import SWGSDRangel.*;
@@ -3360,7 +3360,7 @@ except ApiException as e:
 
                         
-
curl -X PATCH "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings"
+
curl -X PATCH "http://localhost/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings"
import SWGSDRangel.*;
@@ -3906,7 +3906,7 @@ $(document).ready(function() {
 
                         
-
curl -X PUT "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings"
+
curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings"
import SWGSDRangel.*;
@@ -4452,7 +4452,7 @@ $(document).ready(function() {
 
                         
-
curl -X PUT "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/device"
+
curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device"
import SWGSDRangel.*;
@@ -4965,7 +4965,7 @@ $(document).ready(function() {
 
                         
-
curl -X DELETE "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/device/run"
+
curl -X DELETE "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device/run"
import SWGSDRangel.*;
@@ -5426,7 +5426,7 @@ except ApiException as e:
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/device/run"
+
curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device/run"
import SWGSDRangel.*;
@@ -5887,7 +5887,7 @@ except ApiException as e:
 
                         
-
curl -X POST "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/device/run"
+
curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device/run"
import SWGSDRangel.*;
@@ -6348,7 +6348,7 @@ except ApiException as e:
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/device/settings"
+
curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device/settings"
import SWGSDRangel.*;
@@ -6766,7 +6766,7 @@ except ApiException as e:
 
                         
-
curl -X PATCH "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/device/settings"
+
curl -X PATCH "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device/settings"
import SWGSDRangel.*;
@@ -7236,7 +7236,7 @@ $(document).ready(function() {
 
                         
-
curl -X PUT "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/device/settings"
+
curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device/settings"
import SWGSDRangel.*;
@@ -7706,7 +7706,7 @@ $(document).ready(function() {
 
                         
-
curl -X PATCH "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/focus"
+
curl -X PATCH "http://localhost/sdrangel/deviceset/{deviceSetIndex}/focus"
import SWGSDRangel.*;
@@ -8167,7 +8167,7 @@ except ApiException as e:
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}"
+
curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}"
import SWGSDRangel.*;
@@ -8585,7 +8585,7 @@ except ApiException as e:
 
                         
-
curl -X DELETE "http://localhost:8091/sdrangel/deviceset"
+
curl -X DELETE "http://localhost/sdrangel/deviceset"
import SWGSDRangel.*;
@@ -8963,7 +8963,7 @@ except ApiException as e:
 
                         
-
curl -X POST "http://localhost:8091/sdrangel/deviceset?tx="
+
curl -X POST "http://localhost/sdrangel/deviceset?tx="
import SWGSDRangel.*;
@@ -9339,7 +9339,7 @@ except ApiException as e:
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/audio"
+
curl -X GET "http://localhost/sdrangel/audio"
import SWGSDRangel.*;
@@ -9674,7 +9674,7 @@ except ApiException as e:
 
                         
-
curl -X PATCH "http://localhost:8091/sdrangel/audio"
+
curl -X PATCH "http://localhost/sdrangel/audio"
import SWGSDRangel.*;
@@ -10061,7 +10061,7 @@ $(document).ready(function() {
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/channels?tx="
+
curl -X GET "http://localhost/sdrangel/channels?tx="
import SWGSDRangel.*;
@@ -10434,7 +10434,7 @@ except ApiException as e:
 
                         
-
curl -X PATCH "http://localhost:8091/sdrangel/dvserial?dvserial="
+
curl -X PATCH "http://localhost/sdrangel/dvserial?dvserial="
import SWGSDRangel.*;
@@ -10807,7 +10807,7 @@ except ApiException as e:
 
                         
-
curl -X DELETE "http://localhost:8091/sdrangel"
+
curl -X DELETE "http://localhost/sdrangel"
import SWGSDRangel.*;
@@ -11185,7 +11185,7 @@ except ApiException as e:
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/devicesets"
+
curl -X GET "http://localhost/sdrangel/devicesets"
import SWGSDRangel.*;
@@ -11520,7 +11520,7 @@ except ApiException as e:
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/devices?tx="
+
curl -X GET "http://localhost/sdrangel/devices?tx="
import SWGSDRangel.*;
@@ -11893,7 +11893,7 @@ except ApiException as e:
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/location"
+
curl -X GET "http://localhost/sdrangel/location"
import SWGSDRangel.*;
@@ -12228,7 +12228,7 @@ except ApiException as e:
 
                         
-
curl -X PUT "http://localhost:8091/sdrangel/location"
+
curl -X PUT "http://localhost/sdrangel/location"
import SWGSDRangel.*;
@@ -12623,7 +12623,7 @@ $(document).ready(function() {
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/logging"
+
curl -X GET "http://localhost/sdrangel/logging"
import SWGSDRangel.*;
@@ -12958,7 +12958,7 @@ except ApiException as e:
 
                         
-
curl -X PUT "http://localhost:8091/sdrangel/logging"
+
curl -X PUT "http://localhost/sdrangel/logging"
import SWGSDRangel.*;
@@ -13388,7 +13388,7 @@ $(document).ready(function() {
 
                         
-
curl -X DELETE "http://localhost:8091/sdrangel/preset"
+
curl -X DELETE "http://localhost/sdrangel/preset"
import SWGSDRangel.*;
@@ -13861,7 +13861,7 @@ $(document).ready(function() {
 
                         
-
curl -X POST "http://localhost:8091/sdrangel/preset/file"
+
curl -X POST "http://localhost/sdrangel/preset/file"
import SWGSDRangel.*;
@@ -14334,7 +14334,7 @@ $(document).ready(function() {
 
                         
-
curl -X PUT "http://localhost:8091/sdrangel/preset/file"
+
curl -X PUT "http://localhost/sdrangel/preset/file"
import SWGSDRangel.*;
@@ -14807,7 +14807,7 @@ $(document).ready(function() {
 
                         
-
curl -X GET "http://localhost:8091/sdrangel/presets"
+
curl -X GET "http://localhost/sdrangel/presets"
import SWGSDRangel.*;
@@ -15142,7 +15142,7 @@ except ApiException as e:
 
                         
-
curl -X PATCH "http://localhost:8091/sdrangel/preset"
+
curl -X PATCH "http://localhost/sdrangel/preset"
import SWGSDRangel.*;
@@ -15615,7 +15615,7 @@ $(document).ready(function() {
 
                         
-
curl -X POST "http://localhost:8091/sdrangel/preset"
+
curl -X POST "http://localhost/sdrangel/preset"
import SWGSDRangel.*;
@@ -16131,7 +16131,7 @@ $(document).ready(function() {
 
                         
-
curl -X PUT "http://localhost:8091/sdrangel/preset"
+
curl -X PUT "http://localhost/sdrangel/preset"
import SWGSDRangel.*;
@@ -16604,7 +16604,7 @@ $(document).ready(function() {
 
                         
-
curl -X GET "http://localhost:8091/sdrangel"
+
curl -X GET "http://localhost/sdrangel"
import SWGSDRangel.*;
@@ -16921,7 +16921,7 @@ except ApiException as e:
           
- Generated 2018-01-22T23:06:33.396+01:00 + Generated 2018-01-25T00:10:31.068+01:00