Template
1
0

feat: checkpoint

This commit is contained in:
2025-11-23 22:57:43 +01:00
parent 7df57522d2
commit 5d45e273ee
160 changed files with 10160 additions and 1476 deletions

19
.bruno/identity/Get.bru Normal file
View File

@@ -0,0 +1,19 @@
meta {
name: Get
type: http
seq: 2
}
get {
url: {{url}}/identity/:id
body: none
auth: inherit
}
params:path {
id:
}
settings {
encodeUrl: true
}

32
.bruno/identity/Roles.bru Normal file
View File

@@ -0,0 +1,32 @@
meta {
name: Roles
type: http
seq: 4
}
put {
url: {{url}}/identity/:id/roles
body: json
auth: inherit
}
params:path {
id:
}
body:json {
[
{
"type": "add",
"roles": []
},
{
"type": "remove",
"roles": []
}
]
}
settings {
encodeUrl: true
}

View File

@@ -0,0 +1,43 @@
meta {
name: Update
type: http
seq: 4
}
put {
url: {{url}}/identity/:id
body: json
auth: inherit
}
params:path {
id:
}
body:json {
[
{
"type": "add",
"key": "",
"value": ""
},
{
"type": "push",
"key": "",
"values": ""
},
{
"type": "pop",
"key": "",
"values": ""
},
{
"type": "remove",
"key": ""
}
]
}
settings {
encodeUrl: true
}

View File

@@ -0,0 +1,8 @@
meta {
name: Identity
seq: 1
}
auth {
mode: inherit
}

View File

@@ -0,0 +1,29 @@
meta {
name: Code
type: http
seq: 3
}
post {
url: {{url}}/identity/login/code
body: json
auth: inherit
}
body:json {
{
"email": "john.doe@fixture.none",
"otp": ""
}
}
script:post-response {
const cookies = res.getHeader('set-cookie');
if (cookies) {
bru.setVar("cookie", cookies.join('; '));
}
}
settings {
encodeUrl: true
}

View File

@@ -0,0 +1,21 @@
meta {
name: Email
type: http
seq: 2
}
post {
url: {{url}}/identity/login/email
body: json
auth: inherit
}
body:json {
{
"email": "john.doe@fixture.none"
}
}
settings {
encodeUrl: true
}

View File

@@ -0,0 +1,8 @@
meta {
name: Login
seq: 3
}
auth {
mode: inherit
}

View File

@@ -0,0 +1,21 @@
meta {
name: Sudo
type: http
seq: 1
}
post {
url: {{url}}/identities/login/sudo
body: json
auth: inherit
}
body:json {
{
"email": "john.doe@fixture.none"
}
}
settings {
encodeUrl: true
}

15
.bruno/identity/me.bru Normal file
View File

@@ -0,0 +1,15 @@
meta {
name: Me
type: http
seq: 1
}
get {
url: {{url}}/identity/me
body: none
auth: inherit
}
settings {
encodeUrl: true
}