Template
1
0

feat: modular domain driven boilerplate

This commit is contained in:
2025-09-22 01:29:55 +02:00
parent 2433f59d1a
commit 9be3230c84
160 changed files with 2468 additions and 1525 deletions

9
.bruno/bruno.json Normal file
View File

@@ -0,0 +1,9 @@
{
"version": "1",
"name": "Valkyr",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}

View File

@@ -0,0 +1,3 @@
vars {
url: http://localhost:8370/api/v1
}

View File

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

View 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
}

View 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
}

View 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
}

View File

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

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

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

View 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
}