feat: checkpoint
This commit is contained in:
19
.bruno/identity/Get.bru
Normal file
19
.bruno/identity/Get.bru
Normal 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
32
.bruno/identity/Roles.bru
Normal 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
|
||||
}
|
||||
43
.bruno/identity/Update.bru
Normal file
43
.bruno/identity/Update.bru
Normal 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
|
||||
}
|
||||
8
.bruno/identity/folder.bru
Normal file
8
.bruno/identity/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: Identity
|
||||
seq: 1
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
29
.bruno/identity/login/code.bru
Normal file
29
.bruno/identity/login/code.bru
Normal 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
|
||||
}
|
||||
21
.bruno/identity/login/email.bru
Normal file
21
.bruno/identity/login/email.bru
Normal 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
|
||||
}
|
||||
8
.bruno/identity/login/folder.bru
Normal file
8
.bruno/identity/login/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: Login
|
||||
seq: 3
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
21
.bruno/identity/login/sudo.bru
Normal file
21
.bruno/identity/login/sudo.bru
Normal 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
15
.bruno/identity/me.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Me
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{url}}/identity/me
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
Reference in New Issue
Block a user