MENU navbar-image

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

This API is not authenticated.

Endpoints

POST api/v1/auth/login

Example request:
curl --request POST \
    "http://ika-sma-6-admin-dashboard.test/api/v1/auth/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"gbailey@example.net\",
    \"password\": \"|]|{+-\",
    \"device_name\": \"architecto\"
}"
const url = new URL(
    "http://ika-sma-6-admin-dashboard.test/api/v1/auth/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "gbailey@example.net",
    "password": "|]|{+-",
    "device_name": "architecto"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/auth/login

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

email   string     

Must be a valid email address. Example: gbailey@example.net

password   string     

Example: |]|{+-

device_name   string  optional    

Example: architecto

GET api/v1/auth/me

Example request:
curl --request GET \
    --get "http://ika-sma-6-admin-dashboard.test/api/v1/auth/me" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://ika-sma-6-admin-dashboard.test/api/v1/auth/me"
);

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."
}
 

Request      

GET api/v1/auth/me

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/v1/auth/logout

Example request:
curl --request POST \
    "http://ika-sma-6-admin-dashboard.test/api/v1/auth/logout" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://ika-sma-6-admin-dashboard.test/api/v1/auth/logout"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/auth/logout

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/v1/auth/logout-all

Example request:
curl --request POST \
    "http://ika-sma-6-admin-dashboard.test/api/v1/auth/logout-all" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://ika-sma-6-admin-dashboard.test/api/v1/auth/logout-all"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/auth/logout-all

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET /api/v1/alumni Public list with filters & pagination

Example request:
curl --request GET \
    --get "http://ika-sma-6-admin-dashboard.test/api/v1/alumni" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"graduation_year\": 16,
    \"location\": \"non-makassar\",
    \"per_page\": 22
}"
const url = new URL(
    "http://ika-sma-6-admin-dashboard.test/api/v1/alumni"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "graduation_year": 16,
    "location": "non-makassar",
    "per_page": 22
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "status": "success",
    "data": {
        "current_page": 1,
        "data": [],
        "first_page_url": "http://ika-sma-6-admin-dashboard.test/api/v1/alumni?page=1",
        "from": null,
        "last_page": 1,
        "last_page_url": "http://ika-sma-6-admin-dashboard.test/api/v1/alumni?page=1",
        "links": [
            {
                "url": null,
                "label": "&laquo; Previous",
                "page": null,
                "active": false
            },
            {
                "url": "http://ika-sma-6-admin-dashboard.test/api/v1/alumni?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Next &raquo;",
                "page": null,
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "http://ika-sma-6-admin-dashboard.test/api/v1/alumni",
        "per_page": 22,
        "prev_page_url": null,
        "to": null,
        "total": 0
    }
}
 

Request      

GET api/v1/alumni

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

graduation_year   integer  optional    

Example: 16

location   string  optional    

Example: non-makassar

Must be one of:
  • makassar
  • non-makassar
per_page   integer  optional    

Must be at least 1. Must not be greater than 100. Example: 22

GET /api/v1/alumni/{id} Public detail

Example request:
curl --request GET \
    --get "http://ika-sma-6-admin-dashboard.test/api/v1/alumni/019c2c17-45d6-70bd-9410-adcff46620af" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://ika-sma-6-admin-dashboard.test/api/v1/alumni/019c2c17-45d6-70bd-9410-adcff46620af"
);

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: *
 

{
    "status": "success",
    "data": {
        "id": "019c2c17-45d6-70bd-9410-adcff46620af",
        "name": "El Chan cantik",
        "nisn": "1232123",
        "graduation_year": 2003,
        "location": "non-makassar",
        "ethnicity": "Jowo Keknyo",
        "domicile": "Jowo keknyo",
        "address": null,
        "profession": "Cosplayer",
        "position": "Cosplayer apa ya",
        "hobby": "Ngecosplay lah",
        "contact_number": "085343675435",
        "image_url": "http://ika-sma-6-admin-dashboard.test/storage/alumni/01KGP1EHDJWGQ8A36X6PC9BK49.jpg"
    }
}
 

Request      

GET api/v1/alumni/{alumni_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

alumni_id   string     

The ID of the alumni. Example: 019c2c17-45d6-70bd-9410-adcff46620af

GET /api/v1/activity Public list with filters & pagination

Example request:
curl --request GET \
    --get "http://ika-sma-6-admin-dashboard.test/api/v1/activity" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"location\": \"architecto\",
    \"from\": \"2026-02-07T09:11:10\",
    \"to\": \"2052-03-02\",
    \"per_page\": 22
}"
const url = new URL(
    "http://ika-sma-6-admin-dashboard.test/api/v1/activity"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "location": "architecto",
    "from": "2026-02-07T09:11:10",
    "to": "2052-03-02",
    "per_page": 22
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "status": "success",
    "data": {
        "current_page": 1,
        "data": [],
        "first_page_url": "http://ika-sma-6-admin-dashboard.test/api/v1/activity?page=1",
        "from": null,
        "last_page": 1,
        "last_page_url": "http://ika-sma-6-admin-dashboard.test/api/v1/activity?page=1",
        "links": [
            {
                "url": null,
                "label": "&laquo; Previous",
                "page": null,
                "active": false
            },
            {
                "url": "http://ika-sma-6-admin-dashboard.test/api/v1/activity?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Next &raquo;",
                "page": null,
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "http://ika-sma-6-admin-dashboard.test/api/v1/activity",
        "per_page": 22,
        "prev_page_url": null,
        "to": null,
        "total": 0
    }
}
 

Request      

GET api/v1/activity

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

location   string  optional    

Example: architecto

from   string  optional    

or restrict with in:... if you have fixed enums. Must be a valid date. Example: 2026-02-07T09:11:10

to   string  optional    

Must be a valid date. Must be a date after or equal to from. Example: 2052-03-02

per_page   integer  optional    

Must be at least 1. Must not be greater than 100. Example: 22

GET /api/v1/activity/{id} Public detail

Example request:
curl --request GET \
    --get "http://ika-sma-6-admin-dashboard.test/api/v1/activity/architecto" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://ika-sma-6-admin-dashboard.test/api/v1/activity/architecto"
);

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
access-control-allow-origin: *
 

{
    "message": "No query results for model [App\\Models\\Activity] architecto"
}
 

Request      

GET api/v1/activity/{activity_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

activity_id   string     

The ID of the activity. Example: architecto