feat: modular domain driven boilerplate
This commit is contained in:
9
.bruno/bruno.json
Normal file
9
.bruno/bruno.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "Valkyr",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
||||
3
.bruno/environments/localhost.bru
Normal file
3
.bruno/environments/localhost.bru
Normal file
@@ -0,0 +1,3 @@
|
||||
vars {
|
||||
url: http://localhost:8370/api/v1
|
||||
}
|
||||
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
|
||||
}
|
||||
19
.bruno/identity/get-by-id.bru
Normal file
19
.bruno/identity/get-by-id.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Get By ID
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{url}}/identities/:id
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
id: 16b88034-ca82-4a8e-9fe5-13bd0dd29b75
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
28
.bruno/identity/login/code.bru
Normal file
28
.bruno/identity/login/code.bru
Normal file
@@ -0,0 +1,28 @@
|
||||
meta {
|
||||
name: Code
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{url}}/identities/login/code/:identityId/code/:codeId/:value
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
identityId: efefa471-905d-4702-bd0a-863d8cf70424
|
||||
codeId: 7055b769-0814-47b8-836e-cfef2d8c2e68
|
||||
value: 00597
|
||||
}
|
||||
|
||||
script:post-response {
|
||||
const cookies = res.getHeader('set-cookie');
|
||||
if (cookies) {
|
||||
bru.setVar("cookie", cookies.join('; '));
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
22
.bruno/identity/login/email.bru
Normal file
22
.bruno/identity/login/email.bru
Normal file
@@ -0,0 +1,22 @@
|
||||
meta {
|
||||
name: Email
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{url}}/identities/login/email
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"base": "http://localhost:5170",
|
||||
"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: 2
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
15
.bruno/identity/me.bru
Normal file
15
.bruno/identity/me.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Me
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{url}}/identities/me
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
25
.bruno/identity/register.bru
Normal file
25
.bruno/identity/register.bru
Normal file
@@ -0,0 +1,25 @@
|
||||
meta {
|
||||
name: Register
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{url}}/identities
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name": {
|
||||
"given": "Jane",
|
||||
"family": "Doe"
|
||||
},
|
||||
"email": "jane.doe@fixture.none"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
Reference in New Issue
Block a user