diff --git a/.scribe/endpoints.cache/00.yaml b/.scribe/endpoints.cache/00.yaml index d61f4891..00fd0b1f 100755 --- a/.scribe/endpoints.cache/00.yaml +++ b/.scribe/endpoints.cache/00.yaml @@ -27,8 +27,26 @@ endpoints: name: name: name description: 'Must not be greater than 255 characters.' + required: false + example: vzjhkcivnbfkxoukeydez + type: string + enumValues: [] + exampleWasSpecified: false + custom: [] + first_name: + name: first_name + description: 'Must not be greater than 255 characters.' + required: true + example: cy + type: string + enumValues: [] + exampleWasSpecified: false + custom: [] + last_name: + name: last_name + description: 'Must not be greater than 255 characters.' required: true - example: kyqjicowiqcvbipmclenjzwa + example: ytrj type: string enumValues: [] exampleWasSpecified: false @@ -37,7 +55,7 @@ endpoints: name: email description: 'Must be a valid email address. Must not be greater than 255 characters.' required: true - example: mante.carmel@example.net + example: roxane.koelpin@example.net type: string enumValues: [] exampleWasSpecified: false @@ -46,15 +64,17 @@ endpoints: name: password description: '' required: true - example: quos + example: 'riPguZ''*;47V8]`:5"' type: string enumValues: [] exampleWasSpecified: false custom: [] cleanBodyParameters: - name: kyqjicowiqcvbipmclenjzwa - email: mante.carmel@example.net - password: quos + name: vzjhkcivnbfkxoukeydez + first_name: cy + last_name: ytrj + email: roxane.koelpin@example.net + password: 'riPguZ''*;47V8]`:5"' fileParameters: [] responses: [] responseFields: [] @@ -88,7 +108,7 @@ endpoints: name: email description: 'Must be a valid email address. Must not be greater than 255 characters.' required: true - example: anderson.alex@example.net + example: karlie.welch@example.net type: string enumValues: [] exampleWasSpecified: false @@ -97,14 +117,14 @@ endpoints: name: password description: 'Must be at least 8 characters.' required: true - example: hTGB64 + example: "j%('l+FPa@WYmF82oYP" type: string enumValues: [] exampleWasSpecified: false custom: [] cleanBodyParameters: - email: anderson.alex@example.net - password: hTGB64 + email: karlie.welch@example.net + password: "j%('l+FPa@WYmF82oYP" fileParameters: [] responses: [] responseFields: [] @@ -116,13 +136,43 @@ endpoints: - httpMethods: - POST - uri: api/v1/roles + uri: api/v1/auth/logout metadata: groupName: Endpoints groupDescription: '' subgroup: '' subgroupDescription: '' - title: 'Store a newly created resource in storage.' + title: '' + description: '' + authenticated: false + custom: [] + headers: + Content-Type: application/json + Accept: application/json + urlParameters: [] + cleanUrlParameters: [] + queryParameters: [] + cleanQueryParameters: [] + bodyParameters: [] + cleanBodyParameters: [] + fileParameters: [] + responses: [] + responseFields: [] + auth: [] + controller: null + method: null + route: null + custom: [] + - + httpMethods: + - POST + uri: api/v1/auth/password-reset-email + metadata: + groupName: Endpoints + groupDescription: '' + subgroup: '' + subgroupDescription: '' + title: 'Handle the incoming request.' description: '' authenticated: false custom: [] @@ -134,37 +184,77 @@ endpoints: queryParameters: [] cleanQueryParameters: [] bodyParameters: - role_name: - name: role_name - description: 'Must not be greater than 255 characters.' + email: + name: email + description: 'Must be a valid email address.' required: true - example: kmub + example: eileen79@example.net type: string enumValues: [] exampleWasSpecified: false custom: [] - organisation_id: - name: organisation_id - description: 'Must not be greater than 255 characters.' + cleanBodyParameters: + email: eileen79@example.net + fileParameters: [] + responses: [] + responseFields: [] + auth: [] + controller: null + method: null + route: null + custom: [] + - + httpMethods: + - POST + uri: 'api/v1/auth/request-password-request/{token}' + metadata: + groupName: Endpoints + groupDescription: '' + subgroup: '' + subgroupDescription: '' + title: 'Handle the incoming request.' + description: '' + authenticated: false + custom: [] + headers: + Content-Type: application/json + Accept: application/json + urlParameters: + token: + name: token + description: '' required: true - example: v + example: aut type: string enumValues: [] exampleWasSpecified: false custom: [] - permissions_id: - name: permissions_id + cleanUrlParameters: + token: aut + queryParameters: [] + cleanQueryParameters: [] + bodyParameters: + email: + name: email + description: 'Must be a valid email address.' + required: true + example: danika74@example.net + type: string + enumValues: [] + exampleWasSpecified: false + custom: [] + password: + name: password description: '' required: true - example: tenetur + example: '3Nq(,V$L$h8PFD4?Y!' type: string enumValues: [] exampleWasSpecified: false custom: [] cleanBodyParameters: - role_name: kmub - organisation_id: v - permissions_id: tenetur + email: danika74@example.net + password: '3Nq(,V$L$h8PFD4?Y!' fileParameters: [] responses: [] responseFields: [] @@ -176,13 +266,13 @@ endpoints: - httpMethods: - GET - uri: api/v1/users + uri: api/v1/auth/google metadata: groupName: Endpoints groupDescription: '' subgroup: '' subgroupDescription: '' - title: 'Display a listing of the resource.' + title: '' description: '' authenticated: false custom: [] @@ -198,11 +288,24 @@ endpoints: fileParameters: [] responses: - - status: 200 - content: '{"current_page":1,"data":[],"first_page_url":"http:\/\/localhost\/api\/v1\/users?page=1","from":null,"last_page":1,"last_page_url":"http:\/\/localhost\/api\/v1\/users?page=1","links":[{"url":null,"label":"« Previous","active":false},{"url":"http:\/\/localhost\/api\/v1\/users?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"next_page_url":null,"path":"http:\/\/localhost\/api\/v1\/users","per_page":15,"prev_page_url":null,"to":null,"total":0}' + status: 302 + content: |- + + +
+ + + +name
string
-
+optional
+ Must not be greater than 255 characters. Example: vzjhkcivnbfkxoukeydez
first_name
+string
+
+
+ Must not be greater than 255 characters. Example: cy
last_name
+string
+
+
Must not be greater than 255 characters. Example: kyqjicowiqcvbipmclenjzwa
Must not be greater than 255 characters. Example: ytrj
email
@@ -337,10 +645,10 @@
Must be a valid email address. Must not be greater than 255 characters. Example: mante.carmel@example.net
Must be a valid email address. Must not be greater than 255 characters. Example: roxane.koelpin@example.net
password
@@ -348,10 +656,10 @@
Example: quos
Example: riPguZ'*;47V8]
:5"`
Must be a valid email address. Must not be greater than 255 characters. Example: anderson.alex@example.net
Must be a valid email address. Must not be greater than 255 characters. Example: karlie.welch@example.net
password
@@ -490,40 +798,34 @@
Must be at least 8 characters. Example: hTGB64
Must be at least 8 characters. Example: j%('l+FPa@WYmF82oYP
- +
Example request:
curl --request POST \
- "http://localhost/api/v1/roles" \
+ "http://localhost/api/v1/auth/logout" \
--header "Content-Type: application/json" \
- --header "Accept: application/json" \
- --data "{
- \"role_name\": \"kmub\",
- \"organisation_id\": \"v\",
- \"permissions_id\": \"tenetur\"
-}"
-
const url = new URL(
- "http://localhost/api/v1/roles"
+ "http://localhost/api/v1/auth/logout"
);
const headers = {
@@ -531,59 +833,52 @@
"Accept": "application/json",
};
-let body = {
- "role_name": "kmub",
- "organisation_id": "v",
- "permissions_id": "tenetur"
-};
-
fetch(url, {
method: "POST",
headers,
- body: JSON.stringify(body),
}).then(response => response.json());
Received response: + id="execution-response-status-POSTapi-v1-auth-logout">: -
-
+
Request failed with error:-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+
- - +
Example request:
curl --request GET \
- --get "http://localhost/api/v1/users" \
+ curl --request POST \
+ "http://localhost/api/v1/auth/password-reset-email" \
--header "Content-Type: application/json" \
- --header "Accept: application/json"
const url = new URL(
- "http://localhost/api/v1/users"
+ "http://localhost/api/v1/auth/password-reset-email"
);
const headers = {
@@ -680,106 +945,65 @@
"Accept": "application/json",
};
+let body = {
+ "email": "eileen79@example.net"
+};
+
fetch(url, {
- method: "GET",
+ method: "POST",
headers,
+ body: JSON.stringify(body),
}).then(response => response.json());
--Example response (200):
-
cache-control: no-cache, private
-content-type: application/json
-x-ratelimit-limit: 60
-x-ratelimit-remaining: 59
-access-control-allow-origin: *
-
-
-{
- "current_page": 1,
- "data": [],
- "first_page_url": "http://localhost/api/v1/users?page=1",
- "from": null,
- "last_page": 1,
- "last_page_url": "http://localhost/api/v1/users?page=1",
- "links": [
- {
- "url": null,
- "label": "« Previous",
- "active": false
- },
- {
- "url": "http://localhost/api/v1/users?page=1",
- "label": "1",
- "active": true
- },
- {
- "url": null,
- "label": "Next »",
- "active": false
- }
- ],
- "next_page_url": null,
- "path": "http://localhost/api/v1/users",
- "per_page": 15,
- "prev_page_url": null,
- "to": null,
- "total": 0
-}
-
-
-
+
+
+
Received response: + id="execution-response-status-POSTapi-v1-auth-password-reset-email">: -
-
+
Request failed with error:-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+ email
+string
+
+
+ Must be a valid email address. Example: eileen79@example.net
- +
Example request:
curl --request POST \
- "http://localhost/api/v1/users" \
+ "http://localhost/api/v1/auth/request-password-request/aut" \
--header "Content-Type: application/json" \
- --header "Accept: application/json"
const url = new URL(
- "http://localhost/api/v1/users"
+ "http://localhost/api/v1/auth/request-password-request/aut"
);
const headers = {
@@ -834,52 +1075,58 @@
"Accept": "application/json",
};
+let body = {
+ "email": "danika74@example.net",
+ "password": "3Nq(,V$L$h8PFD4?Y!"
+};
+
fetch(url, {
method: "POST",
headers,
+ body: JSON.stringify(body),
}).then(response => response.json());
Received response: + id="execution-response-status-POSTapi-v1-auth-request-password-request--token-">: -
-
+
Request failed with error:-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+ token
+string
+
+
+ Example: aut
email
+string
+
+
+ Must be a valid email address. Example: danika74@example.net
password
+string
+
+
+ Example: 3Nq(,V$L$h8PFD4?Y!
- +
Example request:
curl --request GET \
- --get "http://localhost/api/v1/users/consequuntur" \
+ --get "http://localhost/api/v1/auth/google" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
- "http://localhost/api/v1/users/consequuntur"
+ "http://localhost/api/v1/auth/google"
);
const headers = {
@@ -949,63 +1231,73 @@
-
+
- Example response (404):
+ Example response (302):
Show headers
cache-control: no-cache, private
-content-type: application/json
+location: https://accounts.google.com/o/oauth2/auth?scope=openid+profile+email&response_type=code
+content-type: text/html; charset=utf-8
x-ratelimit-limit: 60
-x-ratelimit-remaining: 58
+x-ratelimit-remaining: 59
access-control-allow-origin: *
-{
- "message": "No query results for model [App\\Models\\User] consequuntur"
-}
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="UTF-8" />
+ <meta http-equiv="refresh" content="0;url='https://accounts.google.com/o/oauth2/auth?scope=openid+profile+email&response_type=code'" />
+
+ <title>Redirecting to https://accounts.google.com/o/oauth2/auth?scope=openid+profile+email&response_type=code</title>
+ </head>
+ <body>
+ Redirecting to <a href="https://accounts.google.com/o/oauth2/auth?scope=openid+profile+email&response_type=code">https://accounts.google.com/o/oauth2/auth?scope=openid+profile+email&response_type=code</a>.
+ </body>
+</html>
-
+
Received response:
+ id="execution-response-status-GETapi-v1-auth-google">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+
- Update the specified resource in storage.
+ GET api/v1/auth/login-google
-
+
Example request:
- curl --request PUT \
- "http://localhost/api/v1/users/sed" \
+ curl --request GET \
+ --get "http://localhost/api/v1/auth/login-google" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
- "http://localhost/api/v1/users/sed"
+ "http://localhost/api/v1/auth/login-google"
);
const headers = {
@@ -1081,63 +1361,87 @@
};
fetch(url, {
- method: "PUT",
+ method: "GET",
headers,
}).then(response => response.json());
-
-
-
+
+
+ Example response (302):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+location: https://accounts.google.com/o/oauth2/auth?scope=openid+profile+email&response_type=code
+content-type: text/html; charset=utf-8
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 58
+access-control-allow-origin: *
+
+
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="UTF-8" />
+ <meta http-equiv="refresh" content="0;url='https://accounts.google.com/o/oauth2/auth?scope=openid+profile+email&response_type=code'" />
+
+ <title>Redirecting to https://accounts.google.com/o/oauth2/auth?scope=openid+profile+email&response_type=code</title>
+ </head>
+ <body>
+ Redirecting to <a href="https://accounts.google.com/o/oauth2/auth?scope=openid+profile+email&response_type=code">https://accounts.google.com/o/oauth2/auth?scope=openid+profile+email&response_type=code</a>.
+ </body>
+</html>
+
+
+
Received response:
+ id="execution-response-status-GETapi-v1-auth-login-google">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+
- Remove the specified resource from storage.
+ GET api/v1/auth/google/callback
-
+
Example request:
- curl --request DELETE \
- "http://localhost/api/v1/users/non" \
+ curl --request GET \
+ --get "http://localhost/api/v1/auth/google/callback" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
- "http://localhost/api/v1/users/non"
+ "http://localhost/api/v1/auth/google/callback"
);
const headers = {
@@ -1205,59 +1497,77 @@
};
fetch(url, {
- method: "DELETE",
+ method: "GET",
headers,
}).then(response => response.json());
-
-
-
+
+
+ Example response (500):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 57
+access-control-allow-origin: *
+
+
+{
+ "message": "Server Error"
+}
+
+
+
Received response:
+ id="execution-response-status-GETapi-v1-auth-google-callback">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+
- GET api/v1/products/categories
+ POST api/v1/auth/google/callback
-
+
Example request:
- curl --request GET \
- --get "http://localhost/api/v1/products/categories" \
+ curl --request POST \
+ "http://localhost/api/v1/auth/google/callback" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
- "http://localhost/api/v1/products/categories"
+ "http://localhost/api/v1/auth/google/callback"
);
const headers = {
@@ -1325,78 +1623,59 @@
};
fetch(url, {
- method: "GET",
+ method: "POST",
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: 57
-access-control-allow-origin: *
-
-
-{
- "status_code": 200,
- "categories": []
-}
-
-
-
+
+
+
Received response:
+ id="execution-response-status-POSTapi-v1-auth-google-callback">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
- GET api/v1/topics/search
+ Handle the incoming request.
-
+
Example request:
- curl --request GET \
- --get "http://localhost/api/v1/topics/search" \
+ curl --request POST \
+ "http://localhost/api/v1/auth/forgot-password" \
--header "Content-Type: application/json" \
- --header "Accept: application/json"
+ --header "Accept: application/json" \
+ --data "{
+ \"email\": \"ghuel@example.com\"
+}"
+
const url = new URL(
- "http://localhost/api/v1/topics/search"
+ "http://localhost/api/v1/auth/forgot-password"
);
const headers = {
@@ -1451,80 +1734,65 @@
"Accept": "application/json",
};
+let body = {
+ "email": "ghuel@example.com"
+};
+
fetch(url, {
- method: "GET",
+ method: "POST",
headers,
+ body: JSON.stringify(body),
}).then(response => response.json());
--Example response (400):
-
cache-control: no-cache, private
-content-type: application/json
-x-ratelimit-limit: 10
-x-ratelimit-remaining: 9
-access-control-allow-origin: *
-
-
-{
- "success": false,
- "message": "Title query parameter is required",
- "status_code": 400
-}
-
-
-
+
+
+
Received response: + id="execution-response-status-POSTapi-v1-auth-forgot-password">: -
-
+
Request failed with error:-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+ email
+string
+
+
+ Must be a valid email address. Example: ghuel@example.com
- +
Example request:
curl --request POST \
- "http://localhost/api/v1/products" \
+ "http://localhost/api/v1/auth/reset-forgot-password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
- \"name\": \"tvzfqfvqihaycqsdmrt\",
- \"description\": \"Praesentium laborum error impedit autem.\"
+ \"email\": \"brody42@example.net\",
+ \"password\": \"d-\'uAz\"
}"
const url = new URL(
- "http://localhost/api/v1/products"
+ "http://localhost/api/v1/auth/reset-forgot-password"
);
const headers = {
@@ -1585,8 +1865,8 @@
};
let body = {
- "name": "tvzfqfvqihaycqsdmrt",
- "description": "Praesentium laborum error impedit autem."
+ "email": "brody42@example.net",
+ "password": "d-'uAz"
};
fetch(url, {
@@ -1597,45 +1877,45 @@
-
+
-
+
Received response:
+ id="execution-response-status-POSTapi-v1-auth-reset-forgot-password">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
- GET api/v1/help-center/topics/search
+ Handle the incoming request.
-
+
Example request:
- curl --request GET \
- --get "http://localhost/api/v1/help-center/topics/search" \
+ curl --request POST \
+ "http://localhost/api/v1/auth/verify-otp" \
--header "Content-Type: application/json" \
- --header "Accept: application/json"
+ --header "Accept: application/json" \
+ --data "{
+ \"email\": \"qyundt@example.com\",
+ \"token\": 4
+}"
+
const url = new URL(
- "http://localhost/api/v1/help-center/topics/search"
+ "http://localhost/api/v1/auth/verify-otp"
);
const headers = {
@@ -1721,80 +2006,66 @@
"Accept": "application/json",
};
+let body = {
+ "email": "qyundt@example.com",
+ "token": 4
+};
+
fetch(url, {
- method: "GET",
+ method: "POST",
headers,
+ body: JSON.stringify(body),
}).then(response => response.json());
--Example response (400):
-
cache-control: no-cache, private
-content-type: application/json
-x-ratelimit-limit: 10
-x-ratelimit-remaining: 8
-access-control-allow-origin: *
-
-
-{
- "success": false,
- "message": "Title query parameter is required",
- "status_code": 400
-}
-
-
-
+
+
+
Received response: + id="execution-response-status-POSTapi-v1-auth-verify-otp">: -
-
+
Request failed with error:-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+ email
+string
+
+
+ Must be a valid email address. Example: qyundt@example.com
token
+integer
+
+
+ Must be 6 digits. Example: 4
- +
Example request:
curl --request POST \
- "http://localhost/api/v1/contact" \
+ "http://localhost/api/v1/roles" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
- \"name\": \"odit\",
- \"email\": \"boehm.vidal@example.net\",
- \"message\": \"accusamus\"
+ \"role_name\": \"mttdibbvatesznjhbp\",
+ \"organisation_id\": \"fibies\",
+ \"permissions_id\": \"perspiciatis\"
}"
const url = new URL(
- "http://localhost/api/v1/contact"
+ "http://localhost/api/v1/roles"
);
const headers = {
@@ -1856,9 +2150,9 @@
};
let body = {
- "name": "odit",
- "email": "boehm.vidal@example.net",
- "message": "accusamus"
+ "role_name": "mttdibbvatesznjhbp",
+ "organisation_id": "fibies",
+ "permissions_id": "perspiciatis"
};
fetch(url, {
@@ -1869,45 +2163,45 @@
-
+
-
+
Received response:
+ id="execution-response-status-POSTapi-v1-roles">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
- GET api/v1/blogs/latest
+ GET api/v1/auth/login-facebook
-
+
Example request:
curl --request GET \
- --get "http://localhost/api/v1/blogs/latest" \
+ --get "http://localhost/api/v1/auth/login-facebook" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
- "http://localhost/api/v1/blogs/latest"
+ "http://localhost/api/v1/auth/login-facebook"
);
const headers = {
@@ -2011,66 +2305,73 @@
-
+
- Example response (200):
+ Example response (302):
Show headers
cache-control: no-cache, private
-content-type: application/json
+location: https://www.facebook.com/v3.3/dialog/oauth?scope=email&response_type=code
+content-type: text/html; charset=utf-8
x-ratelimit-limit: 60
-x-ratelimit-remaining: 54
+x-ratelimit-remaining: 56
access-control-allow-origin: *
-{
- "count": 0,
- "next": null,
- "previous": null,
- "results": []
-}
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="UTF-8" />
+ <meta http-equiv="refresh" content="0;url='https://www.facebook.com/v3.3/dialog/oauth?scope=email&response_type=code'" />
+
+ <title>Redirecting to https://www.facebook.com/v3.3/dialog/oauth?scope=email&response_type=code</title>
+ </head>
+ <body>
+ Redirecting to <a href="https://www.facebook.com/v3.3/dialog/oauth?scope=email&response_type=code">https://www.facebook.com/v3.3/dialog/oauth?scope=email&response_type=code</a>.
+ </body>
+</html>
-
+
Received response:
+ id="execution-response-status-GETapi-v1-auth-login-facebook">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
- POST api/v1/squeeze
+ GET api/v1/auth/facebook/callback
-
+
Example request:
- curl --request POST \
- "http://localhost/api/v1/squeeze" \
+ curl --request GET \
+ --get "http://localhost/api/v1/auth/facebook/callback" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
- "http://localhost/api/v1/squeeze"
+ "http://localhost/api/v1/auth/facebook/callback"
);
const headers = {
@@ -2134,59 +2435,77 @@
};
fetch(url, {
- method: "POST",
+ method: "GET",
headers,
}).then(response => response.json());
-
-
-
+
+
+ Example response (500):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 55
+access-control-allow-origin: *
+
+
+{
+ "message": "Server Error"
+}
+
+
+
Received response:
+ id="execution-response-status-GETapi-v1-auth-facebook-callback">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
- Display a listing of the resource.
+ POST api/v1/auth/facebook/callback
-
+
Example request:
- curl --request GET \
- --get "http://localhost/api/v1/features" \
+ curl --request POST \
+ "http://localhost/api/v1/auth/facebook/callback" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/auth/facebook/callback"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display a listing of the resource.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/users" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/users"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (200):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 54
+access-control-allow-origin: *
+
+
+{
+ "status_code": 200,
+ "message": "Users returned successfully",
+ "total_users": 149,
+ "total_deleted_users": 0,
+ "total_active_users": 149,
+ "total_inActive_users": 0,
+ "data": {
+ "current_page": 1,
+ "data": [
+ {
+ "id": "9cb402fc-cba8-46cd-acf6-7a6ed3826eaa",
+ "name": "Christine Lemke",
+ "email": "sdach@example.net",
+ "phone": null,
+ "role": "user",
+ "email_verified_at": "2024-08-06T18:39:41.000000Z",
+ "is_active": true,
+ "is_verified": false,
+ "signup_type": "user",
+ "social_id": null,
+ "created_at": "2024-08-06T18:39:41.000000Z",
+ "updated_at": "2024-08-06T18:39:41.000000Z",
+ "deleted_at": null
+ },
+ {
+ "id": "9cb402fc-b94f-4615-a96a-f37ed6f38690",
+ "name": "Zoey Nienow",
+ "email": "earlene.becker@example.org",
+ "phone": null,
+ "role": "user",
+ "email_verified_at": "2024-08-06T18:39:41.000000Z",
+ "is_active": true,
+ "is_verified": false,
+ "signup_type": "user",
+ "social_id": null,
+ "created_at": "2024-08-06T18:39:41.000000Z",
+ "updated_at": "2024-08-06T18:39:41.000000Z",
+ "deleted_at": null
+ },
+ {
+ "id": "9cb402fc-c2f6-4236-91ab-beb4254b5ac3",
+ "name": "Sunny Harvey",
+ "email": "armstrong.stephania@example.net",
+ "phone": null,
+ "role": "user",
+ "email_verified_at": "2024-08-06T18:39:41.000000Z",
+ "is_active": true,
+ "is_verified": false,
+ "signup_type": "user",
+ "social_id": null,
+ "created_at": "2024-08-06T18:39:41.000000Z",
+ "updated_at": "2024-08-06T18:39:41.000000Z",
+ "deleted_at": null
+ },
+ {
+ "id": "9cb402fc-dfc1-4a33-a216-ecb45fe4b645",
+ "name": "Deshawn Cartwright",
+ "email": "blanda.oswaldo@example.net",
+ "phone": null,
+ "role": "user",
+ "email_verified_at": "2024-08-06T18:39:41.000000Z",
+ "is_active": true,
+ "is_verified": false,
+ "signup_type": "user",
+ "social_id": null,
+ "created_at": "2024-08-06T18:39:41.000000Z",
+ "updated_at": "2024-08-06T18:39:41.000000Z",
+ "deleted_at": null
+ },
+ {
+ "id": "9cb402fc-c717-4407-967a-dcd4f16ac3e4",
+ "name": "Jessika Hand",
+ "email": "casey.lakin@example.com",
+ "phone": null,
+ "role": "user",
+ "email_verified_at": "2024-08-06T18:39:41.000000Z",
+ "is_active": true,
+ "is_verified": false,
+ "signup_type": "user",
+ "social_id": null,
+ "created_at": "2024-08-06T18:39:41.000000Z",
+ "updated_at": "2024-08-06T18:39:41.000000Z",
+ "deleted_at": null
+ },
+ {
+ "id": "9cb402fc-bef0-4858-b959-530c092f8db3",
+ "name": "Okey Heaney",
+ "email": "koelpin.deontae@example.org",
+ "phone": null,
+ "role": "user",
+ "email_verified_at": "2024-08-06T18:39:41.000000Z",
+ "is_active": true,
+ "is_verified": false,
+ "signup_type": "user",
+ "social_id": null,
+ "created_at": "2024-08-06T18:39:41.000000Z",
+ "updated_at": "2024-08-06T18:39:41.000000Z",
+ "deleted_at": null
+ },
+ {
+ "id": "9cb402fb-9fec-4610-a8b2-910cc4de4ee6",
+ "name": "Nikita Ullrich",
+ "email": "brice57@example.org",
+ "phone": null,
+ "role": "user",
+ "email_verified_at": "2024-08-06T18:39:40.000000Z",
+ "is_active": true,
+ "is_verified": false,
+ "signup_type": "user",
+ "social_id": null,
+ "created_at": "2024-08-06T18:39:40.000000Z",
+ "updated_at": "2024-08-06T18:39:40.000000Z",
+ "deleted_at": null
+ },
+ {
+ "id": "9cb402fb-97e2-4743-aa0b-e0c96e4ff0d0",
+ "name": "Alexandre Parisian",
+ "email": "axel95@example.org",
+ "phone": null,
+ "role": "user",
+ "email_verified_at": "2024-08-06T18:39:40.000000Z",
+ "is_active": true,
+ "is_verified": false,
+ "signup_type": "user",
+ "social_id": null,
+ "created_at": "2024-08-06T18:39:40.000000Z",
+ "updated_at": "2024-08-06T18:39:40.000000Z",
+ "deleted_at": null
+ },
+ {
+ "id": "9cb402fb-a35e-4011-8896-c770e79de91f",
+ "name": "Vicky Kirlin",
+ "email": "ruthe04@example.org",
+ "phone": null,
+ "role": "user",
+ "email_verified_at": "2024-08-06T18:39:40.000000Z",
+ "is_active": true,
+ "is_verified": false,
+ "signup_type": "user",
+ "social_id": null,
+ "created_at": "2024-08-06T18:39:40.000000Z",
+ "updated_at": "2024-08-06T18:39:40.000000Z",
+ "deleted_at": null
+ },
+ {
+ "id": "9cb402fb-6d3b-4199-b887-2555f423ae27",
+ "name": "Gregory Collins",
+ "email": "rodriguez.julius@example.net",
+ "phone": null,
+ "role": "user",
+ "email_verified_at": "2024-08-06T18:39:40.000000Z",
+ "is_active": true,
+ "is_verified": false,
+ "signup_type": "user",
+ "social_id": null,
+ "created_at": "2024-08-06T18:39:40.000000Z",
+ "updated_at": "2024-08-06T18:39:40.000000Z",
+ "deleted_at": null
+ },
+ {
+ "id": "9cb402fb-91f0-4b53-8286-2892f78ad855",
+ "name": "Amos Crist",
+ "email": "imorissette@example.net",
+ "phone": null,
+ "role": "user",
+ "email_verified_at": "2024-08-06T18:39:40.000000Z",
+ "is_active": true,
+ "is_verified": false,
+ "signup_type": "user",
+ "social_id": null,
+ "created_at": "2024-08-06T18:39:40.000000Z",
+ "updated_at": "2024-08-06T18:39:40.000000Z",
+ "deleted_at": null
+ },
+ {
+ "id": "9cb402fb-9474-4d44-b32a-9f43225912ad",
+ "name": "Orville Koch",
+ "email": "nhackett@example.com",
+ "phone": null,
+ "role": "user",
+ "email_verified_at": "2024-08-06T18:39:40.000000Z",
+ "is_active": true,
+ "is_verified": false,
+ "signup_type": "user",
+ "social_id": null,
+ "created_at": "2024-08-06T18:39:40.000000Z",
+ "updated_at": "2024-08-06T18:39:40.000000Z",
+ "deleted_at": null
+ },
+ {
+ "id": "9cb402fb-9a52-420e-b3bc-af43d457be6f",
+ "name": "Dustin Wisoky",
+ "email": "janick79@example.com",
+ "phone": null,
+ "role": "user",
+ "email_verified_at": "2024-08-06T18:39:40.000000Z",
+ "is_active": true,
+ "is_verified": false,
+ "signup_type": "user",
+ "social_id": null,
+ "created_at": "2024-08-06T18:39:40.000000Z",
+ "updated_at": "2024-08-06T18:39:40.000000Z",
+ "deleted_at": null
+ },
+ {
+ "id": "9cb402fb-9d92-43b1-b5c4-53ad3754a9ad",
+ "name": "Francisca Hyatt",
+ "email": "ljenkins@example.com",
+ "phone": null,
+ "role": "user",
+ "email_verified_at": "2024-08-06T18:39:40.000000Z",
+ "is_active": true,
+ "is_verified": false,
+ "signup_type": "user",
+ "social_id": null,
+ "created_at": "2024-08-06T18:39:40.000000Z",
+ "updated_at": "2024-08-06T18:39:40.000000Z",
+ "deleted_at": null
+ },
+ {
+ "id": "9cb402fb-4168-4929-b35e-76274548250d",
+ "name": "Dorian Powlowski",
+ "email": "mwilkinson@example.net",
+ "phone": null,
+ "role": "admin",
+ "email_verified_at": "2024-08-06T18:39:40.000000Z",
+ "is_active": true,
+ "is_verified": false,
+ "signup_type": "user",
+ "social_id": null,
+ "created_at": "2024-08-06T18:39:40.000000Z",
+ "updated_at": "2024-08-06T18:39:40.000000Z",
+ "deleted_at": null
+ }
+ ],
+ "first_page_url": "http://localhost/api/v1/users?page=1",
+ "from": 1,
+ "last_page": 10,
+ "last_page_url": "http://localhost/api/v1/users?page=10",
+ "links": [
+ {
+ "url": null,
+ "label": "« Previous",
+ "active": false
+ },
+ {
+ "url": "http://localhost/api/v1/users?page=1",
+ "label": "1",
+ "active": true
+ },
+ {
+ "url": "http://localhost/api/v1/users?page=2",
+ "label": "2",
+ "active": false
+ },
+ {
+ "url": "http://localhost/api/v1/users?page=3",
+ "label": "3",
+ "active": false
+ },
+ {
+ "url": "http://localhost/api/v1/users?page=4",
+ "label": "4",
+ "active": false
+ },
+ {
+ "url": "http://localhost/api/v1/users?page=5",
+ "label": "5",
+ "active": false
+ },
+ {
+ "url": "http://localhost/api/v1/users?page=6",
+ "label": "6",
+ "active": false
+ },
+ {
+ "url": "http://localhost/api/v1/users?page=7",
+ "label": "7",
+ "active": false
+ },
+ {
+ "url": "http://localhost/api/v1/users?page=8",
+ "label": "8",
+ "active": false
+ },
+ {
+ "url": "http://localhost/api/v1/users?page=9",
+ "label": "9",
+ "active": false
+ },
+ {
+ "url": "http://localhost/api/v1/users?page=10",
+ "label": "10",
+ "active": false
+ },
+ {
+ "url": "http://localhost/api/v1/users?page=2",
+ "label": "Next »",
+ "active": false
+ }
+ ],
+ "next_page_url": "http://localhost/api/v1/users?page=2",
+ "path": "http://localhost/api/v1/users",
+ "per_page": 15,
+ "prev_page_url": null,
+ "to": 15,
+ "total": 149
+ }
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Store a newly created resource in storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/users" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/users"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display the specified resource.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/users/9cb402e5-e983-4696-9bc4-74d7bfc255a1" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/users/9cb402e5-e983-4696-9bc4-74d7bfc255a1"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (200):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 53
+access-control-allow-origin: *
+
+
+{
+ "id": "9cb402e5-e983-4696-9bc4-74d7bfc255a1",
+ "name": "Super Admin",
+ "email": "bulldozeradmin@hng.com",
+ "phone": null,
+ "role": "admin",
+ "email_verified_at": null,
+ "is_active": true,
+ "is_verified": true,
+ "signup_type": "Token",
+ "social_id": null,
+ "created_at": "2024-08-06T18:39:26.000000Z",
+ "updated_at": "2024-08-06T18:39:26.000000Z",
+ "deleted_at": null,
+ "profile": {
+ "profile_id": "9cb402e5-f584-4727-af8d-d3e561978279",
+ "user_id": "9cb402e5-e983-4696-9bc4-74d7bfc255a1",
+ "first_name": "Super",
+ "last_name": "Admin",
+ "job_title": "Super Admin",
+ "pronoun": null,
+ "bio": "Super Admin bio",
+ "avatar_url": null,
+ "display_image": null,
+ "created_at": "2024-08-06T18:39:26.000000Z",
+ "updated_at": "2024-08-06T18:39:26.000000Z"
+ },
+ "products": [],
+ "organisations": []
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update the specified resource in storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PUT \
+ "http://localhost/api/v1/users/9cb402e5-e983-4696-9bc4-74d7bfc255a1" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"name\": \"deserunt\",
+ \"first_name\": \"e\",
+ \"last_name\": \"raduppterqexmk\",
+ \"phone\": \"quod\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/users/9cb402e5-e983-4696-9bc4-74d7bfc255a1"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "name": "deserunt",
+ "first_name": "e",
+ "last_name": "raduppterqexmk",
+ "phone": "quod"
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Remove the specified resource from storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request DELETE \
+ "http://localhost/api/v1/users/9cb402e5-e983-4696-9bc4-74d7bfc255a1" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/users/9cb402e5-e983-4696-9bc4-74d7bfc255a1"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/jobs
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/jobs" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"page\": 2,
+ \"size\": 86
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/jobs"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "page": 2,
+ "size": 86
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+ Example response (200):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 52
+access-control-allow-origin: *
+
+
+{
+ "message": "Job listings retrieved successfully.",
+ "data": [],
+ "pagination": {
+ "current_page": 2,
+ "total_pages": 1,
+ "page_size": 86,
+ "total_items": 52
+ }
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/jobs/search
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/jobs/search" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"query\": \"sutvlocbquteeithkxitmyhnuvbrvwckogpwmnjfnukxtvqnsdmhbnxpwaisaiftwyn\",
+ \"page\": 82,
+ \"size\": 64
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/jobs/search"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "query": "sutvlocbquteeithkxitmyhnuvbrvwckogpwmnjfnukxtvqnsdmhbnxpwaisaiftwyn",
+ "page": 82,
+ "size": 64
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+ Example response (200):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 51
+access-control-allow-origin: *
+
+
+{
+ "message": "Job search results retrieved successfully.",
+ "data": [],
+ "pagination": {
+ "current_page": 82,
+ "total_pages": 1,
+ "page_size": 64,
+ "total_items": 0
+ }
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/jobs/{id}
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/jobs/9cb402e7-79e4-46d5-9dbd-02b95ffa8d4e" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/jobs/9cb402e7-79e4-46d5-9dbd-02b95ffa8d4e"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (200):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 50
+access-control-allow-origin: *
+
+
+{
+ "id": "9cb402e7-79e4-46d5-9dbd-02b95ffa8d4e",
+ "created_at": "2024-08-06T18:39:27.000000Z",
+ "updated_at": "2024-08-06T18:39:27.000000Z",
+ "title": "Food Service Manager",
+ "description": "Repellat dolor quia cumque voluptatem vel. Non consequatur reprehenderit commodi impedit ut. Voluptate id debitis similique nam.",
+ "location": "Hammesfurt",
+ "deadline": null,
+ "salary_range": "128744 per year",
+ "job_type": "Contract",
+ "job_mode": null,
+ "company_name": null,
+ "is_deleted": false
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/products/categories
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/products/categories" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/products/categories"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (500):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 49
+access-control-allow-origin: *
+
+
+{
+ "status_code": 500,
+ "error": {
+ "code": "INTERNAL_SERVER_ERROR",
+ "message": "An unexpected error occurred while processing your request.",
+ "details": {
+ "support_email": "support@example.com"
+ }
+ }
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/products/search
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/products/search" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"name\": \"llcydxrrnsvk\",
+ \"category\": \"rytxwnvfof\",
+ \"minPrice\": 62,
+ \"maxPrice\": 45,
+ \"status\": \"low_on_stock\",
+ \"page\": 60,
+ \"limit\": 20
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/products/search"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "name": "llcydxrrnsvk",
+ "category": "rytxwnvfof",
+ "minPrice": 62,
+ "maxPrice": 45,
+ "status": "low_on_stock",
+ "page": 60,
+ "limit": 20
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+ Example response (200):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 48
+access-control-allow-origin: *
+
+
+{
+ "success": true,
+ "products": [],
+ "pagination": {
+ "totalItems": 0,
+ "totalPages": 1,
+ "currentPage": 60,
+ "perPage": 20
+ },
+ "status_code": 200
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display a listing of the resource.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/products" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/products"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (200):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 47
+access-control-allow-origin: *
+
+
+{
+ "success": true,
+ "message": "Products retrieved successfully",
+ "products": [
+ {
+ "name": "ad's product",
+ "price": "738.30",
+ "imageUrl": "https://via.placeholder.com/640x480.png/002222?text=laborum",
+ "description": "Consequatur consequatur soluta ut sunt a ut aspernatur. Consectetur deleniti iusto ut eum at aut. Aliquam recusandae iure quia similique vitae aut.",
+ "product_id": "9cb402e7-36c2-4a1d-9d19-b04efe6ae83d",
+ "quantity": "78",
+ "category": [],
+ "stock": 48,
+ "status": "low_on_stock",
+ "date_added": "2024-08-06T18:39:27.000000Z"
+ },
+ {
+ "name": "sit's product",
+ "price": "706.17",
+ "imageUrl": "https://via.placeholder.com/640x480.png/003333?text=aut",
+ "description": "Illum voluptas minus cumque pariatur ea. Laudantium rerum et quo beatae suscipit debitis ut. Nihil eligendi non eligendi autem dolorum. Dolorem rerum hic et iste voluptas voluptatem.",
+ "product_id": "9cb402e7-39b4-46f4-b1f3-4ac102280b61",
+ "quantity": "59",
+ "category": [],
+ "stock": 33,
+ "status": "low_on_stock",
+ "date_added": "2024-08-06T18:39:27.000000Z"
+ },
+ {
+ "name": "qui's product",
+ "price": "352.28",
+ "imageUrl": "https://via.placeholder.com/640x480.png/008822?text=dolor",
+ "description": "Numquam fuga qui non omnis dolor aperiam accusantium tempore. Adipisci consectetur omnis est expedita nam pariatur. Necessitatibus et enim facilis earum consequatur.",
+ "product_id": "9cb402e7-508d-4a1d-984f-853dd1fd1633",
+ "quantity": "44",
+ "category": [],
+ "stock": 1,
+ "status": "out_of_stock",
+ "date_added": "2024-08-06T18:39:27.000000Z"
+ },
+ {
+ "name": "earum's product",
+ "price": "44.92",
+ "imageUrl": "https://via.placeholder.com/640x480.png/001166?text=illo",
+ "description": "Sunt eaque accusamus voluptate aut. Perspiciatis exercitationem reprehenderit voluptatibus laboriosam maxime dolore recusandae iste. Et sed et perspiciatis soluta.",
+ "product_id": "9cb402e7-522e-49b8-8fba-a95935c16aa3",
+ "quantity": "32",
+ "category": [],
+ "stock": 83,
+ "status": "out_of_stock",
+ "date_added": "2024-08-06T18:39:27.000000Z"
+ },
+ {
+ "name": "soluta's product",
+ "price": "498.42",
+ "imageUrl": "https://via.placeholder.com/640x480.png/005500?text=blanditiis",
+ "description": "Molestias a voluptatem consequatur enim et. Consectetur sapiente consequatur voluptas beatae asperiores dicta autem.",
+ "product_id": "9cb402fb-a8f1-4761-a035-2ba9042ec2ba",
+ "quantity": "23",
+ "category": [],
+ "stock": 41,
+ "status": "in_stock",
+ "date_added": "2024-08-06T18:39:40.000000Z"
+ },
+ {
+ "name": "aperiam's product",
+ "price": "362.32",
+ "imageUrl": "https://via.placeholder.com/640x480.png/00ee22?text=architecto",
+ "description": "Perspiciatis quia ut eos ratione. Culpa amet voluptas aliquid suscipit debitis rerum error. Nulla harum cum dolores sint est omnis asperiores. Nam et eum est alias reiciendis corrupti non.",
+ "product_id": "9cb402fb-aa66-4413-bbee-81530272f256",
+ "quantity": "62",
+ "category": [],
+ "stock": 24,
+ "status": "low_on_stock",
+ "date_added": "2024-08-06T18:39:40.000000Z"
+ },
+ {
+ "name": "illum's product",
+ "price": "586.54",
+ "imageUrl": "https://via.placeholder.com/640x480.png/005555?text=rem",
+ "description": "Voluptatibus et maxime pariatur reiciendis. Voluptates labore aperiam voluptatum quis earum odit. Recusandae impedit id error rem voluptatem ad vitae.",
+ "product_id": "9cb402fb-abcc-467b-bc18-f464ca010d45",
+ "quantity": "18",
+ "category": [],
+ "stock": 75,
+ "status": "in_stock",
+ "date_added": "2024-08-06T18:39:40.000000Z"
+ },
+ {
+ "name": "dolore's product",
+ "price": "631.88",
+ "imageUrl": "https://via.placeholder.com/640x480.png/00bb88?text=facere",
+ "description": "Architecto consequuntur quo commodi aperiam ea rem aperiam sapiente. Vel sapiente non et voluptatem rerum. Optio accusantium quidem id iusto sunt.",
+ "product_id": "9cb402fb-ad2b-404d-8220-72c0eacf8b5d",
+ "quantity": "68",
+ "category": [],
+ "stock": 21,
+ "status": "in_stock",
+ "date_added": "2024-08-06T18:39:40.000000Z"
+ },
+ {
+ "name": "ut's product",
+ "price": "315.79",
+ "imageUrl": "https://via.placeholder.com/640x480.png/00cc44?text=et",
+ "description": "Ducimus ipsum facere et cum sed eum. Non minima eaque maiores nemo ut. Ut enim quia dolor expedita. Consectetur molestiae quia eaque. Blanditiis qui ut amet.",
+ "product_id": "9cb402fb-ae80-4466-8a43-a8e977a8a597",
+ "quantity": "44",
+ "category": [],
+ "stock": 24,
+ "status": "low_on_stock",
+ "date_added": "2024-08-06T18:39:40.000000Z"
+ }
+ ],
+ "pagination": {
+ "totalItems": 9,
+ "totalPages": 1,
+ "currentPage": 1
+ },
+ "status_code": 200
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display the specified resource.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/products/9cb402e7-36c2-4a1d-9d19-b04efe6ae83d" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/products/9cb402e7-36c2-4a1d-9d19-b04efe6ae83d"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (200):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 46
+access-control-allow-origin: *
+
+
+{
+ "status": "success",
+ "message": "Product retrieve ",
+ "status_code": 200,
+ "data": {
+ "product_id": "9cb402e7-36c2-4a1d-9d19-b04efe6ae83d",
+ "name": "ad's product",
+ "description": "Consequatur consequatur soluta ut sunt a ut aspernatur. Consectetur deleniti iusto ut eum at aut. Aliquam recusandae iure quia similique vitae aut.",
+ "price": "738.30",
+ "imageUrl": "https://via.placeholder.com/640x480.png/002222?text=laborum",
+ "sock": "78",
+ "date_added": "2024-08-06T18:39:27.000000Z",
+ "category": []
+ }
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display a listing of the resource.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/billing-plans" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/billing-plans"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (200):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 45
+access-control-allow-origin: *
+
+
+{
+ "status": 200,
+ "message": "Billing plans retrieved successfully",
+ "data": [
+ {
+ "id": "9cb402fb-6a92-4de4-a230-de1dfd5dcbfb",
+ "name": "premium",
+ "price": 1524,
+ "created_at": "2024-08-06T18:39:40.000000Z"
+ },
+ {
+ "id": "256d949b-1ec0-4b46-9045-664acf39f5ab",
+ "name": "Free",
+ "price": 0,
+ "created_at": "2024-08-06T18:39:40.000000Z"
+ },
+ {
+ "id": "49ff2db3-5ba8-4280-84c9-05037fb63ac6",
+ "name": "Basic",
+ "price": 20,
+ "created_at": "2024-08-06T18:39:40.000000Z"
+ },
+ {
+ "id": "889817cd-4f22-4671-a494-4eb29bdfa6cc",
+ "name": "Advanced",
+ "price": 50,
+ "created_at": "2024-08-06T18:39:40.000000Z"
+ },
+ {
+ "id": "bfba079f-bed7-4e63-ab3c-686dd9d3f6a5",
+ "name": "Premium",
+ "price": 100,
+ "created_at": "2024-08-06T18:39:40.000000Z"
+ }
+ ]
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display the specified resource.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/billing-plans/enim" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/billing-plans/enim"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (500):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 44
+access-control-allow-origin: *
+
+
+{
+ "status": 500,
+ "message": "Internal server error"
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/topics/search
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/topics/search" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/topics/search"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (400):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 10
+x-ratelimit-remaining: 9
+access-control-allow-origin: *
+
+
+{
+ "success": false,
+ "message": "Title query parameter is required",
+ "status_code": 400
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Store a newly created resource in storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/organizations/voluptatem/products" \
+ --header "Content-Type: multipart/form-data" \
+ --header "Accept: application/json" \
+ --form "title=jqwhnsjufxbbndcjgwgqirh"\
+ --form "description=Eos veniam et exercitationem beatae similique."\
+ --form "category=8cd85132-ed44-3864-84e3-1cc9403bf864"\
+ --form "price=5475336.7"\
+ --form "stock=2"\
+ --form "image=@D:\xampp8_2\tmp\phpA0A5.tmp"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/organizations/voluptatem/products"
+);
+
+const headers = {
+ "Content-Type": "multipart/form-data",
+ "Accept": "application/json",
+};
+
+const body = new FormData();
+body.append('title', 'jqwhnsjufxbbndcjgwgqirh');
+body.append('description', 'Eos veniam et exercitationem beatae similique.');
+body.append('category', '8cd85132-ed44-3864-84e3-1cc9403bf864');
+body.append('price', '5475336.7');
+body.append('stock', '2');
+body.append('image', document.querySelector('input[name="image"]').files[0]);
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update the specified resource in storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PATCH \
+ "http://localhost/api/v1/organizations/quas/products/9cb402e7-36c2-4a1d-9d19-b04efe6ae83d" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"name\": \"akyedjhcihdogqejv\",
+ \"description\": \"Quasi nemo enim provident maxime omnis aliquid et porro.\",
+ \"price\": 10,
+ \"stock\": 53,
+ \"image\": \"http:\\/\\/www.sauer.com\\/aut-omnis-nulla-dicta-id-incidunt-sit.html\",
+ \"is_archived\": false,
+ \"productsVariant\": [
+ {
+ \"size_id\": \"debe7c41-53c9-304a-a612-8a61baa948cc\",
+ \"stock\": 84,
+ \"price\": 40
+ }
+ ]
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/organizations/quas/products/9cb402e7-36c2-4a1d-9d19-b04efe6ae83d"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "name": "akyedjhcihdogqejv",
+ "description": "Quasi nemo enim provident maxime omnis aliquid et porro.",
+ "price": 10,
+ "stock": 53,
+ "image": "http:\/\/www.sauer.com\/aut-omnis-nulla-dicta-id-incidunt-sit.html",
+ "is_archived": false,
+ "productsVariant": [
+ {
+ "size_id": "debe7c41-53c9-304a-a612-8a61baa948cc",
+ "stock": 84,
+ "price": 40
+ }
+ ]
+};
+
+fetch(url, {
+ method: "PATCH",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Remove the specified resource from storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request DELETE \
+ "http://localhost/api/v1/products/9cb402e7-36c2-4a1d-9d19-b04efe6ae83d" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/products/9cb402e7-36c2-4a1d-9d19-b04efe6ae83d"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ POST api/v1/blogs/{blogId}/comments
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/blogs/sed/comments" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/blogs/sed/comments"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ POST api/v1/comments/{commentId}/reply
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/comments/quidem/reply" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/comments/quidem/reply"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ POST api/v1/comments/{commentId}/like
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/comments/ut/like" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/comments/ut/like"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ POST api/v1/comments/{commentId}/dislike
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/comments/consequatur/dislike" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/comments/consequatur/dislike"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ PATCH api/v1/comments/edit/{commentId}
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PATCH \
+ "http://localhost/api/v1/comments/edit/sunt" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/comments/edit/sunt"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PATCH",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ DELETE api/v1/comments/{commentId}
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request DELETE \
+ "http://localhost/api/v1/comments/minus" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/comments/minus"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/blogs/{blogId}/comments
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/blogs/in/comments" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/blogs/in/comments"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (401):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/help-center/topics/search
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/help-center/topics/search" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"title\": \"iowyfnqddhjanetnxx\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/help-center/topics/search"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "title": "iowyfnqddhjanetnxx"
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+ Example response (200):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 42
+access-control-allow-origin: *
+
+
+{
+ "success": true,
+ "message": "Articles retrieved successfully.",
+ "status_code": 200,
+ "topics": [
+ {
+ "article_id": "b368979f-e7ed-46eb-b5c4-44a06dbe0e76",
+ "title": "How to reset your password",
+ "content": "To reset your password, follow these steps...",
+ "user_id": "9cb402e7-4131-4e7d-a381-5bc2d5db4ce3",
+ "author": " "
+ },
+ {
+ "article_id": "703c6521-7d6c-48e8-93e2-01d5378a064d",
+ "title": "How to update your profile",
+ "content": "To update your profile, go to the settings page...",
+ "user_id": "9cb402e7-32e0-421d-b0f1-afd95021228b",
+ "author": " "
+ },
+ {
+ "article_id": "93f1edb5-154f-4c4f-9ff1-a83b6bc6f638",
+ "title": "How to delete your account",
+ "content": "To delete your account, please contact support...",
+ "user_id": "9cb402e7-8006-4a16-a911-40fb1787ec6b",
+ "author": " "
+ }
+ ]
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ POST api/v1/inquiries
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/inquiries" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"name\": \"sunt\",
+ \"email\": \"mlindgren@example.com\",
+ \"message\": \"sint\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/inquiries"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "name": "sunt",
+ "email": "mlindgren@example.com",
+ "message": "sint"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/inquiries
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/inquiries" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/inquiries"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (200):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 41
+access-control-allow-origin: *
+
+
+{
+ "status_code": 200,
+ "message": "Inquiries returned successfully",
+ "data": []
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/blogs/latest
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/blogs/latest" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/blogs/latest"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (200):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 40
+access-control-allow-origin: *
+
+
+{
+ "count": 4,
+ "next": null,
+ "previous": null,
+ "results": [
+ {
+ "id": "71eb8a33-c1ef-4526-9c13-0e57e84e3454",
+ "title": "Maiores nulla quis qui aut id iusto voluptatibus.",
+ "content": "Unde nihil vel perspiciatis tempore beatae. Iusto velit amet ipsa dolores. Ab eos quis rerum ipsa dolorum. Cumque eos velit est voluptatem.\n\nQui qui magni iure delectus expedita quibusdam. Consectetur sit sit accusantium enim dolore ut. Aspernatur omnis ipsum voluptatibus amet tempore fugiat.\n\nId nihil autem iusto maxime sed ipsa repudiandae. Iusto eligendi ipsam dolor minus corporis. Expedita maxime suscipit soluta excepturi eum facere.",
+ "author": "Dorian Powlowski",
+ "created_at": "2024-08-06T18:39:40.000000Z",
+ "category": "World News",
+ "image_url": "storage/images/MTm0TdKKdV.jpg"
+ },
+ {
+ "id": "4beb4480-9a7e-4d40-9913-2222c0d4000a",
+ "title": "Et dolores qui et quod qui a.",
+ "content": "Deserunt voluptatem pariatur aut explicabo voluptas sapiente alias similique. Quos necessitatibus est facere et voluptatibus mollitia sint est. Accusantium dicta adipisci est eum enim ut ratione. Nostrum mollitia tempora repellendus voluptatibus.\n\nVoluptas nulla ut voluptatem et quo. Deserunt cumque odio ipsam sapiente velit inventore. Porro consectetur qui et est occaecati.\n\nDeserunt est voluptate et aut neque quis praesentium. Maiores ut ex eaque et illum. Rerum aperiam illum sit. Architecto dolorem provident accusamus illum perspiciatis non.",
+ "author": "Ilene Klein",
+ "created_at": "2024-08-06T18:39:38.000000Z",
+ "category": "Lifestyle",
+ "image_url": "storage/images/BzVOnNLQ89.jpg"
+ },
+ {
+ "id": "bf6252d8-1ae7-4fac-bbe1-533a4d5d49ba",
+ "title": "Culpa quis repellat consequuntur explicabo autem aspernatur debitis.",
+ "content": "Asperiores officia fuga et quas. Et adipisci exercitationem et aut a quasi. Vel voluptas ad consectetur hic accusantium ut voluptatem.\n\nReprehenderit sed nostrum facilis sit quia. Et voluptates voluptatum consectetur est unde. Vitae necessitatibus optio voluptatem cum.\n\nQuo eligendi nihil laborum atque doloremque sunt. Ea voluptates eius dolores quis quisquam dolorem fuga. Modi sapiente expedita dignissimos et.",
+ "author": "Mina Schimmel",
+ "created_at": "2024-08-06T18:39:35.000000Z",
+ "category": "Food",
+ "image_url": "storage/images/BCYawtsLx6.jpg"
+ },
+ {
+ "id": "fad7d874-61f9-40f0-ad3e-8bafdc6daf7b",
+ "title": "Ut odio ipsam illo vel fuga.",
+ "content": "Et quidem culpa culpa vel quam velit. Velit numquam aspernatur vero quis iure expedita. Dicta quia facere consectetur.\n\nVoluptatem eos dolorem aut reprehenderit numquam. Quis ut doloribus quo quasi voluptatem vero officiis sunt. Voluptate a eum ut. Tempore facere ducimus corporis accusamus aspernatur et.\n\nRerum quis modi quia. Sit voluptate et similique ea quia. Et non magni atque quia molestiae. Ratione velit perferendis quos vitae.",
+ "author": "Rafael Schowalter",
+ "created_at": "2024-08-06T18:39:32.000000Z",
+ "category": "Business",
+ "image_url": "storage/images/QZsSJjeCnS.jpg"
+ }
+ ],
+ "status_code": 200
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/blogs/search
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/blogs/search" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/blogs/search"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (200):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 39
+access-control-allow-origin: *
+
+
+{
+ "current_page": 1,
+ "total_pages": 1,
+ "total_results": 4,
+ "blogs": [
+ {
+ "id": "fad7d874-61f9-40f0-ad3e-8bafdc6daf7b",
+ "content": "Et quidem culpa culpa vel quam velit. Velit numquam aspernatur vero quis iure expedita. Dicta quia facere consectetur.\n\nVoluptatem eos dolorem aut reprehenderit numquam. Quis ut doloribus quo quasi voluptatem vero officiis sunt. Voluptate a eum ut. Tempore facere ducimus corporis accusamus aspernatur et.\n\nRerum quis modi quia. Sit voluptate et similique ea quia. Et non magni atque quia molestiae. Ratione velit perferendis quos vitae.",
+ "author": "Rafael Schowalter",
+ "created_at": "2024-08-06T18:39:32.000000Z",
+ "updated_at": "2024-08-06T18:39:32.000000Z",
+ "title": "Ut odio ipsam illo vel fuga.",
+ "deleted_at": null,
+ "category": "Business",
+ "image_url": "storage/images/QZsSJjeCnS.jpg",
+ "author_id": "9cb402ef-36e7-459b-9f23-ef9c9f105ca9"
+ },
+ {
+ "id": "bf6252d8-1ae7-4fac-bbe1-533a4d5d49ba",
+ "content": "Asperiores officia fuga et quas. Et adipisci exercitationem et aut a quasi. Vel voluptas ad consectetur hic accusantium ut voluptatem.\n\nReprehenderit sed nostrum facilis sit quia. Et voluptates voluptatum consectetur est unde. Vitae necessitatibus optio voluptatem cum.\n\nQuo eligendi nihil laborum atque doloremque sunt. Ea voluptates eius dolores quis quisquam dolorem fuga. Modi sapiente expedita dignissimos et.",
+ "author": "Mina Schimmel",
+ "created_at": "2024-08-06T18:39:35.000000Z",
+ "updated_at": "2024-08-06T18:39:35.000000Z",
+ "title": "Culpa quis repellat consequuntur explicabo autem aspernatur debitis.",
+ "deleted_at": null,
+ "category": "Food",
+ "image_url": "storage/images/BCYawtsLx6.jpg",
+ "author_id": "9cb402f4-1294-408f-ba03-f763631af8fb"
+ },
+ {
+ "id": "4beb4480-9a7e-4d40-9913-2222c0d4000a",
+ "content": "Deserunt voluptatem pariatur aut explicabo voluptas sapiente alias similique. Quos necessitatibus est facere et voluptatibus mollitia sint est. Accusantium dicta adipisci est eum enim ut ratione. Nostrum mollitia tempora repellendus voluptatibus.\n\nVoluptas nulla ut voluptatem et quo. Deserunt cumque odio ipsam sapiente velit inventore. Porro consectetur qui et est occaecati.\n\nDeserunt est voluptate et aut neque quis praesentium. Maiores ut ex eaque et illum. Rerum aperiam illum sit. Architecto dolorem provident accusamus illum perspiciatis non.",
+ "author": "Ilene Klein",
+ "created_at": "2024-08-06T18:39:38.000000Z",
+ "updated_at": "2024-08-06T18:39:38.000000Z",
+ "title": "Et dolores qui et quod qui a.",
+ "deleted_at": null,
+ "category": "Lifestyle",
+ "image_url": "storage/images/BzVOnNLQ89.jpg",
+ "author_id": "9cb402f7-f864-4d13-bd34-f90e3d1d02eb"
+ },
+ {
+ "id": "71eb8a33-c1ef-4526-9c13-0e57e84e3454",
+ "content": "Unde nihil vel perspiciatis tempore beatae. Iusto velit amet ipsa dolores. Ab eos quis rerum ipsa dolorum. Cumque eos velit est voluptatem.\n\nQui qui magni iure delectus expedita quibusdam. Consectetur sit sit accusantium enim dolore ut. Aspernatur omnis ipsum voluptatibus amet tempore fugiat.\n\nId nihil autem iusto maxime sed ipsa repudiandae. Iusto eligendi ipsam dolor minus corporis. Expedita maxime suscipit soluta excepturi eum facere.",
+ "author": "Dorian Powlowski",
+ "created_at": "2024-08-06T18:39:40.000000Z",
+ "updated_at": "2024-08-06T18:39:40.000000Z",
+ "title": "Maiores nulla quis qui aut id iusto voluptatibus.",
+ "deleted_at": null,
+ "category": "World News",
+ "image_url": "storage/images/MTm0TdKKdV.jpg",
+ "author_id": "9cb402fb-4168-4929-b35e-76274548250d"
+ }
+ ],
+ "meta": {
+ "has_next": false,
+ "total": 4,
+ "next_page": null,
+ "prev_page": null
+ }
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ POST api/v1/squeeze
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/squeeze" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/squeeze"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ POST api/v1/cookies/preferences
+
+
+
+
+
+
+
+
+
+
+
+
+
+ GET api/v1/cookies/preferences
+
+
+
+
+
+
+
+
+
+
+
+
+
+ POST api/v1/help-center/topics
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/help-center/topics" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"user_id\": \"f292a1a0-b13c-3acd-833b-919ca253633a\",
+ \"title\": \"xayutfbnlgazrdlnjnic\",
+ \"content\": \"dolore\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/help-center/topics"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "user_id": "f292a1a0-b13c-3acd-833b-919ca253633a",
+ "title": "xayutfbnlgazrdlnjnic",
+ "content": "dolore"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ PATCH api/v1/help-center/topics/{articleId}
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PATCH \
+ "http://localhost/api/v1/help-center/topics/qui" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"title\": \"rncvoschgdujobtvzclefjkg\",
+ \"content\": \"ut\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/help-center/topics/qui"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "title": "rncvoschgdujobtvzclefjkg",
+ "content": "ut"
+};
+
+fetch(url, {
+ method: "PATCH",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ DELETE api/v1/help-center/topics/{articleId}
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request DELETE \
+ "http://localhost/api/v1/help-center/topics/voluptatem" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/help-center/topics/voluptatem"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/help-center/topics
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/help-center/topics?page=67&size=17&category=11&search=wvahczchgfcoxknkfnlfywpkxpumbrnayvyivqyfaooztjcpdreaiqtrsnxdzafiblyvn" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/help-center/topics"
+);
+
+const params = {
+ "page": "67",
+ "size": "17",
+ "category": "11",
+ "search": "wvahczchgfcoxknkfnlfywpkxpumbrnayvyivqyfaooztjcpdreaiqtrsnxdzafiblyvn",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (500):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 37
+access-control-allow-origin: *
+
+
+{
+ "status_code": 500,
+ "success": false,
+ "message": "Failed to retrieve help articles. Please try again later.",
+ "error": "SQLSTATE[42703]: Undefined column: 7 ERROR: column \"category\" does not exist\nLINE 1: ...le\"::text like $1 or \"content\"::text like $2) and \"category\"...\n ^ (Connection: pgsql, SQL: select count(*) as aggregate from \"articles\" where (\"title\"::text like %wvahczchgfcoxknkfnlfywpkxpumbrnayvyivqyfaooztjcpdreaiqtrsnxdzafiblyvn% or \"content\"::text like %wvahczchgfcoxknkfnlfywpkxpumbrnayvyivqyfaooztjcpdreaiqtrsnxdzafiblyvn%) and \"category\" = 11)"
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display a paginated list of email templates.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/email-templates?page=25&limit=3" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/email-templates"
+);
+
+const params = {
+ "page": "25",
+ "limit": "3",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (401):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ POST api/v1/email-templates
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/email-templates" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"title\": \"rokyiiozy\",
+ \"template\": \"commodi\",
+ \"status\": false
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/email-templates"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "title": "rokyiiozy",
+ "template": "commodi",
+ "status": false
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ PATCH api/v1/email-templates/{id}
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PATCH \
+ "http://localhost/api/v1/email-templates/eum" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"title\": \"rvmkiteyrksfyrwtpkompiwjc\",
+ \"template\": \"labore\",
+ \"status\": true
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/email-templates/eum"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "title": "rvmkiteyrksfyrwtpkompiwjc",
+ "template": "labore",
+ "status": true
+};
+
+fetch(url, {
+ method: "PATCH",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ DELETE api/v1/email-templates/{id}
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request DELETE \
+ "http://localhost/api/v1/email-templates/suscipit" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/email-templates/suscipit"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Generate and store an invitation with email validation.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/invitations/generate" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"org_id\": \"dolorem\",
+ \"email\": \"zieme.travis@example.org\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/invitations/generate"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "org_id": "dolorem",
+ "email": "zieme.travis@example.org"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Handle GET request to accept an invitation.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/invite/accept" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/invite/accept"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).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: 36
+access-control-allow-origin: *
+
+
+{
+ "message": "Invalid or expired invitation link",
+ "errors": [
+ "Invalid invitation link format",
+ "Expired invitation link",
+ "Organization not found"
+ ],
+ "status_code": 400
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Handle POST request to accept an invitation.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/invite" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"invitation_link\": \"cumque\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/invite"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "invitation_link": "cumque"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display a listing of the resource.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/features" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
@@ -2248,9 +9754,7548 @@
-
+
+
+ Example response (401):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Store a newly created resource in storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/features" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"feature\": \"sit\",
+ \"description\": \"Omnis aut vitae voluptas itaque ipsa ut illo.\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/features"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "feature": "sit",
+ "description": "Omnis aut vitae voluptas itaque ipsa ut illo."
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display the specified resource.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/features/omnis" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/features/omnis"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (401):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update the specified resource in storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PUT \
+ "http://localhost/api/v1/features/voluptas" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/features/voluptas"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Remove the specified resource from storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request DELETE \
+ "http://localhost/api/v1/features/aut" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/features/aut"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display a listing of the resource.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/plans" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/plans"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (401):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Store a newly created resource in storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/plans" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"name\": \"ut\",
+ \"duration\": \"yearly\",
+ \"price\": 7,
+ \"description\": \"Ut est quasi ratione repudiandae excepturi neque eum.\",
+ \"features\": [
+ {
+ \"id\": \"3c5c02de-0921-3381-ae6f-7cae78f38e45\",
+ \"status\": \"1\"
+ }
+ ]
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/plans"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "name": "ut",
+ "duration": "yearly",
+ "price": 7,
+ "description": "Ut est quasi ratione repudiandae excepturi neque eum.",
+ "features": [
+ {
+ "id": "3c5c02de-0921-3381-ae6f-7cae78f38e45",
+ "status": "1"
+ }
+ ]
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display the specified resource.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/plans/assumenda" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/plans/assumenda"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (401):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update the specified resource in storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PUT \
+ "http://localhost/api/v1/plans/est" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/plans/est"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Remove the specified resource from storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request DELETE \
+ "http://localhost/api/v1/plans/et" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/plans/et"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ POST api/v1/payments/paystack
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/payments/paystack" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"plan_id\": \"non\",
+ \"billing_option\": \"yearly\",
+ \"full_name\": \"et\",
+ \"redirect_url\": \"https:\\/\\/schroeder.com\\/magni-at-sint-delectus-error-quas-eveniet.html\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/payments/paystack"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "plan_id": "non",
+ "billing_option": "yearly",
+ "full_name": "et",
+ "redirect_url": "https:\/\/schroeder.com\/magni-at-sint-delectus-error-quas-eveniet.html"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/payments/paystack/verify/{id}
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/payments/paystack/verify/expedita" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/payments/paystack/verify/expedita"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (401):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ POST api/v1/payments/flutterwave
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/payments/flutterwave" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"plan_id\": \"hic\",
+ \"billing_option\": \"monthly\",
+ \"full_name\": \"corrupti\",
+ \"redirect_url\": \"http:\\/\\/www.kemmer.com\\/animi-aut-reiciendis-officia-animi\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/payments/flutterwave"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "plan_id": "hic",
+ "billing_option": "monthly",
+ "full_name": "corrupti",
+ "redirect_url": "http:\/\/www.kemmer.com\/animi-aut-reiciendis-officia-animi"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/payments/flutterwave/verify/{id}
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/payments/flutterwave/verify/voluptates" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/payments/flutterwave/verify/voluptates"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (401):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/payments/cancel
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/payments/cancel" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/payments/cancel"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (401):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ cancel user subscription
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/users/plans/cupiditate/cancel" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/users/plans/cupiditate/cancel"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Store a newly created resource in storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/organizations" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"name\": \"ex\",
+ \"description\": \"Et iure fugit quos adipisci expedita recusandae corporis.\",
+ \"email\": \"goyette.shyanne@example.net\",
+ \"industry\": \"eius\",
+ \"type\": \"debitis\",
+ \"country\": \"et\",
+ \"address\": \"velit\",
+ \"state\": \"nam\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/organizations"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "name": "ex",
+ "description": "Et iure fugit quos adipisci expedita recusandae corporis.",
+ "email": "goyette.shyanne@example.net",
+ "industry": "eius",
+ "type": "debitis",
+ "country": "et",
+ "address": "velit",
+ "state": "nam"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display a listing of the resource.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/organizations" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/organizations"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (401):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update the specified resource in storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PUT \
+ "http://localhost/api/v1/organizations/ex" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"name\": \"et\",
+ \"description\": \"In voluptatem reiciendis sint et.\",
+ \"industry\": \"magnam\",
+ \"type\": \"aspernatur\",
+ \"country\": \"cupiditate\",
+ \"address\": \"unde\",
+ \"state\": \"pariatur\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/organizations/ex"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "name": "et",
+ "description": "In voluptatem reiciendis sint et.",
+ "industry": "magnam",
+ "type": "aspernatur",
+ "country": "cupiditate",
+ "address": "unde",
+ "state": "pariatur"
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Remove the specified resource from storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request DELETE \
+ "http://localhost/api/v1/organizations/tenetur" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/organizations/tenetur"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ DELETE api/v1/organizations/{org_id}/users/{user_id}
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request DELETE \
+ "http://localhost/api/v1/organizations/provident/users/9cb402e5-e983-4696-9bc4-74d7bfc255a1" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/organizations/provident/users/9cb402e5-e983-4696-9bc4-74d7bfc255a1"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/organizations/{organisation}/users
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/organizations/rerum/users" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/organizations/rerum/users"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (401):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/members/{org_id}/search
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/members/voluptatem/search" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"org_id\": \"edac571b-969a-36d2-8ddf-df8baa2f2f84\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/members/voluptatem/search"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "org_id": "edac571b-969a-36d2-8ddf-df8baa2f2f84"
+};
+
+fetch(url, {
+ method: "GET",
+ 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: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/members/{org_id}/export
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/members/fugit/export" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/members/fugit/export"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (401):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Store a newly created resource in storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/testimonials" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"content\": \"commodi\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/testimonials"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "content": "commodi"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display the specified resource.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/testimonials/neque" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/testimonials/neque"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (401):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Remove the specified resource from storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request DELETE \
+ "http://localhost/api/v1/testimonials/distinctio" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/testimonials/distinctio"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ POST api/v1/jobs
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/jobs" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"title\": \"eum\",
+ \"description\": \"Ut in fuga autem optio perferendis nihil nulla.\",
+ \"location\": \"illum\",
+ \"deadline\": \"2024-08-07T03:57:11\",
+ \"salary_range\": \"eius\",
+ \"job_type\": \"cupiditate\",
+ \"job_mode\": \"fugit\",
+ \"experience_level\": \"ut\",
+ \"company_name\": \"tempore\",
+ \"key_responsibilities\": \"sed\",
+ \"qualifications\": \"quod\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/jobs"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "title": "eum",
+ "description": "Ut in fuga autem optio perferendis nihil nulla.",
+ "location": "illum",
+ "deadline": "2024-08-07T03:57:11",
+ "salary_range": "eius",
+ "job_type": "cupiditate",
+ "job_mode": "fugit",
+ "experience_level": "ut",
+ "company_name": "tempore",
+ "key_responsibilities": "sed",
+ "qualifications": "quod"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ PUT api/v1/jobs/{id}
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PUT \
+ "http://localhost/api/v1/jobs/9cb402e7-79e4-46d5-9dbd-02b95ffa8d4e" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"title\": \"quisquam\",
+ \"description\": \"Recusandae quis et voluptas enim cumque in.\",
+ \"location\": \"a\",
+ \"deadline\": \"2024-08-07T03:57:11\",
+ \"salary_range\": \"nobis\",
+ \"job_type\": \"velit\",
+ \"job_mode\": \"cumque\",
+ \"experience_level\": \"quibusdam\",
+ \"benefits\": \"qui\",
+ \"key_responsibilities\": \"doloremque\",
+ \"qualifications\": \"quidem\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/jobs/9cb402e7-79e4-46d5-9dbd-02b95ffa8d4e"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "title": "quisquam",
+ "description": "Recusandae quis et voluptas enim cumque in.",
+ "location": "a",
+ "deadline": "2024-08-07T03:57:11",
+ "salary_range": "nobis",
+ "job_type": "velit",
+ "job_mode": "cumque",
+ "experience_level": "quibusdam",
+ "benefits": "qui",
+ "key_responsibilities": "doloremque",
+ "qualifications": "quidem"
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ DELETE api/v1/jobs/{id}
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request DELETE \
+ "http://localhost/api/v1/jobs/9cb402e7-79e4-46d5-9dbd-02b95ffa8d4e" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/jobs/9cb402e7-79e4-46d5-9dbd-02b95ffa8d4e"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/user/export/{format}
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/user/export/omnis" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/user/export/omnis"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (401):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ PATCH api/v1/accounts/deactivate
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PATCH \
+ "http://localhost/api/v1/accounts/deactivate" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"confirmation\": true,
+ \"reason\": \"facilis\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/accounts/deactivate"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "confirmation": true,
+ "reason": "facilis"
+};
+
+fetch(url, {
+ method: "PATCH",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ PUT api/v1/organisations/{org_id}/roles/{role_id}
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PUT \
+ "http://localhost/api/v1/organisations/1f1935bd-d9fb-3f47-929c-f9d453233ec4/roles/nihil" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"name\": \"jsni\",
+ \"description\": \"Omnis dolore eaque dolorem voluptatum et maxime explicabo quia.\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/organisations/1f1935bd-d9fb-3f47-929c-f9d453233ec4/roles/nihil"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "name": "jsni",
+ "description": "Omnis dolore eaque dolorem voluptatum et maxime explicabo quia."
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ PUT api/v1/organisations/{org_id}/roles/{role_id}/disable
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PUT \
+ "http://localhost/api/v1/organisations/1f1935bd-d9fb-3f47-929c-f9d453233ec4/roles/rem/disable" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"role_name\": \"gravcsacqmjxsd\",
+ \"organisation_id\": \"rptabzwnlyqjoubaojn\",
+ \"permissions_id\": \"ut\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/organisations/1f1935bd-d9fb-3f47-929c-f9d453233ec4/roles/rem/disable"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "role_name": "gravcsacqmjxsd",
+ "organisation_id": "rptabzwnlyqjoubaojn",
+ "permissions_id": "ut"
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ PUT api/v1/organisations/{org_id}/users/{user_id}/roles
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PUT \
+ "http://localhost/api/v1/organisations/1f1935bd-d9fb-3f47-929c-f9d453233ec4/users/9cb402e5-e983-4696-9bc4-74d7bfc255a1/roles" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"role\": \"sint\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/organisations/1f1935bd-d9fb-3f47-929c-f9d453233ec4/users/9cb402e5-e983-4696-9bc4-74d7bfc255a1/roles"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "role": "sint"
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ PUT api/v1/organisations/{org_id}/{role_id}/permissions
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PUT \
+ "http://localhost/api/v1/organisations/1f1935bd-d9fb-3f47-929c-f9d453233ec4/amet/permissions" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"permission_list\": []
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/organisations/1f1935bd-d9fb-3f47-929c-f9d453233ec4/amet/permissions"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "permission_list": []
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ updatePassword
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/password-update" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"old_password\": \"aperiam\",
+ \"new_password\": \"pghnqugrihgfovgkanemrvjgilfjpxtunggicjzyfwiucwyjndxafqzi\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/password-update"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "old_password": "aperiam",
+ "new_password": "pghnqugrihgfovgkanemrvjgilfjpxtunggicjzyfwiucwyjndxafqzi"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update the specified resource in storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PATCH \
+ "http://localhost/api/v1/profile" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"first_name\": \"ysjmxhyztohbqetoeg\",
+ \"last_name\": \"sofwjginlumdkzki\",
+ \"job_title\": \"hblwmmejxcfb\",
+ \"pronoun\": \"qtpzfrbqxviyyeyyfb\",
+ \"bio\": \"nrzklbecstmy\",
+ \"email\": \"easton26@example.net\",
+ \"avatar_url\": \"http:\\/\\/www.satterfield.com\\/ea-iste-in-qui\",
+ \"display_image\": \"dolor\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/profile"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "first_name": "ysjmxhyztohbqetoeg",
+ "last_name": "sofwjginlumdkzki",
+ "job_title": "hblwmmejxcfb",
+ "pronoun": "qtpzfrbqxviyyeyyfb",
+ "bio": "nrzklbecstmy",
+ "email": "easton26@example.net",
+ "avatar_url": "http:\/\/www.satterfield.com\/ea-iste-in-qui",
+ "display_image": "dolor"
+};
+
+fetch(url, {
+ method: "PATCH",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ POST api/v1/profile/upload-image
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/profile/upload-image" \
+ --header "Content-Type: multipart/form-data" \
+ --header "Accept: application/json" \
+ --form "file=@D:\xampp8_2\tmp\phpA691.tmp"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/profile/upload-image"
+);
+
+const headers = {
+ "Content-Type": "multipart/form-data",
+ "Accept": "application/json",
+};
+
+const body = new FormData();
+body.append('file', document.querySelector('input[name="file"]').files[0]);
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display the specified resource.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/notification-settings" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/notification-settings"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (500):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 35
+access-control-allow-origin: *
+
+
+{
+ "message": "Server Error"
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update the specified resource in storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PATCH \
+ "http://localhost/api/v1/notification-settings" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"mobile_push_notifications\": false,
+ \"email_notification_activity_in_workspace\": false,
+ \"email_notification_always_send_email_notifications\": true,
+ \"email_notification_email_digest\": true,
+ \"email_notification_announcement_and_update_emails\": true,
+ \"slack_notifications_activity_on_your_workspace\": true,
+ \"slack_notifications_always_send_email_notifications\": true,
+ \"slack_notifications_announcement_and_update_emails\": true
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/notification-settings"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "mobile_push_notifications": false,
+ "email_notification_activity_in_workspace": false,
+ "email_notification_always_send_email_notifications": true,
+ "email_notification_email_digest": true,
+ "email_notification_announcement_and_update_emails": true,
+ "slack_notifications_activity_on_your_workspace": true,
+ "slack_notifications_always_send_email_notifications": true,
+ "slack_notifications_announcement_and_update_emails": true
+};
+
+fetch(url, {
+ method: "PATCH",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display a listing of the resource.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/customers" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"limit\": 67,
+ \"page\": 30
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/customers"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "limit": 67,
+ "page": 30
+};
+
+fetch(url, {
+ method: "GET",
+ 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: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Store a newly created resource in storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/blogs" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"title\": \"zqsjxmev\",
+ \"content\": \"natus\",
+ \"image_url\": \"quos\",
+ \"category\": \"xdwzqghtxhcasmxiukiqohiu\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/blogs"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "title": "zqsjxmev",
+ "content": "natus",
+ "image_url": "quos",
+ "category": "xdwzqghtxhcasmxiukiqohiu"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update the specified resource in storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request PATCH \
+ "http://localhost/api/v1/blogs/edit/natus" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/blogs/edit/natus"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PATCH",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Remove the specified resource from storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request DELETE \
+ "http://localhost/api/v1/blogs/fad7d874-61f9-40f0-ad3e-8bafdc6daf7b" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/blogs/fad7d874-61f9-40f0-ad3e-8bafdc6daf7b"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ GET api/v1/waitlists
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/waitlists" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/waitlists"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (401):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 34
+access-control-allow-origin: *
+
+
+{
+ "status": "Unauthorized",
+ "message": "User not authenticated",
+ "status_code": 401
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ POST api/v1/waitlists
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/waitlists" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"name\": \"uolgyfljuqbpf\",
+ \"email\": \"kacey.cremin@example.org\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/waitlists"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "name": "uolgyfljuqbpf",
+ "email": "kacey.cremin@example.org"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display a listing of the resource.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/faqs" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/faqs"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
+
+ Example response (200):
+
+
+
+ Show headers
+
+ cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 33
+access-control-allow-origin: *
+
+
+{
+ "status_code": 200,
+ "message": "Faq returned successfully",
+ "data": [
+ {
+ "id": "9cb402fc-99ed-49ea-b689-406c182835f1",
+ "question": "What is the return policy?",
+ "answer": "Our return policy allows you to return products within 30 days of purchase. The items must be in their original condition with all packaging and tags intact. For more details, visit our return policy page.",
+ "status": true,
+ "created_at": "2024-08-06T18:39:41.000000Z",
+ "updated_at": "2024-08-06T18:39:41.000000Z"
+ },
+ {
+ "id": "9cb402fc-9eb2-45f4-a594-ce4a0c0c5213",
+ "question": "How do I track my order?",
+ "answer": "Once your order has been shipped, you will receive an email with a tracking number. You can use this number on our website to track the status of your delivery.",
+ "status": true,
+ "created_at": "2024-08-06T18:39:41.000000Z",
+ "updated_at": "2024-08-06T18:39:41.000000Z"
+ },
+ {
+ "id": "9cb402fc-a0a2-4b03-8122-075ec2e9e899",
+ "question": "What payment methods are accepted?",
+ "answer": "We accept various payment methods including credit/debit cards, PayPal, and bank transfers. For a full list of accepted payment methods, please visit our payment information page.",
+ "status": true,
+ "created_at": "2024-08-06T18:39:41.000000Z",
+ "updated_at": "2024-08-06T18:39:41.000000Z"
+ },
+ {
+ "id": "9cb402fc-a270-4999-8304-9d9fab8974d4",
+ "question": "How do I contact customer support?",
+ "answer": "You can contact our customer support team via email, phone, or live chat. Visit our contact us page for more information on how to reach us.",
+ "status": true,
+ "created_at": "2024-08-06T18:39:41.000000Z",
+ "updated_at": "2024-08-06T18:39:41.000000Z"
+ },
+ {
+ "id": "9cb402fc-a469-4f39-83c2-a195f39be260",
+ "question": "Are there any discounts for bulk purchases?",
+ "answer": "Yes, we offer discounts for bulk purchases. Please contact our sales team with your requirements, and we will provide you with a custom quote.",
+ "status": true,
+ "created_at": "2024-08-06T18:39:41.000000Z",
+ "updated_at": "2024-08-06T18:39:41.000000Z"
+ },
+ {
+ "id": "9cb402fc-a653-4ceb-9e0b-73ba302c438a",
+ "question": "How do I create an account?",
+ "answer": "Creating an account is easy. Click on the \"Sign Up\" button at the top of our website, and fill in your details. Once registered, you can enjoy a faster checkout process and keep track of your orders.",
+ "status": true,
+ "created_at": "2024-08-06T18:39:41.000000Z",
+ "updated_at": "2024-08-06T18:39:41.000000Z"
+ },
+ {
+ "id": "9cb402fc-a835-48d6-8454-baa5755e46d7",
+ "question": "What do I do if I receive a defective product?",
+ "answer": "If you receive a defective product, please contact our customer support team immediately. We will arrange for a replacement or a refund as per our return policy.",
+ "status": true,
+ "created_at": "2024-08-06T18:39:41.000000Z",
+ "updated_at": "2024-08-06T18:39:41.000000Z"
+ },
+ {
+ "id": "9cb402fc-a9fd-4b5f-ad1a-7ef9e3a49dc6",
+ "question": "Do you ship internationally?",
+ "answer": "Yes, we ship to many countries around the world. International shipping costs and delivery times vary based on your location. For more details, please visit our shipping information page.",
+ "status": true,
+ "created_at": "2024-08-06T18:39:41.000000Z",
+ "updated_at": "2024-08-06T18:39:41.000000Z"
+ },
+ {
+ "id": "9cb402fc-abc6-4e6c-aea2-a97dd5a23d7a",
+ "question": "How can I apply a discount code?",
+ "answer": "You can apply a discount code at checkout. Enter the code in the designated field and click \"Apply\" to see the discount reflected in your order total.",
+ "status": true,
+ "created_at": "2024-08-06T18:39:41.000000Z",
+ "updated_at": "2024-08-06T18:39:41.000000Z"
+ }
+ ]
+}
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Store a newly created resource in storage.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request POST \
+ "http://localhost/api/v1/faqs" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"question\": \"mfyybkfdangsrh\",
+ \"answer\": \"qxnuetdrzosbln\"
+}"
+
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/faqs"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "question": "mfyybkfdangsrh",
+ "answer": "qxnuetdrzosbln"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
+
+
+
+
+
+
+ Received response:
+
+
+
+
+ Request failed with error:
+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display the specified resource.
+
+
+
+
+
+
+
+Example request:
+
+
+
+ curl --request GET \
+ --get "http://localhost/api/v1/faqs/9cb402fc-99ed-49ea-b689-406c182835f1" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
+
+
+
+ const url = new URL(
+ "http://localhost/api/v1/faqs/9cb402fc-99ed-49ea-b689-406c182835f1"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
+
+
+
+
- Example response (401):
+ Example response (200):
@@ -2258,51 +17303,62 @@
cache-control: no-cache, private
content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 32
access-control-allow-origin: *
{
- "message": "Unauthenticated."
+ "status_code": 200,
+ "message": "Faq returned successfully",
+ "data": {
+ "id": "9cb402fc-99ed-49ea-b689-406c182835f1",
+ "question": "What is the return policy?",
+ "answer": "Our return policy allows you to return products within 30 days of purchase. The items must be in their original condition with all packaging and tags intact. For more details, visit our return policy page.",
+ "status": true,
+ "created_at": "2024-08-06T18:39:41.000000Z",
+ "updated_at": "2024-08-06T18:39:41.000000Z"
+ }
}
-
+
Received response:
+ id="execution-response-status-GETapi-v1-faqs--id-">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+ URL Parameters
+
+ id
+string
+
+
+
+The ID of the faq. Example: 9cb402fc-99ed-49ea-b689-406c182835f1
+
+
- Store a newly created resource in storage.
+ Update the specified resource in storage.
-
+
Example request:
- curl --request POST \
- "http://localhost/api/v1/features" \
+ curl --request PUT \
+ "http://localhost/api/v1/faqs/9cb402fc-99ed-49ea-b689-406c182835f1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
- \"feature\": \"modi\",
- \"description\": \"Modi voluptatibus hic enim.\"
+ \"question\": \"hxszodqapscivhfxiqrnb\",
+ \"answer\": \"twqoaxiztjxinigzcpvi\"
}"
const url = new URL(
- "http://localhost/api/v1/features"
+ "http://localhost/api/v1/faqs/9cb402fc-99ed-49ea-b689-406c182835f1"
);
const headers = {
@@ -2371,65 +17439,69 @@
};
let body = {
- "feature": "modi",
- "description": "Modi voluptatibus hic enim."
+ "question": "hxszodqapscivhfxiqrnb",
+ "answer": "twqoaxiztjxinigzcpvi"
};
fetch(url, {
- method: "POST",
+ method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
-
+
-
+
Received response:
+ id="execution-response-status-PUTapi-v1-faqs--id-">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
-
-
- Example response (401):
-
-
-
- Show headers
-
- cache-control: no-cache, private
-content-type: application/json
-access-control-allow-origin: *
-
-
-{
- "message": "Unauthenticated."
-}
-
-
-
+
+
+
Received response:
+ id="execution-response-status-POSTapi-v1-user-preferences">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+ onsubmit="event.preventDefault(); executeTryOut('POSTapi-v1-user-preferences', this);">
Request
- GET
- api/v1/plans
+ POST
+ api/v1/user/preferences
Headers
@@ -2964,7 +18094,7 @@
@@ -2975,48 +18105,63 @@
Example: application/json
-
+ Body Parameters
+
+ name
+string
+
+
+
+Example: officiis
+
+
+ value
+string
+
+
+
+Example: ipsum
+
+
- Store a newly created resource in storage.
+ PUT api/v1/user/preferences/{id}
-
+
Example request:
- curl --request POST \
- "http://localhost/api/v1/plans" \
+ curl --request PUT \
+ "http://localhost/api/v1/user/preferences/repellat" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
- \"name\": \"tenetur\",
- \"duration\": \"yearly\",
- \"price\": 15,
- \"description\": \"Veniam accusamus sequi quam est modi soluta quia.\",
- \"features\": [
- {
- \"id\": \"2f725c0c-e035-359c-98f9-aebee287982e\",
- \"status\": \"1\"
- }
- ]
+ \"name\": \"id\",
+ \"value\": \"odit\"
}"
const url = new URL(
- "http://localhost/api/v1/plans"
+ "http://localhost/api/v1/user/preferences/repellat"
);
const headers = {
@@ -3025,73 +18170,65 @@
};
let body = {
- "name": "tenetur",
- "duration": "yearly",
- "price": 15,
- "description": "Veniam accusamus sequi quam est modi soluta quia.",
- "features": [
- {
- "id": "2f725c0c-e035-359c-98f9-aebee287982e",
- "status": "1"
- }
- ]
+ "name": "id",
+ "value": "odit"
};
fetch(url, {
- method: "POST",
+ method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
-
+
-
+
Received response:
+ id="execution-response-status-PUTapi-v1-user-preferences--id-">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+ onsubmit="event.preventDefault(); executeTryOut('PUTapi-v1-user-preferences--id-', this);">
Request
- POST
- api/v1/plans
+ PUT
+ api/v1/user/preferences/{id}
Headers
@@ -3099,7 +18236,7 @@
@@ -3110,117 +18247,70 @@
Example: application/json
- Body Parameters
-
- name
-string
-
-
-
-Example: tenetur
-
-
- duration
+ URL Parameters
+
+ id
string
-
-Example: yearly
-Must be one of:
-monthly
yearly
-
-
- price
-integer
-
-
+ name="id" data-endpoint="PUTapi-v1-user-preferences--id-"
+ value="repellat"
+ data-component="url">
-Example: 15
-
-
- description
+The ID of the preference. Example: repellat
+
+ Body Parameters
+
+ name
string
-Example: Veniam accusamus sequi quam est modi soluta quia.
+Example: id
-
-
- features
-object[]
-
-
-
-
-
- id
+ value
string
-
-Must be a valid UUID. Example: 2f725c0c-e035-359c-98f9-aebee287982e
-
-
- status
-integer
-
-
-Example: 1
-Must be one of:
-0
1
-
-
+Example: odit
- Display the specified resource.
+ GET api/v1/user/preferences
-
+
Example request:
curl --request GET \
- --get "http://localhost/api/v1/plans/nihil" \
+ --get "http://localhost/api/v1/user/preferences" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
- "http://localhost/api/v1/plans/nihil"
+ "http://localhost/api/v1/user/preferences"
);
const headers = {
@@ -3235,7 +18325,7 @@
-
+
Example response (401):
@@ -3253,43 +18343,43 @@
}
-
+
Received response:
+ id="execution-response-status-GETapi-v1-user-preferences">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+ onsubmit="event.preventDefault(); executeTryOut('GETapi-v1-user-preferences', this);">
Request
GET
- api/v1/plans/{id}
+ api/v1/user/preferences
Headers
@@ -3305,7 +18395,7 @@
@@ -3316,47 +18406,35 @@
Example: application/json
- URL Parameters
-
- id
-string
-
-
-
-The ID of the plan. Example: nihil
-
-
+
- Update the specified resource in storage.
+ DELETE api/v1/user/preferences/{id}
-
+
Example request:
- curl --request PUT \
- "http://localhost/api/v1/plans/ea" \
+ curl --request DELETE \
+ "http://localhost/api/v1/user/preferences/ut" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
- "http://localhost/api/v1/plans/ea"
+ "http://localhost/api/v1/user/preferences/ut"
);
const headers = {
@@ -3365,63 +18443,59 @@
};
fetch(url, {
- method: "PUT",
+ method: "DELETE",
headers,
}).then(response => response.json());
-
+
-
+
Received response:
+ id="execution-response-status-DELETEapi-v1-user-preferences--id-">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+ onsubmit="event.preventDefault(); executeTryOut('DELETEapi-v1-user-preferences--id-', this);">
Request
- PUT
- api/v1/plans/{id}
-
-
- PATCH
- api/v1/plans/{id}
+ DELETE
+ api/v1/user/preferences/{id}
Headers
@@ -3429,7 +18503,7 @@
@@ -3440,7 +18514,7 @@
@@ -3452,35 +18526,41 @@
string
-The ID of the plan. Example: ea
+The ID of the preference. Example: ut
- Remove the specified resource from storage.
+ PATCH api/v1/notification-settings/{user_id}
-
+
Example request:
- curl --request DELETE \
- "http://localhost/api/v1/plans/minima" \
+ curl --request PATCH \
+ "http://localhost/api/v1/notification-settings/necessitatibus" \
--header "Content-Type: application/json" \
- --header "Accept: application/json"
+ --header "Accept: application/json" \
+ --data "{
+ \"email_notifications\": true,
+ \"push_notifications\": false,
+ \"sms_notifications\": true
+}"
+
const url = new URL(
- "http://localhost/api/v1/plans/minima"
+ "http://localhost/api/v1/notification-settings/necessitatibus"
);
const headers = {
@@ -3488,60 +18568,67 @@
"Accept": "application/json",
};
+let body = {
+ "email_notifications": true,
+ "push_notifications": false,
+ "sms_notifications": true
+};
+
fetch(url, {
- method: "DELETE",
+ method: "PATCH",
headers,
+ body: JSON.stringify(body),
}).then(response => response.json());
-
+
-
+
Received response:
+ id="execution-response-status-PATCHapi-v1-notification-settings--user_id-">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+ onsubmit="event.preventDefault(); executeTryOut('PATCHapi-v1-notification-settings--user_id-', this);">
Request
- DELETE
- api/v1/plans/{id}
+ PATCH
+ api/v1/notification-settings/{user_id}
Headers
@@ -3549,7 +18636,7 @@
@@ -3560,7 +18647,7 @@
@@ -3568,50 +18655,103 @@
URL Parameters
- id
+ user_id
string
-The ID of the plan. Example: minima
+The ID of the user. Example: necessitatibus
-
+ Body Parameters
+
+ email_notifications
+boolean
+optional
+
+
+
+Example: true
+
+
+ push_notifications
+boolean
+optional
+
+
+
+Example: false
+
+
+ sms_notifications
+boolean
+optional
+
+
+
+Example: true
+
+
- Store a newly created resource in storage.
+ Display the specified resource.
-
+
Example request:
- curl --request POST \
- "http://localhost/api/v1/organisations" \
+ curl --request GET \
+ --get "http://localhost/api/v1/email-templates/harum" \
--header "Content-Type: application/json" \
- --header "Accept: application/json" \
- --data "{
- \"name\": \"praesentium\",
- \"description\": \"Asperiores eligendi sint et libero repellat perspiciatis suscipit harum.\",
- \"email\": \"krystel05@example.com\",
- \"industry\": \"nihil\",
- \"type\": \"sed\",
- \"country\": \"aut\",
- \"address\": \"repellendus\",
- \"state\": \"iusto\"
-}"
-
+ --header "Accept: application/json"
const url = new URL(
- "http://localhost/api/v1/organisations"
+ "http://localhost/api/v1/email-templates/harum"
);
const headers = {
@@ -3619,72 +18759,76 @@
"Accept": "application/json",
};
-let body = {
- "name": "praesentium",
- "description": "Asperiores eligendi sint et libero repellat perspiciatis suscipit harum.",
- "email": "krystel05@example.com",
- "industry": "nihil",
- "type": "sed",
- "country": "aut",
- "address": "repellendus",
- "state": "iusto"
-};
-
fetch(url, {
- method: "POST",
+ method: "GET",
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: *
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
Received response:
+ id="execution-response-status-GETapi-v1-email-templates--id-">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+ onsubmit="event.preventDefault(); executeTryOut('GETapi-v1-email-templates--id-', this);">
Request
- POST
- api/v1/organisations
+ GET
+ api/v1/email-templates/{id}
Headers
@@ -3692,7 +18836,7 @@
@@ -3703,124 +18847,53 @@
Example: application/json
- Body Parameters
-
- name
-string
-
-
-
-Example: praesentium
-
-
- description
-string
-
-
-
-Example: Asperiores eligendi sint et libero repellat perspiciatis suscipit harum.
-
-
- email
-string
-
-
-
-Must be a valid email address. Must not be greater than 255 characters. Example: krystel05@example.com
-
-
- industry
-string
-
-
-
-Example: nihil
-
-
- type
-string
-
-
-
-Example: sed
-
-
- country
-string
-
-
-
-Example: aut
-
-
- address
-string
-
-
-
-Example: repellendus
-
-
- state
+ URL Parameters
+
+ id
string
+ name="id" data-endpoint="GETapi-v1-email-templates--id-"
+ value="harum"
+ data-component="url">
-Example: iusto
-
-
+The ID of the email template. Example: harum
+
+
- Display a listing of the resource.
+ PUT api/v1/email-templates/{id}
-
+
Example request:
- curl --request GET \
- --get "http://localhost/api/v1/organisations" \
+ curl --request PUT \
+ "http://localhost/api/v1/email-templates/placeat" \
--header "Content-Type: application/json" \
- --header "Accept: application/json"
+ --header "Accept: application/json" \
+ --data "{
+ \"title\": \"yaok\",
+ \"template\": \"ea\",
+ \"status\": false
+}"
+
const url = new URL(
- "http://localhost/api/v1/organisations"
+ "http://localhost/api/v1/email-templates/placeat"
);
const headers = {
@@ -3828,80 +18901,71 @@
"Accept": "application/json",
};
+let body = {
+ "title": "yaok",
+ "template": "ea",
+ "status": false
+};
+
fetch(url, {
- method: "GET",
+ method: "PUT",
headers,
-}).then(response => response.json());
-
-
-
-
-
- Example response (401):
-
-
-
- Show headers
-
- cache-control: no-cache, private
-content-type: application/json
-x-ratelimit-limit: 60
-x-ratelimit-remaining: 53
-access-control-allow-origin: *
-
-
-{
- "status": "Unauthorized",
- "message": "User not authenticated",
- "status_code": 401
-}
-
-
-
+ body: JSON.stringify(body),
+}).then(response => response.json());
Received response: + id="execution-response-status-PUTapi-v1-email-templates--id-">: -
-
+
Request failed with error:-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
- GET
- api/v1/organisations
+ PUT
+ api/v1/email-templates/{id}
+
+ PATCH
+ api/v1/email-templates/{id}
Example: application/json
id
+string
+
+
+ The ID of the email template. Example: placeat
title
+string
+optional
+
+ Must not be greater than 255 characters. Example: yaok
template
+string
+optional
+
+ Example: ea
status
+boolean
+optional
+
+
+ Example: false
- +
Example request:
curl --request DELETE \
- "http://localhost/api/v1/organisations/qui/users/et" \
+ "http://localhost/api/v1/email-templates/pariatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
- "http://localhost/api/v1/organisations/qui/users/et"
+ "http://localhost/api/v1/email-templates/pariatur"
);
const headers = {
@@ -3963,45 +19083,45 @@
-
+
-
+
Received response:
+ id="execution-response-status-DELETEapi-v1-email-templates--id-">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+ onsubmit="event.preventDefault(); executeTryOut('DELETEapi-v1-email-templates--id-', this);">
Request
DELETE
- api/v1/organisations/{org_id}/users/{user_id}
+ api/v1/email-templates/{id}
Headers
@@ -4017,7 +19137,7 @@
@@ -4028,7 +19148,7 @@
@@ -4036,55 +19156,43 @@
URL Parameters
- org_id
-string
-
-
-
-The ID of the org. Example: qui
-
-
- user_id
+ id
string
-The ID of the user. Example: et
+The ID of the email template. Example: pariatur
- Display a listing of the resource.
+ Update the specified resource in storage.
-
+
Example request:
- curl --request GET \
- --get "http://localhost/api/v1/customers" \
+ curl --request PATCH \
+ "http://localhost/api/v1/notifications/officia" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
- \"limit\": 63,
- \"page\": 34
+ \"is_read\": true
}"
const url = new URL(
- "http://localhost/api/v1/customers"
+ "http://localhost/api/v1/notifications/officia"
);
const headers = {
@@ -4093,81 +19201,64 @@
};
let body = {
- "limit": 63,
- "page": 34
+ "is_read": true
};
fetch(url, {
- method: "GET",
+ method: "PATCH",
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: *
-
-
-{
- "message": "Unauthenticated."
-}
-
-
-
+
+
+
Received response:
+ id="execution-response-status-PATCHapi-v1-notifications--notification-">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+ onsubmit="event.preventDefault(); executeTryOut('PATCHapi-v1-notifications--notification-', this);">
Request
- GET
- api/v1/customers
+ PATCH
+ api/v1/notifications/{notification}
Headers
@@ -4175,7 +19266,7 @@
@@ -4186,62 +19277,69 @@
Example: application/json
- Body Parameters
-
- limit
-integer
+ URL Parameters
+
+ notification
+string
-
+
-Must be at least 1. Example: 63
-
-
- page
-integer
+The notification. Example: officia
+
+ Body Parameters
+
+ is_read
+boolean
-
+
+
-Must be at least 1. Example: 34
+Example: true
- Store a newly created resource in storage.
+ Remove the specified resource from storage.
-
+
Example request:
- curl --request POST \
- "http://localhost/api/v1/testimonials" \
+ curl --request DELETE \
+ "http://localhost/api/v1/notifications" \
--header "Content-Type: application/json" \
- --header "Accept: application/json" \
- --data "{
- \"content\": \"sit\"
-}"
-
+ --header "Accept: application/json"
const url = new URL(
- "http://localhost/api/v1/testimonials"
+ "http://localhost/api/v1/notifications"
);
const headers = {
@@ -4249,65 +19347,60 @@
"Accept": "application/json",
};
-let body = {
- "content": "sit"
-};
-
fetch(url, {
- method: "POST",
+ method: "DELETE",
headers,
- body: JSON.stringify(body),
}).then(response => response.json());
-
+
-
+
Received response:
+ id="execution-response-status-DELETEapi-v1-notifications">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+ onsubmit="event.preventDefault(); executeTryOut('DELETEapi-v1-notifications', this);">
Request
- POST
- api/v1/testimonials
+ DELETE
+ api/v1/notifications
Headers
@@ -4315,7 +19408,7 @@
@@ -4326,47 +19419,39 @@
Example: application/json
- Body Parameters
-
- content
-string
-
-
-
-Example: sit
-
-
+
- Display the specified resource.
+ Show the form for creating a new resource.
-
+
Example request:
- curl --request GET \
- --get "http://localhost/api/v1/testimonials/accusantium" \
+ curl --request POST \
+ "http://localhost/api/v1/notifications" \
--header "Content-Type: application/json" \
- --header "Accept: application/json"
+ --header "Accept: application/json" \
+ --data "{
+ \"message\": \"n\"
+}"
+
const url = new URL(
- "http://localhost/api/v1/testimonials/accusantium"
+ "http://localhost/api/v1/notifications"
);
const headers = {
@@ -4374,76 +19459,65 @@
"Accept": "application/json",
};
+let body = {
+ "message": "n"
+};
+
fetch(url, {
- method: "GET",
+ method: "POST",
headers,
+ body: JSON.stringify(body),
}).then(response => response.json());
--Example response (401):
-
cache-control: no-cache, private
-content-type: application/json
-access-control-allow-origin: *
-
-
-{
- "message": "Unauthenticated."
-}
-
-
-
+
+
+
Received response: + id="execution-response-status-POSTapi-v1-notifications">: -
-
+
Request failed with error:-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
- GET
- api/v1/testimonials/{testimonial_id}
+ POST
+ api/v1/notifications
Example: application/json
testimonial_id
+ message
string
+ name="message" data-endpoint="POSTapi-v1-notifications"
+ value="n"
+ data-component="body">
The ID of the testimonial. Example: accusantium
Must not be greater than 500 characters. Example: n
- +
Example request:
curl --request GET \
- --get "http://localhost/api/v1/jobs" \
+ --get "http://localhost/api/v1/notifications" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
- "http://localhost/api/v1/jobs"
+ "http://localhost/api/v1/notifications"
);
const headers = {
@@ -4517,7 +19591,7 @@
-
+
Example response (401):
@@ -4527,51 +19601,55 @@
cache-control: no-cache, private
content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 29
access-control-allow-origin: *
{
- "message": "Unauthenticated."
+ "status": "Unauthorized",
+ "message": "User not authenticated",
+ "status_code": 401
}
-
+
Received response:
+ id="execution-response-status-GETapi-v1-notifications">
:
-
-
+
Request failed with error:
-
+
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
-
+ onsubmit="event.preventDefault(); executeTryOut('GETapi-v1-notifications', this);">
Request
GET
- api/v1/jobs
+ api/v1/notifications
Headers
@@ -4587,7 +19665,7 @@
@@ -4598,7 +19676,7 @@
diff --git a/routes/api.php b/routes/api.php
index 337cfdc4..abf7f32e 100755
--- a/routes/api.php
+++ b/routes/api.php
@@ -3,46 +3,48 @@
use App\Http\Controllers\Api\V1\Admin\BlogController;
use App\Http\Controllers\Api\V1\Admin\CustomerController;
use App\Http\Controllers\Api\V1\Admin\EmailTemplateController;
+use App\Http\Controllers\Api\V1\Admin\FaqController;
use App\Http\Controllers\Api\V1\Admin\Plan\FeatureController;
use App\Http\Controllers\Api\V1\Admin\Plan\SubscriptionController;
-use App\Http\Controllers\Api\V1\PaymentController;
-use App\Http\Controllers\Api\V1\Admin\FaqController;
-use App\Http\Controllers\NotificationSettingController;
-use App\Http\Controllers\UserNotificationController;
-use Illuminate\Support\Facades\Route;
-use App\Http\Controllers\Api\V1\JobController;
-use App\Http\Controllers\Api\V1\RoleController;
use App\Http\Controllers\Api\V1\ArticleController;
use App\Http\Controllers\Api\V1\Auth\AuthController;
use App\Http\Controllers\Api\V1\Auth\ForgetPasswordRequestController;
+use App\Http\Controllers\Api\V1\Auth\ForgotResetPasswordController;
use App\Http\Controllers\Api\V1\Auth\LoginController;
use App\Http\Controllers\Api\V1\Auth\ResetUserPasswordController;
use App\Http\Controllers\Api\V1\Auth\SocialAuthController;
-use App\Http\Controllers\Api\V1\Auth\ForgotResetPasswordController;
use App\Http\Controllers\Api\V1\BlogSearchController;
use App\Http\Controllers\Api\V1\CategoryController;
+use App\Http\Controllers\Api\V1\CommentController;
use App\Http\Controllers\Api\V1\ContactController;
+use App\Http\Controllers\Api\V1\CookiePreferencesController;
use App\Http\Controllers\Api\V1\HelpArticleController;
+use App\Http\Controllers\Api\V1\JobController;
+use App\Http\Controllers\Api\V1\JobSearchController;
use App\Http\Controllers\Api\V1\NotificationPreferenceController;
use App\Http\Controllers\Api\V1\Organisation\OrganisationController;
-use App\Http\Controllers\Api\V1\CommentController;
use App\Http\Controllers\Api\V1\Organisation\OrganizationMemberController;
+use App\Http\Controllers\Api\V1\PaymentController;
use App\Http\Controllers\Api\V1\PreferenceController;
use App\Http\Controllers\Api\V1\ProductController;
+use App\Http\Controllers\Api\V1\RoleController;
use App\Http\Controllers\Api\V1\SqueezeController;
-use App\Http\Controllers\Api\V1\User\UserController;
+use App\Http\Controllers\Api\V1\SqueezePageCoontroller;
+use App\Http\Controllers\Api\V1\SuperAdmin\SuperAdminProductController;
+use App\Http\Controllers\Api\V1\Testimonial\TestimonialController;
+use App\Http\Controllers\Api\V1\TimezoneController;
use App\Http\Controllers\Api\V1\User\AccountController;
-use App\Http\Controllers\InvitationAcceptanceController;
+use App\Http\Controllers\Api\V1\User\DashboardController;
use App\Http\Controllers\Api\V1\User\ExportUserController;
-
-
-use App\Http\Controllers\Api\V1\Testimonial\TestimonialController;
-use App\Http\Controllers\BillingPlanController;
use App\Http\Controllers\Api\V1\User\ProfileController;
-use App\Http\Controllers\Api\V1\JobSearchController;
+use App\Http\Controllers\Api\V1\User\UserController;
use App\Http\Controllers\Api\V1\WaitListController;
-use App\Http\Controllers\Api\V1\CookiePreferencesController;
-
+use App\Http\Controllers\BillingPlanController;
+use App\Http\Controllers\InvitationAcceptanceController;
+use App\Http\Controllers\NotificationSettingController;
+use App\Http\Controllers\QuestController;
+use App\Http\Controllers\UserNotificationController;
+use Illuminate\Support\Facades\Route;
/*
@@ -57,7 +59,7 @@
*/
Route::prefix('v1')->group(function () {
- Route::post('/', function (Request $request) {
+ Route::post('/', function () {
// dd($request);
return 'language Learning Ai Game';
});
@@ -101,7 +103,7 @@
Route::post('/organizations/{org_id}/products', [ProductController::class, 'store']);
Route::patch('/organizations/{org_id}/products/{product_id}', [ProductController::class, 'update']);
- Route::delete('/products/{productId}', [ProductController::class, 'destroy']);
+ Route::delete('/organizations/{org_id}/products/{product_id}', [ProductController::class, 'destroy']);
});
//comment
@@ -129,7 +131,6 @@
Route::get('/cookies/preferences', [CookiePreferencesController::class, 'getPreferences']);
-
// Help Articles
Route::post('/help-center/topics', [HelpArticleController::class, 'store']);
Route::patch('/help-center/topics/{articleId}', [HelpArticleController::class, 'update']);
@@ -137,6 +138,11 @@
Route::get('/help-center/topics', [HelpArticleController::class, 'getArticles']);
Route::get('/help-center/topics/search', [HelpArticleController::class, 'search']);
+ //Super Admin Add Products
+ Route::middleware(['auth:api', 'admin'])->group(function () {
+ Route::post('/products', [SuperAdminProductController::class, 'store']);
+ });
+
Route::middleware(['auth:api', 'admin'])->group(function () {
Route::get('/email-templates', [EmailTemplateController::class, 'index']);
Route::post('/email-templates', [EmailTemplateController::class, 'store']);
@@ -156,9 +162,9 @@
Route::apiResource('/features', FeatureController::class);
Route::apiResource('/plans', SubscriptionController::class);
Route::post('/payments/paystack', [PaymentController::class, 'initiatePaymentForPayStack']);
- Route::get('/payments/paystack/verify/{id}', [PaymentController::class, 'handlePaystackCallback']);
+ Route::get('/payments/paystack/{organisation_id}/verify/{id}', [PaymentController::class, 'handlePaystackCallback']);
Route::post('/payments/flutterwave', [PaymentController::class, 'initiatePaymentForFlutterWave']);
- Route::get('/payments/flutterwave/verify/{id}', [PaymentController::class, 'handleFlutterwaveCallback']);
+ Route::get('/payments/flutterwave/{organisation_id}/verify/{id}', [PaymentController::class, 'handleFlutterwaveCallback']);
Route::get('/payments/cancel', [PaymentController::class, 'cancel'])->name('payment.cancel');
Route::post('/users/plans/{user_subscription}/cancel', [\App\Http\Controllers\Api\V1\User\SubscriptionController::class, 'destroy']);
Route::get('/users/plan', [\App\Http\Controllers\Api\V1\User\SubscriptionController::class, 'userPlan']);
@@ -207,6 +213,14 @@
Route::patch('/profile', [ProfileController::class, 'update']);
Route::post('/profile/upload-image', [ProfileController::class, 'uploadImage']);
+
+ //Timezone Settings
+ Route::post('/timezones', [ProfileController::class, 'storeTimezones']);
+ Route::get('/timezones', [ProfileController::class, 'getAllTimezones']);
+ Route::put('/timezones/{id}', [ProfileController::class, 'updateTimezones']);
+
+
+
Route::get('/notification-settings', [NotificationSettingController::class, 'show']);
Route::patch('/notification-settings', [NotificationSettingController::class, 'update']);
});
@@ -220,13 +234,9 @@
Route::patch('/blogs/edit/{id}', [BlogController::class, 'update'])->name('admin.blogs.update');
Route::delete('/blogs/{id}', [BlogController::class, 'destroy']);
Route::get('/waitlists', [WaitListController::class, 'index']);
+ Route::apiResource('squeeze-pages', SqueezePageCoontroller::class);
});
-
-
-
-
-
Route::post('/waitlists', [WaitListController::class, 'store']);
Route::apiResource('faqs', FaqController::class);
@@ -239,6 +249,8 @@
Route::put('/user/preferences/{id}', [PreferenceController::class, 'update']);
Route::get('/user/preferences', [PreferenceController::class, 'index']);
Route::delete('/user/preferences/{id}', [PreferenceController::class, 'delete']);
+ Route::get('/user-statistics', [DashboardController::class, 'index']);
+
});
// Notification settings
@@ -254,4 +266,11 @@
Route::delete('/notifications', [UserNotificationController::class, 'destroy']);
Route::post('/notifications', [UserNotificationController::class, 'create'])->middleware('auth.jwt');
Route::get('/notifications', [UserNotificationController::class, 'getByUser'])->middleware('auth.jwt');
+ //Timezone
+ Route::get('/timezones', [TimezoneController::class, 'index']);
+
+
+
+ // quest
+ Route::get('/quests/{id}/messages', [QuestController::class, 'getQuestMessages']);
});
diff --git a/tests/Feature/ProductControllerTest.php b/tests/Feature/ProductControllerTest.php
index 6b5e4ff7..d3bc6297 100755
--- a/tests/Feature/ProductControllerTest.php
+++ b/tests/Feature/ProductControllerTest.php
@@ -27,10 +27,10 @@ protected function setUp(): void
$response->assertStatus(201);
- $this->accessToken = $response->json('data.accessToken');
+ $this->accessToken = $response->json('access_token');
}
-
+
public function testUserLogin()
{
diff --git a/tests/Feature/ProductDeletionTest.php b/tests/Feature/ProductDeletionTest.php
deleted file mode 100755
index 0bb3c05c..00000000
--- a/tests/Feature/ProductDeletionTest.php
+++ /dev/null
@@ -1,114 +0,0 @@
-create();
-
- // Attempt to delete the product without authentication
- $response = $this->deleteJson('/api/v1/products/' . $product->product_id);
-
- // Ensure the response status is 401 Unauthorized
- $response->assertStatus(401);
- $response->assertJson([
- 'message' => 'Unauthenticated.',
- ]);
- }
-
- /**
- * Test that authenticated user can delete a product.
- */
- public function test_authenticated_user_can_delete_product()
- {
- // Register a user
- $user = [
- 'name' => 'Test User',
- 'email' => 'testuser@example.com',
- 'password' => 'Ed8M7s*)?e:hTb^#&;C! 'Ed8M7s*)?e:hTb^#&;C! 'Test',
- 'last_name' => 'User',
- ];
-
- $response = $this->postJson('/api/v1/auth/register', $user);
-
- // Ensure registration was successful
- $response->assertStatus(201);
-
- // Retrieve the JWT token from the registration response
- $token = $response->json('access_token');
-
- $this->assertNotEmpty($token);
-
- // Create a product as the authenticated user
- $product = \App\Models\Product::factory()->create();
-
- // Attempt to delete the product as the authenticated user
- Log::info($product);
- $deleteProduct = $this->deleteJson('/api/v1/products/' . $product->product_id, [], [
- 'Authorization' => "Bearer $token"
- ]);
-
- // Ensure the response status is 200 OK
- $deleteProduct->assertStatus(200);
- $deleteProduct->assertJson([
- 'message' => 'Product deleted successfully.'
- ]);
-
- // Ensure the product was deleted from the database
- $this->assertDatabaseMissing('products', [
- 'product_id' => $product->product_id
- ]);
- }
-
- /**
- * Test that authenticated user cannot delete a non-existent product.
- */
- public function test_authenticated_user_cannot_delete_non_existent_product()
- {
- // Register a user
- $user = [
- 'name' => 'Test User',
- 'email' => 'testuser@example.com',
- 'password' => 'Ed8M7s*)?e:hTb^#&;C! 'Ed8M7s*)?e:hTb^#&;C! 'Test',
- 'last_name' => 'User',
- ];
-
- $response = $this->postJson('/api/v1/auth/register', $user);
-
- // Ensure registration was successful
- $response->assertStatus(201);
-
- // Retrieve the JWT token from the registration response
- $token = $response->json('access_token');
-
- $this->assertNotEmpty($token);
-
- // Attempt to delete a non-existent product as the authenticated user
- $deleteProduct = $this->deleteJson('/api/v1/products/9c983281-e897-4130-ac90-611cedd3b3b1', [], [
- 'Authorization' => "Bearer $token"
- ]);
-
- // Ensure the response status is 404 Not Found
- $deleteProduct->assertStatus(404);
- $deleteProduct->assertJson([
- 'error' => 'Product not found',
- 'message' => 'The product with ID 9c983281-e897-4130-ac90-611cedd3b3b1 does not exist.'
- ]);
- }
-}
diff --git a/tests/Feature/ProductTest.php b/tests/Feature/ProductTest.php
index 2415da38..01b49051 100755
--- a/tests/Feature/ProductTest.php
+++ b/tests/Feature/ProductTest.php
@@ -10,7 +10,7 @@ class ProductTest extends TestCase
{
use RefreshDatabase;
-
+
/**
* Test that authenticated user can retrieve products with pagination.
@@ -108,5 +108,5 @@ public function test_authenticated_user_receives_bad_request_for_invalid_paginat
]);
}
-
+
}
diff --git a/tests/Feature/SqueezePagesTest.php b/tests/Feature/SqueezePagesTest.php
new file mode 100644
index 00000000..9b778e69
--- /dev/null
+++ b/tests/Feature/SqueezePagesTest.php
@@ -0,0 +1,55 @@
+adminUser = User::factory()->create(['role' => 'admin']);
+ $this->adminToken = JWTAuth::fromUser($this->adminUser);
+ }
+
+
+ public function test_it_retrieves_squeeze_pages_successfully()
+ {
+ $response = $this->withHeaders(['Authorization' => "Bearer $this->adminToken"])
+ ->getJson('/api/v1/squeeze-pages');
+
+ $response->assertStatus(200)
+ ->assertJsonStructure([
+ 'status',
+ 'message',
+ 'data' => [
+ '*' => [
+ 'id',
+ 'title',
+ 'slug',
+ 'created_at',
+ 'status',
+ 'activate',
+ ]
+ ]
+ ]);
+ }
+
+ public function test_if_it_fails_for_unathorised_access_to_squeeze_pages()
+ {
+
+ $response = $this->getJson('/api/v1/squeeze-pages');
+ $response->assertStatus(401);
+ }
+}
diff --git a/tests/Feature/SuperAdminProductControllerTest.php b/tests/Feature/SuperAdminProductControllerTest.php
new file mode 100644
index 00000000..b2cdb4ed
--- /dev/null
+++ b/tests/Feature/SuperAdminProductControllerTest.php
@@ -0,0 +1,74 @@
+artisan('migrate:fresh --seed');
+
+ $loginResponse = $this->postJson('/api/v1/auth/login', [
+ 'email' => 'bulldozeradmin@hng.com',
+ 'password' => 'bulldozer',
+ ]);
+
+ $loginResponse->assertStatus(200);
+ $loginResponse->assertJsonStructure([
+ 'status_code',
+ 'message',
+ 'access_token',
+ 'data' => [
+ 'user' => [
+ 'id',
+ 'email',
+ 'role',
+ ],
+ ],
+ ]);
+
+ $accessToken = $loginResponse->json('access_token');
+ $userId = $loginResponse->json('data.user.id');
+
+ $validOrgId = Product::first()->org_id;
+
+ $productResponse = $this->withHeaders([
+ 'Authorization' => 'Bearer ' . $accessToken,
+ ])->postJson('/api/v1/products', [
+ 'name' => 'okoz',
+ 'description' => 'boy',
+ 'price' => 10,
+ 'status' => 'active',
+ 'slug' => 'jkdffjk',
+ 'tags' => 'gk;fk',
+ 'quantity' => '5',
+ 'org_id' => $validOrgId,
+ ]);
+
+ $productResponse->assertStatus(201);
+ $productResponse->assertJson([
+ 'success' => true,
+ 'status_code' => 201,
+ 'message' => 'Product created successfully',
+ 'data' => [
+ 'name' => 'okoz',
+ 'description' => 'boy',
+ 'price' => 10,
+ 'status' => 'active',
+ 'slug' => 'jkdffjk',
+ 'tags' => 'gk;fk',
+ 'quantity' => '5',
+ 'org_id' => $validOrgId,
+ 'is_archived' => false,
+ 'imageUrl' => null,
+ 'user_id' => $userId,
+ ],
+ ]);
+ }
+}
diff --git a/tests/Feature/TimezoneTest.php b/tests/Feature/TimezoneTest.php
new file mode 100644
index 00000000..033cca59
--- /dev/null
+++ b/tests/Feature/TimezoneTest.php
@@ -0,0 +1,161 @@
+create();
+ $this->actingAs($user);
+
+ $timezoneData = [
+ 'timezone' => 'America/New_York',
+ 'gmtoffset' => '-05:00',
+ 'description' => 'Eastern Standard Time',
+ ];
+
+ $response = $this->postJson('/api/v1/timezones', $timezoneData);
+
+ $response->assertStatus(201)
+ ->assertJson([
+ 'id' => true,
+ 'timezone' => 'America/New_York',
+ 'gmtoffset' => '-05:00',
+ 'description' => 'Eastern Standard Time',
+ ]);
+
+ $this->assertDatabaseHas('timezones', $timezoneData);
+
+ $this->assertDatabaseHas('preferences', [
+ 'user_id' => $user->id,
+ 'timezone_id' => $response->json('id'),
+ 'name' => 'America/New_York', // Corrected value
+ 'value' => 'America/New_York' // Corrected value
+ ]);
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ public function test_it_returns_error_when_timezone_already_exists()
+ {
+ // Create and authenticate a user
+ $user = \App\Models\User::factory()->create();
+ $this->actingAs($user);
+
+ // Create a timezone
+ $response = $this->postJson('/api/v1/timezones', [
+ 'timezone' => 'America/New_York',
+ 'gmtoffset' => '-05:00',
+ 'description' => 'Eastern Standard Time',
+ ]);
+
+ $response->assertStatus(201);
+
+
+ $response = $this->postJson('/api/v1/timezones', [
+ 'timezone' => 'America/New_York',
+ 'gmtoffset' => '-05:00',
+ 'description' => 'Eastern Standard Time',
+ ]);
+
+ $response->assertStatus(409)
+ ->assertJson([
+ 'Status' => 409,
+ 'Message' => 'Timezone already exists',
+ ]);
+ }
+
+
+
+
+
+
+
+
+
+
+ public function test_it_can_get_all_timezones()
+{
+
+ $this->postJson('/api/v1/timezones', [
+ 'timezone' => 'America/New_York',
+ 'gmtoffset' => '-05:00',
+ 'description' => 'Eastern Standard Time',
+ ]);
+
+ $response = $this->getJson('/api/v1/timezones');
+
+ $response->assertStatus(200)
+ ->assertJson([
+ 'status' => 'success',
+ 'message' => 'Timezones retrieved successfully',
+ ]);
+}
+
+
+
+
+
+ public function test_it_can_update_an_existing_timezone()
+ {
+ // Create and authenticate a user
+ $user = \App\Models\User::factory()->create();
+ $this->actingAs($user);
+
+ // Create a timezone first
+ $timezone = Timezone::create([
+ 'timezone' => 'America/New_York',
+ 'gmtoffset' => '-05:00',
+ 'description' => 'Eastern Standard Time',
+ ]);
+
+ // Update the timezone
+ $response = $this->putJson("/api/v1/timezones/{$timezone->id}", [
+ 'timezone' => 'America/Chicago',
+ 'gmtoffset' => '-06:00',
+ 'description' => 'Central Standard Time',
+ ]);
+
+
+ $response->assertStatus(200)
+ ->assertJson([
+ 'timezone' => 'America/Chicago',
+ 'gmtoffset' => '-06:00',
+ 'description' => 'Central Standard Time',
+ 'id' => $timezone->id,
+ ]);
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+}
diff --git a/tests/Unit/ProductDeleteTest.php b/tests/Unit/ProductDeleteTest.php
new file mode 100644
index 00000000..245e46d9
--- /dev/null
+++ b/tests/Unit/ProductDeleteTest.php
@@ -0,0 +1,110 @@
+user = User::factory()->create();
+ $this->otherUser = User::factory()->create();
+
+ // Create organizations
+ $this->org = Organisation::create([
+ 'name' => 'Bamo',
+ 'description' => 'Bamo\'s Organisation',
+ 'email' => 'bamo8@gmail.com',
+ 'industry' => 'Tech',
+ 'type' => 'fulltime',
+ 'country' => 'Nigeria',
+ 'address' => 'Tanke, Ilorin',
+ 'state' => 'Kwara',
+ 'user_id' => $this->user->id,
+
+ ]);
+
+ $this->otherOrg = Organisation::create([
+ 'name' => 'Other Org',
+ 'description' => 'Another organization',
+ 'email' => 'other@example.com',
+ 'industry' => 'Finance',
+ 'type' => 'parttime',
+ 'country' => 'Nigeria',
+ 'address' => 'Other address',
+ 'state' => 'Lagos',
+ 'user_id' => $this->otherUser->id,
+
+ ]);
+ // Assign users as owners of the organizations
+ $this->org->users()->attach($this->user->id);
+ $this->otherOrg->users()->attach($this->otherUser->id);
+
+ $this->product = Product::create([
+ 'name' => 'Test',
+ 'description' => 'Testing',
+ 'slug' => Carbon::now(),
+ 'category' => 'food',
+ 'tags' => 'Food',
+ 'price' => 100,
+ 'imageUrl' => 'https://via.placeholder.com/640x480.png/0099ff?text=fuga',
+ 'org_id' => $this->org->org_id,
+ 'user_id' => $this->user->id,
+ 'status' => 'active',
+ 'quantity' => 80
+ ]);
+ }
+ /**
+ * @test
+ */
+ public function testUserCanDeleteProduct()
+ {
+
+ $token = JWTAuth::fromUser($this->user);
+ $response = $this->withHeaders(['Authorization' => "Bearer $token"])
+ ->deleteJson("api/v1/organizations/{$this->org->org_id}/products/{$this->product->product_id}");
+
+
+ $response->assertStatus(204);
+ $this->assertDatabaseMissing('products', ['product_id' => $this->product->product_id]);
+ }
+ /**
+ * @test
+ */
+ public function testUserCannotDeleteProductIfNotOwner()
+ {
+
+ $token = JWTAuth::fromUser($this->otherUser);
+ $response = $this->withHeaders(['Authorization' => "Bearer $token"])
+ ->deleteJson("api/v1/organizations/{$this->org->org_id}/products/{$this->product->product_id}");
+
+ $response->assertStatus(403);
+ $response->assertJson([
+ 'status' => 'Forbidden',
+ 'message' => 'You do not have permission to delete a product from this organization.',
+ 'status_code' => 403
+ ]);
+ }
+}
diff --git a/tests/Unit/RegistrationTest.php b/tests/Unit/RegistrationTest.php
index 60b6a4ad..a71deac7 100755
--- a/tests/Unit/RegistrationTest.php
+++ b/tests/Unit/RegistrationTest.php
@@ -10,6 +10,7 @@
use Illuminate\Support\Str;
use Illuminate\Http\Response;
use Mockery;
+use Illuminate\Support\Facades\DB;
class RegistrationTest extends TestCase
{
@@ -26,6 +27,7 @@ public function test_registration_returns_jwt_token()
'email' => 'testuser@gmail.com',
'password' => 'Ed8M7s*)?e:hTb^#&;C! 'Ed8M7s*)?e:hTb^#&;C! '',
];
$response = $this->postJson('/api/v1/auth/register', $registrationData);
@@ -35,23 +37,27 @@ public function test_registration_returns_jwt_token()
// Check the response structure
$response->assertJsonStructure([
- 'status_code',
+ 'status',
'message',
'access_token',
'data' => [
'user' => [
+ 'id',
+ 'first_name',
+ 'last_name',
'id',
'first_name',
'last_name',
'email',
'avatar_url',
- 'role',
+ 'role'
]
]
]);
// Optionally, decode and verify the token
$token = $response->json('access_token');
+ $token = $response->json('access_token');
$this->assertNotEmpty($token);
}
@@ -59,7 +65,6 @@ public function test_fails_if_email_is_not_passed()
{
$registrationData = [
'name' => 'Test User',
- 'email' => '',
'password' => 'Ed8M7s*)?e:hTb^#&;C! 'Ed8M7s*)?e:hTb^#&;C! 'Test',
@@ -67,6 +72,7 @@ public function test_fails_if_email_is_not_passed()
];
$response = $this->postJson('/api/v1/auth/register', $registrationData);
+
// Check the status code
$response->assertStatus(400);
$response->assertJson([
@@ -145,7 +151,7 @@ public function google_login_creates_or_updates_user_and_profile_with_post()
]);
$response->assertStatus(Response::HTTP_OK);
-
+
// Verify user in the database
$user = User::where('email', $googleUser['email'])->first();
$this->assertNotNull($user);
@@ -247,7 +253,7 @@ public function facebook_login_creates_or_updates_user_and_profile_with_post()
]);
$response->assertStatus(Response::HTTP_OK);
-
+
// Verify user in the database
$user = User::where('email', $facebookUser['email'])->first();
$this->assertNotNull($user);
diff --git a/timezone b/timezone
new file mode 100644
index 00000000..e69de29b