diff --git a/docs/api/auth/Login user.bru b/docs/api/auth/Login user.bru new file mode 100644 index 0000000..b12ae7a --- /dev/null +++ b/docs/api/auth/Login user.bru @@ -0,0 +1,23 @@ +meta { + name: Login user + type: http + seq: 2 +} + +post { + url: {{base_url}}/api/auth/login + body: json + auth: inherit +} + +body:json { + { + "login": "tsivinsky", + "password": "Daniil2000" + } +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/docs/api/auth/Logout user.bru b/docs/api/auth/Logout user.bru new file mode 100644 index 0000000..248860d --- /dev/null +++ b/docs/api/auth/Logout user.bru @@ -0,0 +1,16 @@ +meta { + name: Logout user + type: http + seq: 2 +} + +post { + url: {{base_url}}/api/auth/logout + body: none + auth: inherit +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/docs/api/auth/Register new user.bru b/docs/api/auth/Register new user.bru new file mode 100644 index 0000000..9dd544a --- /dev/null +++ b/docs/api/auth/Register new user.bru @@ -0,0 +1,23 @@ +meta { + name: Register new user + type: http + seq: 1 +} + +post { + url: {{base_url}}/api/auth/register + body: json + auth: inherit +} + +body:json { + { + "login": "tsivinsky", + "password": "Daniil2000" + } +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/docs/api/auth/folder.bru b/docs/api/auth/folder.bru new file mode 100644 index 0000000..4394d36 --- /dev/null +++ b/docs/api/auth/folder.bru @@ -0,0 +1,8 @@ +meta { + name: auth + seq: 2 +} + +auth { + mode: inherit +} diff --git a/docs/api/bruno.json b/docs/api/bruno.json new file mode 100644 index 0000000..395b7e3 --- /dev/null +++ b/docs/api/bruno.json @@ -0,0 +1,9 @@ +{ + "version": "1", + "name": "games-wishlist", + "type": "collection", + "ignore": [ + "node_modules", + ".git" + ] +} \ No newline at end of file diff --git a/docs/api/environments/local.bru b/docs/api/environments/local.bru new file mode 100644 index 0000000..a7ecabd --- /dev/null +++ b/docs/api/environments/local.bru @@ -0,0 +1,3 @@ +vars { + base_url: http://localhost:5000 +}