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_TOKEN".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
Use Sanctum token for authenticated endpoints.
Documents
Upload document.
requires authentication
Upload a required document for a registration.
Example request:
curl --request POST \
"https://api.muhammadiyahgames.online/api/registrations/16/documents" \
--header "Authorization: Bearer Bearer YOUR_TOKEN" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "type=identity_card"\
--form "file=@/tmp/phpfU3tWe" const url = new URL(
"https://api.muhammadiyahgames.online/api/registrations/16/documents"
);
const headers = {
"Authorization": "Bearer Bearer YOUR_TOKEN",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('type', 'identity_card');
body.append('file', document.querySelector('input[name="file"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (201):
{
"success": true,
"message": "Document uploaded successfully.",
"data": {
"id": 1,
"type": "identity_card",
"status": "pending"
}
}
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.
List documents for a registration.
requires authentication
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/registrations/16/documents" \
--header "Authorization: Bearer Bearer YOUR_TOKEN" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/registrations/16/documents"
);
const headers = {
"Authorization": "Bearer Bearer YOUR_TOKEN",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
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.
Approve document.
requires authentication
Approve a submitted document.
Example request:
curl --request PATCH \
"https://api.muhammadiyahgames.online/api/registrations/16/documents/16/approve" \
--header "Authorization: Bearer Bearer YOUR_TOKEN" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/registrations/16/documents/16/approve"
);
const headers = {
"Authorization": "Bearer Bearer YOUR_TOKEN",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());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.
Reject document.
requires authentication
Reject a document with optional note.
Example request:
curl --request PATCH \
"https://api.muhammadiyahgames.online/api/registrations/16/documents/16/reject" \
--header "Authorization: Bearer Bearer YOUR_TOKEN" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"admin_note\": \"File is blurry.\"
}"
const url = new URL(
"https://api.muhammadiyahgames.online/api/registrations/16/documents/16/reject"
);
const headers = {
"Authorization": "Bearer Bearer YOUR_TOKEN",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"admin_note": "File is blurry."
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());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/auth/login
Example request:
curl --request POST \
"https://api.muhammadiyahgames.online/api/auth/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"gbailey@example.net\",
\"password\": \"|]|{+-\"
}"
const url = new URL(
"https://api.muhammadiyahgames.online/api/auth/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "gbailey@example.net",
"password": "|]|{+-"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());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/auth/logout
Example request:
curl --request POST \
"https://api.muhammadiyahgames.online/api/auth/logout" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/auth/logout"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());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/master/sports
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/master/sports" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/master/sports"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
access-control-allow-origin: *
{
"success": true,
"data": []
}
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.
Display a listing of venues
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/venues" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/venues"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 58
access-control-allow-origin: *
[]
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.
Store a newly created venue
Example request:
curl --request POST \
"https://api.muhammadiyahgames.online/api/venues" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"city\": \"n\",
\"address\": \"g\"
}"
const url = new URL(
"https://api.muhammadiyahgames.online/api/venues"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"city": "n",
"address": "g"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());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.
Display the specified venue
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/venues/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/venues/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 57
access-control-allow-origin: *
{
"message": "No query results for model [App\\Models\\Venue] 16"
}
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.
Update the specified venue
Example request:
curl --request PUT \
"https://api.muhammadiyahgames.online/api/venues/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"city\": \"n\",
\"address\": \"g\"
}"
const url = new URL(
"https://api.muhammadiyahgames.online/api/venues/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"city": "n",
"address": "g"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());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.
Remove the specified venue
Example request:
curl --request DELETE \
"https://api.muhammadiyahgames.online/api/venues/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/venues/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());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/my-contingent
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/my-contingent" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/my-contingent"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
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/athletes
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/athletes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/athletes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
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/athletes
Example request:
curl --request POST \
"https://api.muhammadiyahgames.online/api/athletes" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"contingent_id\": \"architecto\",
\"name\": \"n\",
\"gender\": \"male\",
\"birth_date\": \"2026-03-13T09:00:08\"
}"
const url = new URL(
"https://api.muhammadiyahgames.online/api/athletes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"contingent_id": "architecto",
"name": "n",
"gender": "male",
"birth_date": "2026-03-13T09:00:08"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());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/athletes/{id}
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/athletes/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/athletes/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
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.
PUT api/athletes/{id}
Example request:
curl --request PUT \
"https://api.muhammadiyahgames.online/api/athletes/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"contingent_id\": \"architecto\",
\"name\": \"n\",
\"gender\": \"female\",
\"birth_date\": \"2026-03-13T09:00:08\"
}"
const url = new URL(
"https://api.muhammadiyahgames.online/api/athletes/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"contingent_id": "architecto",
"name": "n",
"gender": "female",
"birth_date": "2026-03-13T09:00:08"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());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/athletes/{id}
Example request:
curl --request DELETE \
"https://api.muhammadiyahgames.online/api/athletes/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/athletes/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());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/teams
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/teams" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/teams"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
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/teams
Example request:
curl --request POST \
"https://api.muhammadiyahgames.online/api/teams" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"contingent_id\": \"architecto\",
\"name\": \"n\"
}"
const url = new URL(
"https://api.muhammadiyahgames.online/api/teams"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"contingent_id": "architecto",
"name": "n"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());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/teams/{id}
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/teams/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/teams/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
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.
PUT api/teams/{id}
Example request:
curl --request PUT \
"https://api.muhammadiyahgames.online/api/teams/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"contingent_id\": \"architecto\",
\"name\": \"n\"
}"
const url = new URL(
"https://api.muhammadiyahgames.online/api/teams/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"contingent_id": "architecto",
"name": "n"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());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/teams/{id}
Example request:
curl --request DELETE \
"https://api.muhammadiyahgames.online/api/teams/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/teams/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());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.
Store new draft registration.
Example request:
curl --request POST \
"https://api.muhammadiyahgames.online/api/registrations" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"event_id\": 1,
\"athlete_id\": 10,
\"team_id\": 5,
\"notes\": \"Participant requires special equipment.\"
}"
const url = new URL(
"https://api.muhammadiyahgames.online/api/registrations"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"event_id": 1,
"athlete_id": 10,
"team_id": 5,
"notes": "Participant requires special equipment."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());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.
Display list of authenticated user's registrations.
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/registrations" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/registrations"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
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.
Show single registration.
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/registrations/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/registrations/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
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.
Delete draft registration.
Example request:
curl --request DELETE \
"https://api.muhammadiyahgames.online/api/registrations/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/registrations/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());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.
Submit registration (User).
Example request:
curl --request PATCH \
"https://api.muhammadiyahgames.online/api/workflow/registrations/16/submit" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/workflow/registrations/16/submit"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());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.
Move registration to review (Admin).
Example request:
curl --request PATCH \
"https://api.muhammadiyahgames.online/api/workflow/registrations/16/review" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/workflow/registrations/16/review"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());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.
Approve registration (Admin).
Example request:
curl --request PATCH \
"https://api.muhammadiyahgames.online/api/workflow/registrations/16/approve" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/workflow/registrations/16/approve"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());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.
Reject registration (Admin).
Example request:
curl --request PATCH \
"https://api.muhammadiyahgames.online/api/workflow/registrations/16/reject" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/workflow/registrations/16/reject"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());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.
Create or update result (Admin).
Example request:
curl --request POST \
"https://api.muhammadiyahgames.online/api/results" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"category_id\": \"architecto\"
}"
const url = new URL(
"https://api.muhammadiyahgames.online/api/results"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"category_id": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());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.
Show public result by category.
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/results/category/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/results/category/architecto"
);
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/schedule
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/schedule" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/schedule"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 55
access-control-allow-origin: *
{
"success": true,
"data": []
}
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/schedule/{id}
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/schedule/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/schedule/architecto"
);
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.
Create or update result (Admin).
Example request:
curl --request POST \
"https://api.muhammadiyahgames.online/api/admin/results" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"category_id\": \"architecto\"
}"
const url = new URL(
"https://api.muhammadiyahgames.online/api/admin/results"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"category_id": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());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.
Lock result (Admin).
Example request:
curl --request PATCH \
"https://api.muhammadiyahgames.online/api/admin/results/16/lock" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/admin/results/16/lock"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());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.
Publish result (Admin).
Example request:
curl --request PATCH \
"https://api.muhammadiyahgames.online/api/admin/results/16/publish" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/admin/results/16/publish"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());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.
Display paginated audit logs (Admin only).
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/admin/audit-logs" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/admin/audit-logs"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
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/stats/dashboard
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/stats/dashboard" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/stats/dashboard"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
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/ping
Example request:
curl --request GET \
--get "https://api.muhammadiyahgames.online/api/ping" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.muhammadiyahgames.online/api/ping"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "API Working"
}
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.