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

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)
}