fixed formatting so it would show in bruno
This commit is contained in:
@@ -12,13 +12,13 @@ post {
|
|||||||
|
|
||||||
body:json {
|
body:json {
|
||||||
{
|
{
|
||||||
"email": "admin@example.com",
|
"email": "admin@example.com",
|
||||||
"username": "admin",
|
"username": "admin",
|
||||||
"password": "admin123",
|
"password": "admin123",
|
||||||
"first_name": "Admin",
|
"first_name": "Admin",
|
||||||
"last_name": "User",
|
"last_name": "User",
|
||||||
"role": "admin"
|
"role": "admin"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
script:post-response {
|
script:post-response {
|
||||||
@@ -27,6 +27,7 @@ script:post-response {
|
|||||||
return bru.setEnvVar("token", data.token, { persist: true });
|
return bru.setEnvVar("token", data.token, { persist: true });
|
||||||
}
|
}
|
||||||
onResponse(res);
|
onResponse(res);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
settings {
|
settings {
|
||||||
@@ -78,4 +79,5 @@ docs {
|
|||||||
- Use this request only when specifically creating admin accounts
|
- Use this request only when specifically creating admin accounts
|
||||||
- For regular user creation, use "Register User" request
|
- For regular user creation, use "Register User" request
|
||||||
- Admin token will have elevated privileges for administrative operations
|
- Admin token will have elevated privileges for administrative operations
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -12,12 +12,12 @@ post {
|
|||||||
|
|
||||||
body:json {
|
body:json {
|
||||||
{
|
{
|
||||||
"email": "test@example.com",
|
"email": "test@example.com",
|
||||||
"username": "testuser",
|
"username": "testuser",
|
||||||
"password": "password123",
|
"password": "password123",
|
||||||
"first_name": "Test",
|
"first_name": "Test",
|
||||||
"last_name": "User"
|
"last_name": "User"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
script:post-response {
|
script:post-response {
|
||||||
@@ -26,6 +26,7 @@ script:post-response {
|
|||||||
return bru.setEnvVar("token", data.token, { persist: true });
|
return bru.setEnvVar("token", data.token, { persist: true });
|
||||||
}
|
}
|
||||||
onResponse(res);
|
onResponse(res);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
settings {
|
settings {
|
||||||
@@ -77,4 +78,5 @@ docs {
|
|||||||
**Examples:**
|
**Examples:**
|
||||||
- First admin creation: `{"email": "admin@example.com", "username": "admin", "password": "password123", "role": "admin"}`
|
- 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"}`
|
- Regular user creation: `{"email": "user@example.com", "username": "user", "password": "password123", "role": "user"}`
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user