MENU navbar-image
bash javascript

Introduction

Zeed worldwide Api Documentation

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

Base URL

http://localhost

Authenticating requests

To authenticate requests, include 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 logging in with email: admin@zeed.com password: password

Authentication

APIs for authenticating and registering users

POST api/v1/login

Example request:
curl --request POST \
    "http://localhost/api/v1/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"huel.adonis@example.com\",
    \"password\": \"tenetur\"
}"
const url = new URL(
    "http://localhost/api/v1/login"
);

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

let body = {
    "email": "huel.adonis@example.com",
    "password": "tenetur"
}

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

Example response (400):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=9q91PlCctT7IHEI2IWCkevdWfhFWhjgmSwi45BqS; expires=Sun, 09-Jan-2022 21:41:14 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": [
        "Invalid email or password"
    ]
}
 

Request      

POST api/v1/login

Body Parameters

email  string  

Must be a valid email address.

password  string  

POST api/v1/register/client

Example request:
curl --request POST \
    "http://localhost/api/v1/register/client" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"fullname\": \"omnis\",
    \"phone\": \"reiciendis\",
    \"country\": \"eius\",
    \"email\": \"consequatur\",
    \"password\": \"accusamus\",
    \"password_confirmation\": \"sunt\"
}"
const url = new URL(
    "http://localhost/api/v1/register/client"
);

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

let body = {
    "fullname": "omnis",
    "phone": "reiciendis",
    "country": "eius",
    "email": "consequatur",
    "password": "accusamus",
    "password_confirmation": "sunt"
}

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

Example response (400):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 54
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=zLpOr1lFqC3ZGlbEEt17qWFW8ABml48loVTtGVqI; expires=Sun, 09-Jan-2022 21:41:14 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": [
        "The password confirmation does not match."
    ]
}
 

Request      

POST api/v1/register/client

Body Parameters

fullname  string  

phone  string  

country  string  

email  string  

device_name  string optional  

password  string  

password_confirmation  string  

POST api/v1/logout

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/logout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=IrEqsVByIkvfwYJQiX9soGpFJ7EMSrTjbVPOyJim; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/logout

GET api/v1/loggedInUser

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/loggedInUser" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/loggedInUser"
);

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: *
set-cookie: zeed_worldwide_session=JKZyM4bCrQtfznSF7j3VEbFoZCbWuTLetsmwIs79; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/loggedInUser

POST api/v1/forgot-password

Example request:
curl --request POST \
    "http://localhost/api/v1/forgot-password" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"heller.kali@example.net\"
}"
const url = new URL(
    "http://localhost/api/v1/forgot-password"
);

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

let body = {
    "email": "heller.kali@example.net"
}

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

Example response (400):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 58
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=DF0ND2dduNb4eNMFQU5EsaUbY3TPHWZUgKUNjFEY; expires=Sun, 09-Jan-2022 21:41:14 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": [
        "The selected email is invalid."
    ]
}
 

Request      

POST api/v1/forgot-password

Body Parameters

email  string  

Must be a valid email address.

POST api/v1/verify-password-token

Example request:
curl --request POST \
    "http://localhost/api/v1/verify-password-token" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"token\": \"cum\",
    \"email\": \"jrutherford@example.com\"
}"
const url = new URL(
    "http://localhost/api/v1/verify-password-token"
);

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

let body = {
    "token": "cum",
    "email": "jrutherford@example.com"
}

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

Example response (400):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 57
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=Ldoq3heI2qyr2bo85YjnKO2gCkNMbvRHULivWrLm; expires=Sun, 09-Jan-2022 21:41:14 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": [
        "The selected email is invalid."
    ]
}
 

Request      

POST api/v1/verify-password-token

Body Parameters

token  string  

email  string  

Must be a valid email address.

POST api/v1/reset-password

Example request:
curl --request POST \
    "http://localhost/api/v1/reset-password" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"token\": \"ut\",
    \"email\": \"iroberts@example.org\",
    \"password\": \"rs\",
    \"password_confirmation\": \"est\"
}"
const url = new URL(
    "http://localhost/api/v1/reset-password"
);

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

let body = {
    "token": "ut",
    "email": "iroberts@example.org",
    "password": "rs",
    "password_confirmation": "est"
}

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

Example response (400):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 56
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=hN5Z4K0RzyCVKzl0jHyVnUKILXylFxMVQQZLNXyQ; expires=Sun, 09-Jan-2022 21:41:14 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": [
        "The selected email is invalid.",
        "The password must be at least 8 characters.",
        "The password confirmation does not match."
    ]
}
 

Request      

POST api/v1/reset-password

Body Parameters

token  string  

email  string  

Must be a valid email address.

password  string  

Must be at least 8 characters.

password_confirmation  string  

Categories

Api for creating categories

GET api/v1/categories

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/categories" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/categories"
);

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

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 40
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=kykd6WAOfHsCk0LWf3xeGTV2sGX6fNzEnMgM5eaX; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": true,
    "message": "success",
    "data": [
        {
            "id": 1,
            "title": "quae",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/00bb11?text=sint",
            "description": "Possimus perferendis dolorem cupiditate ut nam quis error quisquam. Accusantium quis eveniet culpa sint sit. Eos sit odio neque temporibus eos nobis.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 2,
            "title": "odio",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/00ffcc?text=dolores",
            "description": "Ea aliquid perferendis beatae qui atque voluptatem sequi. Voluptas enim ipsa dolore reiciendis. Dolores sit nemo quasi velit unde dolor. Iure reiciendis eligendi laudantium est temporibus.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 3,
            "title": "fuga",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/00aa22?text=mollitia",
            "description": "Eos eos beatae ut autem molestiae est. Repellendus ea repellat ut provident. Omnis rerum molestiae nobis rerum voluptas.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 4,
            "title": "est",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/004444?text=consequatur",
            "description": "Tempore fugiat magnam accusantium officia sit corrupti non. Ut labore nihil praesentium consectetur.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 5,
            "title": "quis",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/002222?text=eligendi",
            "description": "Placeat eius quos accusamus. Velit exercitationem consequatur impedit. Architecto voluptatibus repudiandae ipsum.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 6,
            "title": "sunt",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/0055cc?text=veniam",
            "description": "Totam ut voluptas quia delectus occaecati eum quae dolores. Ut et vel vero nesciunt exercitationem. Officiis dolorem aperiam a quia velit voluptatem. Ipsum fugit eum quod modi iste qui.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 7,
            "title": "odio",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/00ddaa?text=tempora",
            "description": "Dolor nemo doloremque eius minima ipsum atque hic. Possimus voluptatem deserunt suscipit beatae. Voluptatem dolor consequatur omnis numquam.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 8,
            "title": "explicabo",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/00ffaa?text=deleniti",
            "description": "Ex qui sed minima necessitatibus neque quis consectetur suscipit. In accusantium repellat vitae animi minima necessitatibus. Voluptatem mollitia delectus quis et dolores eius natus. Adipisci hic odit nisi quos.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 9,
            "title": "voluptas",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/00cc44?text=est",
            "description": "Maiores iusto labore sint ut voluptatem qui. Eos laboriosam fuga quia ea. Quisquam vel laborum eius molestiae.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 10,
            "title": "recusandae",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/00ccbb?text=est",
            "description": "Odio eveniet modi omnis rerum doloribus veniam consequatur. Voluptates ratione sapiente inventore. Temporibus qui minima unde quis iure rerum ullam.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        }
    ]
}
 

Request      

GET api/v1/categories

POST api/v1/categories

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/categories" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"aut\",
    \"description\": \"soluta\",
    \"image\": \"qui\"
}"
const url = new URL(
    "http://localhost/api/v1/categories"
);

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

let body = {
    "title": "aut",
    "description": "soluta",
    "image": "qui"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=JZtHTiiguKK00VVjUE20PExl7C9RZscJrI9g22fM; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/categories

Body Parameters

title  string  

description  string  

image  string  

GET api/v1/categories/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/categories/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/categories/16"
);

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

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 39
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=I7slrJoNEtPOQcDskZZeWay6UJW7WWssHvzVVQsX; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": true,
    "message": "success",
    "data": {
        "id": 1,
        "title": "quae",
        "image": "https:\/\/via.placeholder.com\/640x480.png\/00bb11?text=sint",
        "description": "Possimus perferendis dolorem cupiditate ut nam quis error quisquam. Accusantium quis eveniet culpa sint sit. Eos sit odio neque temporibus eos nobis.",
        "created_at": "2022-01-09T17:43:33.000000Z",
        "updated_at": "2022-01-09T17:43:33.000000Z",
        "deleted_at": null,
        "courses": [
            {
                "id": 8,
                "title": "magni",
                "description": "Omnis aliquid magni et cupiditate quo praesentium impedit. Optio blanditiis sed eius et. Repudiandae amet autem perspiciatis aut non et. Consequuntur alias sit non quae dolor eveniet. Incidunt laudantium debitis veritatis accusamus eius ullam maxime itaque.",
                "image": "https:\/\/via.placeholder.com\/640x480.png\/0088dd?text=ipsum",
                "status": "PAID",
                "user_id": 3,
                "category_id": 1,
                "created_at": "2022-01-09T17:43:33.000000Z",
                "updated_at": "2022-01-09T17:43:33.000000Z",
                "deleted_at": null
            }
        ]
    }
}
 

Request      

GET api/v1/categories/{id}

URL Parameters

id  integer  

The ID of the category.

PUT api/v1/categories/{id}

requires authentication

Example request:
curl --request PUT \
    "http://localhost/api/v1/categories/13" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"aut\",
    \"description\": \"unde\"
}"
const url = new URL(
    "http://localhost/api/v1/categories/13"
);

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

let body = {
    "title": "aut",
    "description": "unde"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=KBwQBw0FrC831aTakb9qde6TWJm17E3akYSNhyww; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

PUT api/v1/categories/{id}

PATCH api/v1/categories/{id}

URL Parameters

id  integer  

The ID of the category.

Body Parameters

title  string  

description  string  

image  string optional  

DELETE api/v1/categories/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://localhost/api/v1/categories/12" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/categories/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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=giuqG3uuMqwuBW7zWHSQhzBv9aLTb2S6TWeOmDsT; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

DELETE api/v1/categories/{id}

URL Parameters

id  integer  

The ID of the category.

GET api/v1/categories/{category}/coaches

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/categories/14/coaches" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/categories/14/coaches"
);

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 (404):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 38
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=FW2xR0rmFnAD0U9EzGrWrH4wK0pdyF6z0FnzwyCk; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "message": "No query results for model [App\\Models\\Category] 14",
    "exception": "Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException",
    "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Exceptions\/Handler.php",
    "line": 383,
    "trace": [
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Exceptions\/Handler.php",
            "line": 332,
            "function": "prepareException",
            "class": "Illuminate\\Foundation\\Exceptions\\Handler",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/nunomaduro\/collision\/src\/Adapters\/Laravel\/ExceptionHandler.php",
            "line": 54,
            "function": "render",
            "class": "Illuminate\\Foundation\\Exceptions\\Handler",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
            "line": 51,
            "function": "render",
            "class": "NunoMaduro\\Collision\\Adapters\\Laravel\\ExceptionHandler",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 172,
            "function": "handleException",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/ThrottleRequests.php",
            "line": 127,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/ThrottleRequests.php",
            "line": 103,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/ThrottleRequests.php",
            "line": 55,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php",
            "line": 121,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php",
            "line": 64,
            "function": "handleStatefulRequest",
            "class": "Illuminate\\Session\\Middleware\\StartSession",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Session\\Middleware\\StartSession",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 103,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 697,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 672,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 636,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 625,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
            "line": 166,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 128,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/barryvdh\/laravel-debugbar\/src\/Middleware\/InjectDebugbar.php",
            "line": 60,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Barryvdh\\Debugbar\\Middleware\\InjectDebugbar",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php",
            "line": 40,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php",
            "line": 86,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/fruitcake\/laravel-cors\/src\/HandleCors.php",
            "line": 52,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Fruitcake\\Cors\\HandleCors",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/fideloper\/proxy\/src\/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Fideloper\\Proxy\\TrustProxies",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 103,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
            "line": 141,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
            "line": 110,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 287,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 275,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 86,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 34,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Extractor.php",
            "line": 225,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Extractor.php",
            "line": 182,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Extractor.php",
            "line": 116,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/GroupedEndpoints\/GroupedEndpointsFromApp.php",
            "line": 118,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/GroupedEndpoints\/GroupedEndpointsFromApp.php",
            "line": 75,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/GroupedEndpoints\/GroupedEndpointsFromApp.php",
            "line": 51,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php",
            "line": 39,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php",
            "line": 40,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 37,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php",
            "line": 651,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php",
            "line": 136,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/symfony\/console\/Command\/Command.php",
            "line": 299,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php",
            "line": 121,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/symfony\/console\/Application.php",
            "line": 978,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/symfony\/console\/Application.php",
            "line": 295,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/symfony\/console\/Application.php",
            "line": 167,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php",
            "line": 92,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php",
            "line": 129,
            "function": "run",
            "class": "Illuminate\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/artisan",
            "line": 37,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        }
    ]
}
 

