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
.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1,52 @@
-----BEGIN PRIVATE KEY-----
MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQC2Vn/aGSsxvk6C
eHnjFGxKQ4YqcportFvIZ4UIWju5zUE4cPjD8voaAab/2pF0AvppeS3svP6LPwOp
+EOV/8ZNitlnmpoCZUX2RDbSqaP+InNZpRPaDfRGy9oiHVQUsKrg23Mn8565ajJT
fUjbWAycCNqiQxk683Iv4BelSS5Ew1cVjafYJgkM8Apj7SkfAwmFgO7EfQD4vCIa
L1IYoDTTRlo/pVpNXlxm9xIGZFtevZBm9wA1biwy9hQYB7pZgjmvvVU9eX6Bxa1k
9f2fnScmDFeiWf/YwoIx9jSYCiRxmq/7RitmDhoK51EepC9APH5j36E2bZTQJYJq
0Q6Xgp1pM2gLPapc0c63osaqaeOOdk6ydkHdg8UwvijbtNo2Y4J58P31nf5/UTka
n5vIu3/1AidfMPwWWxZmtG2HzgHHq0SayHMKNGrjZwdZVuApns3Z5kNlvX24Lu5M
loXGIqaUcrxDAD3thdO2WjwVk/mJBDuZEyzzafmxsk/+G3fTKT3UfykBB8csv1tE
3XfZjBuUKF05CQ+KhAQWoyiCP7i44ii2C9ced7iZgnspctcPGgrfhl66c/RVFIED
vl+Ed8Aq4P6IheJLbmQI0ZViVofXrjkhydg/MWoQxhFQslxAzdp1r1G1R7uGXymg
FBGpU1HhzoLMxDDK6qB8K7lOHGfeBQIDAQABAoICAAsx8AAJD/dDsvhQKboNtMEx
uIwX2AVoIBAdSWeEFF5J27MTPjYLT6j6Tv5iG6oezX2QvIdOt0yY96jShS7+TEOe
8c6dos6tpYg2rSyg0JPRTUaRjx14dXYSg0Sy8XwJUmrwR/eJyqxueJAnUhDXLOo4
bowMSJrilZeagt+M4oCQUC/flncvJqeBTKU3Md4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qgcOKlrboK7vuxODfO2WITBIMR8utME3X+aB
bCh67/z+1/plvvtKS3WW4WUR+ZV1e9c+U/PYM7/m6lYOOtzyV79NxfJkS6RY0Pqy
YUHjDHYjcOFDTDsqWBnlZJqAxhWs+g==
-----END PRIVATE KEY-----

BIN
tools/.DS_Store vendored Normal file

Binary file not shown.

BIN
tournme/.DS_Store vendored Normal file

Binary file not shown.

BIN
tournme/collection/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,30 @@
meta {
name: Login
type: http
seq: 1
}
post {
url: {{baseUrl}}/api/v1/login
body: formUrlEncoded
auth: inherit
}
body:form-urlencoded {
grant_type:
username: {{username}}
password: {{password}}
scope:
client_id:
client_secret:
}
script:post-response {
function onResponse(res) {
let data = res.getBody();
bru.setEnvVar("access_token", data.access_token);
bru.setEnvVar("refresh_token", data.refresh_token);
}
onResponse(res);
}

View File

@@ -0,0 +1,17 @@
meta {
name: Refresh Token
type: http
seq: 2
}
post {
url: {{baseUrl}}/api/v1/refresh
body: json
auth: inherit
}
body:json {
{
"refresh_token": "{{refresh_token}}"
}
}

View File

@@ -0,0 +1,3 @@
meta {
name: Authentication
}

View File

@@ -0,0 +1,19 @@
meta {
name: Change Password
type: http
seq: 4
}
post {
url: {{baseUrl}}/api/v1/companies/me/change-password
body: json
auth: inherit
}
body:json {
{
"current_password": "",
"new_password": "",
"confirm_password": ""
}
}

