MENU navbar-image

Introduction

This documentation aims to provide all the information you need to work with our API.

Authenticating requests

Authenticate requests to this API's endpoints by sending an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by visiting your dashboard and clicking Generate API token.

Application Settings

List Application Settings

requires authentication

List application settings.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/application-settings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"order_by\": \"asc\",
    \"search\": \"magni\",
    \"paginate\": false,
    \"page_size\": 17
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/application-settings"
);

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

let body = {
    "order_by": "asc",
    "search": "magni",
    "paginate": false,
    "page_size": 17
};

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

Example response (200):


{}
 

Request      

GET api/application-settings

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

sort_by   string  optional  
order_by   string  optional  

Must be one of asc or desc. Example: asc

search   string  optional  

Example: magni

paginate   boolean  optional  

Example: false

page_size   integer  optional  

Example: 17

Show Application Settings

requires authentication

Show application settings.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/application-settings/3" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/application-settings/3"
);

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

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

Example response (200):


{}
 

Request      

GET api/application-settings/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the application setting. Example: 3

Update Application Settings

requires authentication

Update application settings.

Example request:
curl --request PUT \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/application-settings/3" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": false,
    \"key\": \"hafbcfersyfxwxhsugbz\"
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/application-settings/3"
);

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

let body = {
    "status": false,
    "key": "hafbcfersyfxwxhsugbz"
};

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

Example response (200):


{}
 

Request      

PUT api/application-settings/{id}

PATCH api/application-settings/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the application setting. Example: 3

Body Parameters

value   string  optional  

The value of the application setting.

transcript   string  optional  

The transcript associated with the setting (if applicable).

status   boolean  optional  

The status of the application setting (if applicable). Example: false

key   string  optional  

The key of the application setting (e.g., "introduction_video_en"). Must not be greater than 255 characters. Example: hafbcfersyfxwxhsugbz

Get By Key

requires authentication

Show application setting by key.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/application-setting/get-by-key" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/application-setting/get-by-key"
);

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

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

Example response (200):


{}
 

Request      

GET api/application-setting/get-by-key

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

List Application Settings

requires authentication

List application settings.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/application-settings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"order_by\": \"desc\",
    \"search\": \"molestiae\",
    \"paginate\": true,
    \"page_size\": 8
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/application-settings"
);

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

let body = {
    "order_by": "desc",
    "search": "molestiae",
    "paginate": true,
    "page_size": 8
};

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

Example response (200):


{}
 

Request      

GET api/app/application-settings

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

sort_by   string  optional  
order_by   string  optional  

Must be one of asc or desc. Example: desc

search   string  optional  

Example: molestiae

paginate   boolean  optional  

Example: true

page_size   integer  optional  

Example: 8

Get By Key

requires authentication

Show application setting by key.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/application-setting/get-by-key" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/application-setting/get-by-key"
);

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

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

Example response (200):


{}
 

Request      

GET api/app/application-setting/get-by-key

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Authentication

APIs for managing authentication

User Signup

User registration

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/auth/register" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"first_name\": \"architecto\",
    \"last_name\": \"ut\",
    \"email\": \"kurt19@example.net\",
    \"password\": \"r#_9u1:lXP6,znkAe\",
    \"password_confirmation\": \"dolores\",
    \"device_id\": \"nesciunt\",
    \"age_group\": \"corporis\"
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/auth/register"
);

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

let body = {
    "first_name": "architecto",
    "last_name": "ut",
    "email": "kurt19@example.net",
    "password": "r#_9u1:lXP6,znkAe",
    "password_confirmation": "dolores",
    "device_id": "nesciunt",
    "age_group": "corporis"
};

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

Example response (200):


{
    "success": true,
    "status": 200,
    "message": [
        "User Created Successfully"
    ],
    "data": {
        "token": "2|adXzLdshENdL92eH93VW1IQ2noIYBoiIx94PBUzY",
        "user": {
            "id": 5,
            "first_name": "test123",
            "last_name": "name123",
            "email": "test1@mailinator.com",
            "age_group": "youth",
            "created_at": "2023-03-06T09:32:06.000000Z",
            "updated_at": "2023-03-06T09:32:06.000000Z",
            "role": [
                "user"
            ],
            "user_detail": null
        }
    }
}
 

Request      

POST api/auth/register

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

first_name   string   

The first name. Example: architecto

last_name   string   

The last name. Example: ut

email   string   

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

password   string   

The password. Must be at least 4 characters. Example: r#_9u1:lXP6,znkAe

password_confirmation   string   

The password confirmation. The value and password must match. Example: dolores

device_id   string   

The Device Id. Example: nesciunt

age_group   string   

The age group. Example: corporis

other   string  optional  

Any other field.

Guest User

Guest User

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/auth/guest-user" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"device_id\": \"86d72d8a-ad00-49c8-add0-ff2acec176d5\"
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/auth/guest-user"
);

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

let body = {
    "device_id": "86d72d8a-ad00-49c8-add0-ff2acec176d5"
};

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

Example response (200):


*{
   "success": true,
   "status_code": 200,
   "message": "Guest user Created Successfully",
   "data": {
       "token": "90|m6isq21T5UxllvvR5ioKzrksA3j6L0gEOalflz49",
       "user": {
           "id": 22,
           "first_name": 1691144063,
           "last_name": 1691144063,
           "email": "1691144063@guestuser.com",
           "age_group": "youth",
           "created_at": "2023-08-04T10:14:23.000000Z",
           "updated_at": "2023-08-04T10:14:23.000000Z",
           "role": [
               "guest"
           ],
           "user_detail": null
       }
   }
}
 

Request      

POST api/auth/guest-user

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

device_id   string  optional  

The Device Id is required. Example: 86d72d8a-ad00-49c8-add0-ff2acec176d5

User Login

User login request

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/auth/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"leif55@example.org\",
    \"password\": \"aspernatur\"
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/auth/login"
);

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

let body = {
    "email": "leif55@example.org",
    "password": "aspernatur"
};

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

Example response (200):


{
    "success": true,
    "status": 200,
    "message": [
        "User Logged In Successfully"
    ],
    "data": {
        "token": "3|G16ZrNg2JeIwJvYvzB1pRMzraQaZKYP19kf2LPbh",
        "user": {
            "id": 5,
            "first_name": "test123",
            "last_name": "name123",
            "email": "test1@mailinator.com",
            "age_group": "youth",
            "created_at": "2023-03-06T09:32:06.000000Z",
            "updated_at": "2023-03-06T09:32:06.000000Z",
            "role": [
                "user"
            ],
            "user_detail": null
        }
    }
}
 