Request      

GET api/v1/categories/{category}/coaches

URL Parameters

category  integer  

Clients

APIs for clients

GET api/v1/clients

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/clients" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/clients"
);

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: *
set-cookie: zeed_worldwide_session=8J7vFOeLCWPa4jBBXxGDGL55jhaC8niBwVxXUIwM; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/clients

POST api/v1/clients

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/clients" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"fullname\": \"facere\",
    \"phone\": \"odio\",
    \"email\": \"architecto\"
}"
const url = new URL(
    "http://localhost/api/v1/clients"
);

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

let body = {
    "fullname": "facere",
    "phone": "odio",
    "email": "architecto"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=vEMNuT4nuuBFsbfVmpc0W4aDgqVQSXAa288u61XF; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/clients

Body Parameters

fullname  string  

phone  string  

email  string  

GET api/v1/clients/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/clients/7" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/clients/7"
);

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: *
set-cookie: zeed_worldwide_session=svUpMaJ8OLOE7G8Ftcne909I9FpW93HcDtNqi8ic; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/clients/{id}

URL Parameters

id  integer  

The ID of the client.

PUT api/v1/clients/{id}

requires authentication

Example request:
curl --request PUT \
    "http://localhost/api/v1/clients/19" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"fullname\": \"repellendus\",
    \"phone\": \"in\",
    \"country\": \"at\",
    \"gender\": \"quo\",
    \"dob\": \"2022-01-09T19:41:16\"
}"
const url = new URL(
    "http://localhost/api/v1/clients/19"
);

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

let body = {
    "fullname": "repellendus",
    "phone": "in",
    "country": "at",
    "gender": "quo",
    "dob": "2022-01-09T19:41:16"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=lVMiLIzVYvpzEjYeKEI6OWbGoWx1XVslqRpzz4or; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

PUT api/v1/clients/{id}

PATCH api/v1/clients/{id}

URL Parameters

id  integer  

The ID of the client.

Body Parameters

fullname  string  

phone  string  

country  string  

gender  string  

dob  string  

Must be a valid date.

DELETE api/v1/clients/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://localhost/api/v1/clients/5" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/clients/5"
);

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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=LHnsfIYiEMBnPk88r8x9AaJNvisRLESZk0vWNGpu; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

DELETE api/v1/clients/{id}

URL Parameters

id  integer  

The ID of the client.

GET api/v1/clients/{client}/subscriptions

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/clients/4/subscriptions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/clients/4/subscriptions"
);

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: *
set-cookie: zeed_worldwide_session=BTMBnTcqGSyy8UftvhVS2ffkFiAyRO6Y7WLqpr4v; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/clients/{client}/subscriptions

URL Parameters

client  integer  

GET api/v1/clients/{client}/subscribedCategory

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/clients/12/subscribedCategory" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/clients/12/subscribedCategory"
);

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: *
set-cookie: zeed_worldwide_session=1ruduKCCTx0A25agfgJ1rH58XzQQxvKTBEhOPFA9; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/clients/{client}/subscribedCategory

URL Parameters

client  integer  

GET api/v1/clients/{client}/grant_access

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/clients/8/grant_access" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/clients/8/grant_access"
);

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: *
set-cookie: zeed_worldwide_session=mftEJY33UvHFNLOiKyA7NsgVptdwWPvCjwrQn0pO; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/clients/{client}/grant_access

URL Parameters

client  integer  

GET api/v1/clients/{client}/revoke_access

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/clients/9/revoke_access" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/clients/9/revoke_access"
);

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: *
set-cookie: zeed_worldwide_session=R7vowjWyg58aI02ub6hlU3WAe1ehVhhlR4etM7e9; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/clients/{client}/revoke_access

URL Parameters

client  integer  

Coaches

APIs for coaches

GET api/v1/coaches

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/coaches" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/coaches"
);

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

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 42
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=8VRu3TCenEhrocZJHTXLEFB1RyTzQSe3JGRrmtA3; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": true,
    "message": "Successful",
    "data": [
        {
            "id": 2,
            "fullname": "Elva Bauch",
            "phone": "(740) 879-5692",
            "country": "Egypt",
            "gender": "Male",
            "email": "coach@zeed.com",
            "avatar": "https:\/\/via.placeholder.com\/640x480.png\/00aa33?text=ut",
            "device_name": null,
            "dob": "1970-07-16",
            "bio": "Nostrum aliquid deserunt facere et neque. Odit illum doloribus nulla fugit quis cum minus. Facilis et ex et asperiores et nemo magnam. Et et illum eum sit qui.",
            "designation": "Optical Instrument Assembler",
            "experience": "Repellendus aliquid repellendus deserunt cupiditate magnam enim aut ullam. Voluptatum itaque omnis ex similique aut. Voluptas et nulla omnis. Magnam et non magni iure quos fuga qui.",
            "email_verified_at": "2022-01-09T17:43:33.000000Z",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null,
            "password_token": null,
            "has_lifetime_access": 0
        }
    ]
}
 

Request      

GET api/v1/coaches

POST api/v1/coaches

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/coaches" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "fullname=qui" \
    --form "email=johns.caitlyn@example.net" \
    --form "phone=omnis" \
    --form "country=asperiores" \
    --form "gender=illum" \
    --form "bio=illum" \
    --form "designation=dolorum" \
    --form "experience=in" \
    --form "category_id=consequatur" \
    --form "avatar=@/tmp/php5x7ChX" 
const url = new URL(
    "http://localhost/api/v1/coaches"
);

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

const body = new FormData();
body.append('fullname', 'qui');
body.append('email', 'johns.caitlyn@example.net');
body.append('phone', 'omnis');
body.append('country', 'asperiores');
body.append('gender', 'illum');
body.append('bio', 'illum');
body.append('designation', 'dolorum');
body.append('experience', 'in');
body.append('category_id', 'consequatur');
body.append('avatar', document.querySelector('input[name="avatar"]').files[0]);

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=mHSZYHKV6sJYlXPZBtNxg3SJ1H5DbtEvRkT1Flh9; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/coaches

Body Parameters

fullname  string  

email  string  

Must be a valid email address.

phone  string  

country  string  

gender  string  

bio  string  

designation  string  

experience  string  

avatar  file  

Must be an image.

category_id  string  

GET api/v1/coaches/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/coaches/4" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/coaches/4"
);

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

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 41
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=Rjxl4uWqha8AzqriO73rFlfq4KgGFpijbZTnfO09; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": true,
    "message": "Successful",
    "data": {
        "id": 1,
        "fullname": "Prof. Vincenza Braun",
        "phone": "321-665-2890",
        "country": "Angola",
        "gender": "Male",
        "email": "admin@zeed.com",
        "avatar": "https:\/\/via.placeholder.com\/640x480.png\/007777?text=veniam",
        "device_name": null,
        "dob": "1980-11-17",
        "bio": "Quod alias et et omnis. Voluptas id dolores aut molestiae ratione vel. Et quos enim fugiat odit. Veniam sunt molestias dolores deserunt sapiente aut sed in.",
        "designation": "Gas Plant Operator",
        "experience": "Fugit ut ipsum sint quia eum natus illo. Sit ducimus sint autem praesentium possimus quod. Aliquam ut commodi distinctio est pariatur laboriosam.",
        "email_verified_at": "2022-01-09T17:43:33.000000Z",
        "created_at": "2022-01-09T17:43:33.000000Z",
        "updated_at": "2022-01-09T17:43:33.000000Z",
        "deleted_at": null,
        "password_token": null,
        "has_lifetime_access": 0,
        "category_id": 1
    }
}
 

Request      

GET api/v1/coaches/{id}

URL Parameters

id  integer  

The ID of the coach.

PUT api/v1/coaches/{id}

requires authentication

Example request:
curl --request PUT \
    "http://localhost/api/v1/coaches/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"fullname\": \"dolores\",
    \"email\": \"hgraham@example.org\",
    \"phone\": \"labore\",
    \"country\": \"qui\",
    \"gender\": \"perferendis\",
    \"bio\": \"vel\",
    \"designation\": \"facere\",
    \"experience\": \"ullam\"
}"
const url = new URL(
    "http://localhost/api/v1/coaches/16"
);

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

let body = {
    "fullname": "dolores",
    "email": "hgraham@example.org",
    "phone": "labore",
    "country": "qui",
    "gender": "perferendis",
    "bio": "vel",
    "designation": "facere",
    "experience": "ullam"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=8URINwbgcEO6rzs4uZpjws4lzsFgA4GuyXTGZtfj; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

PUT api/v1/coaches/{id}

PATCH api/v1/coaches/{id}

URL Parameters

id  integer  

The ID of the coach.

Body Parameters

fullname  string  

email  string  

Must be a valid email address.

phone  string  

country  string  

gender  string  

bio  string  

designation  string  

experience  string  

avatar  string optional  

category_id  string optional  

DELETE api/v1/coaches/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://localhost/api/v1/coaches/20" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/coaches/20"
);

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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=Qr9UZn8NQFEiyQXHMPvwWHfWmWgyBxBoFzGnBh4H; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

DELETE api/v1/coaches/{id}

URL Parameters

id  integer  

The ID of the coach.

GET api/v1/coaches/{coach}/courses

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/coaches/4/courses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/coaches/4/courses"
);

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: *
set-cookie: zeed_worldwide_session=aDztBSUWqKfRfrKCx6qoBO8S5pwaDbqY3n1a18pP; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/coaches/{coach}/courses

URL Parameters

coach  integer  

GET api/v1/coaches/{coach}/mentorship

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/coaches/7/mentorship" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/coaches/7/mentorship"
);

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: *
set-cookie: zeed_worldwide_session=UdveaJmjAT2qxnumueB9mvPsK9ggSyezKUDgRq4I; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/coaches/{coach}/mentorship

URL Parameters

coach  integer  

Coaches application