View File

@@ -0,0 +1,20 @@
meta {
name: Create Company Admin
type: http
seq: 1
}
post {
url: {{baseUrl}}/api/v1/companies/admin/create
body: json
auth: inherit
}
body:json {
{
"name": "",
"email": "",
"phone_number": "",
"address": ""
}
}

View File

@@ -0,0 +1,11 @@
meta {
name: Get All Companies
type: http
seq: 5
}
get {
url: {{baseUrl}}/api/v1/companies
body: none
auth: inherit
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Company By Login
type: http
seq: 6
}
get {
url: {{baseUrl}}/api/v1/companies/:login
body: none
auth: inherit
}
params:path {
login:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Current Company
type: http
seq: 2
}
get {
url: {{baseUrl}}/api/v1/companies/me
body: none
auth: bearer
}
auth:bearer {
token: {{access_token}}
}

View File

@@ -0,0 +1,21 @@
meta {
name: Update Current Company
type: http
seq: 3
}
patch {
url: {{baseUrl}}/api/v1/companies/me
body: json
auth: inherit
}
body:json {
{
"name": "",
"email": "",
"phone_number": "",
"address": "",
"vat_number": ""
}
}

View File

@@ -0,0 +1,11 @@
meta {
name: Companies
}
auth {
mode: bearer
}
auth:bearer {
token: {{access_token}}
}

View File

@@ -0,0 +1,18 @@
meta {
name: Create Court
type: http
seq: 3
}
post {
url: {{baseUrl}}/api/v1/courts/
body: json
auth: inherit
}
body:json {
{
"name": "CAMPO BELLISSIMO",
"images": ["https://ddlgzcxdeqadinmzpgqu.supabase.co/storage/v1/object/public/padelcourt_dev/34847922/courts/19cdc929-7dcd-4a63-b016-66db8fdabd4a.jpeg?"]
}
}

View File

@@ -0,0 +1,15 @@
meta {
name: Delete Court
type: http
seq: 6
}
delete {
url: {{baseUrl}}/api/v1/courts/:id
body: none
auth: inherit
}
params:path {
id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get All Courts
type: http
seq: 2
}
get {
url: {{baseUrl}}/api/v1/courts/
body: none
auth: inherit
}
settings {
encodeUrl: false
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Court By Id
type: http
seq: 4
}
get {
url: {{baseUrl}}/api/v1/courts/:id
body: none
auth: inherit
}
params:path {
id:
}

View File

@@ -0,0 +1,23 @@
meta {
name: Update Court
type: http
seq: 5
}
put {
url: {{baseUrl}}/api/v1/courts/:id
body: json
auth: inherit
}
params:path {
id:
}
body:json {
{
"id": 0,
"name": "",
"images": ""
}
}

View File

@@ -0,0 +1,19 @@
meta {
name: Upload Image
type: http
seq: 1
}
post {
url: {{baseUrl}}/api/v1/courts/upload_image/
body: multipartForm
auth: inherit
}
params:query {
~folder:
}
body:multipart-form {
files: @file(/Users/ayoublefhim/Downloads/images.jpeg)
}

View File

@@ -0,0 +1,15 @@
meta {
name: Check reset token status
type: http
seq: 4
}
get {
url: {{baseUrl}}/api/v1/password-reset/status/:token
body: none
auth: inherit
}
params:path {
token:
}

View File

@@ -0,0 +1,18 @@
meta {
name: Complete password reset
type: http
seq: 3
}
post {
url: {{baseUrl}}/api/v1/password-reset/complete
body: json
auth: inherit
}
body:json {
{
"token": "",
"new_password": ""
}
}

View File

@@ -0,0 +1,17 @@
meta {
name: Initiate password reset
type: http
seq: 1
}
post {
url: {{baseUrl}}/api/v1/password-reset/initiate
body: json
auth: inherit
}
body:json {
{
"email": ""
}
}

View File

