update
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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}}
|
||||
}
|
||||
19
tournme/new/api-collection/tournme-be/Courts/Get Court.bru
Normal file
19
tournme/new/api-collection/tournme-be/Courts/Get Court.bru
Normal 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}}
|
||||
}
|
||||
21
tournme/new/api-collection/tournme-be/Courts/List Courts.bru
Normal file
21
tournme/new/api-collection/tournme-be/Courts/List Courts.bru
Normal 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}}
|
||||
}
|
||||
@@ -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": ""
|
||||
}
|
||||
}
|
||||
7
tournme/new/api-collection/tournme-be/Courts/folder.bru
Normal file
7
tournme/new/api-collection/tournme-be/Courts/folder.bru
Normal file
@@ -0,0 +1,7 @@
|
||||
meta {
|
||||
name: Courts
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
Reference in New Issue
Block a user