APIs for coach application management

POST api/v1/register/coach

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/register/coach" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"fullname\": \"rem\",
    \"email\": \"ut\",
    \"phone\": \"nihil\",
    \"gender\": \"est\",
    \"origin_country\": \"iure\",
    \"residence_country\": \"libero\",
    \"linkedin_url\": \"quod\",
    \"website_url\": \"perspiciatis\",
    \"occupation\": \"corporis\",
    \"career_experience\": \"quia\",
    \"educational_background\": \"unde\",
    \"biography\": \"vel\",
    \"attachment\": \"quos\"
}"
const url = new URL(
    "http://localhost/api/v1/register/coach"
);

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

let body = {
    "fullname": "rem",
    "email": "ut",
    "phone": "nihil",
    "gender": "est",
    "origin_country": "iure",
    "residence_country": "libero",
    "linkedin_url": "quod",
    "website_url": "perspiciatis",
    "occupation": "corporis",
    "career_experience": "quia",
    "educational_background": "unde",
    "biography": "vel",
    "attachment": "quos"
}

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

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 53
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=mPN3vpsQvRm7rB4r3mmm34zDsnOqzLpgcj0IU1lo; expires=Sun, 09-Jan-2022 21:41:14 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "message": "Call to a member function storeAs() on null",
    "exception": "Error",
    "file": "\/var\/www\/html\/app\/Http\/Controllers\/CoachApplicationController.php",
    "line": 56,
    "trace": [
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Controller.php",
            "line": 54,
            "function": "store",
            "class": "App\\Http\\Controllers\\CoachApplicationController",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php",
            "line": 45,
            "function": "callAction",
            "class": "Illuminate\\Routing\\Controller",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php",
            "line": 254,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\ControllerDispatcher",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php",
            "line": 197,
            "function": "runController",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 695,
            "function": "run",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 128,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/SubstituteBindings.php",
            "line": 50,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/ThrottleRequests.php",
            "line": 127,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/ThrottleRequests.php",
            "line": 103,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/ThrottleRequests.php",
            "line": 55,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php",
            "line": 121,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php",
            "line": 64,
            "function": "handleStatefulRequest",
            "class": "Illuminate\\Session\\Middleware\\StartSession",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Session\\Middleware\\StartSession",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 103,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 697,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 672,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 636,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 625,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
            "line": 166,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 128,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/barryvdh\/laravel-debugbar\/src\/Middleware\/InjectDebugbar.php",
            "line": 60,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Barryvdh\\Debugbar\\Middleware\\InjectDebugbar",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php",
            "line": 40,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php",
            "line": 86,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/fruitcake\/laravel-cors\/src\/HandleCors.php",
            "line": 52,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Fruitcake\\Cors\\HandleCors",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/fideloper\/proxy\/src\/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Fideloper\\Proxy\\TrustProxies",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 103,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
            "line": 141,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
            "line": 110,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 287,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 275,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 86,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 34,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Extractor.php",
            "line": 225,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Extractor.php",
            "line": 182,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Extractor.php",
            "line": 116,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/GroupedEndpoints\/GroupedEndpointsFromApp.php",
            "line": 118,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/GroupedEndpoints\/GroupedEndpointsFromApp.php",
            "line": 75,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/GroupedEndpoints\/GroupedEndpointsFromApp.php",
            "line": 51,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php",
            "line": 39,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php",
            "line": 40,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 37,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php",
            "line": 651,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php",
            "line": 136,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/symfony\/console\/Command\/Command.php",
            "line": 299,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php",
            "line": 121,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/symfony\/console\/Application.php",
            "line": 978,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/symfony\/console\/Application.php",
            "line": 295,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/symfony\/console\/Application.php",
            "line": 167,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php",
            "line": 92,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php",
            "line": 129,
            "function": "run",
            "class": "Illuminate\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/artisan",
            "line": 37,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        }
    ]
}
 

Request      

POST api/v1/register/coach

Body Parameters

fullname  string  

email  string  

phone  string  

gender  string  

origin_country  string  

residence_country  string  

linkedin_url  string  

website_url  string  

occupation  string  

career_experience  string  

educational_background  string  

biography  string  

attachment  string  

GET api/v1/applications

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/applications" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/applications"
);

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: *
set-cookie: zeed_worldwide_session=9We3Hsx22ctELrEeCqHKkBvwtmZfnrSCQk05FRlx; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/applications

GET api/v1/applications/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/applications/11" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/applications/11"
);

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: *
set-cookie: zeed_worldwide_session=oEP12EoVnphQo6TYsW5y2hc4ekEmAk1vBXN6PIdQ; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/applications/{id}

URL Parameters

id  integer  

The ID of the application.

DELETE api/v1/applications/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://localhost/api/v1/applications/10" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/applications/10"
);

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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=KlQbJqC20fLAaPbOJhxltDbBCf8E2ck54Gn3xZZV; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

DELETE api/v1/applications/{id}

URL Parameters

id  integer  

The ID of the application.

GET api/v1/applications/approve/{application}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/applications/approve/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/applications/approve/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: *
set-cookie: zeed_worldwide_session=hVapZ08r6mjojCWrk8stTy5PiHHN3LuL4CeTWT1P; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/applications/approve/{application}

URL Parameters

application  integer  

GET api/v1/applications/decline/{application}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/applications/decline/3" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/applications/decline/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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=97RXdM5pjyu47Bg2beqgz4f7UWJzoZ0GlBG9j2md; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/applications/decline/{application}

URL Parameters

application  integer  

PUT api/v1/applications/{id}

requires authentication

Example request:
curl --request PUT \
    "http://localhost/api/v1/applications/5" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"fullname\": \"accusamus\",
    \"email\": \"quia\",
    \"phone\": \"id\",
    \"gender\": \"eum\",
    \"origin_country\": \"praesentium\",
    \"residence_country\": \"nihil\",
    \"linkedin_url\": \"adipisci\",
    \"website_url\": \"et\",
    \"occupation\": \"optio\",
    \"career_experience\": \"pariatur\",
    \"educational_background\": \"nihil\",
    \"biography\": \"quia\",
    \"attachment\": \"inventore\"
}"
const url = new URL(
    "http://localhost/api/v1/applications/5"
);

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

let body = {
    "fullname": "accusamus",
    "email": "quia",
    "phone": "id",
    "gender": "eum",
    "origin_country": "praesentium",
    "residence_country": "nihil",
    "linkedin_url": "adipisci",
    "website_url": "et",
    "occupation": "optio",
    "career_experience": "pariatur",
    "educational_background": "nihil",
    "biography": "quia",
    "attachment": "inventore"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=d51b4qhEkI3iFRTRaoWXb8O6ossUOH7y3oogfxKQ; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

PUT api/v1/applications/{id}

PATCH api/v1/applications/{id}

URL Parameters

id  integer  

The ID of the application.

Body Parameters

fullname  string  

email  string  

phone  string  

gender  string  

origin_country  string  

residence_country  string  

linkedin_url  string  

website_url  string  

occupation  string  

career_experience  string  

educational_background  string  

biography  string  

attachment  string  

Courses

APIs for authenticating and registering users

GET api/v1/courses

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/courses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/courses"
);

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: *
set-cookie: zeed_worldwide_session=FFSh4rl2npZJGeUhA1UAfcv7UEfjL9QURU2oTBLW; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/courses

GET api/v1/courses/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/courses/15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/courses/15"
);

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: *
set-cookie: zeed_worldwide_session=tTuilVS7Bx9iAPJvfBGpnqE1NOYRYpui2hkyxGmo; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/courses/{id}

URL Parameters

id  integer  

The ID of the course.

POST api/v1/courses

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/courses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "title=ad" \
    --form "description=non" \
    --form "category_id=quos" \
    --form "image=@/tmp/phpgIxUw3" 
const url = new URL(
    "http://localhost/api/v1/courses"
);

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

const body = new FormData();
body.append('title', 'ad');
body.append('description', 'non');
body.append('category_id', 'quos');
body.append('image', document.querySelector('input[name="image"]').files[0]);

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=Bk0HJQOUfDG96Opd0ff9GJ99mZ0eA9GeIf2fmHkP; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/courses

Body Parameters

title  string  

description  string  

image  file  

Must be an image.

status  string optional  

category_id  string  

PUT api/v1/courses/{id}

requires authentication

Example request:
curl --request PUT \
    "http://localhost/api/v1/courses/17" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "title=modi" \
    --form "description=voluptates" \
    --form "image=@/tmp/phpYdlKsz" 
const url = new URL(
    "http://localhost/api/v1/courses/17"
);

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

const body = new FormData();
body.append('title', 'modi');
body.append('description', 'voluptates');
body.append('image', document.querySelector('input[name="image"]').files[0]);

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=VoVFum8IntU3hzsJKl7CT5An3GT14IXUqx1kfAW9; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

PUT api/v1/courses/{id}

PATCH api/v1/courses/{id}

URL Parameters

id  integer  

The ID of the course.

Body Parameters

title  string  

description  string  

image  file optional  

Must be an image.

status  string optional  

DELETE api/v1/courses/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://localhost/api/v1/courses/9" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/courses/9"
);

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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=yU8KcvJuRfrUPvAgshMUXlVeSiS2ahEv2icS8bxA; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

DELETE api/v1/courses/{id}

URL Parameters

id  integer  

The ID of the course.

Dashboard

Dashboard Apis

GET api/v1/dashboard

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/dashboard" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/dashboard"
);

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: *
set-cookie: zeed_worldwide_session=SL7ZCjOSukON8KkT0fgs9wq5JqDh2jAA0AY41DZ8; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/dashboard

Endpoints

GET api/v1/{fallbackPlaceholder}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/IE@8V>.f" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/IE@8V>.f"
);

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

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 34
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=cLH2Rdoo0pAnWwTsGS4YveWelL7qqi6WBSDXLWN1; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": [
        "requested route does not exist"
    ]
}
 

Request      

GET api/v1/{fallbackPlaceholder}

URL Parameters

fallbackPlaceholder  string  

Events

APIs for managing events