Request      

POST api/auth/login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

email   string   

The user's email address. Must be a valid email address. Example: leif55@example.org

password   string   

The user's password. Example: aspernatur

User Profile

requires authentication

Get profile from login session

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/auth/profile" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/auth/profile"
);

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

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

Example response (200):


{
    "success": true,
    "status": 200,
    "message": [
        "User fetched successfully"
    ],
    "data": {
        "id": 5,
        "first_name": "test123",
        "last_name": "name123",
        "email": "test1@mailinator.com",
        "age_group": "youth",
        "created_at": "2023-03-06T09:32:06.000000Z",
        "updated_at": "2023-03-06T09:32:06.000000Z",
        "role": [
            "user"
        ],
        "user_detail": null
    }
}
 

Request      

POST api/auth/profile

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

User Sign-out

requires authentication

User signout request

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/auth/logout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/auth/logout"
);

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

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

Example response (200):


{
    "success": true,
    "status": 200,
    "message": [
        "User Logged Out Successfully"
    ],
    "data": []
}
 

Request      

POST api/auth/logout

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Update Profile

requires authentication

Update profile from login session

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/auth/update_profile" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"first_name\": \"repellat\",
    \"last_name\": \"consequatur\",
    \"email\": \"orpha.strosin@example.org\",
    \"password\": \"0719\",
    \"password_confirmation\": \"omnis\",
    \"age_group\": \"quo\"
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/auth/update_profile"
);

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

let body = {
    "first_name": "repellat",
    "last_name": "consequatur",
    "email": "orpha.strosin@example.org",
    "password": "0719",
    "password_confirmation": "omnis",
    "age_group": "quo"
};

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

Example response (200):


{}
 

Request      

POST api/auth/update_profile

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

first_name   string   

The first name of the user. Example: repellat

last_name   string   

The last name of the user. Example: consequatur

email   string   

The email address of the user. Must be unique among users, excluding the current user. Must be a valid email address. Example: orpha.strosin@example.org

password   string   

The password for the user (if included in the request). Must be 4 digits. Example: 0719

password_confirmation   string   

The password confirmation (if included in the request and matching the password). The value and password must match. Example: omnis

age_group   string   

The age group of the user (e.g., "youth", "adult", "elder"). Example: quo

other   string  optional  

Any other optional information about the user.

Exercise

List Exercise

requires authentication

List application Exercise.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise"
);

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

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": "Exercises fetch successfully",
    "data": {
        "list": [
            {
                "id": 1,
                "season_id": 1,
                "exercise_type_id": 5,
                "title": "Exercise 1",
                "description": "test",
                "duration": null,
                "attachments": [
                    {
                        "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                        "type": "audio",
                        "background_image": "https://via.placeholder.com/240x300",
                        "transcript": null
                    },
                    {
                        "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                        "type": "audio",
                        "background_image": "https://via.placeholder.com/240x300",
                        "transcript": null
                    },
                    {
                        "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                        "type": "audio",
                        "background_image": "https://via.placeholder.com/240x300",
                        "transcript": null
                    },
                    {
                        "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                        "type": "audio",
                        "background_image": "https://via.placeholder.com/240x300",
                        "transcript": null
                    }
                ],
                "exerciseType": {
                    "id": 5,
                    "name": "Sounds",
                    "background_image": "http://kind-mind-backend.local/assets/images/listen.png",
                    "content_type": "audio",
                    "status": 1
                },
                "season": {
                    "id": 1,
                    "name": "Ukiuq",
                    "logo": "http://kind-mind-backend.local/assets/images/bg_image.png",
                    "icon": "http://kind-mind-backend.local/assets/icons/spring.svg",
                    "lang": "en",
                    "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed",
                    "other": {
                        "gradient_color": [
                            "#82A9D3",
                            "#A7C2E0"
                        ],
                        "background_color": "#82A9D3"
                    }
                }
            }
        ],
        "pagination": {
            "total": 1,
            "current": 1,
            "first": 1,
            "last": 1,
            "previous": 0,
            "next": 1,
            "pages": [
                1
            ],
            "from": 1,
            "to": 1
        }
    }
}
 

Request      

GET api/exercise

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Store Exercise

requires authentication

Store application Exercise.

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"__asterisk__\": {
        \"title\": \"voluptatem\",
        \"season_id\": \"eum\",
        \"exercise_type_id\": \"ut\",
        \"attachments\": [
            {
                \"file\": \"https:\\/\\/pfeffer.com\\/dicta-soluta-animi-tenetur-dolores-repellendus-et-mollitia.html\",
                \"background_image\": \"http:\\/\\/www.vonrueden.com\\/tempore-eos-quos-officiis-consequatur\",
                \"type\": \"video\"
            }
        ],
        \"is_additional\": false
    }
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise"
);

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

let body = {
    "__asterisk__": {
        "title": "voluptatem",
        "season_id": "eum",
        "exercise_type_id": "ut",
        "attachments": [
            {
                "file": "https:\/\/pfeffer.com\/dicta-soluta-animi-tenetur-dolores-repellendus-et-mollitia.html",
                "background_image": "http:\/\/www.vonrueden.com\/tempore-eos-quos-officiis-consequatur",
                "type": "video"
            }
        ],
        "is_additional": false
    }
};

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

Example response (200):


{}
 

Request      

POST api/exercise

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

__asterisk__   object  optional  
title   string   

Example: voluptatem

season_id   string   

Example: eum

exercise_type_id   string   

Example: ut

description   string  optional  
attachments   object   
0   object  optional  
file   string   

Must be a valid URL. Example: https://pfeffer.com/dicta-soluta-animi-tenetur-dolores-repellendus-et-mollitia.html

background_image   string  optional  

Must be a valid URL. Example: http://www.vonrueden.com/tempore-eos-quos-officiis-consequatur

type   string   

Must be one of audio or video. Example: video

transcript   string  optional  
is_additional   boolean  optional  

Example: false

id   string  optional  

Show Exercise

requires authentication

Show application Exercise.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise/2"
);

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

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": "Exercise fetch successfully",
    "data": {
        "id": 1,
        "season_id": 1,
        "exercise_type_id": 5,
        "title": "Exercise 1",
        "description": "test",
        "duration": null,
        "attachments": [
            {
                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                "type": "audio",
                "background_image": "https://via.placeholder.com/240x300",
                "transcript": null
            },
            {
                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                "type": "audio",
                "background_image": "https://via.placeholder.com/240x300",
                "transcript": null
            },
            {
                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                "type": "audio",
                "background_image": "https://via.placeholder.com/240x300",
                "transcript": null
            },
            {
                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                "type": "audio",
                "background_image": "https://via.placeholder.com/240x300",
                "transcript": null
            }
        ]
    }
}
 

