This API is not authenticated.
const url = new URL(
"http://xideaservice.loc/api/delivery_application/add"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/delivery_application/change_step"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"app_id": 1,
"change_step": "in_progress",
"comment": "...comment",
"params": []
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/delivery_application/rollback"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"app_id": 1,
"comment": "...comment"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
Delivery ID.
const url = new URL(
"http://xideaservice.loc/api/delivery_application/get/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/delivery_application/list"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page": 1,
"per_page": 10,
"order_by": "id",
"order_direction": "asc",
"step": [
"new"
],
"status_time": [
1
],
"order_date_start": "2020-01-01",
"order_date_end": "2020-02-15",
"drivers": [
1
],
"branch": [
1
],
"branch_sale": [
2
],
"online": 1
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/fcm/add"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"fcm_token": "abcdef123456",
"auth_token": "abcdef001122"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/fcm/delete"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"auth_token": "abcdef001122"
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/branch/update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 1,
"name": "Yakkasaroy",
"address": "Yakkasaroy Qushbegi",
"region_id": 1
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
ID
const url = new URL(
"http://xideaservice.loc/api/branch/get/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/branch/list"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page": 1,
"per_page": 10,
"order_by": "id",
"order_direction": "asc",
"status": 1,
"name": "Yakk...",
"region_id": 1
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/car/add"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"number": "01A777AA",
"model": "Dodge Challenger"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/car/update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 1,
"number": "01A777AA",
"model": "Dodge Challenger"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/car/set_status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 1,
"status": 1
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
Mashina ID.
const url = new URL(
"http://xideaservice.loc/api/car/get/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/car/list"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page": 1,
"per_page": 10,
"order_by": "id",
"order_direction": "asc",
"status": 1,
"number": "..77..",
"model": "..BMW..",
"query": "..q.."
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/car/save_users"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"car_id": 1,
"users": [
1
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
nullable Qadam turi.
const url = new URL(
"http://xideaservice.loc/api/step_option/delivery"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/step_option/update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 1,
"options": []
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/role/add"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"clone_with": 2,
"users": [
13
],
"key": "admin",
"title": "Администратор",
"color": "#ff1122"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/role/update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 2,
"users": [
5
],
"key": "admin",
"title": "Администратор",
"color": "#ff1122"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
ID
const url = new URL(
"http://xideaservice.loc/api/role/get/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
nullable 0-aktivlarni, 1-o'chirilganini olish
const url = new URL(
"http://xideaservice.loc/api/role/list/0"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
ID
const url = new URL(
"http://xideaservice.loc/api/role/delete/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
ID
const url = new URL(
"http://xideaservice.loc/api/role/recovery/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
Rol ID
nullable children bilan olish
const url = new URL(
"http://xideaservice.loc/api/role_perms/get_by_role/1/0"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
Ruxsatnoma ID
const url = new URL(
"http://xideaservice.loc/api/role_perms/get_by_permission/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
const url = new URL(
"http://xideaservice.loc/api/role_perms/save"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"update_with": "role",
"id": 1,
"allows": [
{
"role_id": "1",
"permission_id": "1",
"value": "1"
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
nullable Foydalanuvchi ID
const url = new URL(
"http://xideaservice.loc/api/role_perms/user_roles/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/permission/add"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"key": "my Group 2",
"parent_id": 1,
"is_parent": 1,
"title": "Мой право",
"type": "list",
"options": [
0,
"own",
"all"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
const url = new URL(
"http://xideaservice.loc/api/permission/update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 1,
"key": "my Group 2",
"parent_id": 1,
"is_parent": 1,
"title": "Мой право",
"type": "list",
"options": [
0,
"own",
"all"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
The ID of the get.
const url = new URL(
"http://xideaservice.loc/api/permission/get/5"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
nullable Ro'yxat turi: 0(yuborilmasa) - hammasi, 1 - children bilan, 2 - faqat parentlar
const url = new URL(
"http://xideaservice.loc/api/permission/list/0"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
ID
const url = new URL(
"http://xideaservice.loc/api/permission/delete/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
const url = new URL(
"http://xideaservice.loc/api/time_config/create"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"time": 96
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/time_config/set_active"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 1
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/time_config/list"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/region/list"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/auth/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone": "998001002030",
"password": "123456"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 60
x-ratelimit-remaining
: 59
access-control-allow-origin
: *
{
"errors": [
{
"message": "Номер пользователя или пароль неверны!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/auth/refresh_token"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"refresh_token": "def5020001c87e946a497c063ae8d75ceb8173b749d10442db3feb4ccd42082f1c9de821f7859d7a50f7c0..."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 60
x-ratelimit-remaining
: 58
access-control-allow-origin
: *
{
"errors": [
{
"message": "Client error: `POST http://xideaservice.loc/oauth/token` resulted in a `401 Unauthorized` response:\n{\"error\":\"invalid_request\",\"error_description\":\"The refresh token is invalid.\",\"hint\":\"Cannot decrypt the refresh token\" (truncated...)\n [BadResponseException]"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/auth/logout"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/auth/user"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/user/add"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Jhon",
"phone": 998001002030,
"password": "123456",
"role_key": "guest",
"branch_id": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/user/update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 1,
"name": "Jhon",
"phone": 998001002030,
"password": "123456",
"role_key": "admin",
"branch_id": 1
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
ID.
const url = new URL(
"http://xideaservice.loc/api/user/get/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/user/list"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page": 1,
"per_page": 10,
"order_by": "id",
"order_direction": "asc",
"status": 1,
"query": "Jho...",
"name": "Jho...",
"phone": "...123...",
"role_key": "guest",
"is_admin": 1,
"branch_id": 1
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/user/save_cars"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 1,
"cars": [
1
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"errors": [
{
"message": "Войдите, чтобы использовать систему!"
}
]
}
const url = new URL(
"http://xideaservice.loc/api/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());
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 60
x-ratelimit-remaining
: 57
access-control-allow-origin
: *
{
"hash_name": "Tnp9nyPc7VOHykyxwZfU5tkhzCLoURldx7DrjgLc.jpg",
"name": "test.jpg",
"mime_type": "image/jpeg",
"type": 1,
"size": 5120,
"path": "/var/www/idea-service-back/storage/app/public/temp/Tnp9nyPc7VOHykyxwZfU5tkhzCLoURldx7DrjgLc.jpg",
"url": "/storage/temp/Tnp9nyPc7VOHykyxwZfU5tkhzCLoURldx7DrjgLc.jpg",
"status": 0,
"updated_at": "2023-05-23 16:24:45",
"created_at": "2023-05-23 16:24:45",
"id": 2
}
const url = new URL(
"http://xideaservice.loc/api/upload/video"
);
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());
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 60
x-ratelimit-remaining
: 56
access-control-allow-origin
: *
{
"errors": [
{
"message": "file должен быть файлом типа: video/x-flv, video/mp4, application/x-mpegURL, video/MP2T, video/3gpp, video/quicktime, video/x-msvideo, video/x-ms-wmv. (file)",
"key": "file"
}
]
}