GET api/v1/events

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/events" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/events"
);

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

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 44
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=cgVPDDDAMG2BqkK5RzcuCXUmVZvm3UMXR2wIjXQp; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": true,
    "message": "success",
    "data": [
        {
            "id": 10,
            "title": "quis",
            "user_id": 3,
            "address": "731 Emard Tunnel Suite 652\nNew Rubyefort, AZ 79819-6044",
            "start_date": "1970-12-28",
            "end_date": "2006-08-27",
            "description": "Et ullam aut accusantium rem facilis. Pariatur iure sed animi id quisquam impedit voluptatem qui. Iure consequatur libero nesciunt hic.",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/00ff66?text=ipsum",
            "time": "01:55:10",
            "fee": 56911,
            "created_at": "2022-01-09T17:43:34.000000Z",
            "updated_at": "2022-01-09T17:43:34.000000Z",
            "deleted_at": null,
            "visibility": "public"
        },
        {
            "id": 9,
            "title": "et",
            "user_id": 1,
            "address": "172 Rosalinda Orchard Suite 862\nNew Emieburgh, KY 92473",
            "start_date": "1975-01-11",
            "end_date": "1980-04-16",
            "description": "Minima rerum velit dolorem earum. Consectetur consequuntur et maxime eaque est laudantium est. Voluptates iusto voluptatibus ut.",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/007777?text=quia",
            "time": "19:52:59",
            "fee": 27047,
            "created_at": "2022-01-09T17:43:34.000000Z",
            "updated_at": "2022-01-09T17:43:34.000000Z",
            "deleted_at": null,
            "visibility": "members"
        },
        {
            "id": 8,
            "title": "aut",
            "user_id": 3,
            "address": "55632 Catharine Run Apt. 173\nGreenholtside, MD 45176",
            "start_date": "2008-02-13",
            "end_date": "1986-02-13",
            "description": "Enim sed consequatur maiores optio. Veritatis ipsam ut et sint amet assumenda. Cumque repellat enim aut nesciunt rem ipsam non.",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/0033aa?text=itaque",
            "time": "03:07:35",
            "fee": 96420,
            "created_at": "2022-01-09T17:43:34.000000Z",
            "updated_at": "2022-01-09T17:43:34.000000Z",
            "deleted_at": null,
            "visibility": "public"
        },
        {
            "id": 7,
            "title": "aperiam",
            "user_id": 2,
            "address": "89266 Bonnie Knolls\nSouth Mireillebury, HI 96705-6265",
            "start_date": "1971-02-27",
            "end_date": "2002-10-28",
            "description": "Labore laboriosam distinctio blanditiis. Blanditiis libero vel error aut aliquam harum. Nobis recusandae amet dolorem. Nesciunt qui repellendus delectus est maxime vel blanditiis sit.",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/009933?text=sit",
            "time": "19:40:04",
            "fee": 90357,
            "created_at": "2022-01-09T17:43:34.000000Z",
            "updated_at": "2022-01-09T17:43:34.000000Z",
            "deleted_at": null,
            "visibility": "public"
        },
        {
            "id": 6,
            "title": "non",
            "user_id": 1,
            "address": "135 Estevan Mountains\nLefflerton, UT 48940",
            "start_date": "2019-07-05",
            "end_date": "2003-07-15",
            "description": "Sunt ut neque itaque aliquid eveniet esse commodi. Sit velit laudantium praesentium vero quo. Neque ad vel aliquid placeat ratione reiciendis totam.",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/00ee00?text=deleniti",
            "time": "16:21:40",
            "fee": 65737,
            "created_at": "2022-01-09T17:43:34.000000Z",
            "updated_at": "2022-01-09T17:43:34.000000Z",
            "deleted_at": null,
            "visibility": "members"
        },
        {
            "id": 5,
            "title": "consequatur",
            "user_id": 1,
            "address": "6032 McClure Centers Apt. 067\nRuthburgh, TX 92791",
            "start_date": "1981-12-28",
            "end_date": "2016-12-22",
            "description": "Eum alias architecto dolor iste consequatur optio quia nostrum. Unde libero fugit molestiae sit autem fugiat. Qui vero ullam qui eum rerum. Ipsam recusandae sed odit corrupti quia omnis.",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/007755?text=facere",
            "time": "23:21:48",
            "fee": 81286,
            "created_at": "2022-01-09T17:43:34.000000Z",
            "updated_at": "2022-01-09T17:43:34.000000Z",
            "deleted_at": null,
            "visibility": "public"
        },
        {
            "id": 4,
            "title": "sit",
            "user_id": 1,
            "address": "161 Grady Row\nPort Terryton, AZ 63677",
            "start_date": "1980-01-01",
            "end_date": "2011-03-01",
            "description": "Occaecati culpa molestiae commodi consequatur. Qui necessitatibus itaque ut. Et est vel nihil sed non. Eos dignissimos aut nihil quae qui beatae omnis.",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/009900?text=tempora",
            "time": "05:11:22",
            "fee": 26943,
            "created_at": "2022-01-09T17:43:34.000000Z",
            "updated_at": "2022-01-09T17:43:34.000000Z",
            "deleted_at": null,
            "visibility": "public"
        },
        {
            "id": 3,
            "title": "deleniti",
            "user_id": 2,
            "address": "84744 Okuneva Terrace Apt. 961\nLake Golda, AR 97562-8822",
            "start_date": "2017-09-15",
            "end_date": "2015-02-18",
            "description": "Id laborum neque inventore aut enim velit ut. Nemo sunt repellat nostrum sed quam asperiores omnis. Ipsa rerum aut nisi autem laborum. Mollitia placeat est omnis adipisci illo est quia.",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/002222?text=error",
            "time": "16:09:24",
            "fee": 51318,
            "created_at": "2022-01-09T17:43:34.000000Z",
            "updated_at": "2022-01-09T17:43:34.000000Z",
            "deleted_at": null,
            "visibility": "members"
        },
        {
            "id": 2,
            "title": "voluptas",
            "user_id": 2,
            "address": "2748 Abigail Views\nWest Jonas, FL 05963",
            "start_date": "2004-12-14",
            "end_date": "1999-12-09",
            "description": "Eveniet eligendi sint vel rerum aut. Aut quos culpa voluptatem quo a molestias est. Fugiat quia molestias nihil eveniet quam praesentium ea.",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/00ccaa?text=est",
            "time": "23:10:13",
            "fee": 9904,
            "created_at": "2022-01-09T17:43:34.000000Z",
            "updated_at": "2022-01-09T17:43:34.000000Z",
            "deleted_at": null,
            "visibility": "members"
        },
        {
            "id": 1,
            "title": "qui",
            "user_id": 2,
            "address": "704 Antonio Ports Suite 745\nHickleville, CO 35719",
            "start_date": "2020-02-07",
            "end_date": "1971-03-01",
            "description": "Et maxime illo et in ut ut voluptas tenetur. Consectetur iusto laborum rerum similique et iste harum quia. Voluptatibus quis quidem omnis pariatur. Doloremque molestias sequi dolorum rem ut natus dolorem.",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/0011bb?text=id",
            "time": "19:17:23",
            "fee": 87945,
            "created_at": "2022-01-09T17:43:34.000000Z",
            "updated_at": "2022-01-09T17:43:34.000000Z",
            "deleted_at": null,
            "visibility": "public"
        }
    ]
}
 

Request      

GET api/v1/events

POST api/v1/events

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/events" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "title=pariatur" \
    --form "user_id=provident" \
    --form "address=deserunt" \
    --form "start_date=2022-01-09T19:41:15" \
    --form "end_date=2022-01-09T19:41:15" \
    --form "description=qui" \
    --form "time=neque" \
    --form "visibility=voluptatem" \
    --form "image=@/tmp/phplqkGu2" 
const url = new URL(
    "http://localhost/api/v1/events"
);

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

const body = new FormData();
body.append('title', 'pariatur');
body.append('user_id', 'provident');
body.append('address', 'deserunt');
body.append('start_date', '2022-01-09T19:41:15');
body.append('end_date', '2022-01-09T19:41:15');
body.append('description', 'qui');
body.append('time', 'neque');
body.append('visibility', 'voluptatem');
body.append('image', document.querySelector('input[name="image"]').files[0]);

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=wH3btdMEy7ZGWhRp9WfQzVA5dz1ZOw1urCifKS9m; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/events

Body Parameters

title  string  

user_id  string  

address  string  

Facilitator.

start_date  string  

Must be a valid date.

end_date  string  

Must be a valid date.

description  string  

image  file  

Must be an image.

fee  string optional  

time  string  

visibility  string  

GET api/v1/events/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/events/20" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/events/20"
);

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

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 43
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=vI2yCQLf4q8CNlmpyxEWmMCuHSuaTyqALTsH6A92; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": true,
    "message": "success",
    "data": {
        "id": 1,
        "title": "qui",
        "user_id": 2,
        "address": "704 Antonio Ports Suite 745\nHickleville, CO 35719",
        "start_date": "2020-02-07",
        "end_date": "1971-03-01",
        "description": "Et maxime illo et in ut ut voluptas tenetur. Consectetur iusto laborum rerum similique et iste harum quia. Voluptatibus quis quidem omnis pariatur. Doloremque molestias sequi dolorum rem ut natus dolorem.",
        "image": "https:\/\/via.placeholder.com\/640x480.png\/0011bb?text=id",
        "time": "19:17:23",
        "fee": 87945,
        "created_at": "2022-01-09T17:43:34.000000Z",
        "updated_at": "2022-01-09T17:43:34.000000Z",
        "deleted_at": null,
        "visibility": "public",
        "host": {
            "id": 2,
            "fullname": "Elva Bauch",
            "phone": "(740) 879-5692",
            "country": "Egypt",
            "gender": "Male",
            "email": "coach@zeed.com",
            "avatar": "https:\/\/via.placeholder.com\/640x480.png\/00aa33?text=ut",
            "device_name": null,
            "dob": "1970-07-16",
            "bio": "Nostrum aliquid deserunt facere et neque. Odit illum doloribus nulla fugit quis cum minus. Facilis et ex et asperiores et nemo magnam. Et et illum eum sit qui.",
            "designation": "Optical Instrument Assembler",
            "experience": "Repellendus aliquid repellendus deserunt cupiditate magnam enim aut ullam. Voluptatum itaque omnis ex similique aut. Voluptas et nulla omnis. Magnam et non magni iure quos fuga qui.",
            "email_verified_at": "2022-01-09T17:43:33.000000Z",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null,
            "password_token": null,
            "has_lifetime_access": 0
        }
    }
}
 

Request      

GET api/v1/events/{id}

URL Parameters

id  integer  

The ID of the event.

PUT api/v1/events/{id}

requires authentication

Example request:
curl --request PUT \
    "http://localhost/api/v1/events/4" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"aut\",
    \"address\": \"sed\",
    \"start_date\": \"2022-01-09T19:41:15\",
    \"end_date\": \"2022-01-09T19:41:15\",
    \"description\": \"recusandae\",
    \"fee\": 1.6,
    \"time\": \"necessitatibus\",
    \"visibility\": \"et\"
}"
const url = new URL(
    "http://localhost/api/v1/events/4"
);

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

let body = {
    "title": "aut",
    "address": "sed",
    "start_date": "2022-01-09T19:41:15",
    "end_date": "2022-01-09T19:41:15",
    "description": "recusandae",
    "fee": 1.6,
    "time": "necessitatibus",
    "visibility": "et"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=NUBszWUE1sP4ADhYnKzxyW5lBgKjuwNRIMtW2OoP; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

PUT api/v1/events/{id}

PATCH api/v1/events/{id}

URL Parameters

id  integer  

The ID of the event.

Body Parameters

title  string optional  

user_id  string optional  

address  string optional  

Facilitator.

start_date  string optional  

Must be a valid date.

end_date  string optional  

Must be a valid date.

description  string optional  

fee  number optional  

time  string optional  

visibility  string optional  

DELETE api/v1/events/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://localhost/api/v1/events/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/events/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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=smPtNXduSn178Oa4mx3BDiAlBeL2Hm2r3UTfunEk; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

DELETE api/v1/events/{id}

URL Parameters

id  integer  

The ID of the event.

POST api/v1/events/{event}/register

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/events/10/register" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"beatae\",
    \"email\": \"ut\",
    \"phone\": \"omnis\",
    \"gender\": \"quia\",
    \"country\": \"sit\"
}"
const url = new URL(
    "http://localhost/api/v1/events/10/register"
);

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

