Added base project

This commit is contained in:
2025-12-04 20:45:22 +00:00
parent dc16a150e1
commit 2f47f69adb
148 changed files with 3289 additions and 4212 deletions
+16
View File
@@ -0,0 +1,16 @@
meta {
name: Get Auth User
type: http
seq: 2
}
get {
url: {{api_url}}/users/me
body: none
auth: none
}
headers {
Accept: application/json
Authorization: Bearer {{token}}
}
+23
View File
@@ -0,0 +1,23 @@
meta {
name: Login
type: http
seq: 1
}
post {
url: {{api_url}}/auth/login
body: json
auth: none
}
body:json {
{
"email":"[email protected]",
"password":"123"
}
}
tests {
let data = res.getBody();
bru.setEnvVar("token",data.token);
}
@@ -0,0 +1,20 @@
meta {
name: Get Games - Filtered
type: http
seq: 2
}
get {
url: {{api_url}}/games?type=S&page=1
body: none
auth: none
}
params:query {
type: S
page: 1
}
headers {
Authorization: Bearer {{token}}
}
+15
View File
@@ -0,0 +1,15 @@
meta {
name: Get Games
type: http
seq: 1
}
get {
url: {{api_url}}/games
body: none
auth: none
}
headers {
Authorization: Bearer {{token}}
}
@@ -0,0 +1,15 @@
meta {
name: Get Transactions
type: http
seq: 1
}
get {
url: {{api_url}}/transactions
body: none
auth: none
}
headers {
Authorization: Bearer {{token}}
}
+9
View File
@@ -0,0 +1,9 @@
{
"version": "1",
"name": "IPLeiria-DAD-Project",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}
@@ -0,0 +1,5 @@
vars {
base_url: http://localhost:8085
api_url: http://localhost:8085/api
token:
}