diff --git a/bruno/Auth/2fa-disable.bru b/bruno/Auth/2fa-disable.bru new file mode 100644 index 00000000..c98539c7 --- /dev/null +++ b/bruno/Auth/2fa-disable.bru @@ -0,0 +1,18 @@ +meta { + name: 2fa-disable + type: http + seq: 6 +} + +post { + url: http://localhost:3000/api/v1/auth/2fa/disable + body: json + auth: none +} + +body:json { + { + "password": "aaaaa-1A", + "code": "377289" + } +} diff --git a/bruno/Auth/2fa-enable.bru b/bruno/Auth/2fa-enable.bru new file mode 100644 index 00000000..a3a01d17 --- /dev/null +++ b/bruno/Auth/2fa-enable.bru @@ -0,0 +1,17 @@ +meta { + name: 2fa-enable + type: http + seq: 4 +} + +post { + url: http://localhost:3000/api/v1/auth/2fa/enable + body: json + auth: none +} + +body:json { + { + "code": "374138" + } +} diff --git a/bruno/Auth/2fa-request.bru b/bruno/Auth/2fa-request.bru new file mode 100644 index 00000000..fcf0c986 --- /dev/null +++ b/bruno/Auth/2fa-request.bru @@ -0,0 +1,17 @@ +meta { + name: 2fa-request + type: http + seq: 5 +} + +post { + url: http://localhost:3000/api/v1/auth/2fa/request + body: json + auth: none +} + +body:json { + { + "password": "aaaaa-1A" + } +} diff --git a/bruno/Auth/change-password.bru b/bruno/Auth/change-password.bru new file mode 100644 index 00000000..7d1c707e --- /dev/null +++ b/bruno/Auth/change-password.bru @@ -0,0 +1,18 @@ +meta { + name: change-password + type: http + seq: 9 +} + +post { + url: http://localhost:3000/api/v1/auth/change-password + body: json + auth: none +} + +body:json { + { + "oldPassword": "", + "newPassword": "" + } +} diff --git a/bruno/Auth/login.bru b/bruno/Auth/login.bru index 25e6406e..ac90083b 100644 --- a/bruno/Auth/login.bru +++ b/bruno/Auth/login.bru @@ -4,8 +4,15 @@ meta { seq: 1 } -get { - url: - body: none +post { + url: http://localhost:3000/api/v1/auth/login + body: json auth: none } + +body:json { + { + "email": "milo@fossorial.io", + "password": "Password123!" + } +} diff --git a/bruno/Auth/logout.bru b/bruno/Auth/logout.bru new file mode 100644 index 00000000..7dd134cc --- /dev/null +++ b/bruno/Auth/logout.bru @@ -0,0 +1,11 @@ +meta { + name: logout + type: http + seq: 3 +} + +post { + url: http://localhost:3000/api/v1/auth/logout + body: none + auth: none +} diff --git a/bruno/Auth/reset-password-request.bru b/bruno/Auth/reset-password-request.bru new file mode 100644 index 00000000..9d4bfc77 --- /dev/null +++ b/bruno/Auth/reset-password-request.bru @@ -0,0 +1,17 @@ +meta { + name: reset-password-request + type: http + seq: 10 +} + +post { + url: http://localhost:3000/api/v1/auth/reset-password/request + body: json + auth: none +} + +body:json { + { + "email": "milo@fossorial.io" + } +} diff --git a/bruno/Auth/reset-password.bru b/bruno/Auth/reset-password.bru new file mode 100644 index 00000000..8d567b16 --- /dev/null +++ b/bruno/Auth/reset-password.bru @@ -0,0 +1,19 @@ +meta { + name: reset-password + type: http + seq: 11 +} + +post { + url: http://localhost:3000/api/v1/auth/reset-password + body: json + auth: none +} + +body:json { + { + "token": "3uhsbom72dwdhboctwrtntyd6jrlg4jtf5oaxy4k", + "newPassword": "aaaaa-1A", + "code": "6irqCGR3" + } +} diff --git a/bruno/Auth/signup.bru b/bruno/Auth/signup.bru index 7937fad6..84592ee8 100644 --- a/bruno/Auth/signup.bru +++ b/bruno/Auth/signup.bru @@ -4,8 +4,15 @@ meta { seq: 2 } -get { - url: - body: none +put { + url: http://localhost:3000/api/v1/auth/signup + body: json auth: none } + +body:json { + { + "email": "milo@fossorial.io", + "password": "Password123!" + } +} diff --git a/bruno/Auth/verify-email-request.bru b/bruno/Auth/verify-email-request.bru new file mode 100644 index 00000000..72189d1b --- /dev/null +++ b/bruno/Auth/verify-email-request.bru @@ -0,0 +1,11 @@ +meta { + name: verify-email-request + type: http + seq: 8 +} + +post { + url: http://localhost:3000/api/v1/auth/verify-email/request + body: none + auth: none +} diff --git a/bruno/Auth/verify-email.bru b/bruno/Auth/verify-email.bru index 5a6163bf..a06a7108 100644 --- a/bruno/Auth/verify-email.bru +++ b/bruno/Auth/verify-email.bru @@ -1,18 +1,17 @@ meta { name: verify-email type: http - seq: 3 + seq: 7 } -put { - url: http://localhost:3000/api/v1/auth/signup +post { + url: http://localhost:3000/api/v1/auth/verify-email body: json auth: none } body:json { { - "email": "owen@fossorial.io", - "password": "Password123!" + "code": "50317187" } } diff --git a/bruno/bruno.json b/bruno/bruno.json index ba373216..f19d936a 100644 --- a/bruno/bruno.json +++ b/bruno/bruno.json @@ -1,9 +1,13 @@ { - "version": "1", - "name": "Pangolin", - "type": "collection", - "ignore": [ - "node_modules", - ".git" - ] + "version": "1", + "name": "Pangolin", + "type": "collection", + "ignore": [ + "node_modules", + ".git" + ], + "presets": { + "requestType": "http", + "requestUrl": "http://localhost:3000/api/v1" + } } \ No newline at end of file