feat: 0.0.1

This commit is contained in:
FernandoJVideira committed 2026-01-08 01:15:07 +00:00
commit 961bdd81d4
146 files changed
+10444

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
meta {
name: Login
type: http
seq: 1
}
post {
url: {{uri}}/auth/login
body: json
auth: inherit
}
body:json {
{
"username":"test",
"password":"TestPassword"
}
}
script:post-response {
const data = res.getBody();
const token = data.data.access_token;
const refresh_token = data.data.refresh_token;
bru.setEnvVar("token", token);
bru.setEnvVar("refresh_token", refresh_token);
}
settings {
encodeUrl: true
timeout: 0
}
+30
View File
@@ -0,0 +1,30 @@
meta {
name: Refresh
type: http
seq: 2
}
post {
url: {{uri}}/auth/refresh
body: json
auth: inherit
}
body:json {
{
"refresh_token": "{{refresh_token}}"
}
}
script:post-response {
const data = res.getBody();
const token = data.data.access_token;
bru.setEnvVar("token", token);
}
settings {
encodeUrl: true
timeout: 0
}
+8
View File
@@ -0,0 +1,8 @@
meta {
name: Auth
seq: 1
}
auth {
mode: inherit
}
+15
View File
@@ -0,0 +1,15 @@
meta {
name: Get User
type: http
seq: 2
}
get {
url: {{uri
body: none
auth: inherit
}
settings {
encodeUrl: true
}
+20
View File
@@ -0,0 +1,20 @@
meta {
name: Me
type: http
seq: 1
}
get {
url: {{uri}}/users/me
body: none
auth: bearer
}
auth:bearer {
token: {{token}}
}
settings {
encodeUrl: true
timeout: 0
}
+8
View File
@@ -0,0 +1,8 @@
meta {
name: Users
seq: 2
}
auth {
mode: inherit
}
+8
View File
@@ -0,0 +1,8 @@
meta {
name: HTTP
seq: 2
}
auth {
mode: inherit
}
+9
View File
@@ -0,0 +1,9 @@
{
"version": "1",
"name": "TemplateAPI",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}
@@ -0,0 +1,7 @@
vars {
uri: http://localhost:8080/api/v1
}
vars:secret [
token,
refresh_token
]