@@ -0,0 +1,18 @@
meta {
name: Verify reset code
type: http
seq: 2
}
post {
url: {{baseUrl}}/api/v1/password-reset/verify
body: json
auth: inherit
}
body:json {
{
"email": "",
"code": ""
}
}

View File

@@ -0,0 +1,18 @@
meta {
name: Create Player From Playtomic
type: http
seq: 3
}
post {
url: {{baseUrl}}/api/v1/players/from-playtomic/
body: json
auth: inherit
}
body:json {
{
"playtomic_id": 0,
"gender": 0
}
}

View File

@@ -0,0 +1,20 @@
meta {
name: Create Player
type: http
seq: 1
}
post {
url: {{baseUrl}}/api/v1/players/
body: json
auth: inherit
}
body:json {
{
"name": "",
"gender": "",
"surname": "",
"nickname": ""
}
}

View File

@@ -0,0 +1,15 @@
meta {
name: Delete Player Association
type: http
seq: 8
}
delete {
url: {{baseUrl}}/api/v1/players/:id
body: none
auth: inherit
}
params:path {
id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Player By Id
type: http
seq: 6
}
get {
url: {{baseUrl}}/api/v1/players/:id
body: none
auth: inherit
}
params:path {
id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Players
type: http
seq: 2
}
get {
url: {{baseUrl}}/api/v1/players/
body: none
auth: inherit
}
params:query {
~search:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Playtomic Players
type: http
seq: 4
}
get {
url: {{baseUrl}}/api/v1/players/playtomic-player/
body: none
auth: inherit
}
params:query {
~name:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Tournament Id
type: http
seq: 5
}
get {
url: {{baseUrl}}/api/v1/players/tournament-id/
body: none
auth: inherit
}
params:query {
~url:
}

View File

@@ -0,0 +1,30 @@
meta {
name: Update Player
type: http
seq: 7
}
put {
url: {{baseUrl}}/api/v1/players/:id
body: json
auth: inherit
}
params:path {
id:
}
body:json {
{
"name": "",
"gender": "",
"surname": "",
"nickname": "",
"id": 0,
"number": "",
"email": "",
"picture": "",
"playtomic_id": "",
"level": ""
}
}

View File

@@ -0,0 +1,22 @@
meta {
name: Initiate company registration
type: http
seq: 2
}
post {
url: {{baseUrl}}/api/v1/register/initiate
body: json
auth: inherit
}
body:json {
{
"email": "",
"password": "",
"name": "",
"address": "",
"phone_number": "",
"vat_number": ""
}
}

View File

@@ -0,0 +1,17 @@
meta {
name: Resend verification code
type: http
seq: 4
}
post {
url: {{baseUrl}}/api/v1/register/resend
body: json
auth: inherit
}
body:json {
{
"email": ""
}
}

View File

@@ -0,0 +1,11 @@
meta {
name: Test Loops API connection
type: http
seq: 1
}
get {
url: {{baseUrl}}/api/v1/register/test-loops
body: none
auth: inherit
}

View File

@@ -0,0 +1,18 @@
meta {
name: Verify email and complete registration
type: http
seq: 3
}
post {
url: {{baseUrl}}/api/v1/register/verify
body: json
auth: inherit
}
body:json {
{
"email": "",
"code": ""
}
}

View File

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

View File

@@ -0,0 +1,22 @@
meta {
name: Add Couple To Group
type: http
seq: 11
}
post {
url: {{baseUrl}}/api/v1/staging/group/:group_id/couple
body: json
auth: inherit
}
params:path {
group_id:
}
body:json {
{
"group_id": 0,
"couple_id": 0
}
}

View File

@@ -0,0 +1,19 @@
meta {
name: Assign Couples To Groups
type: http
seq: 14
}
post {
url: {{baseUrl}}/api/v1/staging/stage/:stage_id/assign-couples
body: none
auth: inherit
}
params:query {
~method:
}
params:path {
stage_id:
}

View File