let body = {
    "name": "beatae",
    "email": "ut",
    "phone": "omnis",
    "gender": "quia",
    "country": "sit"
}

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

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 45
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=LKpEaNlUyaLdh33upD0OAYyH3LnxaOoaHUTj5AZT; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "message": "Address in mailbox given [ut] does not comply with RFC 2822, 3.6.2.",
    "exception": "Swift_RfcComplianceException",
    "file": "\/var\/www\/html\/vendor\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Mime\/Headers\/MailboxHeader.php",
    "line": 355,
    "trace": [
        {
            "file": "\/var\/www\/html\/vendor\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Mime\/Headers\/MailboxHeader.php",
            "line": 272,
            "function": "assertValidAddress",
            "class": "Swift_Mime_Headers_MailboxHeader",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Mime\/Headers\/MailboxHeader.php",
            "line": 117,
            "function": "normalizeMailboxes",
            "class": "Swift_Mime_Headers_MailboxHeader",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Mime\/Headers\/MailboxHeader.php",
            "line": 74,
            "function": "setNameAddresses",
            "class": "Swift_Mime_Headers_MailboxHeader",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Mime\/SimpleHeaderFactory.php",
            "line": 61,
            "function": "setFieldBodyModel",
            "class": "Swift_Mime_Headers_MailboxHeader",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Mime\/SimpleHeaderSet.php",
            "line": 71,
            "function": "createMailboxHeader",
            "class": "Swift_Mime_SimpleHeaderFactory",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Mime\/SimpleMessage.php",
            "line": 323,
            "function": "addMailboxHeader",
            "class": "Swift_Mime_SimpleHeaderSet",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Mail\/Message.php",
            "line": 162,
            "function": "setTo",
            "class": "Swift_Mime_SimpleMessage",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Mail\/Message.php",
            "line": 98,
            "function": "addAddresses",
            "class": "Illuminate\\Mail\\Message",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Notifications\/Channels\/MailChannel.php",
            "line": 163,
            "function": "to",
            "class": "Illuminate\\Mail\\Message",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Notifications\/Channels\/MailChannel.php",
            "line": 135,
            "function": "addressMessage",
            "class": "Illuminate\\Notifications\\Channels\\MailChannel",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Notifications\/Channels\/MailChannel.php",
            "line": 80,
            "function": "buildMessage",
            "class": "Illuminate\\Notifications\\Channels\\MailChannel",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Mail\/Mailer.php",
            "line": 271,
            "function": "Illuminate\\Notifications\\Channels\\{closure}",
            "class": "Illuminate\\Notifications\\Channels\\MailChannel",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Notifications\/Channels\/MailChannel.php",
            "line": 65,
            "function": "send",
            "class": "Illuminate\\Mail\\Mailer",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Notifications\/NotificationSender.php",
            "line": 148,
            "function": "send",
            "class": "Illuminate\\Notifications\\Channels\\MailChannel",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Notifications\/NotificationSender.php",
            "line": 106,
            "function": "sendToNotifiable",
            "class": "Illuminate\\Notifications\\NotificationSender",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Support\/Traits\/Localizable.php",
            "line": 19,
            "function": "Illuminate\\Notifications\\{closure}",
            "class": "Illuminate\\Notifications\\NotificationSender",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Notifications\/NotificationSender.php",
            "line": 109,
            "function": "withLocale",
            "class": "Illuminate\\Notifications\\NotificationSender",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Notifications\/NotificationSender.php",
            "line": 79,
            "function": "sendNow",
            "class": "Illuminate\\Notifications\\NotificationSender",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Notifications\/ChannelManager.php",
            "line": 39,
            "function": "send",
            "class": "Illuminate\\Notifications\\NotificationSender",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Notifications\/RoutesNotifications.php",
            "line": 18,
            "function": "send",
            "class": "Illuminate\\Notifications\\ChannelManager",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/app\/Http\/Controllers\/EventController.php",
            "line": 155,
            "function": "notify",
            "class": "App\\Models\\EventRegistration",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Controller.php",
            "line": 54,
            "function": "register",
            "class": "App\\Http\\Controllers\\EventController",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php",
            "line": 45,
            "function": "callAction",
            "class": "Illuminate\\Routing\\Controller",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php",
            "line": 254,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\ControllerDispatcher",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php",
            "line": 197,
            "function": "runController",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 695,
            "function": "run",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 128,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/SubstituteBindings.php",
            "line": 50,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/ThrottleRequests.php",
            "line": 127,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/ThrottleRequests.php",
            "line": 103,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/ThrottleRequests.php",
            "line": 55,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php",
            "line": 121,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php",
            "line": 64,
            "function": "handleStatefulRequest",
            "class": "Illuminate\\Session\\Middleware\\StartSession",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Session\\Middleware\\StartSession",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 103,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 697,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 672,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 636,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 625,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
            "line": 166,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 128,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/barryvdh\/laravel-debugbar\/src\/Middleware\/InjectDebugbar.php",
            "line": 60,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Barryvdh\\Debugbar\\Middleware\\InjectDebugbar",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php",
            "line": 40,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php",
            "line": 86,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/fruitcake\/laravel-cors\/src\/HandleCors.php",
            "line": 52,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Fruitcake\\Cors\\HandleCors",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/fideloper\/proxy\/src\/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Fideloper\\Proxy\\TrustProxies",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 103,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
            "line": 141,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
            "line": 110,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 287,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 275,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 86,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 34,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Extractor.php",
            "line": 225,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Extractor.php",
            "line": 182,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Extractor.php",
            "line": 116,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/GroupedEndpoints\/GroupedEndpointsFromApp.php",
            "line": 118,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/GroupedEndpoints\/GroupedEndpointsFromApp.php",
            "line": 75,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/GroupedEndpoints\/GroupedEndpointsFromApp.php",
            "line": 51,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php",
            "line": 39,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php",
            "line": 40,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 37,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php",
            "line": 651,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php",
            "line": 136,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/symfony\/console\/Command\/Command.php",
            "line": 299,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php",
            "line": 121,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/symfony\/console\/Application.php",
            "line": 978,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/symfony\/console\/Application.php",
            "line": 295,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/symfony\/console\/Application.php",
            "line": 167,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php",
            "line": 92,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php",
            "line": 129,
            "function": "run",
            "class": "Illuminate\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/artisan",
            "line": 37,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        }
    ]
}
 

Request      

POST api/v1/events/{event}/register

URL Parameters

event  integer  

Body Parameters

name  string  

email  string  

phone  string  

gender  string  

country  string  

GET api/v1/events/{event}/registrations

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/events/18/registrations" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/events/18/registrations"
);

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: *
set-cookie: zeed_worldwide_session=Pq96saqlh7fFaUozk9tEOe8p2SQVbYeOW8fFgil8; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/events/{event}/registrations

URL Parameters

event  integer  

Faqs

APIs for frequently asked questions and answers

GET api/v1/faqs

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/faqs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/faqs"
);

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

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 48
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=rkle3eNIV0CGHhQ00U6xSaCc6I0Tk8AvTz5rmLUV; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": true,
    "message": "success",
    "data": [
        {
            "id": 1,
            "question": "Excepturi ex iure cum repudiandae placeat.",
            "answer": "Sunt dolorem rerum sit tempora. Minima ipsam totam assumenda vero eum est sunt qui. Nemo inventore ut quod perspiciatis provident cupiditate quo. Autem repellat aut reprehenderit officiis eveniet.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 2,
            "question": "Quaerat cum dolorem necessitatibus.",
            "answer": "Omnis blanditiis repudiandae natus unde. Sit nesciunt quibusdam reiciendis. Ut omnis fuga voluptatibus et. Aliquam velit est molestias et dolorem deleniti excepturi adipisci.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 3,
            "question": "Facere iste nobis ab fugit nemo earum in libero.",
            "answer": "Nostrum eius rem et vero dolorum expedita. Sed atque consectetur aliquam ducimus. Placeat molestiae velit laborum hic nisi.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 4,
            "question": "Sint consequatur autem provident veniam non.",
            "answer": "Iure possimus rerum et assumenda voluptatibus consequuntur autem. Itaque eveniet amet harum odit magni aperiam exercitationem. Qui vero sapiente consectetur doloribus est voluptatem. Et nobis deserunt sunt.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 5,
            "question": "Asperiores commodi soluta et ut.",
            "answer": "In qui voluptatum illo earum. Autem et eius soluta iure qui corporis. Rerum ut culpa eligendi voluptatem quae. Amet odio voluptas soluta rem.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 6,
            "question": "Explicabo quaerat natus error id non odio.",
            "answer": "Nemo totam ab qui et est aliquid. Quo sequi aut laboriosam fuga quibusdam aperiam maxime ut. Et aut praesentium reprehenderit. Veniam quaerat quia laboriosam rem. At occaecati eos quis rerum.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 7,
            "question": "Quidem nam possimus qui consectetur labore.",
            "answer": "Voluptatem sint tenetur dolorum consequatur. Labore laborum et cumque necessitatibus possimus expedita. Labore minima soluta explicabo odio et libero. Qui accusamus deleniti exercitationem est dolore sed.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 8,
            "question": "Repellat iste dolor aliquid dolorem.",
            "answer": "Cum illum voluptas eum consequatur. Ut nostrum voluptatem quidem omnis vitae esse pariatur laudantium. Qui dolorum officiis est.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 9,
            "question": "Tempore ut illo aut eum aut libero rerum.",
            "answer": "Mollitia libero perspiciatis mollitia distinctio. Reprehenderit possimus harum itaque consectetur quisquam sint minima facere. Ea non libero aut et dolorem.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 10,
            "question": "Molestiae vero aut maiores sint quia voluptas.",
            "answer": "Voluptatibus aut neque ut sunt neque. Quia cum quia rerum dolores nihil facere reiciendis. Esse nisi qui officia enim sit aperiam.",
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        }
    ]
}
 

Request      

GET api/v1/faqs

POST api/v1/faqs

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/faqs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"question\": \"cupiditate\",
    \"answer\": \"nemo\"
}"
const url = new URL(
    "http://localhost/api/v1/faqs"
);

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

let body = {
    "question": "cupiditate",
    "answer": "nemo"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=GyEDcadquRHESnxSv8qJICoMFI63HDKeGlUP7T08; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/faqs

Body Parameters

question  string  

answer  string  

GET api/v1/faqs/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/faqs/9" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/faqs/9"
);

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: *
set-cookie: zeed_worldwide_session=sfRa9cMzLJJeRLUGfHRLo30D0LitLAGDmzrqnbqB; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/faqs/{id}

URL Parameters

id  integer  

The ID of the faq.

PUT api/v1/faqs/{id}

requires authentication

Example request:
curl --request PUT \
    "http://localhost/api/v1/faqs/17" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"question\": \"magni\",
    \"answer\": \"cupiditate\"
}"
const url = new URL(
    "http://localhost/api/v1/faqs/17"
);

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

let body = {
    "question": "magni",
    "answer": "cupiditate"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=rpeOiy3UmfB6uEikvM0xth81vbP0d6eNVJl5rBr7; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

PUT api/v1/faqs/{id}

PATCH api/v1/faqs/{id}

URL Parameters

id  integer  

The ID of the faq.

Body Parameters

question  string  

answer  string  

DELETE api/v1/faqs/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://localhost/api/v1/faqs/9" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/faqs/9"
);

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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=CNLUWmUNFnnqkdye8i6aENKyLkNceMg28EtBzhHd; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

DELETE api/v1/faqs/{id}

URL Parameters

id  integer  

The ID of the faq.

Lessons

APIs for creating lessons

GET api/v1/lessons

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/lessons" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/lessons"
);

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: *
set-cookie: zeed_worldwide_session=p1yUFXd6XwUoB1O3QNmM3iC607kmYbDV5krg1igK; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/lessons

POST api/v1/lessons

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/lessons" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"course_id\": \"blanditiis\",
    \"title\": \"a\",
    \"description\": \"consectetur\",
    \"sn\": 1839.409762
}"
const url = new URL(
    "http://localhost/api/v1/lessons"
);

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

