Bläddra i källkod

New example file

Simon Grossenbacher 8 år sedan
förälder
incheckning
c60959cf10
2 ändrade filer med 50 tillägg och 72 borttagningar
  1. 50 0
      Example Config.rdproj
  2. 0 72
      Test-Config.rdproj

+ 50 - 0
Example Config.rdproj

@@ -0,0 +1,50 @@
+{
+	"Presets": {
+		"Presets": "GET: Simple GET\r\nGET: GET Extra Headers\r\nGET: Use Basic Auth Example\r\nGET: Example URL Parameters\r\n",
+		"LastUsed": 3
+	},
+	"Preset_0": {
+		"BaseURL": "https://httpbin.org/get",
+		"Method": 0,
+		"URLParams": "",
+		"PostData": "",
+		"ExtraHeaders": "",
+		"PostDataContentType": "application/json",
+		"UseBasicAuth": false,
+		"AuthUsername": "",
+		"AuthPassword": ""
+	},
+	"Preset_1": {
+		"BaseURL": "https://httpbin.org/headers",
+		"Method": 0,
+		"URLParams": "",
+		"PostData": "",
+		"ExtraHeaders": "X-TestHeader=TestValue",
+		"PostDataContentType": "application/json",
+		"UseBasicAuth": false,
+		"AuthUsername": "",
+		"AuthPassword": ""
+	},
+	"Preset_2": {
+		"BaseURL": "https://httpbin.org/basic-auth/user/pwd",
+		"Method": 0,
+		"URLParams": "",
+		"PostData": "",
+		"ExtraHeaders": "X-TestHeader=TestValue",
+		"PostDataContentType": "application/json",
+		"UseBasicAuth": true,
+		"AuthUsername": "3f0k+uBHWf2sPtwW4tYMUA==",
+		"AuthPassword": "C35R83xuSqKQ93OJME1BZA=="
+	},
+	"Preset_3": {
+		"BaseURL": "https://httpbin.org/get",
+		"Method": 0,
+		"URLParams": "arg1=value1\r\narg2=value2",
+		"PostData": "",
+		"ExtraHeaders": "",
+		"PostDataContentType": "application/json",
+		"UseBasicAuth": false,
+		"AuthUsername": "",
+		"AuthPassword": ""
+	}
+}

+ 0 - 72
Test-Config.rdproj

@@ -1,72 +0,0 @@
-{
-	"Presets": {
-		"Presets": "Default\r\nMERP\r\nTest IP\r\nTest Headers\r\nSample POST\r\nZWave direkt\r\n",
-		"LastUsed": 5
-	},
-	"Preset_0": {
-		"BaseURL": "",
-		"URLParams": "",
-		"Method": 0,
-		"PostData": "",
-		"ExtraHeaders": "",
-		"PostDataContentType": "application/json",
-		"UseBasicAuth": false,
-		"AuthUsername": "",
-		"AuthPassword": ""
-	},
-	"Preset_1": {
-		"BaseURL": "https://merp.iblnet.ch/MobileERPService/",
-		"URLParams": "action=GetPresentoDayView\r\nday=20.10.2016\r\ntoken=70f12f9439554198b2e6965b2b14b9e6",
-		"ExtraHeaders": "headers=essd",
-		"Method": 0,
-		"PostData": "post",
-		"PostDataContentType": "application/json",
-		"UseBasicAuth": false,
-		"AuthUsername": "",
-		"AuthPassword": ""
-	},
-	"Preset_2": {
-		"BaseURL": "http://ip.jsontest.com/",
-		"Method": 0,
-		"URLParams": "",
-		"PostData": "",
-		"ExtraHeaders": "",
-		"PostDataContentType": "application/json",
-		"UseBasicAuth": false,
-		"AuthUsername": "",
-		"AuthPassword": ""
-	},
-	"Preset_3": {
-		"BaseURL": "http://headers.jsontest.com/",
-		"Method": 1,
-		"URLParams": "",
-		"PostData": "",
-		"ExtraHeaders": "X-Code=5",
-		"PostDataContentType": "application/json",
-		"UseBasicAuth": false,
-		"AuthUsername": "",
-		"AuthPassword": ""
-	},
-	"Preset_4": {
-		"BaseURL": "https://posttestserver.com/post.php",
-		"Method": 1,
-		"URLParams": "",
-		"PostData": "Hello=Hello\r\noleeeee",
-		"ExtraHeaders": "hallo=hallo",
-		"PostDataContentType": "application/x-www-form-urlencoded",
-		"UseBasicAuth": false,
-		"AuthUsername": "ThPDSfhDWlUyuqX9fYp7BA==",
-		"AuthPassword": "ThPDSfhDWlUyuqX9fYp7BA=="
-	},
-	"Preset_5": {
-		"BaseURL": "http://192.168.30.60:8083/ZAutomation/api/v1/devices",
-		"Method": 0,
-		"URLParams": "",
-		"PostData": "",
-		"ExtraHeaders": "",
-		"PostDataContentType": "application/json",
-		"UseBasicAuth": true,
-		"AuthUsername": "lhmg2d7oD+XEqAb53vskWA==",
-		"AuthPassword": "Dzqw3DbtjDmRXWKn2o/GxRVRrxwhHqldEiLV9rFFEU8="
-	}
-}