This commit is contained in:
2026-01-31 13:49:56 +01:00
parent 7074c85672
commit ecfa2d3985
203 changed files with 11592 additions and 0 deletions

BIN
tournme/new/api-collection/.DS_Store vendored Normal file

Binary file not shown.

View File

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

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -0,0 +1,15 @@
meta {
name: Get Me
type: http
seq: 3
}
get {
url: {{baseUrl}}/auth/me
body: none
auth: bearer
}
auth:bearer {
token: {{token}}
}

View File

@@ -0,0 +1,18 @@
meta {
name: Login
type: http
seq: 2
}
post {
url: {{baseUrl}}/auth/login
body: json
auth: inherit
}
body:json {
{
"email": "",
"password": ""
}
}

View File

@@ -0,0 +1,23 @@
meta {
name: Register
type: http
seq: 1
}
post {
url: {{baseUrl}}/auth/register
body: json
auth: inherit
}
body:json {
{
"center_name": "Ayoub Test",
"center_address": "test",
"center_contact_email": "test@gmail.com",
"center_contact_phone": "+393477005174",
"center_vat_number": "123456789",
"admin_email": "lefhim.a@gmail.com",
"admin_password": "pass123!"
}
}

View File

@@ -0,0 +1,7 @@
meta {
name: Authentication
}
auth {
mode: inherit
}

View File

@@ -0,0 +1,23 @@
meta {
name: Create Court
type: http
seq: 2
}
post {
url: {{baseUrl}}/courts
body: json
auth: bearer
}
auth:bearer {
token: {{token}}
}
body:json {
{
"name": "test",
"court_type": "indoor",
"is_active": true
}
}

View File

@@ -0,0 +1,19 @@
meta {
name: Delete Court
type: http
seq: 5
}
delete {
url: {{baseUrl}}/courts/:court_id
body: none
auth: bearer
}
params:path {
court_id:
}
auth:bearer {
token: {{token}}
}

View File

@@ -0,0 +1,19 @@
meta {
name: Get Court
type: http
seq: 3
}
get {
url: {{baseUrl}}/courts/:court_id
body: none
auth: bearer
}
params:path {
court_id:
}
auth:bearer {
token: {{token}}
}

View File

@@ -0,0 +1,21 @@
meta {
name: List Courts
type: http
seq: 1
}
get {
url: {{baseUrl}}/courts
body: none
auth: bearer
}
params:query {
~skip:
~limit:
~active_only:
}
auth:bearer {
token: {{token}}
}

View File

@@ -0,0 +1,27 @@
meta {
name: Update Court
type: http
seq: 4
}
patch {
url: {{baseUrl}}/courts/:court_id
body: json
auth: bearer
}
params:path {
court_id:
}
auth:bearer {
token: {{token}}
}
body:json {
{
"name": "",
"court_type": "",
"is_active": ""
}
}

View File

@@ -0,0 +1,7 @@
meta {
name: Courts
}
auth {
mode: inherit
}

View File

@@ -0,0 +1,11 @@
meta {
name: Health Check
type: http
seq: 1
}
get {
url: {{baseUrl}}/health
body: none
auth: inherit
}

View File

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

View File

@@ -0,0 +1,7 @@
meta {
name: tournme-be
}
auth {
mode: none
}

View File

@@ -0,0 +1,4 @@
vars {
baseUrl: http://localhost:8000
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwNWZjNzQyNy03NWZhLTQ5ZGYtOWQyNi1jNjQwNjRiMmU3OTQiLCJjZW50ZXJfaWQiOiJlYWU3OTZhZC04M2FkLTRjNzEtODE2YS1kYzhlZTNhMjhhZjgiLCJyb2xlIjoib3duZXIiLCJleHAiOjE3Njc0ODM1MjV9.jSG-dKBhWCdThPKkbj6sLLk7NSSGGh4C5iwhEmuCx9A
}

View File

@@ -0,0 +1,19 @@
meta {
name: test
type: http
seq: 4
}
get {
url: https://api.unsplash.com/photos/?client_id=YOUR_ACCESS_KEY
body: none
auth: inherit
}
params:query {
client_id: YOUR_ACCESS_KEY
}
settings {
encodeUrl: true
}