@@ -0,0 +1,21 @@
meta {
name: Auto Schedule Matches
type: http
seq: 35
}
post {
url: {{baseUrl}}/api/v1/staging/tournament/:tournament_id/auto-schedule
body: none
auth: inherit
}
params:query {
~start_date:
~end_date:
~order_only:
}
params:path {
tournament_id:
}

View File

@@ -0,0 +1,19 @@
meta {
name: Calculate Stage Match Order
type: http
seq: 29
}
post {
url: {{baseUrl}}/api/v1/staging/stage/:stage_id/calculate-match-order
body: none
auth: inherit
}
params:query {
~strategy:
}
params:path {
stage_id:
}

View File

@@ -0,0 +1,19 @@
meta {
name: Calculate Tournament Match Order
type: http
seq: 28
}
post {
url: {{baseUrl}}/api/v1/staging/tournament/:tournament_id/calculate-match-order
body: none
auth: inherit
}
params:query {
~strategy:
}
params:path {
tournament_id:
}

View File

@@ -0,0 +1,22 @@
meta {
name: Create Tournament Bracket
type: http
seq: 16
}
post {
url: {{baseUrl}}/api/v1/staging/stage/:stage_id/bracket
body: json
auth: inherit
}
params:path {
stage_id:
}
body:json {
{
"stage_id": 0,
"bracket_type": ""
}
}

View File

@@ -0,0 +1,22 @@
meta {
name: Create Tournament Group
type: http
seq: 6
}
post {
url: {{baseUrl}}/api/v1/staging/stage/:stage_id/group
body: json
auth: inherit
}
params:path {
stage_id:
}
body:json {
{
"stage_id": 0,
"name": ""
}
}

View File

@@ -0,0 +1,25 @@
meta {
name: Create Tournament Stage
type: http
seq: 1
}
post {
url: {{baseUrl}}/api/v1/staging/tournament/:tournament_id/stage
body: json
auth: inherit
}
params:path {
tournament_id:
}
body:json {
{
"tournament_id": 0,
"name": "",
"stage_type": "",
"order": 0,
"config": {}
}
}

View File

@@ -0,0 +1,15 @@
meta {
name: Delete Tournament Bracket
type: http
seq: 20
}
delete {
url: {{baseUrl}}/api/v1/staging/bracket/:bracket_id
body: none
auth: inherit
}
params:path {
bracket_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Delete Tournament Group
type: http
seq: 10
}
delete {
url: {{baseUrl}}/api/v1/staging/group/:group_id
body: none
auth: inherit
}
params:path {
group_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Delete Tournament Stage
type: http
seq: 5
}
delete {
url: {{baseUrl}}/api/v1/staging/stage/:stage_id
body: none
auth: inherit
}
params:path {
stage_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Generate Bracket Matches
type: http
seq: 36
}
post {
url: {{baseUrl}}/api/v1/staging/bracket/:bracket_id/generate-matches
body: json
auth: inherit
}
params:path {
bracket_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Generate Group Matches
type: http
seq: 31
}
post {
url: {{baseUrl}}/api/v1/staging/group/:group_id/generate-matches
body: none
auth: inherit
}
params:path {
group_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Generate Stage Matches
type: http
seq: 21
}
post {
url: {{baseUrl}}/api/v1/staging/stage/:stage_id/generate-matches
body: json
auth: inherit
}
params:path {
stage_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Bracket By Id
type: http
seq: 18
}
get {
url: {{baseUrl}}/api/v1/staging/bracket/:bracket_id
body: none
auth: inherit
}
params:path {
bracket_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Bracket Matches
type: http
seq: 25
}
get {
url: {{baseUrl}}/api/v1/staging/bracket/:bracket_id/matches
body: none
auth: inherit
}
params:path {
bracket_id:
}

View File