let body = {
    "course_id": "blanditiis",
    "title": "a",
    "description": "consectetur",
    "sn": 1839.409762
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=n07bHqgFp91KW6Yj745EMYee0Xy0C3aVbWMXHhf0; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/lessons

Body Parameters

course_id  string  

title  string  

description  string  

video_url  string optional  

pdf_url  string optional  

duration  string optional  

sn  number  

GET api/v1/lessons/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/lessons/8" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/lessons/8"
);

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: *
set-cookie: zeed_worldwide_session=YMYSGXK2iUa49yqE0h9YVdfnPuPySE6ffdzAeWNx; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/lessons/{id}

URL Parameters

id  integer  

The ID of the lesson.

PUT api/v1/lessons/{id}

requires authentication

Example request:
curl --request PUT \
    "http://localhost/api/v1/lessons/11" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"occaecati\",
    \"description\": \"dolores\",
    \"sn\": 410774.35677
}"
const url = new URL(
    "http://localhost/api/v1/lessons/11"
);

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

let body = {
    "title": "occaecati",
    "description": "dolores",
    "sn": 410774.35677
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=ywaqHnt1dUToabyZ79H7bcaKq2KyLwgrsYDHnWoT; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

PUT api/v1/lessons/{id}

PATCH api/v1/lessons/{id}

URL Parameters

id  integer  

The ID of the lesson.

Body Parameters

title  string  

'course_id' => 'required|exists:courses,id',.

description  string  

video_url  string optional  

pdf_url  string optional  

duration  string optional  

sn  number  

DELETE api/v1/lessons/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://localhost/api/v1/lessons/8" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/lessons/8"
);

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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=k36eMULMMp5afHxsjoUs8nPsKS7KtyCd9EE1QSCf; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

DELETE api/v1/lessons/{id}

URL Parameters

id  integer  

The ID of the lesson.

Mentorship

APIs for mentorship

GET api/v1/mentorship

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/mentorship" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/mentorship"
);

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: *
set-cookie: zeed_worldwide_session=Dzr3HFdmesVCse7UiQUY9owOQqxKMt6EVfsQ3XSl; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/mentorship

POST api/v1/mentorship

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/mentorship" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": \"rerum\",
    \"coach_id\": \"et\",
    \"start_date\": \"2022-01-09T19:41:15\"
}"
const url = new URL(
    "http://localhost/api/v1/mentorship"
);

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

let body = {
    "user_id": "rerum",
    "coach_id": "et",
    "start_date": "2022-01-09T19:41:15"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=2wOO7cL0ZIS9L5E43Hg0jWlQ1JGW0NrHbKr8gUMt; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/mentorship

Body Parameters

user_id  string  

coach_id  string  

start_date  string  

Must be a valid date.

message  string optional  

GET api/v1/mentorship/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/mentorship/15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/mentorship/15"
);

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: *
set-cookie: zeed_worldwide_session=C7q41Cf3ozAmKbYkNYzd6Rxmn4Scaq79HGFawhpJ; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/mentorship/{id}

URL Parameters

id  integer  

The ID of the mentorship.

PUT api/v1/mentorship/{id}

requires authentication

Example request:
curl --request PUT \
    "http://localhost/api/v1/mentorship/15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": \"vitae\",
    \"coach_id\": \"repellat\",
    \"start_date\": \"2022-01-09T19:41:15\"
}"
const url = new URL(
    "http://localhost/api/v1/mentorship/15"
);

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

let body = {
    "user_id": "vitae",
    "coach_id": "repellat",
    "start_date": "2022-01-09T19:41:15"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=DVLZ9nBWntCEAAQkKb4KpZkBjKqwaOxLQL3ZNnG4; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

PUT api/v1/mentorship/{id}

PATCH api/v1/mentorship/{id}

URL Parameters

id  integer  

The ID of the mentorship.

Body Parameters

user_id  string  

coach_id  string  

start_date  string  

Must be a valid date.

message  string optional  

DELETE api/v1/mentorship/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://localhost/api/v1/mentorship/11" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/mentorship/11"
);

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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=yesrGGlM0N5UWeZjzx1XjTAtyqeZhy9dp47XHmm5; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

DELETE api/v1/mentorship/{id}

URL Parameters

id  integer  

The ID of the mentorship.

GET api/v1/mentorship/{mentorship}/approve

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/mentorship/7/approve" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/mentorship/7/approve"
);

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: *
set-cookie: zeed_worldwide_session=hVhjyVgPniGWJP0pkaPgNLP8sRGXH5I7yaHWuVvL; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/mentorship/{mentorship}/approve

URL Parameters

mentorship  integer  

GET api/v1/mentorship/{mentorship}/decline

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/mentorship/12/decline" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/mentorship/12/decline"
);

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: *
set-cookie: zeed_worldwide_session=7He2wXAAqYLCk7KVWaJCm57Tn7Gp3AVRbjfSHIVZ; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/mentorship/{mentorship}/decline

URL Parameters

mentorship  integer  

POST api/v1/mentorship/{mentorship}/reassign

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/mentorship/2/reassign" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"coach_id\": \"sit\"
}"
const url = new URL(
    "http://localhost/api/v1/mentorship/2/reassign"
);

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

let body = {
    "coach_id": "sit"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=VlXGv2LugR7dy2eaHU8oz0NkpheYFFcG0LNLvTyn; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/mentorship/{mentorship}/reassign

URL Parameters

mentorship  integer  

Body Parameters

coach_id  string  

Messages

APIs for contact us messages

POST api/v1/messages

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/messages" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"itaque\",
    \"email\": \"lebsack.cassandre@example.org\",
    \"subject\": \"velit\",
    \"phone\": \"non\",
    \"message\": \"dignissimos\"
}"
const url = new URL(
    "http://localhost/api/v1/messages"
);

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

let body = {
    "name": "itaque",
    "email": "lebsack.cassandre@example.org",
    "subject": "velit",
    "phone": "non",
    "message": "dignissimos"
}

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

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 37
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=d35JBqNh1o91p4Z2Z9B3PB4MHl8Yled66XMyfJ1e; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "message": "View [email] not found.",
    "exception": "InvalidArgumentException",
    "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/View\/FileViewFinder.php",
    "line": 137,
    "trace": [
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/View\/FileViewFinder.php",
            "line": 79,
            "function": "findInPaths",
            "class": "Illuminate\\View\\FileViewFinder",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Factory.php",
            "line": 138,
            "function": "find",
            "class": "Illuminate\\View\\FileViewFinder",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Mail\/Mailer.php",
            "line": 382,
            "function": "make",
            "class": "Illuminate\\View\\Factory",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Mail\/Mailer.php",
            "line": 355,
            "function": "renderView",
            "class": "Illuminate\\Mail\\Mailer",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Mail\/Mailer.php",
            "line": 273,
            "function": "addContent",
            "class": "Illuminate\\Mail\\Mailer",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Mail\/MailManager.php",
            "line": 521,
            "function": "send",
            "class": "Illuminate\\Mail\\Mailer",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Support\/Facades\/Facade.php",
            "line": 261,
            "function": "__call",
            "class": "Illuminate\\Mail\\MailManager",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/app\/Http\/Controllers\/MessageController.php",
            "line": 59,
            "function": "__callStatic",
            "class": "Illuminate\\Support\\Facades\\Facade",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Controller.php",
            "line": 54,
            "function": "store",
            "class": "App\\Http\\Controllers\\MessageController",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php",
            "line": 45,
            "function": "callAction",
            "class": "Illuminate\\Routing\\Controller",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php",
            "line": 254,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\ControllerDispatcher",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php",
            "line": 197,
            "function": "runController",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 695,
            "function": "run",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 128,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/SubstituteBindings.php",
            "line": 50,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/ThrottleRequests.php",
            "line": 127,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/ThrottleRequests.php",
            "line": 103,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/ThrottleRequests.php",
            "line": 55,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php",
            "line": 121,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php",
            "line": 64,
            "function": "handleStatefulRequest",
            "class": "Illuminate\\Session\\Middleware\\StartSession",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Session\\Middleware\\StartSession",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 103,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 697,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 672,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 636,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 625,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
            "line": 166,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 128,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/barryvdh\/laravel-debugbar\/src\/Middleware\/InjectDebugbar.php",
            "line": 60,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Barryvdh\\Debugbar\\Middleware\\InjectDebugbar",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php",
            "line": 40,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php",
            "line": 86,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/fruitcake\/laravel-cors\/src\/HandleCors.php",
            "line": 52,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Fruitcake\\Cors\\HandleCors",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/fideloper\/proxy\/src\/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Fideloper\\Proxy\\TrustProxies",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 103,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
            "line": 141,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
            "line": 110,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 287,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 275,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 86,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php",
            "line": 34,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Extractor.php",
            "line": 225,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Extractor.php",
            "line": 182,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Extractor.php",
            "line": 116,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/GroupedEndpoints\/GroupedEndpointsFromApp.php",
            "line": 118,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/GroupedEndpoints\/GroupedEndpointsFromApp.php",
            "line": 75,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/GroupedEndpoints\/GroupedEndpointsFromApp.php",
            "line": 51,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php",
            "line": 39,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php",
            "line": 40,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 37,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php",
            "line": 651,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php",
            "line": 136,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/symfony\/console\/Command\/Command.php",
            "line": 299,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php",
            "line": 121,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/symfony\/console\/Application.php",
            "line": 978,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/symfony\/console\/Application.php",
            "line": 295,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/symfony\/console\/Application.php",
            "line": 167,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php",
            "line": 92,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php",
            "line": 129,
            "function": "run",
            "class": "Illuminate\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/var\/www\/html\/artisan",
            "line": 37,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        }
    ]
}
 

Request      

POST api/v1/messages

Body Parameters

name  string  

email  string  

Must be a valid email address.

subject  string  

phone  string  

message  string  

GET api/v1/messages

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/messages" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/messages"
);

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: *
set-cookie: zeed_worldwide_session=ROM8cd5JWt8krMezJBP1f28I1Ck7w5kp9qjXN2zT; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/messages

GET api/v1/messages/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/messages/9" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/messages/9"
);

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: *
set-cookie: zeed_worldwide_session=uHYrxsfD4075U8klKXLS60KyHRdYBM8MGe1U0aZX; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/messages/{id}

URL Parameters

id  integer  

The ID of the message.

PUT api/v1/messages/{id}

requires authentication

Example request:
curl --request PUT \
    "http://localhost/api/v1/messages/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"quod\",
    \"email\": \"dickinson.wilburn@example.net\",
    \"subject\": \"quae\",
    \"phone\": \"sit\",
    \"message\": \"corporis\"
}"
const url = new URL(
    "http://localhost/api/v1/messages/16"
);

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

let body = {
    "name": "quod",
    "email": "dickinson.wilburn@example.net",
    "subject": "quae",
    "phone": "sit",
    "message": "corporis"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=HMva8cYpAAb2SsGUDi8qdTKDbJigqk7RjG7ZP7pM; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

PUT api/v1/messages/{id}

PATCH api/v1/messages/{id}

URL Parameters

id  integer  

The ID of the message.

Body Parameters

name  string  

email  string  

Must be a valid email address.

subject  string  

phone  string  

message  string  

DELETE api/v1/messages/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://localhost/api/v1/messages/10" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/messages/10"
);

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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=qG73EsOYX7z0dMLWiiXvhxekwN5NNiV2rQFTMW02; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