Request      

GET api/exercise/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the exercise. Example: 2

Update Exercise

requires authentication

Update application Exercise.

Example request:
curl --request PUT \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"__asterisk__\": {
        \"title\": \"distinctio\",
        \"season_id\": \"blanditiis\",
        \"exercise_type_id\": \"libero\",
        \"attachments\": [
            {
                \"file\": \"eos\",
                \"type\": \"video\"
            }
        ],
        \"is_additional\": false
    }
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise/2"
);

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

let body = {
    "__asterisk__": {
        "title": "distinctio",
        "season_id": "blanditiis",
        "exercise_type_id": "libero",
        "attachments": [
            {
                "file": "eos",
                "type": "video"
            }
        ],
        "is_additional": false
    }
};

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

Example response (200):


{
     "success": true,
     "status_code": 200,
     "message": "Exercise updated successfully",
     "data": {
         "id": 1,
         "season_id": 1,
         "exercise_type_id": 5,
         "title": "Exercise 1",
         "description": "test",
         "duration": 22 sec,
         "attachments": [
             {
                 "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                 "type": "audio",
                 "background_image": "https://via.placeholder.com/240x300",
                 "transcript": null
             },
             {
                 "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                 "type": "audio",
                 "background_image": "https://via.placeholder.com/240x300",
                 "transcript": null
             },
             {
                 "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                 "type": "audio",
                 "background_image": "https://via.placeholder.com/240x300",
                 "transcript": null
             },
             {
                 "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                 "type": "audio",
                 "background_image": "https://via.placeholder.com/240x300",
                 "transcript": null
             }
         ]
     }
 }
 

Request      

PUT api/exercise/{id}

PATCH api/exercise/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the exercise. Example: 2

Body Parameters

__asterisk__   object  optional  
title   string   

Example: distinctio

season_id   string   

Example: blanditiis

exercise_type_id   string   

Example: libero

description   string  optional  
attachments   object   
0   object  optional  
file   string   

Example: eos

background_image   string  optional  
type   string   

Must be one of audio or video. Example: video

transcript   string  optional  
is_additional   boolean  optional  

Example: false

Delete Exercise

requires authentication

Delete application Exercise.

Example request:
curl --request DELETE \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise/2"
);

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

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

Example response (200):


{
     "success": true,
     "status_code": 200,
     "message": "Exercise deleted successfully",
     "data": {
         "id": 1,
         "season_id": 1,
         "exercise_type_id": 5,
         "title": "Exercise 1",
         "description": "test",
         "duration": 22 sec,
         "attachments": [
             {
                 "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                 "type": "audio",
                 "background_image": "https://via.placeholder.com/240x300",
                 "transcript": null
             },
             {
                 "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                 "type": "audio",
                 "background_image": "https://via.placeholder.com/240x300",
                 "transcript": null
             },
             {
                 "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                 "type": "audio",
                 "background_image": "https://via.placeholder.com/240x300",
                 "transcript": null
             },
             {
                 "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                 "type": "audio",
                 "background_image": "https://via.placeholder.com/240x300",
                 "transcript": null
             }
         ]
     }
 }
 

Request      

DELETE api/exercise/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the exercise. Example: 2

POST api/update-exercises

requires authentication

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/update-exercises" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"__asterisk__\": {
        \"title\": \"blanditiis\",
        \"season_id\": \"quo\",
        \"exercise_type_id\": \"aliquid\",
        \"attachments\": [
            {
                \"file\": \"http:\\/\\/www.gerhold.org\\/adipisci-voluptas-excepturi-non-eos-minima-quae-rerum\",
                \"background_image\": \"http:\\/\\/www.kozey.info\\/magnam-expedita-rerum-illo-veritatis-autem-minus.html\",
                \"type\": \"audio\"
            }
        ],
        \"is_additional\": false
    }
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/update-exercises"
);

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

let body = {
    "__asterisk__": {
        "title": "blanditiis",
        "season_id": "quo",
        "exercise_type_id": "aliquid",
        "attachments": [
            {
                "file": "http:\/\/www.gerhold.org\/adipisci-voluptas-excepturi-non-eos-minima-quae-rerum",
                "background_image": "http:\/\/www.kozey.info\/magnam-expedita-rerum-illo-veritatis-autem-minus.html",
                "type": "audio"
            }
        ],
        "is_additional": false
    }
};

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

Request      

POST api/update-exercises

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

__asterisk__   object  optional  
title   string   

Example: blanditiis

season_id   string   

Example: quo

exercise_type_id   string   

Example: aliquid

description   string  optional  
attachments   object   
0   object  optional  
file   string   

Must be a valid URL. Example: http://www.gerhold.org/adipisci-voluptas-excepturi-non-eos-minima-quae-rerum

background_image   string  optional  

Must be a valid URL. Example: http://www.kozey.info/magnam-expedita-rerum-illo-veritatis-autem-minus.html

type   string   

Must be one of audio or video. Example: audio

transcript   string  optional  
is_additional   boolean  optional  

Example: false

id   string  optional  

Delete Multiple Exercises

requires authentication

Delete multiple Exercises.

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/delete-exercises" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/delete-exercises"
);

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

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": "Exercise deleted successfully",
    "data": true
}
 

Request      

POST api/delete-exercises

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Get Exercise Types

requires authentication

Get application Exercise Types.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/get_exercise_types" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"paginate\": true,
    \"page_size\": 6
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/get_exercise_types"
);

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

let body = {
    "paginate": true,
    "page_size": 6
};

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

Example response (200):


{}
 

Request      

GET api/get_exercise_types

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

paginate   boolean  optional  

Example: true

page_size   integer  optional  

Example: 6

List Exercise

requires authentication

