update
This commit is contained in:
@@ -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": ""
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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": ""
|
||||
}
|
||||
}
|
||||
@@ -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": ""
|
||||
}
|
||||
}
|
||||
@@ -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:
|
||||
}
|
||||
@@ -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:
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
meta {
|
||||
name: Get All Tournaments
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/api/v1/tournaments/
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
@@ -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:
|
||||
}
|
||||
@@ -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:
|
||||
}
|
||||
@@ -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:
|
||||
}
|
||||
@@ -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:
|
||||
}
|
||||
@@ -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:
|
||||
}
|
||||
@@ -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": ""
|
||||
}
|
||||
}
|
||||
@@ -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": ""
|
||||
}
|
||||
}
|
||||
@@ -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": ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user