diff --git a/bruno/user/admin/Register Admin User.bru b/bruno/user/admin/Register Admin User.bru index c566e4e..3295771 100644 --- a/bruno/user/admin/Register Admin User.bru +++ b/bruno/user/admin/Register Admin User.bru @@ -12,13 +12,13 @@ post { body:json { { - "email": "admin@example.com", - "username": "admin", - "password": "admin123", - "first_name": "Admin", - "last_name": "User", - "role": "admin" - } + "email": "admin@example.com", + "username": "admin", + "password": "admin123", + "first_name": "Admin", + "last_name": "User", + "role": "admin" + } } script:post-response { @@ -27,6 +27,7 @@ script:post-response { return bru.setEnvVar("token", data.token, { persist: true }); } onResponse(res); + } settings { @@ -78,4 +79,5 @@ docs { - Use this request only when specifically creating admin accounts - For regular user creation, use "Register User" request - Admin token will have elevated privileges for administrative operations - } \ No newline at end of file + +} diff --git a/bruno/user/auth/Register User.bru b/bruno/user/auth/Register User.bru index ea6b996..f73d288 100644 --- a/bruno/user/auth/Register User.bru +++ b/bruno/user/auth/Register User.bru @@ -12,12 +12,12 @@ post { body:json { { - "email": "test@example.com", - "username": "testuser", - "password": "password123", - "first_name": "Test", - "last_name": "User" - } + "email": "test@example.com", + "username": "testuser", + "password": "password123", + "first_name": "Test", + "last_name": "User" + } } script:post-response { @@ -26,6 +26,7 @@ script:post-response { return bru.setEnvVar("token", data.token, { persist: true }); } onResponse(res); + } settings { @@ -77,4 +78,5 @@ docs { **Examples:** - First admin creation: `{"email": "admin@example.com", "username": "admin", "password": "password123", "role": "admin"}` - Regular user creation: `{"email": "user@example.com", "username": "user", "password": "password123", "role": "user"}` - } + +}