@@ -0,0 +1,20 @@
meta {
name: Get Couple Stats
type: http
seq: 38
}
get {
url: {{baseUrl}}/api/v1/staging/couple/:couple_id/tournament/:tournament_id/stats
body: none
auth: inherit
}
params:query {
~group_id:
}
params:path {
couple_id:
tournament_id:
}

View File

@@ -0,0 +1,19 @@
meta {
name: Get Court Availability
type: http
seq: 34
}
get {
url: {{baseUrl}}/api/v1/staging/tournament/:tournament_id/court-availability
body: none
auth: inherit
}
params:query {
date:
}
params:path {
tournament_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Group By Id
type: http
seq: 8
}
get {
url: {{baseUrl}}/api/v1/staging/group/:group_id
body: none
auth: inherit
}
params:path {
group_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Group Couples
type: http
seq: 12
}
get {
url: {{baseUrl}}/api/v1/staging/group/:group_id/couple
body: none
auth: inherit
}
params:path {
group_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Group Matches
type: http
seq: 24
}
get {
url: {{baseUrl}}/api/v1/staging/group/:group_id/matches
body: none
auth: inherit
}
params:path {
group_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Group Standings With Stats
type: http
seq: 15
}
get {
url: {{baseUrl}}/api/v1/staging/group/:group_id/standings
body: none
auth: inherit
}
params:path {
group_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Match By Id
type: http
seq: 26
}
get {
url: {{baseUrl}}/api/v1/staging/match/:match_id
body: none
auth: inherit
}
params:path {
match_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Stage Brackets
type: http
seq: 17
}
get {
url: {{baseUrl}}/api/v1/staging/stage/:stage_id/bracket
body: none
auth: inherit
}
params:path {
stage_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Stage By Id
type: http
seq: 3
}
get {
url: {{baseUrl}}/api/v1/staging/stage/:stage_id
body: none
auth: inherit
}
params:path {
stage_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Stage Groups
type: http
seq: 7
}
get {
url: {{baseUrl}}/api/v1/staging/stage/:stage_id/group
body: none
auth: inherit
}
params:path {
stage_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Stage Matches
type: http
seq: 22
}
get {
url: {{baseUrl}}/api/v1/staging/stage/:stage_id/matches
body: none
auth: inherit
}
params:path {
stage_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Tournament Match Order Info
type: http
seq: 30
}
get {
url: {{baseUrl}}/api/v1/staging/tournament/{{tournamentId}}/match-order-info
body: none
auth: bearer
}
auth:bearer {
token: {{access_token}}
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Tournament Matches
type: http
seq: 23
}
get {
url: {{baseUrl}}/api/v1/staging/tournament/:tournament_id/matches
body: none
auth: inherit
}
params:path {
tournament_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Tournament Stages
type: http
seq: 2
}
get {
url: {{baseUrl}}/api/v1/staging/tournament/:tournament_id/stage
body: none
auth: inherit
}
params:path {
tournament_id:
}

View File

@@ -0,0 +1,19 @@
meta {
name: Get Tournament Standings
type: http
seq: 41
}
get {
url: {{baseUrl}}/api/v1/staging/tournament/:tournament_id/standings
body: none
auth: inherit
}
params:query {
~group_id:
}
params:path {
tournament_id:
}

View File

@@ -0,0 +1,19 @@
meta {
name: Get Tournament Stats
type: http
seq: 37
}
get {
url: {{baseUrl}}/api/v1/staging/tournament/:tournament_id/stats
body: none
auth: inherit
}
params:query {
~group_id:
}
params:path {
tournament_id:
}

View File

@@ -0,0 +1,19 @@
meta {
name: Initialize Missing Couple Stats
type: http
seq: 40
}
post {
url: {{baseUrl}}/api/v1/staging/tournament/:tournament_id/stats/initialize
body: none
auth: inherit
}
params:query {
~group_id:
}
params:path {
tournament_id:
}

View File