List application Exercise.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/exercise" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/exercise"
);

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

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": "Exercises fetch successfully",
    "data": {
        "list": [
            {
                "id": 1,
                "season_id": 1,
                "exercise_type_id": 5,
                "title": "Exercise 1",
                "description": "test",
                "duration": null,
                "attachments": [
                    {
                        "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                        "type": "audio",
                        "background_image": "https://via.placeholder.com/240x300",
                        "transcript": null
                    },
                    {
                        "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                        "type": "audio",
                        "background_image": "https://via.placeholder.com/240x300",
                        "transcript": null
                    },
                    {
                        "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                        "type": "audio",
                        "background_image": "https://via.placeholder.com/240x300",
                        "transcript": null
                    },
                    {
                        "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                        "type": "audio",
                        "background_image": "https://via.placeholder.com/240x300",
                        "transcript": null
                    }
                ],
                "exerciseType": {
                    "id": 5,
                    "name": "Sounds",
                    "background_image": "http://kind-mind-backend.local/assets/images/listen.png",
                    "content_type": "audio",
                    "status": 1
                },
                "season": {
                    "id": 1,
                    "name": "Ukiuq",
                    "logo": "http://kind-mind-backend.local/assets/images/bg_image.png",
                    "icon": "http://kind-mind-backend.local/assets/icons/spring.svg",
                    "lang": "en",
                    "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed",
                    "other": {
                        "gradient_color": [
                            "#82A9D3",
                            "#A7C2E0"
                        ],
                        "background_color": "#82A9D3"
                    }
                }
            }
        ],
        "pagination": {
            "total": 1,
            "current": 1,
            "first": 1,
            "last": 1,
            "previous": 0,
            "next": 1,
            "pages": [
                1
            ],
            "from": 1,
            "to": 1
        }
    }
}
 

Request      

GET api/app/exercise

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Show Exercise

requires authentication

Show application Exercise.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/exercise/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/exercise/2"
);

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

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": "Exercise fetch successfully",
    "data": {
        "id": 1,
        "season_id": 1,
        "exercise_type_id": 5,
        "title": "Exercise 1",
        "description": "test",
        "duration": null,
        "attachments": [
            {
                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                "type": "audio",
                "background_image": "https://via.placeholder.com/240x300",
                "transcript": null
            },
            {
                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                "type": "audio",
                "background_image": "https://via.placeholder.com/240x300",
                "transcript": null
            },
            {
                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                "type": "audio",
                "background_image": "https://via.placeholder.com/240x300",
                "transcript": null
            },
            {
                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                "type": "audio",
                "background_image": "https://via.placeholder.com/240x300",
                "transcript": null
            }
        ]
    }
}
 

Request      

GET api/app/exercise/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the exercise. Example: 2

Get Exercise Types

requires authentication

Get application Exercise Types.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/get-exercise-types" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"paginate\": true,
    \"page_size\": 3
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/get-exercise-types"
);

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

let body = {
    "paginate": true,
    "page_size": 3
};

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

Example response (200):


{}
 

Request      

GET api/app/get-exercise-types

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

paginate   boolean  optional  

Example: true

page_size   integer  optional  

Example: 3

Exercise Types

List Exercise Types

requires authentication

List of all Exercise types.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise-type" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"paginate\": false,
    \"page_size\": 15,
    \"season_id\": 16
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise-type"
);

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

let body = {
    "paginate": false,
    "page_size": 15,
    "season_id": 16
};

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

Example response (200):


{}
 

Request      

GET api/exercise-type

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

paginate   boolean  optional  

Example: false

page_size   integer  optional  

Example: 15

season_id   integer  optional  

Example: 16

Store Exercise Types

requires authentication

Store exercise types.

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise-type" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise-type"
);

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

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

Example response (200):


{}
 

Request      

POST api/exercise-type

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Show Exercise Type

requires authentication

Show Exercise type.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise-type/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise-type/1"
);

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

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

Example response (200):


{}
 

Request      

GET api/exercise-type/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the exercise type. Example: 1

Update Exercise Type

requires authentication

Update Exercise type.

Example request:
curl --request PUT \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise-type/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"enim\",
    \"background_image\": \"animi\"
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/exercise-type/1"
);

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

let body = {
    "name": "enim",
    "background_image": "animi"
};

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

Example response (200):


{}
 

Request      

PUT api/exercise-type/{id}

PATCH api/exercise-type/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the exercise type. Example: 1

Body Parameters

name   string   

The name of the exercise type. Example: enim

background_image   string   

The background image for the exercise type. Example: animi

content_type   string  optional  

The content type (optional).

status   string  optional  

The status (optional).

Update Multiple Exercise Types

requires authentication

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/update-exercise-types" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/update-exercise-types"
);

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

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

Example response (200):


{}
 

Request      

POST api/update-exercise-types

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

List Exercise Types

requires authentication

List of all Exercise types.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/exercise-type" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"paginate\": true,
    \"page_size\": 20,
    \"season_id\": 14
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/exercise-type"
);

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

let body = {
    "paginate": true,
    "page_size": 20,
    "season_id": 14
};

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

Example response (200):


{}
 

Request      

GET api/app/exercise-type

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

paginate   boolean  optional  

Example: true

page_size   integer  optional  

Example: 20

season_id   integer  optional  

Example: 14

Show Exercise Type

requires authentication

Show Exercise type.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/exercise-type/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/exercise-type/1"
);

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

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

Example response (200):


{}
 

Request      

GET api/app/exercise-type/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the exercise type. Example: 1

Feed Backs

List Feed Backs

requires authentication

List application feed back.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/feed-backs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"order_by\": \"asc\",
    \"search\": \"ut\",
    \"paginate\": false,
    \"page_size\": 14
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/feed-backs"
);

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

let body = {
    "order_by": "asc",
    "search": "ut",
    "paginate": false,
    "page_size": 14
};

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

Example response (200):


{}
 

Request      

GET api/feed-backs

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

sort_by   string  optional  
order_by   string  optional  

Must be one of asc or desc. Example: asc

search   string  optional  

Example: ut

paginate   boolean  optional  

Example: false

page_size   integer  optional  

Example: 14

Store Feed Backs

requires authentication

Store application feed back.

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/feed-backs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": \"inventore\",
    \"exercise_id\": \"dolor\",
    \"rating\": 19
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/feed-backs"
);

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

let body = {
    "user_id": "inventore",
    "exercise_id": "dolor",
    "rating": 19
};

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

Example response (200):


{}
 

Request      

POST api/feed-backs

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   string   

The ID of the user providing feedback. Example: inventore

exercise_id   string   

The ID of the exercise associated with the feedback. Example: dolor

rating   integer   

The rating provided in the feedback. Example: 19

Show Feed Backs

requires authentication

Show application feed back.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/feed-backs/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/feed-backs/1"
);

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

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

Example response (200):


{}
 

Request      

GET api/feed-backs/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the feed back. Example: 1

Store Feed Backs

requires authentication

