update
This commit is contained in:
BIN
tournme/new/api-collection/tournme-be/.DS_Store
vendored
Normal file
BIN
tournme/new/api-collection/tournme-be/.DS_Store
vendored
Normal file
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Get Me
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/auth/me
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
meta {
|
||||
name: Login
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/auth/login
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email": "",
|
||||
"password": ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
meta {
|
||||
name: Register
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/auth/register
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"center_name": "Ayoub Test",
|
||||
"center_address": "test",
|
||||
"center_contact_email": "test@gmail.com",
|
||||
"center_contact_phone": "+393477005174",
|
||||
"center_vat_number": "123456789",
|
||||
"admin_email": "lefhim.a@gmail.com",
|
||||
"admin_password": "pass123!"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
meta {
|
||||
name: Authentication
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
11
tournme/new/api-collection/tournme-be/Health Check.bru
Normal file
11
tournme/new/api-collection/tournme-be/Health Check.bru
Normal file
@@ -0,0 +1,11 @@
|
||||
meta {
|
||||
name: Health Check
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/health
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
9
tournme/new/api-collection/tournme-be/bruno.json
Normal file
9
tournme/new/api-collection/tournme-be/bruno.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "tournme-be",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
||||
7
tournme/new/api-collection/tournme-be/collection.bru
Normal file
7
tournme/new/api-collection/tournme-be/collection.bru
Normal file
@@ -0,0 +1,7 @@
|
||||
meta {
|
||||
name: tournme-be
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: none
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
vars {
|
||||
baseUrl: http://localhost:8000
|
||||
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwNWZjNzQyNy03NWZhLTQ5ZGYtOWQyNi1jNjQwNjRiMmU3OTQiLCJjZW50ZXJfaWQiOiJlYWU3OTZhZC04M2FkLTRjNzEtODE2YS1kYzhlZTNhMjhhZjgiLCJyb2xlIjoib3duZXIiLCJleHAiOjE3Njc0ODM1MjV9.jSG-dKBhWCdThPKkbj6sLLk7NSSGGh4C5iwhEmuCx9A
|
||||
}
|
||||
19
tournme/new/api-collection/tournme-be/test.bru
Normal file
19
tournme/new/api-collection/tournme-be/test.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: test
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
get {
|
||||
url: https://api.unsplash.com/photos/?client_id=YOUR_ACCESS_KEY
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
client_id: YOUR_ACCESS_KEY
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
Reference in New Issue
Block a user