@@ -0,0 +1,19 @@
meta {
name: Recalculate Tournament Stats
type: http
seq: 39
}
post {
url: {{baseUrl}}/api/v1/staging/tournament/:tournament_id/stats/recalculate
body: none
auth: inherit
}
params:query {
~group_id:
}
params:path {
tournament_id:
}

View File

@@ -0,0 +1,16 @@
meta {
name: Remove Couple From Group
type: http
seq: 13
}
delete {
url: {{baseUrl}}/api/v1/staging/group/:group_id/couple/:couple_id
body: none
auth: inherit
}
params:path {
group_id:
couple_id:
}

View File

@@ -0,0 +1,23 @@
meta {
name: Schedule Match
type: http
seq: 32
}
post {
url: {{baseUrl}}/api/v1/staging/match/:match_id/schedule
body: none
auth: inherit
}
params:query {
court_id:
start_time:
~end_time:
~is_time_limited:
~time_limit_minutes:
}
params:path {
match_id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Unschedule Match
type: http
seq: 33
}
delete {
url: {{baseUrl}}/api/v1/staging/match/:match_id/schedule
body: none
auth: inherit
}
params:path {
match_id:
}

View File

@@ -0,0 +1,37 @@
meta {
name: Update Match
type: http
seq: 27
}
put {
url: {{baseUrl}}/api/v1/staging/match/:match_id
body: json
auth: inherit
}
params:path {
match_id:
}
body:json {
{
"winner_couple_id": "",
"games": "",
"stage_id": "",
"group_id": "",
"bracket_id": "",
"court_id": "",
"scheduled_start": "",
"scheduled_end": "",
"is_time_limited": "",
"time_limit_minutes": "",
"match_result_status": "",
"display_order": "",
"order_in_stage": "",
"order_in_group": "",
"bracket_position": "",
"round_number": "",
"priority_score": ""
}
}

View File

@@ -0,0 +1,21 @@
meta {
name: Update Tournament Bracket
type: http
seq: 19
}
put {
url: {{baseUrl}}/api/v1/staging/bracket/:bracket_id
body: json
auth: inherit
}
params:path {
bracket_id:
}
body:json {
{
"bracket_type": ""
}
}

View File

@@ -0,0 +1,21 @@
meta {
name: Update Tournament Group
type: http
seq: 9
}
put {
url: {{baseUrl}}/api/v1/staging/group/:group_id
body: json
auth: inherit
}
params:path {
group_id:
}
body:json {
{
"name": ""
}
}

View File

@@ -0,0 +1,24 @@
meta {
name: Update Tournament Stage
type: http
seq: 4
}
put {
url: {{baseUrl}}/api/v1/staging/stage/:stage_id
body: json
auth: inherit
}
params:path {
stage_id:
}
body:json {
{
"name": "",
"stage_type": "",
"order": "",
"config": ""
}
}

View File

@@ -0,0 +1,23 @@
meta {
name: Add Court To Tournament
type: http
seq: 12
}
post {
url: {{baseUrl}}/api/v1/tournaments/:id/court
body: json
auth: inherit
}
params:path {
id:
}
body:json {
{
"court_id": 0,
"availability_start": "",
"availability_end": ""
}
}

View File

@@ -0,0 +1,22 @@
meta {
name: Add Player To Tournament
type: http
seq: 5
}
post {
url: {{baseUrl}}/api/v1/tournaments/:id/player
body: json
auth: inherit
}
params:path {
id:
}
body:json {
{
"tournament_id": 0,
"player_id": 0
}
}

View File

@@ -0,0 +1,23 @@
meta {
name: Create Tournament Couple
type: http
seq: 8
}
post {
url: {{baseUrl}}/api/v1/tournaments/:id/couple
body: json
auth: inherit
}
params:path {
id:
}
body:json {
{
"first_player_id": 0,
"second_player_id": 0,
"name": ""
}
}

View File

@@ -0,0 +1,23 @@
meta {
name: Create Tournament
type: http
seq: 2
}
post {
url: {{baseUrl}}/api/v1/tournaments/
body: json
auth: inherit
}
body:json {
{
"name": "",
"description": "",
"images": "",
"start_date": "",
"end_date": "",
"players_number": 0,
"full_description": ""
}
}

