Introduction
This documentation aims to provide all the information you need to work with our API.
<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer Bearer {YOUR_SANCTUM_TOKEN}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
Utilisez le token obtenu via POST /api/v1/auth/login et envoyez-le dans l'en-tête Authorization: Bearer {token}.
Authentification
Connexion administrateur
Retourne un token Sanctum pour les comptes administrateurs.
Example request:
curl --request POST \
"http://localhost/api/v1/auth/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"admin@jss-gn.com\",
\"password\": \"password\"
}"
const url = new URL(
"http://localhost/api/v1/auth/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "admin@jss-gn.com",
"password": "password"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"token": "1|xxxxxxxxxxxxxxxx",
"user": {
"id": 1,
"name": "Admin",
"email": "admin@jss-gn.com",
"is_admin": true
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Profil connecté
requires authentication
Retourne les informations de l'utilisateur connecté.
Example request:
curl --request GET \
--get "http://localhost/api/v1/auth/me" \
--header "Authorization: Bearer Bearer {YOUR_SANCTUM_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/auth/me"
);
const headers = {
"Authorization": "Bearer Bearer {YOUR_SANCTUM_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Déconnexion
requires authentication
Invalide le token Sanctum actuellement utilisé.
Example request:
curl --request POST \
"http://localhost/api/v1/auth/logout" \
--header "Authorization: Bearer Bearer {YOUR_SANCTUM_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/auth/logout"
);
const headers = {
"Authorization": "Bearer Bearer {YOUR_SANCTUM_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Clubs
Créer un club
requires authentication
Example request:
curl --request POST \
"http://localhost/api/v1/clubs" \
--header "Authorization: Bearer Bearer {YOUR_SANCTUM_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"slug\": \"hafia-fc\",
\"name\": \"Hafia FC\",
\"acronym\": \"qxbajwbpilpmufinl\",
\"founded_at\": \"2026-06-04T17:22:32\",
\"city\": \"lwloauydlsmsjuryvojcy\",
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
\"logo\": \"http:\\/\\/reynolds.com\\/\",
\"hero\": \"http:\\/\\/schmeler.com\\/a-quo-sed-fugit-facilis-perferendis-dolores-molestias\",
\"primary_color\": \"iihfqcoynlazghdtq\",
\"secondary_color\": \"tqxbajwbpilpmufin\",
\"social\": {
\"facebook\": \"https:\\/\\/www.kemmer.net\\/similique-accusantium-et-a-qui-ducimus\",
\"youtube\": \"http:\\/\\/koelpin.info\\/omnis-cum-molestiae-vel-natus-ex\",
\"instagram\": \"http:\\/\\/www.white.com\\/\"
}
}"
const url = new URL(
"http://localhost/api/v1/clubs"
);
const headers = {
"Authorization": "Bearer Bearer {YOUR_SANCTUM_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"slug": "hafia-fc",
"name": "Hafia FC",
"acronym": "qxbajwbpilpmufinl",
"founded_at": "2026-06-04T17:22:32",
"city": "lwloauydlsmsjuryvojcy",
"description": "Dolores dolorum amet iste laborum eius est dolor.",
"logo": "http:\/\/reynolds.com\/",
"hero": "http:\/\/schmeler.com\/a-quo-sed-fugit-facilis-perferendis-dolores-molestias",
"primary_color": "iihfqcoynlazghdtq",
"secondary_color": "tqxbajwbpilpmufin",
"social": {
"facebook": "https:\/\/www.kemmer.net\/similique-accusantium-et-a-qui-ducimus",
"youtube": "http:\/\/koelpin.info\/omnis-cum-molestiae-vel-natus-ex",
"instagram": "http:\/\/www.white.com\/"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mettre à jour un club
requires authentication
Example request:
curl --request PUT \
"http://localhost/api/v1/clubs/consequatur" \
--header "Authorization: Bearer Bearer {YOUR_SANCTUM_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"slug\": \"hafia-fc\",
\"name\": \"Hafia FC\",
\"acronym\": \"qxbajwbpilpmufinl\",
\"founded_at\": \"2026-06-04T17:22:36\",
\"city\": \"lwloauydlsmsjuryvojcy\",
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
\"logo\": \"http:\\/\\/reynolds.com\\/\",
\"hero\": \"http:\\/\\/schmeler.com\\/a-quo-sed-fugit-facilis-perferendis-dolores-molestias\",
\"primary_color\": \"iihfqcoynlazghdtq\",
\"secondary_color\": \"tqxbajwbpilpmufin\",
\"social\": {
\"facebook\": \"https:\\/\\/www.kemmer.net\\/similique-accusantium-et-a-qui-ducimus\",
\"youtube\": \"http:\\/\\/koelpin.info\\/omnis-cum-molestiae-vel-natus-ex\",
\"instagram\": \"http:\\/\\/www.white.com\\/\"
}
}"
const url = new URL(
"http://localhost/api/v1/clubs/consequatur"
);
const headers = {
"Authorization": "Bearer Bearer {YOUR_SANCTUM_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"slug": "hafia-fc",
"name": "Hafia FC",
"acronym": "qxbajwbpilpmufinl",
"founded_at": "2026-06-04T17:22:36",
"city": "lwloauydlsmsjuryvojcy",
"description": "Dolores dolorum amet iste laborum eius est dolor.",
"logo": "http:\/\/reynolds.com\/",
"hero": "http:\/\/schmeler.com\/a-quo-sed-fugit-facilis-perferendis-dolores-molestias",
"primary_color": "iihfqcoynlazghdtq",
"secondary_color": "tqxbajwbpilpmufin",
"social": {
"facebook": "https:\/\/www.kemmer.net\/similique-accusantium-et-a-qui-ducimus",
"youtube": "http:\/\/koelpin.info\/omnis-cum-molestiae-vel-natus-ex",
"instagram": "http:\/\/www.white.com\/"
}
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer un club
requires authentication
Example request:
curl --request DELETE \
"http://localhost/api/v1/clubs/consequatur" \
--header "Authorization: Bearer Bearer {YOUR_SANCTUM_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/clubs/consequatur"
);
const headers = {
"Authorization": "Bearer Bearer {YOUR_SANCTUM_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Liste des clubs
Retourne la liste paginée des clubs.
Example request:
curl --request GET \
--get "http://localhost/api/v1/clubs?per_page=15&include=teams%2Cmedia" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/clubs"
);
const params = {
"per_page": "15",
"include": "teams,media",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Détail d'un club
Example request:
curl --request GET \
--get "http://localhost/api/v1/clubs/consequatur?include=teams.players" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/clubs/consequatur"
);
const params = {
"include": "teams.players",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 58
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Joueurs par categorie
Example request:
curl --request GET \
--get "http://localhost/api/v1/clubs/consequatur/players/midfielder" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/clubs/consequatur/players/midfielder"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 57
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Endpoints
POST api/v1/news
Example request:
curl --request POST \
"http://localhost/api/v1/news" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"club_id\": 17,
\"slug\": \"mqeopfuudtdsufvyvddqa\",
\"title\": \"mniihfqcoynlazghdtqtq\",
\"excerpt\": \"consequatur\",
\"content\": \"consequatur\",
\"image\": \"mqeopfuudtdsufvyvddqa\",
\"category\": \"mniihfqcoynlazghdtqtq\",
\"published_at\": \"2026-06-04T17:22:53\",
\"is_published\": false
}"
const url = new URL(
"http://localhost/api/v1/news"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"club_id": 17,
"slug": "mqeopfuudtdsufvyvddqa",
"title": "mniihfqcoynlazghdtqtq",
"excerpt": "consequatur",
"content": "consequatur",
"image": "mqeopfuudtdsufvyvddqa",
"category": "mniihfqcoynlazghdtqtq",
"published_at": "2026-06-04T17:22:53",
"is_published": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/v1/news/{id}
Example request:
curl --request PUT \
"http://localhost/api/v1/news/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"club_id\": 17,
\"slug\": \"mqeopfuudtdsufvyvddqa\",
\"title\": \"mniihfqcoynlazghdtqtq\",
\"excerpt\": \"consequatur\",
\"content\": \"consequatur\",
\"image\": \"mqeopfuudtdsufvyvddqa\",
\"category\": \"mniihfqcoynlazghdtqtq\",
\"published_at\": \"2026-06-04T17:22:55\",
\"is_published\": false
}"
const url = new URL(
"http://localhost/api/v1/news/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"club_id": 17,
"slug": "mqeopfuudtdsufvyvddqa",
"title": "mniihfqcoynlazghdtqtq",
"excerpt": "consequatur",
"content": "consequatur",
"image": "mqeopfuudtdsufvyvddqa",
"category": "mniihfqcoynlazghdtqtq",
"published_at": "2026-06-04T17:22:55",
"is_published": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/news/{id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/news/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/news/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/matches
Example request:
curl --request POST \
"http://localhost/api/v1/matches" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"club_id\": 17,
\"category\": \"mqeopfuudtdsufvyvddqa\",
\"opponent\": \"mniihfqcoynlazghdtqtq\",
\"competition\": \"xbajwbpilpmufinllwloa\",
\"match_date\": \"2026-06-04T17:22:58\",
\"match_time\": \"uydlsmsjuryvojcyb\",
\"day_label\": \"zvrbyickznkygloig\",
\"venue\": \"mkwxphlvazjrcnfbaqywu\",
\"stadium\": \"xhgjjmzuxjubqouzswiwx\",
\"is_home\": true,
\"status\": \"completed\",
\"club_score\": 11,
\"opponent_score\": 9
}"
const url = new URL(
"http://localhost/api/v1/matches"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"club_id": 17,
"category": "mqeopfuudtdsufvyvddqa",
"opponent": "mniihfqcoynlazghdtqtq",
"competition": "xbajwbpilpmufinllwloa",
"match_date": "2026-06-04T17:22:58",
"match_time": "uydlsmsjuryvojcyb",
"day_label": "zvrbyickznkygloig",
"venue": "mkwxphlvazjrcnfbaqywu",
"stadium": "xhgjjmzuxjubqouzswiwx",
"is_home": true,
"status": "completed",
"club_score": 11,
"opponent_score": 9
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/v1/matches/{id}
Example request:
curl --request PUT \
"http://localhost/api/v1/matches/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"club_id\": 17,
\"category\": \"mqeopfuudtdsufvyvddqa\",
\"opponent\": \"mniihfqcoynlazghdtqtq\",
\"competition\": \"xbajwbpilpmufinllwloa\",
\"match_date\": \"2026-06-04T17:23:00\",
\"match_time\": \"uydlsmsjuryvojcyb\",
\"day_label\": \"zvrbyickznkygloig\",
\"venue\": \"mkwxphlvazjrcnfbaqywu\",
\"stadium\": \"xhgjjmzuxjubqouzswiwx\",
\"is_home\": true,
\"status\": \"completed\",
\"club_score\": 11,
\"opponent_score\": 9
}"
const url = new URL(
"http://localhost/api/v1/matches/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"club_id": 17,
"category": "mqeopfuudtdsufvyvddqa",
"opponent": "mniihfqcoynlazghdtqtq",
"competition": "xbajwbpilpmufinllwloa",
"match_date": "2026-06-04T17:23:00",
"match_time": "uydlsmsjuryvojcyb",
"day_label": "zvrbyickznkygloig",
"venue": "mkwxphlvazjrcnfbaqywu",
"stadium": "xhgjjmzuxjubqouzswiwx",
"is_home": true,
"status": "completed",
"club_score": 11,
"opponent_score": 9
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/matches/{id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/matches/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/matches/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/standings
Example request:
curl --request POST \
"http://localhost/api/v1/standings" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"club_id\": 17,
\"competition\": \"mqeopfuudtdsufvyvddqa\",
\"category\": \"mniihfqcoynlazghdtqtq\",
\"season\": \"xbajwbpilpmufinll\",
\"position\": 79,
\"team_name\": \"loauydlsmsjuryvojcybz\",
\"played\": 17,
\"wins\": 17,
\"draws\": 17,
\"losses\": 17,
\"goals_for\": 17,
\"goals_against\": 17,
\"points\": 17,
\"is_club\": false
}"
const url = new URL(
"http://localhost/api/v1/standings"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"club_id": 17,
"competition": "mqeopfuudtdsufvyvddqa",
"category": "mniihfqcoynlazghdtqtq",
"season": "xbajwbpilpmufinll",
"position": 79,
"team_name": "loauydlsmsjuryvojcybz",
"played": 17,
"wins": 17,
"draws": 17,
"losses": 17,
"goals_for": 17,
"goals_against": 17,
"points": 17,
"is_club": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/v1/standings/{id}
Example request:
curl --request PUT \
"http://localhost/api/v1/standings/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"club_id\": 17,
\"competition\": \"mqeopfuudtdsufvyvddqa\",
\"category\": \"mniihfqcoynlazghdtqtq\",
\"season\": \"xbajwbpilpmufinll\",
\"position\": 79,
\"team_name\": \"loauydlsmsjuryvojcybz\",
\"played\": 17,
\"wins\": 17,
\"draws\": 17,
\"losses\": 17,
\"goals_for\": 17,
\"goals_against\": 17,
\"points\": 17,
\"is_club\": false
}"
const url = new URL(
"http://localhost/api/v1/standings/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"club_id": 17,
"competition": "mqeopfuudtdsufvyvddqa",
"category": "mniihfqcoynlazghdtqtq",
"season": "xbajwbpilpmufinll",
"position": 79,
"team_name": "loauydlsmsjuryvojcybz",
"played": 17,
"wins": 17,
"draws": 17,
"losses": 17,
"goals_for": 17,
"goals_against": 17,
"points": 17,
"is_club": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/standings/{id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/standings/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/standings/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/products
Example request:
curl --request POST \
"http://localhost/api/v1/products" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"club_id\": 17,
\"slug\": \"mqeopfuudtdsufvyvddqa\",
\"name_fr\": \"mniihfqcoynlazghdtqtq\",
\"name_en\": \"xbajwbpilpmufinllwloa\",
\"category\": \"uydlsmsjuryvojcybzvrb\",
\"price\": \"yickznkygloigmkwxphlv\",
\"image\": \"azjrcnfbaqywuxhgjjmzu\",
\"is_new\": true,
\"is_sale\": false,
\"old_price\": \"ubqouzswiwxtrkimfcatb\",
\"rating\": 5,
\"reviews\": 66,
\"is_active\": false
}"
const url = new URL(
"http://localhost/api/v1/products"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"club_id": 17,
"slug": "mqeopfuudtdsufvyvddqa",
"name_fr": "mniihfqcoynlazghdtqtq",
"name_en": "xbajwbpilpmufinllwloa",
"category": "uydlsmsjuryvojcybzvrb",
"price": "yickznkygloigmkwxphlv",
"image": "azjrcnfbaqywuxhgjjmzu",
"is_new": true,
"is_sale": false,
"old_price": "ubqouzswiwxtrkimfcatb",
"rating": 5,
"reviews": 66,
"is_active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/v1/products/{id}
Example request:
curl --request PUT \
"http://localhost/api/v1/products/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"club_id\": 17,
\"slug\": \"mqeopfuudtdsufvyvddqa\",
\"name_fr\": \"mniihfqcoynlazghdtqtq\",
\"name_en\": \"xbajwbpilpmufinllwloa\",
\"category\": \"uydlsmsjuryvojcybzvrb\",
\"price\": \"yickznkygloigmkwxphlv\",
\"image\": \"azjrcnfbaqywuxhgjjmzu\",
\"is_new\": true,
\"is_sale\": false,
\"old_price\": \"ubqouzswiwxtrkimfcatb\",
\"rating\": 5,
\"reviews\": 66,
\"is_active\": false
}"
const url = new URL(
"http://localhost/api/v1/products/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"club_id": 17,
"slug": "mqeopfuudtdsufvyvddqa",
"name_fr": "mniihfqcoynlazghdtqtq",
"name_en": "xbajwbpilpmufinllwloa",
"category": "uydlsmsjuryvojcybzvrb",
"price": "yickznkygloigmkwxphlv",
"image": "azjrcnfbaqywuxhgjjmzu",
"is_new": true,
"is_sale": false,
"old_price": "ubqouzswiwxtrkimfcatb",
"rating": 5,
"reviews": 66,
"is_active": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/products/{id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/products/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/products/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/media
Example request:
curl --request POST \
"http://localhost/api/v1/media" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"mediable_type\": \"player\",
\"mediable_id\": 45,
\"type\": \"qeopfuudtdsufvyvddqam\",
\"title\": \"niihfqcoynlazghdtqtqx\",
\"url\": \"http:\\/\\/www.adams.com\\/\"
}"
const url = new URL(
"http://localhost/api/v1/media"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"mediable_type": "player",
"mediable_id": 45,
"type": "qeopfuudtdsufvyvddqam",
"title": "niihfqcoynlazghdtqtqx",
"url": "http:\/\/www.adams.com\/"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/v1/media/{media_id}
Example request:
curl --request DELETE \
"http://localhost/api/v1/media/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/media/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/clubs/{club_slug}/actualites
Example request:
curl --request GET \
--get "http://localhost/api/v1/clubs/consequatur/actualites" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/clubs/consequatur/actualites"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 56
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/clubs/{club_slug}/calendrier
Example request:
curl --request GET \
--get "http://localhost/api/v1/clubs/consequatur/calendrier" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/clubs/consequatur/calendrier"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 55
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/clubs/{club_slug}/resultats
Example request:
curl --request GET \
--get "http://localhost/api/v1/clubs/consequatur/resultats" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/clubs/consequatur/resultats"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 54
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/clubs/{club_slug}/classement
Example request:
curl --request GET \
--get "http://localhost/api/v1/clubs/consequatur/classement" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/clubs/consequatur/classement"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 53
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/clubs/{club_slug}/boutique
Example request:
curl --request GET \
--get "http://localhost/api/v1/clubs/consequatur/boutique" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/clubs/consequatur/boutique"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 52
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/news
Example request:
curl --request GET \
--get "http://localhost/api/v1/news" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/news"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 49
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/news/{id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/news/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/news/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 48
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/matches
Example request:
curl --request GET \
--get "http://localhost/api/v1/matches" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/matches"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 47
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/matches/{id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/matches/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/matches/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 46
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/standings
Example request:
curl --request GET \
--get "http://localhost/api/v1/standings" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/standings"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 45
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/standings/{id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/standings/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/standings/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/products
Example request:
curl --request GET \
--get "http://localhost/api/v1/products" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/products"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 58
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/products/{id}
Example request:
curl --request GET \
--get "http://localhost/api/v1/products/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/products/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 57
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/media
Example request:
curl --request GET \
--get "http://localhost/api/v1/media" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/media"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 56
access-control-allow-origin: *
{
"message": "Les paramètres mediable_type et mediable_id sont requis."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Joueurs
Créer un joueur
requires authentication
Example request:
curl --request POST \
"http://localhost/api/v1/players" \
--header "Authorization: Bearer Bearer {YOUR_SANCTUM_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"team_id\": 3,
\"number\": 13,
\"first_name\": \"qeopfuudtdsufvyvddqam\",
\"last_name\": \"niihfqcoynlazghdtqtqx\",
\"date_of_birth\": \"2026-06-04T17:22:43\",
\"position\": \"midfielder\",
\"height\": \"ydlsmsjuryvojcybz\",
\"photo\": \"http:\\/\\/pollich.com\\/quia-dicta-in-aut-provident-qui-a-voluptatem-dignissimos.html\",
\"name\": \"Naby Keita\"
}"
const url = new URL(
"http://localhost/api/v1/players"
);
const headers = {
"Authorization": "Bearer Bearer {YOUR_SANCTUM_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"team_id": 3,
"number": 13,
"first_name": "qeopfuudtdsufvyvddqam",
"last_name": "niihfqcoynlazghdtqtqx",
"date_of_birth": "2026-06-04T17:22:43",
"position": "midfielder",
"height": "ydlsmsjuryvojcybz",
"photo": "http:\/\/pollich.com\/quia-dicta-in-aut-provident-qui-a-voluptatem-dignissimos.html",
"name": "Naby Keita"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mettre à jour un joueur
requires authentication
Example request:
curl --request PUT \
"http://localhost/api/v1/players/17" \
--header "Authorization: Bearer Bearer {YOUR_SANCTUM_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"team_id\": 3,
\"number\": 13,
\"first_name\": \"qeopfuudtdsufvyvddqam\",
\"last_name\": \"niihfqcoynlazghdtqtqx\",
\"date_of_birth\": \"2026-06-04T17:22:47\",
\"position\": \"midfielder\",
\"height\": \"ydlsmsjuryvojcybz\",
\"photo\": \"http:\\/\\/pollich.com\\/quia-dicta-in-aut-provident-qui-a-voluptatem-dignissimos.html\",
\"name\": \"Naby Keita\"
}"
const url = new URL(
"http://localhost/api/v1/players/17"
);
const headers = {
"Authorization": "Bearer Bearer {YOUR_SANCTUM_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"team_id": 3,
"number": 13,
"first_name": "qeopfuudtdsufvyvddqam",
"last_name": "niihfqcoynlazghdtqtqx",
"date_of_birth": "2026-06-04T17:22:47",
"position": "midfielder",
"height": "ydlsmsjuryvojcybz",
"photo": "http:\/\/pollich.com\/quia-dicta-in-aut-provident-qui-a-voluptatem-dignissimos.html",
"name": "Naby Keita"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprimer un joueur
requires authentication
Example request:
curl --request DELETE \
"http://localhost/api/v1/players/17" \
--header "Authorization: Bearer Bearer {YOUR_SANCTUM_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/players/17"
);
const headers = {
"Authorization": "Bearer Bearer {YOUR_SANCTUM_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Liste des joueurs
Retourne la liste paginée des joueurs avec filtres optionnels.
Example request:
curl --request GET \
--get "http://localhost/api/v1/players?per_page=15&team_id=2&club_slug=hafia-fc" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/players"
);
const params = {
"per_page": "15",
"team_id": "2",
"club_slug": "hafia-fc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 51
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Détail d'un joueur
Example request:
curl --request GET \
--get "http://localhost/api/v1/players/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/players/17"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 50
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.