Store application feed back.

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/feed-backs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": \"odit\",
    \"exercise_id\": \"omnis\",
    \"rating\": 7
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/feed-backs"
);

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

let body = {
    "user_id": "odit",
    "exercise_id": "omnis",
    "rating": 7
};

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

Example response (200):


{}
 

Request      

POST api/app/feed-backs

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   string   

The ID of the user providing feedback. Example: odit

exercise_id   string   

The ID of the exercise associated with the feedback. Example: omnis

rating   integer   

The rating provided in the feedback. Example: 7

Permissions

APIs for managing permissions

Get All Permission.

requires authentication

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/permissions?search=view&paginate=rem" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/permissions"
);

const params = {
    "search": "view",
    "paginate": "rem",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "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: *
 

{
    "success": false,
    "status": 401,
    "message": "you are not authenticated. Please login.",
    "data": []
}
 

Request      

GET api/permissions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

search   string  optional  

Filter by name. Example: view

paginate   string  optional  

Paginate the record.Example : true Example: rem

Store Permission.

requires authentication

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/permissions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/permissions"
);

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

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

Request      

POST api/permissions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Get Permission.

requires authentication

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/permissions/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/permissions/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "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: *
 

{
    "success": false,
    "status": 401,
    "message": "you are not authenticated. Please login.",
    "data": []
}
 

Request      

GET api/permissions/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the permission. Example: 1

Update Permission.

requires authentication

Example request:
curl --request PUT \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/permissions/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/permissions/1"
);

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

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

Request      

PUT api/permissions/{id}

PATCH api/permissions/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the permission. Example: 1

Remove Permission.

requires authentication

Example request:
curl --request DELETE \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/permissions/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/permissions/1"
);

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

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

Request      

DELETE api/permissions/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the permission. Example: 1

permission   integer   

The ID of the permission Example: 7

Quotes

List Quotes

requires authentication

List application Quotes.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/quotes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"order_by\": \"desc\",
    \"search\": \"autem\",
    \"paginate\": false,
    \"page_size\": 20
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/quotes"
);

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

let body = {
    "order_by": "desc",
    "search": "autem",
    "paginate": false,
    "page_size": 20
};

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": [
        "Quotes fetch successfully"
    ],
    "data": {
        "list": [
            {
                "id": 1,
                "title": "Quote 1",
                "description": "The description should tell the tester what they're going to test. Sometimes this section might also include other pertinent information such as the test environment, test data, and preconditions/assumptions. A description should be easy to read and immediately communicate the high-level goal of the test.",
                "image": "https://kind-mind.s3.amazonaws.com/local/images/quote/QBJxVb4J3EGXFSJ57JXt1SqZnrzpZYmwrCstNTTk.jpg"
            }
        ],
        "pagination": {
            "total": 1,
            "current": 1,
            "first": 1,
            "last": 1,
            "previous": 0,
            "next": 1,
            "pages": [
                1
            ],
            "from": 1,
            "to": 1
        }
    }
}
 

Request      

GET api/quotes

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

sort_by   string  optional  
order_by   string  optional  

Must be one of asc or desc. Example: desc

search   string  optional  

Example: autem

paginate   boolean  optional  

Example: false

page_size   integer  optional  

Example: 20

Store Quotes

requires authentication

Store application Quotes.

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/quotes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"et\",
    \"description\": \"consequatur\",
    \"image\": \"aut\"
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/quotes"
);

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

let body = {
    "title": "et",
    "description": "consequatur",
    "image": "aut"
};

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": [
        "Quotes created successfully"
    ],
    "data": {
        "id": 3,
        "title": "Quote test",
        "description": "The description should tell the tester what they're going to test. Sometimes this section might also include other pertinent information such as the test environment, test data, and preconditions/assumptions. A description should be easy to read and immediately communicate the high-level goal of the test.",
        "image": "https://kind-mind.s3.amazonaws.com/local/images/quote/KuOlx5zDPAQlvPAD1dl4rSUE0xU7RkKPsogV31m7.jpg"
    }
}
 

Request      

POST api/quotes

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

title   string   

The title of the quote. Example: et

description   string   

The description of the quote. Example: consequatur

image   string   

The image associated with the quote. Example: aut

Show Quotes

requires authentication

Show application Quotes.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/quotes/13" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/quotes/13"
);

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

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": [
        "Quotes fetch successfully"
    ],
    "data": {
        "id": 3,
        "title": "Quote test",
        "description": "The description should tell the tester what they're going to test. Sometimes this section might also include other pertinent information such as the test environment, test data, and preconditions/assumptions. A description should be easy to read and immediately communicate the high-level goal of the test.",
        "image": "https://kind-mind.s3.amazonaws.com/local/images/quote/KuOlx5zDPAQlvPAD1dl4rSUE0xU7RkKPsogV31m7.jpg"
    }
}
 

Request      

GET api/quotes/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the quote. Example: 13

Update Quotes

requires authentication

Update application Quotes.

Example request:
curl --request PUT \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/quotes/12" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"aperiam\",
    \"description\": \"dolorem\"
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/quotes/12"
);

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

let body = {
    "title": "aperiam",
    "description": "dolorem"
};

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": [
        "Quotes updated successfully"
    ],
    "data": {
        "id": 3,
        "title": "quote test update",
        "description": "The description should tell the tester what they're going to test. Sometimes this section might also include other pertinent information such as the test environment",
        "image": "https://kind-mind.s3.amazonaws.com/local/images/quote/kR1NTNt26mOmCy8aWtiyyfK6S5F9Xf0Obufr5Ka6.jpg"
    }
}
 

Request      

PUT api/quotes/{id}

PATCH api/quotes/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the quote. Example: 12

Body Parameters

title   string   

The title of the quote. Example: aperiam

description   string   

The description of the quote. Example: dolorem

image   string  optional  

The image associated with the quote.

Delete Quotes

requires authentication

Delete application Quotes.

Example request:
curl --request DELETE \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/quotes/12" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/quotes/12"
);

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

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": [
        "Quotes deleted successfully"
    ],
    "data": {
        "id": 3,
        "title": "quote test update",
        "description": "The description should tell the tester what they're going to test. Sometimes this section might also include other pertinent information such as the test environment",
        "image": "https://kind-mind.s3.amazonaws.com/local/images/quote/kR1NTNt26mOmCy8aWtiyyfK6S5F9Xf0Obufr5Ka6.jpg"
    }
}
 

Request      

DELETE api/quotes/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the quote. Example: 12

List Quotes

requires authentication

