Introduction
This documentation aims to provide all the information you need to work with our API.
<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>
Authenticating requests
This API is not authenticated.
Endpoints
GET api/profile
Example request:
curl --request GET \
--get "http://localhost:8000/api/profile" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/profile"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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.
Handle an incoming registration request.
Example request:
curl --request POST \
"http://localhost:8000/api/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"email\": \"kunde.eloisa@example.com\",
\"role\": \"consequatur\",
\"password\": \"consequatur\"
}"
const url = new URL(
"http://localhost:8000/api/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"email": "kunde.eloisa@example.com",
"role": "consequatur",
"password": "consequatur"
};
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 an incoming authentication request.
Example request:
curl --request POST \
"http://localhost:8000/api/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"qkunze@example.com\",
\"password\": \"O[2UZ5ij-e\\/dl4m{o,\"
}"
const url = new URL(
"http://localhost:8000/api/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "qkunze@example.com",
"password": "O[2UZ5ij-e\/dl4m{o,"
};
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 an incoming password reset link request.
Example request:
curl --request POST \
"http://localhost:8000/api/forgot-password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"qkunze@example.com\"
}"
const url = new URL(
"http://localhost:8000/api/forgot-password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "qkunze@example.com"
};
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 an incoming new password request.
Example request:
curl --request POST \
"http://localhost:8000/api/reset-password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"token\": \"consequatur\",
\"email\": \"carolyne.luettgen@example.org\",
\"password\": \"consequatur\"
}"
const url = new URL(
"http://localhost:8000/api/reset-password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"token": "consequatur",
"email": "carolyne.luettgen@example.org",
"password": "consequatur"
};
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.
Mark the authenticated user's email address as verified.
Example request:
curl --request GET \
--get "http://localhost:8000/api/verify-email/consequatur/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/verify-email/consequatur/consequatur"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 6
x-ratelimit-remaining: 5
access-control-allow-origin: http://localhost:3000
access-control-allow-credentials: true
{
"message": "Invalid signature."
}
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.
Send a new email verification notification.
Example request:
curl --request POST \
"http://localhost:8000/api/email/verification-notification" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/email/verification-notification"
);
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.
Destroy an authenticated session.
Example request:
curl --request POST \
"http://localhost:8000/api/logout" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/logout"
);
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.
GET api/dashboard/customers/search
Example request:
curl --request GET \
--get "http://localhost:8000/api/dashboard/customers/search" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/customers/search"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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/dashboard/customers/filter
Example request:
curl --request GET \
--get "http://localhost:8000/api/dashboard/customers/filter" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/customers/filter"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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/dashboard/customers/{id}/ban
Example request:
curl --request POST \
"http://localhost:8000/api/dashboard/customers/consequatur/ban" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/customers/consequatur/ban"
);
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.
GET api/dashboard/customers
Example request:
curl --request GET \
--get "http://localhost:8000/api/dashboard/customers" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/customers"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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/dashboard/customers
Example request:
curl --request POST \
"http://localhost:8000/api/dashboard/customers" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"email\": \"kunde.eloisa@example.com\",
\"phone\": \"consequatur\",
\"phone_alt\": \"consequatur\",
\"note\": \"consequatur\",
\"address\": \"consequatur\"
}"
const url = new URL(
"http://localhost:8000/api/dashboard/customers"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"email": "kunde.eloisa@example.com",
"phone": "consequatur",
"phone_alt": "consequatur",
"note": "consequatur",
"address": "consequatur"
};
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/dashboard/customers/{id}
Example request:
curl --request GET \
--get "http://localhost:8000/api/dashboard/customers/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/customers/consequatur"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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.
PUT api/dashboard/customers/{id}
Example request:
curl --request PUT \
"http://localhost:8000/api/dashboard/customers/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"phone\": \"vmqeopfuudtds\",
\"address\": \"ufvyvddqamniihfqcoynl\"
}"
const url = new URL(
"http://localhost:8000/api/dashboard/customers/consequatur"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone": "vmqeopfuudtds",
"address": "ufvyvddqamniihfqcoynl"
};
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/dashboard/customers/{id}
Example request:
curl --request DELETE \
"http://localhost:8000/api/dashboard/customers/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/customers/consequatur"
);
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:8000/api/dashboard/category" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/category"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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:8000/api/dashboard/category" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"consequatur\",
\"code\": \"consequatur\"
}"
const url = new URL(
"http://localhost:8000/api/dashboard/category"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "consequatur",
"code": "consequatur"
};
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:8000/api/dashboard/category/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/category/consequatur"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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:8000/api/dashboard/category/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"consequatur\",
\"code\": \"consequatur\"
}"
const url = new URL(
"http://localhost:8000/api/dashboard/category/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "consequatur",
"code": "consequatur"
};
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:8000/api/dashboard/category/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/category/1"
);
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:8000/api/dashboard/repair-order" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/repair-order"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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:8000/api/dashboard/repair-order" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"customer_id\": \"consequatur\",
\"device_id\": \"consequatur\",
\"accessories\": \"consequatur\",
\"complaint\": \"consequatur\",
\"estimated_cost\": 11613.31890586,
\"total\": 11613.31890586,
\"status\": \"diagnosing\"
}"
const url = new URL(
"http://localhost:8000/api/dashboard/repair-order"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"customer_id": "consequatur",
"device_id": "consequatur",
"accessories": "consequatur",
"complaint": "consequatur",
"estimated_cost": 11613.31890586,
"total": 11613.31890586,
"status": "diagnosing"
};
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:8000/api/dashboard/repair-order/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/repair-order/consequatur"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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:8000/api/dashboard/repair-order/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/repair-order/consequatur"
);
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:8000/api/dashboard/repair-order/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/repair-order/consequatur"
);
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/dashboard/repair-order/{repairOrder_id}/item
Example request:
curl --request POST \
"http://localhost:8000/api/dashboard/repair-order/1/item" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"product_id\": \"consequatur\",
\"description\": \"Dolorum amet iste laborum eius est dolor.\",
\"qty\": 12,
\"total\": 66,
\"warranty_days\": 13
}"
const url = new URL(
"http://localhost:8000/api/dashboard/repair-order/1/item"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"product_id": "consequatur",
"description": "Dolorum amet iste laborum eius est dolor.",
"qty": 12,
"total": 66,
"warranty_days": 13
};
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.
DELETE api/dashboard/repair-order/{repairOrder_id}/item/{item_id}
Example request:
curl --request DELETE \
"http://localhost:8000/api/dashboard/repair-order/1/item/4" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/repair-order/1/item/4"
);
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/dashboard/repair-order/{repairOrder_id}/changeStatus
Example request:
curl --request POST \
"http://localhost:8000/api/dashboard/repair-order/1/changeStatus" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"total\": 73,
\"discount\": 45,
\"status\": \"received\"
}"
const url = new URL(
"http://localhost:8000/api/dashboard/repair-order/1/changeStatus"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"total": 73,
"discount": 45,
"status": "received"
};
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.
POST api/dashboard/repair-order/{repairOrder}/addLoss
Example request:
curl --request POST \
"http://localhost:8000/api/dashboard/repair-order/1/addLoss" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"product_id\": \"consequatur\",
\"qty\": 45,
\"note\": \"qeopfuudtdsufvyvddqam\"
}"
const url = new URL(
"http://localhost:8000/api/dashboard/repair-order/1/addLoss"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"product_id": "consequatur",
"qty": 45,
"note": "qeopfuudtdsufvyvddqam"
};
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:8000/api/dashboard/device" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/device"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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:8000/api/dashboard/device" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"model\": \"amniihfqcoynlazghdtqt\",
\"serial_number\": \"qxbajwbpilpmufinllwlo\",
\"imei\": \"auydlsmsjuryv\",
\"imei2\": \"ojcybzvrbyick\",
\"color\": \"znkygloigmkwxphlvazjr\"
}"
const url = new URL(
"http://localhost:8000/api/dashboard/device"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"model": "amniihfqcoynlazghdtqt",
"serial_number": "qxbajwbpilpmufinllwlo",
"imei": "auydlsmsjuryv",
"imei2": "ojcybzvrbyick",
"color": "znkygloigmkwxphlvazjr"
};
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:8000/api/dashboard/device/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/device/consequatur"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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:8000/api/dashboard/device/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"model\": \"amniihfqcoynlazghdtqt\",
\"serial_number\": 16,
\"imei\": 14,
\"imei2\": 2,
\"color\": \"ajwbpilpmufinllwloauy\"
}"
const url = new URL(
"http://localhost:8000/api/dashboard/device/consequatur"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"model": "amniihfqcoynlazghdtqt",
"serial_number": 16,
"imei": 14,
"imei2": 2,
"color": "ajwbpilpmufinllwloauy"
};
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:8000/api/dashboard/device/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/device/1"
);
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:8000/api/dashboard/sell" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/sell"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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:8000/api/dashboard/sell" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"vmqeopfuudtdsufvyvddq\",
\"account_id\": \"consequatur\",
\"customer_id\": \"consequatur\",
\"payment_method\": \"mqeopfuudtdsufvyvddqa\",
\"notes\": \"consequatur\",
\"discount\": 45,
\"items\": [
{
\"product_id\": \"consequatur\",
\"qty\": 45,
\"sell_price\": 56
}
]
}"
const url = new URL(
"http://localhost:8000/api/dashboard/sell"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "vmqeopfuudtdsufvyvddq",
"account_id": "consequatur",
"customer_id": "consequatur",
"payment_method": "mqeopfuudtdsufvyvddqa",
"notes": "consequatur",
"discount": 45,
"items": [
{
"product_id": "consequatur",
"qty": 45,
"sell_price": 56
}
]
};
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/dashboard/sell/{id}
Example request:
curl --request GET \
--get "http://localhost:8000/api/dashboard/sell/17" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/sell/17"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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:8000/api/dashboard/sell/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/sell/consequatur"
);
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:8000/api/dashboard/sell/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/sell/consequatur"
);
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:8000/api/dashboard/purchase" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/purchase"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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:8000/api/dashboard/purchase" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"notes\": \"consequatur\",
\"items\": [
{
\"product_id\": \"consequatur\",
\"qty\": 45,
\"cost_price\": 56
}
]
}"
const url = new URL(
"http://localhost:8000/api/dashboard/purchase"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"notes": "consequatur",
"items": [
{
"product_id": "consequatur",
"qty": 45,
"cost_price": 56
}
]
};
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:8000/api/dashboard/purchase/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/purchase/1"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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:8000/api/dashboard/purchase/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/purchase/1"
);
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:8000/api/dashboard/purchase/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/purchase/1"
);
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:8000/api/dashboard/supplier" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/supplier"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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:8000/api/dashboard/supplier" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"phone\": \"amniihfqcoynlazghdtqt\",
\"email\": \"andreanne00@example.org\",
\"address\": \"wbpilpmufinllwloauydl\",
\"notes\": \"smsjuryvojcybzvrbyick\"
}"
const url = new URL(
"http://localhost:8000/api/dashboard/supplier"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"phone": "amniihfqcoynlazghdtqt",
"email": "andreanne00@example.org",
"address": "wbpilpmufinllwloauydl",
"notes": "smsjuryvojcybzvrbyick"
};
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:8000/api/dashboard/supplier/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/supplier/1"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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:8000/api/dashboard/supplier/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"phone\": \"amniihfqcoynlazghdtqt\",
\"email\": \"andreanne00@example.org\",
\"address\": \"wbpilpmufinllwloauydl\",
\"notes\": \"smsjuryvojcybzvrbyick\"
}"
const url = new URL(
"http://localhost:8000/api/dashboard/supplier/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"phone": "amniihfqcoynlazghdtqt",
"email": "andreanne00@example.org",
"address": "wbpilpmufinllwloauydl",
"notes": "smsjuryvojcybzvrbyick"
};
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:8000/api/dashboard/supplier/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/dashboard/supplier/1"
);
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:8000/api/inventory/product" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/inventory/product"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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:8000/api/inventory/product" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"category_id\": \"consequatur\",
\"sell_price\": 45,
\"avg_cost\": 56,
\"unit\": \"bottle\",
\"track_serial\": true,
\"model\": \"eopfuudtdsufvyvddqamn\",
\"current_qty\": 28
}"
const url = new URL(
"http://localhost:8000/api/inventory/product"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"category_id": "consequatur",
"sell_price": 45,
"avg_cost": 56,
"unit": "bottle",
"track_serial": true,
"model": "eopfuudtdsufvyvddqamn",
"current_qty": 28
};
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:8000/api/inventory/product/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/inventory/product/1"
);
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: http://localhost:3000
access-control-allow-credentials: true
{
"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:8000/api/inventory/product/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/inventory/product/1"
);
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:8000/api/inventory/product/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/inventory/product/1"
);
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.