chore: remove deprecated authentication and environment configuration files
Deploy to Coolify / deploy (push) Successful in 3s
Deploy to Coolify / deploy (push) Successful in 3s
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
# Secrets
|
|
||||||
.env*
|
|
||||||
|
|
||||||
# Dependencies
|
|
||||||
node_modules
|
|
||||||
|
|
||||||
# OS files
|
|
||||||
.DS_Store
|
|
||||||
Thumbs.db
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Forgot Password
|
|
||||||
type: http
|
|
||||||
seq: 6
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: POST
|
|
||||||
url: "{{base_url}}/api/v1/auth/forgot-password"
|
|
||||||
body:
|
|
||||||
type: json
|
|
||||||
data: |-
|
|
||||||
{
|
|
||||||
"email": "felipe@felipecncloud.com"
|
|
||||||
}
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Login
|
|
||||||
type: http
|
|
||||||
seq: 2
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: POST
|
|
||||||
url: "{{base_url}}/api/v1/auth/login"
|
|
||||||
body:
|
|
||||||
type: json
|
|
||||||
data: |-
|
|
||||||
{
|
|
||||||
"email": "felipe@felipecncloud.com",
|
|
||||||
"password": "12345678"
|
|
||||||
}
|
|
||||||
|
|
||||||
script:
|
|
||||||
res: |
|
|
||||||
if (res.status === 200) {
|
|
||||||
bru.setEnvVar("access_token", res.getBody().access_token);
|
|
||||||
bru.setEnvVar("refresh_token", res.getBody().refresh_token);
|
|
||||||
}
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Logout
|
|
||||||
type: http
|
|
||||||
seq: 5
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: POST
|
|
||||||
url: "{{base_url}}/api/v1/auth/logout"
|
|
||||||
auth:
|
|
||||||
type: bearer
|
|
||||||
token: "{{access_token}}"
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
info:
|
|
||||||
name: OAuth Google
|
|
||||||
type: http
|
|
||||||
seq: 3
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: POST
|
|
||||||
url: "{{base_url}}/api/v1/auth/oauth/google"
|
|
||||||
body:
|
|
||||||
type: json
|
|
||||||
data: |-
|
|
||||||
{
|
|
||||||
"id_token": "{{google_id_token}}"
|
|
||||||
}
|
|
||||||
|
|
||||||
script:
|
|
||||||
res: |
|
|
||||||
if (res.status === 200) {
|
|
||||||
bru.setEnvVar("access_token", res.getBody().access_token);
|
|
||||||
bru.setEnvVar("refresh_token", res.getBody().refresh_token);
|
|
||||||
}
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Refresh Token
|
|
||||||
type: http
|
|
||||||
seq: 4
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: POST
|
|
||||||
url: "{{base_url}}/api/v1/auth/refresh"
|
|
||||||
body:
|
|
||||||
type: json
|
|
||||||
data: |-
|
|
||||||
{
|
|
||||||
"refresh_token": "{{refresh_token}}"
|
|
||||||
}
|
|
||||||
|
|
||||||
script:
|
|
||||||
res: |
|
|
||||||
if (res.status === 200) {
|
|
||||||
bru.setEnvVar("access_token", res.getBody().access_token);
|
|
||||||
bru.setEnvVar("refresh_token", res.getBody().refresh_token);
|
|
||||||
}
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Register
|
|
||||||
type: http
|
|
||||||
seq: 1
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: POST
|
|
||||||
url: "{{base_url}}/api/v1/auth/register"
|
|
||||||
body:
|
|
||||||
type: json
|
|
||||||
data: |-
|
|
||||||
{
|
|
||||||
"email": "felipecaninn18@gmail.com",
|
|
||||||
"password": "12345678"
|
|
||||||
}
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Reset Password
|
|
||||||
type: http
|
|
||||||
seq: 8
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: POST
|
|
||||||
url: "{{base_url}}/api/v1/auth/reset-password"
|
|
||||||
body:
|
|
||||||
type: json
|
|
||||||
data: |-
|
|
||||||
{
|
|
||||||
"token": "{{reset_token}}",
|
|
||||||
"new_password": "novaSenha123"
|
|
||||||
}
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Verify Email
|
|
||||||
type: http
|
|
||||||
seq: 7
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: POST
|
|
||||||
url: "{{base_url}}/api/v1/auth/verify-email"
|
|
||||||
body:
|
|
||||||
type: json
|
|
||||||
data: |-
|
|
||||||
{
|
|
||||||
"token": "{{email_verify_token}}"
|
|
||||||
}
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Auth
|
|
||||||
type: folder
|
|
||||||
seq: 2
|
|
||||||
|
|
||||||
request: {}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Dashboard
|
|
||||||
type: http
|
|
||||||
seq: 1
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: GET
|
|
||||||
url: "{{base_url}}/api/v1/dashboard"
|
|
||||||
auth:
|
|
||||||
type: bearer
|
|
||||||
token: "{{access_token}}"
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Create Filament
|
|
||||||
type: http
|
|
||||||
seq: 2
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: POST
|
|
||||||
url: "{{base_url}}/api/v1/filaments"
|
|
||||||
body:
|
|
||||||
type: json
|
|
||||||
data: |-
|
|
||||||
{
|
|
||||||
"material": "PETG",
|
|
||||||
"brand": "Elegoo",
|
|
||||||
"model": "Rapid",
|
|
||||||
"color_hex": "#FF5733",
|
|
||||||
"spool_preset_id": "{{preset_id}}",
|
|
||||||
"total_weight_g": 527,
|
|
||||||
"temp_hotend_c": 250,
|
|
||||||
"temp_bed_c": 70,
|
|
||||||
"flow_factor_pct": 0.0033,
|
|
||||||
"notes": "Filamento"
|
|
||||||
}
|
|
||||||
auth:
|
|
||||||
type: bearer
|
|
||||||
token: "{{access_token}}"
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Delete Filament
|
|
||||||
type: http
|
|
||||||
seq: 5
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: DELETE
|
|
||||||
url: "{{base_url}}/api/v1/filaments/{{filament_id}}"
|
|
||||||
auth:
|
|
||||||
type: bearer
|
|
||||||
token: "{{access_token}}"
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Export Label SVG
|
|
||||||
type: http
|
|
||||||
seq: 7
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: GET
|
|
||||||
url: "{{base_url}}/api/v1/filaments/{{filament_id}}/label.svg"
|
|
||||||
params:
|
|
||||||
- name: width_mm
|
|
||||||
value: "80"
|
|
||||||
enabled: true
|
|
||||||
- name: height_mm
|
|
||||||
value: "30"
|
|
||||||
enabled: true
|
|
||||||
auth:
|
|
||||||
type: bearer
|
|
||||||
token: "{{access_token}}"
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Get Filament
|
|
||||||
type: http
|
|
||||||
seq: 3
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: GET
|
|
||||||
url: "{{base_url}}/api/v1/filaments/{{filament_id}}"
|
|
||||||
auth:
|
|
||||||
type: bearer
|
|
||||||
token: "{{access_token}}"
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Get QR Code
|
|
||||||
type: http
|
|
||||||
seq: 6
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: GET
|
|
||||||
url: "{{base_url}}/api/v1/filaments/{{filament_id}}/qrcode"
|
|
||||||
auth:
|
|
||||||
type: bearer
|
|
||||||
token: "{{access_token}}"
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
info:
|
|
||||||
name: List Filaments
|
|
||||||
type: http
|
|
||||||
seq: 1
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: GET
|
|
||||||
url: "{{base_url}}/api/v1/filaments"
|
|
||||||
params:
|
|
||||||
- name: page
|
|
||||||
value: "1"
|
|
||||||
enabled: true
|
|
||||||
- name: per_page
|
|
||||||
value: "20"
|
|
||||||
enabled: true
|
|
||||||
- name: material
|
|
||||||
value: PLA
|
|
||||||
enabled: false
|
|
||||||
- name: brand
|
|
||||||
value: Bambu
|
|
||||||
enabled: false
|
|
||||||
- name: search
|
|
||||||
value: ""
|
|
||||||
enabled: false
|
|
||||||
- name: stock_level
|
|
||||||
value: low
|
|
||||||
enabled: false
|
|
||||||
auth:
|
|
||||||
type: bearer
|
|
||||||
token: "{{access_token}}"
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Update Filament
|
|
||||||
type: http
|
|
||||||
seq: 4
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: PUT
|
|
||||||
url: "{{base_url}}/api/v1/filaments/{{filament_id}}"
|
|
||||||
body:
|
|
||||||
type: json
|
|
||||||
data: |-
|
|
||||||
{
|
|
||||||
"material": "PETG",
|
|
||||||
"brand": "Bambu",
|
|
||||||
"model": "PETG Basic",
|
|
||||||
"color_hex": "#33A1FF",
|
|
||||||
"spool_preset_id": "{{preset_id}}",
|
|
||||||
"total_weight_g": 1000,
|
|
||||||
"temp_hotend_c": 240,
|
|
||||||
"temp_bed_c": 70,
|
|
||||||
"flow_factor_pct": 1.0,
|
|
||||||
"notes": "Atualizado"
|
|
||||||
}
|
|
||||||
auth:
|
|
||||||
type: bearer
|
|
||||||
token: "{{access_token}}"
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Filaments
|
|
||||||
type: folder
|
|
||||||
seq: 3
|
|
||||||
|
|
||||||
request: {}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Create Spool Preset
|
|
||||||
type: http
|
|
||||||
seq: 2
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: POST
|
|
||||||
url: "{{base_url}}/api/v1/spool-presets"
|
|
||||||
body:
|
|
||||||
type: json
|
|
||||||
data: |-
|
|
||||||
{
|
|
||||||
"name": "Carretel Customizado 300g",
|
|
||||||
"spool_weight_g": 300
|
|
||||||
}
|
|
||||||
auth:
|
|
||||||
type: bearer
|
|
||||||
token: "{{access_token}}"
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Delete Spool Preset
|
|
||||||
type: http
|
|
||||||
seq: 4
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: DELETE
|
|
||||||
url: "{{base_url}}/api/v1/spool-presets/{{preset_id}}"
|
|
||||||
auth:
|
|
||||||
type: bearer
|
|
||||||
token: "{{access_token}}"
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
info:
|
|
||||||
name: List Spool Presets
|
|
||||||
type: http
|
|
||||||
seq: 1
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: GET
|
|
||||||
url: "{{base_url}}/api/v1/spool-presets"
|
|
||||||
auth:
|
|
||||||
type: bearer
|
|
||||||
token: "{{access_token}}"
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Update Spool Preset
|
|
||||||
type: http
|
|
||||||
seq: 3
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: PUT
|
|
||||||
url: "{{base_url}}/api/v1/spool-presets/{{preset_id}}"
|
|
||||||
body:
|
|
||||||
type: json
|
|
||||||
data: |-
|
|
||||||
{
|
|
||||||
"name": "Elegoo (Papelão)",
|
|
||||||
"spool_weight_g": 156
|
|
||||||
}
|
|
||||||
auth:
|
|
||||||
type: bearer
|
|
||||||
token: "{{access_token}}"
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
info:
|
|
||||||
name: SpoolPresets
|
|
||||||
type: folder
|
|
||||||
seq: 4
|
|
||||||
|
|
||||||
request: {}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Delete Me
|
|
||||||
type: http
|
|
||||||
seq: 3
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: DELETE
|
|
||||||
url: "{{base_url}}/api/v1/users/me"
|
|
||||||
auth:
|
|
||||||
type: bearer
|
|
||||||
token: "{{access_token}}"
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Get Me
|
|
||||||
type: http
|
|
||||||
seq: 1
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: GET
|
|
||||||
url: "{{base_url}}/api/v1/users/me"
|
|
||||||
auth:
|
|
||||||
type: bearer
|
|
||||||
token: "{{access_token}}"
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Update Me
|
|
||||||
type: http
|
|
||||||
seq: 2
|
|
||||||
|
|
||||||
http:
|
|
||||||
method: PUT
|
|
||||||
url: "{{base_url}}/api/v1/users/me"
|
|
||||||
body:
|
|
||||||
type: json
|
|
||||||
data: |-
|
|
||||||
{
|
|
||||||
"email": "felipe@felipecncloud.com"
|
|
||||||
}
|
|
||||||
auth:
|
|
||||||
type: bearer
|
|
||||||
token: "{{access_token}}"
|
|
||||||
|
|
||||||
settings:
|
|
||||||
encodeUrl: true
|
|
||||||
timeout: 0
|
|
||||||
followRedirects: true
|
|
||||||
maxRedirects: 5
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
info:
|
|
||||||
name: Users
|
|
||||||
type: folder
|
|
||||||
seq: 5
|
|
||||||
|
|
||||||
request: {}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
name: route
|
|
||||||
variables:
|
|
||||||
- name: base_url
|
|
||||||
value: https://meowspool.felipecncloud.com
|
|
||||||
- secret: true
|
|
||||||
name: access_token
|
|
||||||
- secret: true
|
|
||||||
name: refresh_token
|
|
||||||
- name: preset_id
|
|
||||||
value: 07188f3b-2b74-4251-88bc-037de7628d65
|
|
||||||
- name: filament_id
|
|
||||||
value: ""
|
|
||||||
- name: google_id_token
|
|
||||||
value: ""
|
|
||||||
- name: email_verify_token
|
|
||||||
value: 0351fde6cc2546499c2910fe109528fc
|
|
||||||
- name: reset_token
|
|
||||||
value: ""
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
opencollection: 1.0.0
|
|
||||||
|
|
||||||
info:
|
|
||||||
name: MewoSpool
|
|
||||||
bundled: false
|
|
||||||
extensions:
|
|
||||||
bruno:
|
|
||||||
ignore:
|
|
||||||
- node_modules
|
|
||||||
- .git
|
|
||||||
Reference in New Issue
Block a user