From abb184e0e1f6a50396c3d1ff4c945deddb3a4512 Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Mon, 20 Jan 2025 17:58:22 +0700 Subject: [PATCH] Bruno --- bruno/Auth/Register.bru | 20 ++++++++++++++++++++ bruno/Auth/Resend.bru | 15 +++++++++++++++ bruno/bruno.json | 5 +++++ 3 files changed, 40 insertions(+) create mode 100644 bruno/Auth/Register.bru create mode 100644 bruno/Auth/Resend.bru create mode 100644 bruno/bruno.json diff --git a/bruno/Auth/Register.bru b/bruno/Auth/Register.bru new file mode 100644 index 0000000..6140226 --- /dev/null +++ b/bruno/Auth/Register.bru @@ -0,0 +1,20 @@ +meta { + name: Register + type: http + seq: 1 +} + +post { + url: http://localhost:11000/api/auth/registration/register/su + body: json + auth: none +} + +body:json { + { + "captcha":"test", + "username":"su", + "email":"user@domain.com", + "password":"su" + } +} diff --git a/bruno/Auth/Resend.bru b/bruno/Auth/Resend.bru new file mode 100644 index 0000000..25c091b --- /dev/null +++ b/bruno/Auth/Resend.bru @@ -0,0 +1,15 @@ +meta { + name: Resend + type: http + seq: 2 +} + +get { + url: http://localhost:11000/api/auth/registration/resend?email=user@domain.com + body: none + auth: none +} + +params:query { + email: user@domain.com +} diff --git a/bruno/bruno.json b/bruno/bruno.json new file mode 100644 index 0000000..9924ca9 --- /dev/null +++ b/bruno/bruno.json @@ -0,0 +1,5 @@ +{ + "version": "1", + "name": "authsquare", + "type": "collection" +} \ No newline at end of file