DELETE api/v1/messages/{id}

URL Parameters

id  integer  

The ID of the message.

Newsletter

APIs for authenticating and registering users

POST api/v1/newsletters/subscribe

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/newsletters/subscribe" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"consequatur\"
}"
const url = new URL(
    "http://localhost/api/v1/newsletters/subscribe"
);

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

let body = {
    "email": "consequatur"
}

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

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 52
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=Oua8nLtvY7FxSd4dew5h3XCDKzXeirOQQNsVxiOw; expires=Sun, 09-Jan-2022 21:41:14 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": true,
    "message": "You have successfully subscribed to our monthly newsletters",
    "data": {
        "email": "consequatur",
        "updated_at": "2022-01-09T19:41:14.000000Z",
        "created_at": "2022-01-09T19:41:14.000000Z",
        "id": 1
    }
}
 

Request      

POST api/v1/newsletters/subscribe

Body Parameters

email  string  

POST api/v1/newsletters/unsubscribe

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/newsletters/unsubscribe" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"lenore.williamson@example.com\"
}"
const url = new URL(
    "http://localhost/api/v1/newsletters/unsubscribe"
);

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

let body = {
    "email": "lenore.williamson@example.com"
}

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

Example response (400):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 51
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=HSlUdw8DjCSUe0B7AxWOGNUNgM0sIeOTY8sRIpfa; expires=Sun, 09-Jan-2022 21:41:14 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": [
        "The selected email is invalid."
    ]
}
 

Request      

POST api/v1/newsletters/unsubscribe

Body Parameters

email  string  

Must be a valid email address.

GET api/v1/newsletters

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/newsletters" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/newsletters"
);

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: *
set-cookie: zeed_worldwide_session=o4eKIt8g5nmPzosRnN4X68K7Mue9Msz8VL9smlJg; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/newsletters

POST api/v1/newsletters/store

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/newsletters/store" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"aut\",
    \"message\": \"alias\"
}"
const url = new URL(
    "http://localhost/api/v1/newsletters/store"
);

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

let body = {
    "title": "aut",
    "message": "alias"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=SrFU8CID2sYFbXbJdj5V75SrpwcT2QPditMEeIgj; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/newsletters/store

Body Parameters

title  string  

message  string  

DELETE api/v1/newsletters/{newsletter}

requires authentication

Example request:
curl --request DELETE \
    "http://localhost/api/v1/newsletters/13" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/newsletters/13"
);

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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=EqaOD2Ry1ybGgtCZi8Lom7Dr7XaLfx4wlSmvORW2; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

DELETE api/v1/newsletters/{newsletter}

URL Parameters

newsletter  integer  

POST api/v1/newsletters/send

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/newsletters/send" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/newsletters/send"
);

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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=U5wbZguAiox2wDhW6TXkMQyhzGkPpn2OBT82AECQ; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/newsletters/send

Notification

Apis for sending notifications to users

GET api/v1/notifications

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/notifications" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/notifications"
);

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: *
set-cookie: zeed_worldwide_session=vCwrUE97Fe2na1G3i8aAgJgftbueX1Ybrk66IS5D; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/notifications

POST api/v1/notifications

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/notifications" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"est\",
    \"message\": \"et\"
}"
const url = new URL(
    "http://localhost/api/v1/notifications"
);

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

let body = {
    "title": "est",
    "message": "et"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=pAX59kwtc0wf0HhV9dtgo96ofJAbZUtVZ91gGgyG; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/notifications

Body Parameters

title  string  

message  string  

GET api/v1/notifications/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/notifications/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/notifications/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: *
set-cookie: zeed_worldwide_session=GlEe3TKrg3j1ss7vZAzsUaX3thpH7AWnhFgNmaxr; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/notifications/{id}

URL Parameters

id  integer  

The ID of the notification.

PUT api/v1/notifications/{id}

requires authentication

Example request:
curl --request PUT \
    "http://localhost/api/v1/notifications/19" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"facere\",
    \"message\": \"quidem\"
}"
const url = new URL(
    "http://localhost/api/v1/notifications/19"
);

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

let body = {
    "title": "facere",
    "message": "quidem"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=pUt0UuXvo8jmBZZJZIEOAr7bs2dvvhNQpFIC83Qm; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

PUT api/v1/notifications/{id}

PATCH api/v1/notifications/{id}

URL Parameters

id  integer  

The ID of the notification.

Body Parameters

title  string  

message  string  

DELETE api/v1/notifications/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://localhost/api/v1/notifications/10" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/notifications/10"
);

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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=yNeWRdCxFxqI2ApfFQ9LeMaI7lfXwWHXiva7wzfU; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

DELETE api/v1/notifications/{id}

URL Parameters

id  integer  

The ID of the notification.

Payments

APIs for managing payments

GET api/v1/payments

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/payments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/payments"
);

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: *
set-cookie: zeed_worldwide_session=BVVq96p2YqaQpEk1HzxAU43nt40pChLG38786XZX; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/payments

GET api/v1/payments/{payment}/approve

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/payments/18/approve" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/payments/18/approve"
);

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: *
set-cookie: zeed_worldwide_session=lD8lRGc3jm73E46NksUVqdPNfEprMDrvNtb8P35v; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/payments/{payment}/approve

URL Parameters

payment  integer  

GET api/v1/payments/{payment}/decline

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/payments/3/decline" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/payments/3/decline"
);

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: *
set-cookie: zeed_worldwide_session=ZVcZ6x3aEZvugXLTjCLcdmHpokcc7u4ugz3ci46L; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/payments/{payment}/decline

URL Parameters

payment  integer  

GET api/v1/apiKeys

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/apiKeys" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/apiKeys"
);

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

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 55
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=YnDlLxqcYdX6onmQSUnoborScfukImcGLKGydzOa; expires=Sun, 09-Jan-2022 21:41:14 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": true,
    "message": "successful",
    "data": {
        "paystack": {
            "public": "pk_test_2736962476c27d13e039ddf75168f598afe8a328",
            "secret": "sk_test_98fa7da33e3ec488e37d7e9ac68f62e6fd34eb91",
            "payment_url": "https:\/\/api.paystack.co"
        },
        "flutterwave": {
            "public": "FLWPUBK-f8ad4b4e9e0a3f8fbf4ad53217b4bc24-X",
            "secret": "FLWSECK-56b94804b01e663b3cd2a2f2e9645b3c-X",
            "payment_url": null
        },
        "paypal": {
            "public": null,
            "secret": null,
            "payment_url": null
        }
    }
}
 

Request      

GET api/v1/apiKeys

Plan

APIs for authenticating and registering users

GET api/v1/plans

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/plans" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/plans"
);

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

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 50
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=dSM83quvhHPtUH2I450CBV5acpXP9CHir54BpSku; expires=Sun, 09-Jan-2022 21:41:14 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": true,
    "message": "Plans fetched successfully",
    "data": [
        {
            "id": 1,
            "name": "Prof.",
            "description": "Ipsa est dolor quaerat harum officiis perferendis quo. Nesciunt eum ex aliquam nobis libero velit. Dolores rerum voluptate quis distinctio labore. Sed molestiae sequi qui dolorum optio aliquid.",
            "duration": 1,
            "is_recommended": 1,
            "is_special": 0,
            "ngn_price": 301817,
            "usd_price": 705,
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 2,
            "name": "Dr.",
            "description": "Commodi nihil delectus et magni voluptatibus aut eos. Animi officiis quos illum nam. Dolor nostrum excepturi placeat sed recusandae sint voluptates eos.",
            "duration": 1,
            "is_recommended": 1,
            "is_special": 0,
            "ngn_price": 422517,
            "usd_price": 876,
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        },
        {
            "id": 3,
            "name": "Prof.",
            "description": "Quia laudantium rerum unde ad. Sequi architecto similique quos et enim. Eum et repellendus quidem sed.",
            "duration": 1,
            "is_recommended": 0,
            "is_special": 1,
            "ngn_price": 238329,
            "usd_price": 1305,
            "created_at": "2022-01-09T17:43:33.000000Z",
            "updated_at": "2022-01-09T17:43:33.000000Z",
            "deleted_at": null
        }
    ]
}
 

Request      

GET api/v1/plans

POST api/v1/plans

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/plans" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"quisquam\",
    \"description\": \"voluptatem\",
    \"duration\": 15588.6442399,
    \"is_recommended\": false,
    \"is_special\": false,
    \"ngn_price\": 4.269,
    \"usd_price\": 4.8494097
}"
const url = new URL(
    "http://localhost/api/v1/plans"
);

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

let body = {
    "name": "quisquam",
    "description": "voluptatem",
    "duration": 15588.6442399,
    "is_recommended": false,
    "is_special": false,
    "ngn_price": 4.269,
    "usd_price": 4.8494097
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=zxiMaJQ5G3NL2LK1jOMyh8I2kZIfqCUqjICpZLuh; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/plans

Body Parameters

name  string  

description  string  

duration  number  

is_recommended  boolean optional  

is_special  boolean optional  

ngn_price  number  

usd_price  number  

GET api/v1/plans/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/plans/7" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/plans/7"
);

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

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 49
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=KhGqCBvLK4if35VnLODrSqqWtnP84zlCd5Zf3AiP; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": true,
    "message": "success",
    "data": {
        "name": "Prof.",
        "description": "Ipsa est dolor quaerat harum officiis perferendis quo. Nesciunt eum ex aliquam nobis libero velit. Dolores rerum voluptate quis distinctio labore. Sed molestiae sequi qui dolorum optio aliquid.",
        "duration": 1,
        "is_recommended": 1,
        "is_special": 0,
        "ngn_price": 301817,
        "usd_price": 705
    }
}
 

Request      

GET api/v1/plans/{id}

URL Parameters

id  integer  

The ID of the plan.

PUT api/v1/plans/{id}

requires authentication

Example request:
curl --request PUT \
    "http://localhost/api/v1/plans/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"deserunt\",
    \"description\": \"fugiat\",
    \"duration\": 2.575513,
    \"is_recommended\": false,
    \"is_special\": false,
    \"ngn_price\": 5759477,
    \"usd_price\": 654947.20814305
}"
const url = new URL(
    "http://localhost/api/v1/plans/2"
);

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

let body = {
    "name": "deserunt",
    "description": "fugiat",
    "duration": 2.575513,
    "is_recommended": false,
    "is_special": false,
    "ngn_price": 5759477,
    "usd_price": 654947.20814305
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=zeQUUCI0NSFD1tlwSSn6ndyRNHsE5w9j9fkznn8J; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

PUT api/v1/plans/{id}

PATCH api/v1/plans/{id}

URL Parameters

id  integer  

The ID of the plan.

Body Parameters

name  string  

description  string  

duration  number  

is_recommended  boolean optional  

is_special  boolean optional  

ngn_price  number  

usd_price  number  

DELETE api/v1/plans/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://localhost/api/v1/plans/13" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/plans/13"
);

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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=g993sqF9Mkh8DYO00DUdX0pRV8JMEiaW4kpMsQEz; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

DELETE api/v1/plans/{id}

URL Parameters

id  integer  

The ID of the plan.

Services

APIs for zeed services