View File

@@ -0,0 +1,16 @@
meta {
name: Delete Player From Tournament
type: http
seq: 7
}
delete {
url: {{baseUrl}}/api/v1/tournaments/:tournament_id/player/:player_id
body: none
auth: inherit
}
params:path {
tournament_id:
player_id:
}

View File

@@ -0,0 +1,16 @@
meta {
name: Delete Tournament Couple
type: http
seq: 11
}
delete {
url: {{baseUrl}}/api/v1/tournaments/:tournament_id/couple/:couple_id
body: none
auth: inherit
}
params:path {
tournament_id:
couple_id:
}

View File

@@ -0,0 +1,11 @@
meta {
name: Get All Tournaments
type: http
seq: 1
}
get {
url: {{baseUrl}}/api/v1/tournaments/
body: none
auth: inherit
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Tournament By Id
type: http
seq: 3
}
get {
url: {{baseUrl}}/api/v1/tournaments/:id
body: none
auth: inherit
}
params:path {
id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Tournament Couples
type: http
seq: 9
}
get {
url: {{baseUrl}}/api/v1/tournaments/:id/couple
body: none
auth: inherit
}
params:path {
id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Tournament Courts
type: http
seq: 13
}
get {
url: {{baseUrl}}/api/v1/tournaments/:id/court
body: none
auth: inherit
}
params:path {
id:
}

View File

@@ -0,0 +1,15 @@
meta {
name: Get Tournament Players
type: http
seq: 6
}
get {
url: {{baseUrl}}/api/v1/tournaments/:id/player
body: none
auth: inherit
}
params:path {
id:
}

View File

@@ -0,0 +1,16 @@
meta {
name: Remove Court From Tournament
type: http
seq: 15
}
delete {
url: {{baseUrl}}/api/v1/tournaments/:tournament_id/court/:court_id
body: none
auth: inherit
}
params:path {
tournament_id:
court_id:
}

View File

@@ -0,0 +1,25 @@
meta {
name: Update Tournament Couple
type: http
seq: 10
}
put {
url: {{baseUrl}}/api/v1/tournaments/:tournament_id/couple/:couple_id
body: json
auth: inherit
}
params:path {
tournament_id:
couple_id:
}
body:json {
{
"tournament_id": "",
"first_player_id": "",
"second_player_id": "",
"name": ""
}
}

View File

@@ -0,0 +1,23 @@
meta {
name: Update Tournament Court
type: http
seq: 14
}
put {
url: {{baseUrl}}/api/v1/tournaments/:tournament_id/court/:court_id
body: json
auth: inherit
}
params:path {
tournament_id:
court_id:
}
body:json {
{
"availability_start": "",
"availability_end": ""
}
}

View File

@@ -0,0 +1,27 @@
meta {
name: Update Tournament
type: http
seq: 4
}
put {
url: {{baseUrl}}/api/v1/tournaments/:id
body: json
auth: inherit
}
params:path {
id:
}
body:json {
{
"name": "",
"description": "",
"images": "",
"start_date": "",
"end_date": "",
"players_number": "",
"full_description": ""
}
}

View File

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

View File

@@ -0,0 +1,7 @@
auth {
mode: bearer
}
auth:bearer {
token: {{access_token}}
}

View File

@@ -0,0 +1,7 @@
vars {
baseUrl: http://localhost:8000
username: test@test.it
password: Pass123!
access_token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE3NTM4MjY5ODR9.kG1cISeoVJOTwZzPDWJdi1UMTVXiTGsB7HFn9DqItdI
tournamentId: 1
}

View File

@@ -0,0 +1,7 @@
vars {
baseUrl: https://api.tourn.me
username: 02421217
}
vars:secret [
password
]

Some files were not shown because too many files have changed in this diff Show More