List application Quotes.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/quotes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"order_by\": \"asc\",
    \"search\": \"nostrum\",
    \"paginate\": false,
    \"page_size\": 9
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/quotes"
);

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

let body = {
    "order_by": "asc",
    "search": "nostrum",
    "paginate": false,
    "page_size": 9
};

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": [
        "Quotes fetch successfully"
    ],
    "data": {
        "list": [
            {
                "id": 1,
                "title": "Quote 1",
                "description": "The description should tell the tester what they're going to test. Sometimes this section might also include other pertinent information such as the test environment, test data, and preconditions/assumptions. A description should be easy to read and immediately communicate the high-level goal of the test.",
                "image": "https://kind-mind.s3.amazonaws.com/local/images/quote/QBJxVb4J3EGXFSJ57JXt1SqZnrzpZYmwrCstNTTk.jpg"
            }
        ],
        "pagination": {
            "total": 1,
            "current": 1,
            "first": 1,
            "last": 1,
            "previous": 0,
            "next": 1,
            "pages": [
                1
            ],
            "from": 1,
            "to": 1
        }
    }
}
 

Request      

GET api/app/quotes

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

sort_by   string  optional  
order_by   string  optional  

Must be one of asc or desc. Example: asc

search   string  optional  

Example: nostrum

paginate   boolean  optional  

Example: false

page_size   integer  optional  

Example: 9

Show Quotes

requires authentication

Show application Quotes.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/quotes/18" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/quotes/18"
);

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

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": [
        "Quotes fetch successfully"
    ],
    "data": {
        "id": 3,
        "title": "Quote test",
        "description": "The description should tell the tester what they're going to test. Sometimes this section might also include other pertinent information such as the test environment, test data, and preconditions/assumptions. A description should be easy to read and immediately communicate the high-level goal of the test.",
        "image": "https://kind-mind.s3.amazonaws.com/local/images/quote/KuOlx5zDPAQlvPAD1dl4rSUE0xU7RkKPsogV31m7.jpg"
    }
}
 

Request      

GET api/app/quotes/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the quote. Example: 18

Roles

APIs for managing roles

Get All Roles.

requires authentication

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/roles?search=admin&paginate=quis" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/roles"
);

const params = {
    "search": "admin",
    "paginate": "quis",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": "Roles fetch successfully",
    "data": {
        "list": [
            {
                "id": 1,
                "name": "admin",
                "permissions": [
                    {
                        "id": 1,
                        "name": "create"
                    },
                    {
                        "id": 2,
                        "name": "read"
                    },
                    {
                        "id": 3,
                        "name": "update"
                    },
                    {
                        "id": 4,
                        "name": "delete"
                    }
                ]
            },
            {
                "id": 2,
                "name": "manager",
                "permissions": []
            },
            {
                "id": 3,
                "name": "user",
                "permissions": []
            },
            {
                "id": 4,
                "name": "guest",
                "permissions": []
            }
        ],
        "pagination": {
            "total": 4,
            "current": 1,
            "first": 1,
            "last": 1,
            "previous": 0,
            "next": 1,
            "pages": [
                1
            ],
            "from": 1,
            "to": 4
        }
    }
}
 

Request      

GET api/roles

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

search   string  optional  

Filter by name. Example: admin

paginate   string  optional  

Paginate the record.Example : true Example: quis

Store Role.

requires authentication

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/roles" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/roles"
);

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

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

Request      

POST api/roles

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Get Role.

requires authentication

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/roles/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/roles/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "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: *
 

{
    "success": false,
    "status": 401,
    "message": "you are not authenticated. Please login.",
    "data": []
}
 

Request      

GET api/roles/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the role. Example: 1

Update Role.

requires authentication

Example request:
curl --request PUT \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/roles/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/roles/1"
);

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

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

Request      

PUT api/roles/{id}

PATCH api/roles/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the role. Example: 1

Remove Role.

requires authentication

Example request:
curl --request DELETE \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/roles/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/roles/1"
);

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

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

Request      

DELETE api/roles/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the role. Example: 1

Season

Get All Seasons

requires authentication

Seasons and their exercises list.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/season" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/season"
);

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

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": [
        "Seasons and their exercises are Fetched successfully"
    ],
    "data": [
        {
            "id": 1,
            "name": "Ukiuq",
            "logo": "http://kind-mind-backend.local/assets/images/bg_image.png",
            "icon": "http://kind-mind-backend.local/assets/icons/spring.svg",
            "lang": "en",
            "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed",
            "other": {
                "gradient_color": [
                    "#82A9D3",
                    "#A7C2E0"
                ],
                "background_color": "#82A9D3"
            },
            "exercise_types": [
                {
                    "id": 1,
                    "name": "Breath",
                    "background_image": "http://kind-mind-backend.local/assets/images/breath.png",
                    "content_type": "video",
                    "status": 1,
                    "exercise": {
                        "id": 4,
                        "season_id": 1,
                        "exercise_type_id": 1,
                        "title": "Exercise B1",
                        "description": "test",
                        "duration": "241 sec",
                        "attachments": [
                            {
                                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/big_buck_bunny_720p_1mb.mp4",
                                "type": "video",
                                "background_image": null,
                                "transcript": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed"
                            }
                        ]
                    }
                },
                {
                    "id": 3,
                    "name": "Imagine",
                    "background_image": "http://kind-mind-backend.local/assets/images/imagine.png",
                    "content_type": "video",
                    "status": 1,
                    "exercise": {
                        "id": 11,
                        "season_id": 1,
                        "exercise_type_id": 3,
                        "title": "Exercise imagine",
                        "description": "test",
                        "duration": "0 sec",
                        "attachments": [
                            {
                                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp4",
                                "type": "video",
                                "background_image": null,
                                "transcript": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed"
                            }
                        ]
                    }
                },
                {
                    "id": 5,
                    "name": "Sounds",
                    "background_image": "http://kind-mind-backend.local/assets/images/listen.png",
                    "content_type": "audio",
                    "status": 1,
                    "exercise": {
                        "id": 1,
                        "season_id": 1,
                        "exercise_type_id": 5,
                        "title": "Exercise 1",
                        "description": "test",
                        "duration": null,
                        "attachments": [
                            {
                                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                                "type": "audio",
                                "background_image": "https://via.placeholder.com/240x300",
                                "transcript": null
                            },
                            {
                                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                                "type": "audio",
                                "background_image": "https://via.placeholder.com/240x300",
                                "transcript": null
                            },
                            {
                                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                                "type": "audio",
                                "background_image": "https://via.placeholder.com/240x300",
                                "transcript": null
                            },
                            {
                                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                                "type": "audio",
                                "background_image": "https://via.placeholder.com/240x300",
                                "transcript": null
                            }
                        ]
                    }
                },
                {
                    "id": 7,
                    "name": "Story Telling",
                    "background_image": "http://kind-mind-backend.local/assets/images/storytelling.png",
                    "content_type": "video",
                    "status": 1,
                    "exercise": null
                }
            ]
        }
    ]
}
 