GET api/v1/services

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/services" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/services"
);

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

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 47
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=OhFzcG6c4ijh5aJh35BUhsPIdWO3YzmsPJMk7yJ2; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": true,
    "message": "success",
    "data": [
        {
            "id": 1,
            "title": "molestias",
            "description": "Qui et iste quas incidunt placeat. Impedit possimus dolores ea cum. Rerum tenetur ut iusto quod aut. Quidem voluptate sint tempore.",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/000011?text=impedit",
            "created_at": "2022-01-09T17:43:34.000000Z",
            "updated_at": "2022-01-09T17:43:34.000000Z",
            "deleted_at": null
        },
        {
            "id": 2,
            "title": "ullam",
            "description": "Dolorem voluptatem harum sunt. Optio dolorem eaque distinctio dolorem deserunt asperiores. Reprehenderit et ratione eos harum sequi rerum alias.",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/00ddcc?text=omnis",
            "created_at": "2022-01-09T17:43:34.000000Z",
            "updated_at": "2022-01-09T17:43:34.000000Z",
            "deleted_at": null
        },
        {
            "id": 3,
            "title": "quia",
            "description": "Voluptatem consectetur velit ratione et perspiciatis eaque. Non doloribus occaecati rem quae consectetur quos omnis. Cum facilis id rerum voluptas.",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/000011?text=ea",
            "created_at": "2022-01-09T17:43:34.000000Z",
            "updated_at": "2022-01-09T17:43:34.000000Z",
            "deleted_at": null
        },
        {
            "id": 4,
            "title": "voluptatum",
            "description": "Vel quae aut minima harum officiis ducimus nihil. Fuga voluptas iure aspernatur itaque assumenda eius. Incidunt sunt rerum reprehenderit doloremque tenetur et et.",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/004411?text=laborum",
            "created_at": "2022-01-09T17:43:34.000000Z",
            "updated_at": "2022-01-09T17:43:34.000000Z",
            "deleted_at": null
        },
        {
            "id": 5,
            "title": "quidem",
            "description": "Dignissimos veniam atque similique nobis. Consequatur error temporibus quos consequatur libero repellat. Ut numquam dolor doloremque blanditiis a reiciendis ea.",
            "image": "https:\/\/via.placeholder.com\/640x480.png\/009933?text=quisquam",
            "created_at": "2022-01-09T17:43:34.000000Z",
            "updated_at": "2022-01-09T17:43:34.000000Z",
            "deleted_at": null
        }
    ]
}
 

Request      

GET api/v1/services

GET api/v1/services/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/services/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/services/16"
);

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

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 46
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=rQdnuZWUU0GLBAwiYxFsiVnxx7npfNR6cEQVKyQs; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": true,
    "message": "success",
    "data": {
        "id": 1,
        "title": "molestias",
        "description": "Qui et iste quas incidunt placeat. Impedit possimus dolores ea cum. Rerum tenetur ut iusto quod aut. Quidem voluptate sint tempore.",
        "image": "https:\/\/via.placeholder.com\/640x480.png\/000011?text=impedit",
        "created_at": "2022-01-09T17:43:34.000000Z",
        "updated_at": "2022-01-09T17:43:34.000000Z",
        "deleted_at": null
    }
}
 

Request      

GET api/v1/services/{id}

URL Parameters

id  integer  

The ID of the service.

POST api/v1/services

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/services" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "title=doloribus" \
    --form "description=labore" \
    --form "image=@/tmp/phpejAXSK" 
const url = new URL(
    "http://localhost/api/v1/services"
);

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

const body = new FormData();
body.append('title', 'doloribus');
body.append('description', 'labore');
body.append('image', document.querySelector('input[name="image"]').files[0]);

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=fQaLI4ZOMiMFA0r5ND1DxsNJcFREu2Awrce5Xb9x; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/services

Body Parameters

title  string  

description  string  

image  file  

Must be an image.

PUT api/v1/services/{id}

requires authentication

Example request:
curl --request PUT \
    "http://localhost/api/v1/services/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"asperiores\",
    \"description\": \"velit\"
}"
const url = new URL(
    "http://localhost/api/v1/services/1"
);

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

let body = {
    "title": "asperiores",
    "description": "velit"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=MyJOS5a07mlzEEfRX9zXfPnOl3l6Pb2Bea8TqY2S; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

PUT api/v1/services/{id}

PATCH api/v1/services/{id}

URL Parameters

id  integer  

The ID of the service.

Body Parameters

title  string  

description  string  

DELETE api/v1/services/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://localhost/api/v1/services/11" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/services/11"
);

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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=olx13mpTkNuTNfMSepUoLmiqzP6k53ieDyZUs5xK; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

DELETE api/v1/services/{id}

URL Parameters

id  integer  

The ID of the service.

Subscriptions

APIs for managing client subscriptions

GET api/v1/subscriptions

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/subscriptions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/subscriptions"
);

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: *
set-cookie: zeed_worldwide_session=tTFOi60A3YJz3CHPIIv9jkm0XWrYasDFTqvqjYRh; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/subscriptions

POST api/v1/subscriptions

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/subscriptions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"plan_id\": \"et\",
    \"tx_ref\": \"cum\",
    \"currency\": \"blanditiis\",
    \"start_date\": \"2022-01-09T19:41:16\",
    \"message\": \"corrupti\"
}"
const url = new URL(
    "http://localhost/api/v1/subscriptions"
);

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

let body = {
    "plan_id": "et",
    "tx_ref": "cum",
    "currency": "blanditiis",
    "start_date": "2022-01-09T19:41:16",
    "message": "corrupti"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=MkccdE3KsSC5SFyXL49o8m1SnoQzwip8sdq6ObW4; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/subscriptions

Body Parameters

plan_id  string  

tx_ref  string  

currency  string  

coach_id  string optional  

start_date  string  

Must be a valid date.

message  string  

category_id  string optional  

GET api/v1/subscriptions/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/subscriptions/17" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/subscriptions/17"
);

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: *
set-cookie: zeed_worldwide_session=zevKBNsrQ8vMzFZzCLTtfNvSjD4GyiQANzBpy332; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/subscriptions/{id}

URL Parameters

id  integer  

The ID of the subscription.

PUT api/v1/subscriptions/{id}

requires authentication

Example request:
curl --request PUT \
    "http://localhost/api/v1/subscriptions/7" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"end_date\": \"2022-01-09T19:41:16\"
}"
const url = new URL(
    "http://localhost/api/v1/subscriptions/7"
);

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

let body = {
    "end_date": "2022-01-09T19:41:16"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=SV3d6qsBqIhNQMRLMATFLSPQVb2hYcgFR7RTohQ9; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

PUT api/v1/subscriptions/{id}

PATCH api/v1/subscriptions/{id}

URL Parameters

id  integer  

The ID of the subscription.

Body Parameters

end_date  string  

Must be a valid date.

DELETE api/v1/subscriptions/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://localhost/api/v1/subscriptions/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/subscriptions/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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=Y1THOWMSFqA4iNCal4qZRYZUfXPxzi19232RQ13n; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

DELETE api/v1/subscriptions/{id}

URL Parameters

id  integer  

The ID of the subscription.

Testimonials

APIs for authenticating and registering users

POST api/v1/testimonials

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/testimonials" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"message\": \"corporis\"
}"
const url = new URL(
    "http://localhost/api/v1/testimonials"
);

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

let body = {
    "message": "corporis"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=0nJDgOrsAcP9op33KcRBr3wFHzbZQZELMxGlroyI; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/testimonials

Body Parameters

message  string  

name  string optional  

email  string optional  

GET api/v1/testimonials/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/testimonials/12" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/testimonials/12"
);

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

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 36
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=OtIm5Moo02JgmlbvNTHMT3cJMUYNG9BEt6FheK8G; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": true,
    "message": "success",
    "data": {
        "id": 1,
        "name": "Garland Howe",
        "message": "Exercitationem fuga sit quasi eaque aut ratione voluptatem. Sit aut maxime a odio veritatis nostrum temporibus. Ad ullam nihil et iste consequatur. Cumque quaerat in debitis voluptatibus quam.",
        "email": "cullen.ratke@boyle.biz",
        "created_at": "2022-01-09T17:43:33.000000Z",
        "updated_at": "2022-01-09T17:43:33.000000Z",
        "deleted_at": null,
        "user_id": null,
        "status": "PENDING"
    }
}
 

Request      

GET api/v1/testimonials/{id}

URL Parameters

id  integer  

The ID of the testimonial.

PUT api/v1/testimonials/{id}

requires authentication

Example request:
curl --request PUT \
    "http://localhost/api/v1/testimonials/2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"quia\",
    \"email\": \"durgan.danyka@example.net\",
    \"message\": \"delectus\"
}"
const url = new URL(
    "http://localhost/api/v1/testimonials/2"
);

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

let body = {
    "name": "quia",
    "email": "durgan.danyka@example.net",
    "message": "delectus"
}

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=KfThAJCIIM0zIx84BYhjLtsAfWjsg88p46cGOhlL; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

PUT api/v1/testimonials/{id}

PATCH api/v1/testimonials/{id}

URL Parameters

id  integer  

The ID of the testimonial.

Body Parameters

name  string  

email  string  

Must be a valid email address.

message  string  

DELETE api/v1/testimonials/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://localhost/api/v1/testimonials/16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/testimonials/16"
);

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 (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=CUR8qKMHWP9QbIRIHboHzdGFOeZItpJTUa6yqgUq; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

DELETE api/v1/testimonials/{id}

URL Parameters

id  integer  

The ID of the testimonial.

GET api/v1/testimonials

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/testimonials" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/testimonials"
);

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

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 35
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=DQ3ntRY3aV4oZxUE0Ox41h4tbJLe0cV5iMZ8DWLr; expires=Sun, 09-Jan-2022 21:41:15 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": true,
    "message": "success",
    "data": []
}
 

Request      

GET api/v1/testimonials

GET api/v1/testimonials/{testimonial}/approve

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/testimonials/4/approve" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/testimonials/4/approve"
);

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: *
set-cookie: zeed_worldwide_session=isqRqZRg7zzZbQsm0YxT8m3zdG4fnaSjkSA32QzP; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/testimonials/{testimonial}/approve

URL Parameters

testimonial  integer  

GET api/v1/testimonials/{testimonial}/decline

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/testimonials/19/decline" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/testimonials/19/decline"
);

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: *
set-cookie: zeed_worldwide_session=pb2CK9hzoX7xogoKm8SNGoi9u7FFhpMxbnkGllNy; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/testimonials/{testimonial}/decline

URL Parameters

testimonial  integer  

GET api/v1/clients/testimonials

requires authentication

Example request:
curl --request GET \
    --get "http://localhost/api/v1/clients/testimonials" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/clients/testimonials"
);

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: *
set-cookie: zeed_worldwide_session=UoqflZBCK2EzdRPztHvkA6WPrGSNz9PDwOkfJvy6; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

GET api/v1/clients/testimonials

Utilities

APIs for general activities

POST api/v1/updateProfilePicture

requires authentication

Example request:
curl --request POST \
    "http://localhost/api/v1/updateProfilePicture" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "avatar=@/tmp/phpeNG0Xy" 
const url = new URL(
    "http://localhost/api/v1/updateProfilePicture"
);

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

const body = new FormData();
body.append('avatar', document.querySelector('input[name="avatar"]').files[0]);

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

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: zeed_worldwide_session=BTZgUsq2clxyUJ0Lu5uqueMWgIcaNBiKH7sEM9Yt; expires=Sun, 09-Jan-2022 21:41:16 GMT; Max-Age=7200; path=/; httponly; samesite=lax
 

{
    "success": false,
    "error": "Unauthenticated."
}
 

Request      

POST api/v1/updateProfilePicture

Body Parameters

avatar  file  

Must be an image.