update
This commit is contained in:
18
tournme/collection/PadelTour API/Courts/Create Court.bru
Normal file
18
tournme/collection/PadelTour API/Courts/Create Court.bru
Normal 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?"]
|
||||
}
|
||||
}
|
||||
15
tournme/collection/PadelTour API/Courts/Delete Court.bru
Normal file
15
tournme/collection/PadelTour API/Courts/Delete Court.bru
Normal 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:
|
||||
}
|
||||
15
tournme/collection/PadelTour API/Courts/Get All Courts.bru
Normal file
15
tournme/collection/PadelTour API/Courts/Get All Courts.bru
Normal 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
|
||||
}
|
||||
15
tournme/collection/PadelTour API/Courts/Get Court By Id.bru
Normal file
15
tournme/collection/PadelTour API/Courts/Get Court By Id.bru
Normal 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:
|
||||
}
|
||||
23
tournme/collection/PadelTour API/Courts/Update Court.bru
Normal file
23
tournme/collection/PadelTour API/Courts/Update Court.bru
Normal 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": ""
|
||||
}
|
||||
}
|
||||
19
tournme/collection/PadelTour API/Courts/Upload Image.bru
Normal file
19
tournme/collection/PadelTour API/Courts/Upload Image.bru
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user