Request      

GET api/season

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Store Season

requires authentication

Store application Season.

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/season" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/season"
);

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

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

Example response (200):


{
   "success": true,
   "status_code": 200,
   "message": [
       "Season created successfully"
   ],
   "data": {
       "id": 1,
       "name": "Ukiuq",
       "logo": "http://kind-mind-backend.local/assets/images/bg_image.png",
       "icon": "http://kind-mind-backend.local/assets/icons/spring.svg"
       "lang": "en",
       "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed",
       "other": {
         "gradient_color": [
             "#82A9D3",
             "#A7C2E0"
         ],
         "background_color": "#82A9D3"
       }
   }
}
 

Request      

POST api/season

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Show Season

requires authentication

Show application Season.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/season/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/season/1"
);

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

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": [
        "Season fetched successfully"
    ],
    "data": {
        "id": 1,
        "name": "Ukiuq",
        "logo": "http://kind-mind-backend.local/assets/images/bg_image.png",
        "icon": "http://kind-mind-backend.local/assets/icons/spring.svg",
        "lang": "en",
        "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed",
        "other": {
            "gradient_color": [
                "#82A9D3",
                "#A7C2E0"
            ],
            "background_color": "#82A9D3"
        },
        "exercise_types": [
            {
                "id": 1,
                "name": "Breath",
                "background_image": "http://kind-mind-backend.local/assets/images/breath.png",
                "content_type": "video",
                "status": 1,
                "exercise": {
                    "id": 4,
                    "season_id": 1,
                    "exercise_type_id": 1,
                    "title": "Exercise B1",
                    "description": "test",
                    "duration": "241 sec",
                    "attachments": [
                        {
                            "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/big_buck_bunny_720p_1mb.mp4",
                            "type": "video",
                            "background_image": null,
                            "transcript": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed"
                        }
                    ]
                }
            },
            {
                "id": 3,
                "name": "Imagine",
                "background_image": "http://kind-mind-backend.local/assets/images/imagine.png",
                "content_type": "video",
                "status": 1,
                "exercise": {
                    "id": 11,
                    "season_id": 1,
                    "exercise_type_id": 3,
                    "title": "Exercise imagine",
                    "description": "test",
                    "duration": "0 sec",
                    "attachments": [
                        {
                            "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp4",
                            "type": "video",
                            "background_image": null,
                            "transcript": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed"
                        }
                    ]
                }
            },
            {
                "id": 5,
                "name": "Sounds",
                "background_image": "http://kind-mind-backend.local/assets/images/listen.png",
                "content_type": "audio",
                "status": 1,
                "exercise": {
                    "id": 1,
                    "season_id": 1,
                    "exercise_type_id": 5,
                    "title": "Exercise 1",
                    "description": "test",
                    "duration": null,
                    "attachments": [
                        {
                            "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                            "type": "audio",
                            "background_image": "https://via.placeholder.com/240x300",
                            "transcript": null
                        },
                        {
                            "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                            "type": "audio",
                            "background_image": "https://via.placeholder.com/240x300",
                            "transcript": null
                        },
                        {
                            "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                            "type": "audio",
                            "background_image": "https://via.placeholder.com/240x300",
                            "transcript": null
                        },
                        {
                            "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                            "type": "audio",
                            "background_image": "https://via.placeholder.com/240x300",
                            "transcript": null
                        }
                    ]
                }
            },
            {
                "id": 7,
                "name": "Story Telling",
                "background_image": "http://kind-mind-backend.local/assets/images/storytelling.png",
                "content_type": "video",
                "status": 1,
                "exercise": null
            }
        ]
    }
}
 

Request      

GET api/season/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the season. Example: 1

Update Season

requires authentication

Update application Season.

Example request:
curl --request PUT \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/season/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"cyjgjtvltqtp\",
    \"logo\": \"sit\",
    \"icon\": \"quasi\",
    \"other\": \"et\"
}"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/season/1"
);

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

let body = {
    "name": "cyjgjtvltqtp",
    "logo": "sit",
    "icon": "quasi",
    "other": "et"
};

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

Example response (200):


{
   "success": true,
   "status_code": 200,
   "message": [
       "Season updated successfully"
   ],
   "data": {
       "id": 1,
       "name": "Ukiuq",
       "logo": "https://kind-mind.s3.amazonaws.com/local/images/season/DizpzKTHrugvVZZJZimsriosOsgGI8LBgXhEZBBd.jpg",
       "icon": "https://kind-mind.s3.amazonaws.com/local/images/season/RhczHIHvwQVfKNV4I4gtqR9FD7zFgpiKwSQyH0zk.jpg"
       "lang": "en",
       "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed",
       "other": {
         "gradient_color": [
             "#82A9D3",
             "#A7C2E0"
         ],
         "background_color": "#82A9D3"
       }
   }
}
 

Request      

PUT api/season/{id}

PATCH api/season/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the season. Example: 1

Body Parameters

name   string   

The name of the season. Must not be greater than 255 characters. Example: cyjgjtvltqtp

logo   string   

The logo of the season. Example: sit

icon   string   

The icon of the season. Example: quasi

lang   string  optional  
content   string  optional  
other   string   

Example: et

Delete Season

requires authentication

Delete application Season.

Example request:
curl --request DELETE \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/season/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/season/1"
);

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

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": [
        "Season deleted successfully"
    ],
    "data": {
        "id": 1,
        "name": "Ukiuq",
        "logo": "https://kind-mind.s3.amazonaws.com/local/images/season/DizpzKTHrugvVZZJZimsriosOsgGI8LBgXhEZBBd.jpg",
        "icon": "https://kind-mind.s3.amazonaws.com/local/images/season/RhczHIHvwQVfKNV4I4gtqR9FD7zFgpiKwSQyH0zk.jpg",
        "lang": "en",
        "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed",
        "other": {
            "gradient_color": [
                "#82A9D3",
                "#A7C2E0"
            ],
            "background_color": "#82A9D3"
        }
    }
}
 

Request      

DELETE api/season/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the season. Example: 1

