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):
{}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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
}
}
}
Received response:
Request failed with error:
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
}
}
}
Received response:
Request failed with error:
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
}
}
}
Received response:
Request failed with error:
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
}
}
Received response:
Request failed with error:
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": []
}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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
}
}
}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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
}
]
}
}
Received response:
Request failed with error:
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
}
]
}
}
Received response:
Request failed with error:
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
}
]
}
}
Received response:
Request failed with error:
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());Received response:
Request failed with error:
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
}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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
}
}
}
Received response:
Request failed with error:
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
}
]
}
}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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": []
}
Received response:
Request failed with error:
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());Received response:
Request failed with error:
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": []
}
Received response:
Request failed with error:
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());Received response:
Request failed with error:
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());Received response:
Request failed with error:
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
}
}
}
Received response:
Request failed with error:
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"
}
}
Received response:
Request failed with error:
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"
}
}
Received response:
Request failed with error:
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"
}
}
Received response:
Request failed with error:
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"
}
}
Received response:
Request failed with error:
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
}
}
}
Received response:
Request failed with error:
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"
}
}
Received response:
Request failed with error:
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
}
}
}
Received response:
Request failed with error:
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());Received response:
Request failed with error:
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": []
}
Received response:
Request failed with error:
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());Received response:
Request failed with error:
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());Received response:
Request failed with error:
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
}
]
}
]
}
Received response:
Request failed with error:
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"
}
}
}
Received response:
Request failed with error:
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
}
]
}
}
Received response:
Request failed with error:
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"
}
}
}
Received response:
Request failed with error:
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"
}
}
}
Received response:
Request failed with error:
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):
{}
Received response:
Request failed with error:
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
}
]
}
]
}
Received response:
Request failed with error:
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
}
]
}
}
Received response:
Request failed with error: