diff --git a/bruno/Login.bru b/bruno/Login.bru new file mode 100644 index 0000000..b9179bd --- /dev/null +++ b/bruno/Login.bru @@ -0,0 +1,11 @@ +meta { + name: Login + type: http + seq: 1 +} + +post { + url: http://localhost:8080/api/2/auth/test/login.json + body: none + auth: inherit +} diff --git a/bruno/Subscriptions API/Get Subscriptions for device.bru b/bruno/Subscriptions API/Get Subscriptions for device.bru new file mode 100644 index 0000000..a87a78c --- /dev/null +++ b/bruno/Subscriptions API/Get Subscriptions for device.bru @@ -0,0 +1,16 @@ +meta { + name: Get Subscriptions for device + type: http + seq: 2 +} + +get { + url: http://localhost:8080/subscriptions/:user/:device_id + body: none + auth: inherit +} + +params:path { + user: test + device_id: device_one.json +} diff --git a/bruno/Subscriptions API/Get subscriptions for user.bru b/bruno/Subscriptions API/Get subscriptions for user.bru new file mode 100644 index 0000000..e3dd33b --- /dev/null +++ b/bruno/Subscriptions API/Get subscriptions for user.bru @@ -0,0 +1,15 @@ +meta { + name: Get subscriptions for user + type: http + seq: 3 +} + +get { + url: http://localhost:8080/subscriptions/:user + body: none + auth: inherit +} + +params:path { + user: test.json +} diff --git a/bruno/Subscriptions API/Upload subscriptions for device.bru b/bruno/Subscriptions API/Upload subscriptions for device.bru new file mode 100644 index 0000000..b26850a --- /dev/null +++ b/bruno/Subscriptions API/Upload subscriptions for device.bru @@ -0,0 +1,25 @@ +meta { + name: Upload subscriptions for device + type: http + seq: 1 +} + +put { + url: http://localhost:8080/subscriptions/:user/:device_id + body: json + auth: basic +} + +params:path { + device_id: device_one.json + user: test +} + +auth:basic { + username: test + password: test +} + +body:json { + ["https://example1.com", "https://example2.com"] +} diff --git a/bruno/bruno.json b/bruno/bruno.json new file mode 100644 index 0000000..9e9dac6 --- /dev/null +++ b/bruno/bruno.json @@ -0,0 +1,15 @@ +{ + "version": "1", + "name": "Otter", + "type": "collection", + "ignore": [ + "node_modules", + ".git" + ], + "size": 0, + "filesCount": 0, + "presets": { + "requestType": "http", + "requestUrl": "http://localhost:8080" + } +} \ No newline at end of file diff --git a/bruno/collection.bru b/bruno/collection.bru new file mode 100644 index 0000000..1c3a603 --- /dev/null +++ b/bruno/collection.bru @@ -0,0 +1,8 @@ +auth { + mode: basic +} + +auth:basic { + username: test + password: test +}