Update Multiple Seasons

requires authentication

Example request:
curl --request POST \
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/update-seasons" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/update-seasons"
);

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

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

Example response (200):


{}
 

Request      

POST api/update-seasons

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Get All Seasons

requires authentication

Seasons and their exercises list.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/season" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/season"
);

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

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": [
        "Seasons and their exercises are Fetched successfully"
    ],
    "data": [
        {
            "id": 1,
            "name": "Ukiuq",
            "logo": "http://kind-mind-backend.local/assets/images/bg_image.png",
            "icon": "http://kind-mind-backend.local/assets/icons/spring.svg",
            "lang": "en",
            "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed",
            "other": {
                "gradient_color": [
                    "#82A9D3",
                    "#A7C2E0"
                ],
                "background_color": "#82A9D3"
            },
            "exercise_types": [
                {
                    "id": 1,
                    "name": "Breath",
                    "background_image": "http://kind-mind-backend.local/assets/images/breath.png",
                    "content_type": "video",
                    "status": 1,
                    "exercise": {
                        "id": 4,
                        "season_id": 1,
                        "exercise_type_id": 1,
                        "title": "Exercise B1",
                        "description": "test",
                        "duration": "241 sec",
                        "attachments": [
                            {
                                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/big_buck_bunny_720p_1mb.mp4",
                                "type": "video",
                                "background_image": null,
                                "transcript": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed"
                            }
                        ]
                    }
                },
                {
                    "id": 3,
                    "name": "Imagine",
                    "background_image": "http://kind-mind-backend.local/assets/images/imagine.png",
                    "content_type": "video",
                    "status": 1,
                    "exercise": {
                        "id": 11,
                        "season_id": 1,
                        "exercise_type_id": 3,
                        "title": "Exercise imagine",
                        "description": "test",
                        "duration": "0 sec",
                        "attachments": [
                            {
                                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp4",
                                "type": "video",
                                "background_image": null,
                                "transcript": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed"
                            }
                        ]
                    }
                },
                {
                    "id": 5,
                    "name": "Sounds",
                    "background_image": "http://kind-mind-backend.local/assets/images/listen.png",
                    "content_type": "audio",
                    "status": 1,
                    "exercise": {
                        "id": 1,
                        "season_id": 1,
                        "exercise_type_id": 5,
                        "title": "Exercise 1",
                        "description": "test",
                        "duration": null,
                        "attachments": [
                            {
                                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                                "type": "audio",
                                "background_image": "https://via.placeholder.com/240x300",
                                "transcript": null
                            },
                            {
                                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                                "type": "audio",
                                "background_image": "https://via.placeholder.com/240x300",
                                "transcript": null
                            },
                            {
                                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                                "type": "audio",
                                "background_image": "https://via.placeholder.com/240x300",
                                "transcript": null
                            },
                            {
                                "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                                "type": "audio",
                                "background_image": "https://via.placeholder.com/240x300",
                                "transcript": null
                            }
                        ]
                    }
                },
                {
                    "id": 7,
                    "name": "Story Telling",
                    "background_image": "http://kind-mind-backend.local/assets/images/storytelling.png",
                    "content_type": "video",
                    "status": 1,
                    "exercise": null
                }
            ]
        }
    ]
}
 

Request      

GET api/app/season

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Show Season

requires authentication

Show application Season.

Example request:
curl --request GET \
    --get "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/season/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://isumajunnattiarniq-backend.pinnguaq.com/api/app/season/1"
);

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

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

Example response (200):


{
    "success": true,
    "status_code": 200,
    "message": [
        "Season fetched successfully"
    ],
    "data": {
        "id": 1,
        "name": "Ukiuq",
        "logo": "http://kind-mind-backend.local/assets/images/bg_image.png",
        "icon": "http://kind-mind-backend.local/assets/icons/spring.svg",
        "lang": "en",
        "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed",
        "other": {
            "gradient_color": [
                "#82A9D3",
                "#A7C2E0"
            ],
            "background_color": "#82A9D3"
        },
        "exercise_types": [
            {
                "id": 1,
                "name": "Breath",
                "background_image": "http://kind-mind-backend.local/assets/images/breath.png",
                "content_type": "video",
                "status": 1,
                "exercise": {
                    "id": 4,
                    "season_id": 1,
                    "exercise_type_id": 1,
                    "title": "Exercise B1",
                    "description": "test",
                    "duration": "241 sec",
                    "attachments": [
                        {
                            "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/big_buck_bunny_720p_1mb.mp4",
                            "type": "video",
                            "background_image": null,
                            "transcript": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed"
                        }
                    ]
                }
            },
            {
                "id": 3,
                "name": "Imagine",
                "background_image": "http://kind-mind-backend.local/assets/images/imagine.png",
                "content_type": "video",
                "status": 1,
                "exercise": {
                    "id": 11,
                    "season_id": 1,
                    "exercise_type_id": 3,
                    "title": "Exercise imagine",
                    "description": "test",
                    "duration": "0 sec",
                    "attachments": [
                        {
                            "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp4",
                            "type": "video",
                            "background_image": null,
                            "transcript": "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed"
                        }
                    ]
                }
            },
            {
                "id": 5,
                "name": "Sounds",
                "background_image": "http://kind-mind-backend.local/assets/images/listen.png",
                "content_type": "audio",
                "status": 1,
                "exercise": {
                    "id": 1,
                    "season_id": 1,
                    "exercise_type_id": 5,
                    "title": "Exercise 1",
                    "description": "test",
                    "duration": null,
                    "attachments": [
                        {
                            "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                            "type": "audio",
                            "background_image": "https://via.placeholder.com/240x300",
                            "transcript": null
                        },
                        {
                            "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                            "type": "audio",
                            "background_image": "https://via.placeholder.com/240x300",
                            "transcript": null
                        },
                        {
                            "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                            "type": "audio",
                            "background_image": "https://via.placeholder.com/240x300",
                            "transcript": null
                        },
                        {
                            "file": "https://kind-mind.s3.amazonaws.com/file/Exercise/pixel.mp3",
                            "type": "audio",
                            "background_image": "https://via.placeholder.com/240x300",
                            "transcript": null
                        }
                    ]
                }
            },
            {
                "id": 7,
                "name": "Story Telling",
                "background_image": "http://kind-mind-backend.local/assets/images/storytelling.png",
                "content_type": "video",
                "status": 1,
                "exercise": null
            }
        ]
    }
}
 

Request      

GET api/app/season/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the season. Example: 1