Introduction
Authenticating requests
This API is not authenticated.
Auth
POST api/login
Example request:
const url = new URL(
"http://localhost:8000/api/login"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "admin@gmail.com",
"password": "ABC$123456"
};
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/logout
Example request:
const url = new URL(
"http://localhost:8000/api/logout"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 198
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/register
Example request:
const url = new URL(
"http://localhost:8000/api/register"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"naziv": "Naziv Firme",
"imePrezime": "John Doe",
"grad": "Krusevac",
"adresa": "Adresa firme bb",
"uloga": 1,
"email": "radnik1@gmail.com",
"password": "ABC$123456"
};
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/changeGeneral
Example request:
const url = new URL(
"http://localhost:8000/api/changeGeneral"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 1,
"naziv": "Naziv Firme",
"imePrezime": "John Doe",
"grad": "Krusevac",
"adresa": "Adresa firme bb",
"email": "user1@gmail.com"
};
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/changePassword
Example request:
const url = new URL(
"http://localhost:8000/api/changePassword"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"password": "ABC$123456"
};
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.
POST api/uploadLogo
Example request:
const url = new URL(
"http://localhost:8000/api/uploadLogo"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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/removeLogo
Example request:
const url = new URL(
"http://localhost:8000/api/removeLogo"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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/user
Example request:
const url = new URL(
"http://localhost:8000/api/user"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 197
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
AvansnaFaktura
PUT api/avansnaFaktura/generateCSV
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/avansnaFaktura/generateCSV"
);
const params = {
"title": "Naziv",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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.
POST api/avansnaFaktura/generatePDF
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/avansnaFaktura/generatePDF"
);
const params = {
"title": "Naziv",
"orientation": "portrait",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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/avansnaFaktura/stats
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/avansnaFaktura/stats"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 153
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/avansnaFaktura/batchUpdate
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/avansnaFaktura/batchUpdate"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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/avansnaFaktura/batchDelete
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/avansnaFaktura/batchDelete"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
PUT api/avansnaFaktura/storniraj/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/avansnaFaktura/storniraj/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
GET api/avansnaFaktura
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/avansnaFaktura"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 152
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/avansnaFaktura
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/avansnaFaktura"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"brojDokumenta": "10\/23",
"datumIzdavanja": "2023-10-25",
"datumDospeca": "2023-11-30",
"saPDV": false,
"status": 0,
"napomena": "Ne radi levi lift",
"isActive": false,
"ponuda_id": 1,
"radni_nalog_id": 1,
"lift_id": 1,
"komitent_id": 1,
"kategorija_id": 1,
"avansna_faktura_stavke": [
{
"avansna_faktura_id": 1,
"roba_id": 1,
"usluga_id": null,
"naziv": "Stavka 1",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 10
},
{
"avansna_faktura_id": 1,
"roba_id": null,
"usluga_id": 1,
"naziv": "Stavka 2",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 20
},
{
"avansna_faktura_id": 1,
"roba_id": 2,
"usluga_id": null,
"naziv": "Stavka 3",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 30
}
]
};
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/avansnaFaktura/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/avansnaFaktura/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 151
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/avansnaFaktura/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/avansnaFaktura/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"brojDokumenta": "10\/23",
"datumIzdavanja": "2023-10-25",
"datumDospeca": "2023-11-30",
"saPDV": false,
"status": 0,
"napomena": "Ne radi levi lift",
"isActive": false,
"ponuda_id": 1,
"radni_nalog_id": 1,
"lift_id": 1,
"komitent_id": 1,
"kategorija_id": 1,
"avansna_faktura_stavke": [
{
"avansna_faktura_id": 1,
"roba_id": 1,
"usluga_id": null,
"naziv": "Stavka 1",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 10
},
{
"avansna_faktura_id": 1,
"roba_id": null,
"usluga_id": 1,
"naziv": "Stavka 2",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 20
},
{
"avansna_faktura_id": 1,
"roba_id": 2,
"usluga_id": null,
"naziv": "Stavka 3",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 30
}
]
};
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/avansnaFaktura/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/avansnaFaktura/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
AvansnaFakturaStavke
GET api/avansnaFakturaStavke
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/avansnaFakturaStavke"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 150
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/avansnaFakturaStavke
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/avansnaFakturaStavke"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"avansna_faktura_id": 1,
"roba_id": 1,
"usluga_id": 1,
"naziv": "Stavka 1",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 10
};
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/avansnaFakturaStavke/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/avansnaFakturaStavke/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 149
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/avansnaFakturaStavke/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/avansnaFakturaStavke/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"avansna_faktura_id": 1,
"roba_id": 1,
"usluga_id": 1,
"naziv": "Stavka 1",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 10
};
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/avansnaFakturaStavke/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/avansnaFakturaStavke/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
Enums
GET api/enums
Example request:
const url = new URL(
"http://localhost:8000/api/enums"
);
fetch(url, {
method: "GET",
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 200
x-ratelimit-remaining: 199
access-control-allow-origin: *
{
"status": true,
"message": "The data has been successfully displayed.",
"data": {
"JedinicaMere": {
"None": 0,
"kom": 1,
"m": 2,
"l": 3
},
"LiftType": {
"None": 0,
"Elektricni": 1,
"Hidraulicni": 2
},
"RadnikType": {
"None": 0,
"Serviser": 1
},
"StatusDokumenta": {
"None": 0,
"Processing": 1,
"Zavrsen": 2,
"Storniran": 3
},
"UpravnikType": {
"None": 0,
"DomaceLice": 1,
"ProfesionalniUpravnik": 2
},
"UserType": {
"None": 0,
"Admin": 1,
"Radnik": 2,
"Komitent": 3,
"Upravnik": 4
},
"UslugaType": {
"None": 0,
"Cena": 1,
"BrojRadnihSati": 2
},
"VrstaLifta": {
"None": 0,
"Putnicki": 1,
"Teretni": 2,
"MaloTeretni": 3
},
"NacinPlacanja": {
"None": 0,
"Virmanski": 1,
"Gotovina": 2,
"Avansno": 3
},
"VrstaFajla": {
"Slika": "slika"
},
"Folder": {
"User": "user",
"Radnik": "radnik"
},
"VelicinaSlike": {
"Mala": "mala",
"Srednja": "srednja",
"Velika": "velika"
},
"RobaUsluga": {
"None": 0,
"Roba": 1,
"Usluga": 2
}
}
}
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.
Kategorija
PUT api/kategorija/generateCSV
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/kategorija/generateCSV"
);
const params = {
"title": "Naziv",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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.
POST api/kategorija/generatePDF
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/kategorija/generatePDF"
);
const params = {
"title": "Naziv",
"orientation": "portrait",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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/kategorija/stats
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/kategorija/stats"
);
const params = {
"searchQuery": "null",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 172
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/kategorija/batchUpdate
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/kategorija/batchUpdate"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3",
"isActive": 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.
POST api/kategorija/batchDelete
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/kategorija/batchDelete"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3"
};
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/kategorija/setDefault/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/kategorija/setDefault/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
GET api/kategorija/getDefault
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/kategorija/getDefault"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 171
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
GET api/kategorija
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/kategorija"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 170
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/kategorija
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/kategorija"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"naziv": "Kategorija 1",
"isNaplativ": false,
"isDefault": false,
"isActive": 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.
GET api/kategorija/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/kategorija/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 169
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/kategorija/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/kategorija/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"naziv": "Kategorija 1",
"isNaplativ": false,
"isDefault": false,
"isActive": false
};
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/kategorija/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/kategorija/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
Komitent
PUT api/komitent/generateCSV
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/komitent/generateCSV"
);
const params = {
"title": "Naziv",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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.
POST api/komitent/generatePDF
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/komitent/generatePDF"
);
const params = {
"title": "Naziv",
"orientation": "portrait",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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/komitent/stats
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/komitent/stats"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 184
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/komitent/batchUpdate
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/komitent/batchUpdate"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3",
"isActive": 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.
POST api/komitent/batchDelete
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/komitent/batchDelete"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3"
};
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/komitent
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/komitent"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 183
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/komitent
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/komitent"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"naziv": "John Doe",
"grad": "Krusevac",
"adresa": "Vidovdanska bb",
"pib": "100123",
"maticniBroj": "456987",
"brojTelefona": "06X\/XXX-XX-XX",
"isPDV": false,
"uloga": 3,
"isActive": false,
"email": "komitent1@gmail.com",
"password": "ABC$123456"
};
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/komitent/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/komitent/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 182
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/komitent/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/komitent/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"naziv": "John Doe",
"grad": "Krusevac",
"adresa": "Vidovdanska bb",
"pib": "100123",
"maticniBroj": "456987",
"brojTelefona": "06X\/XXX-XX-XX",
"isPDV": false,
"uloga": 3,
"isActive": false,
"email": "komitent1@gmail.com",
"password": "ABC$123456"
};
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/komitent/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/komitent/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
Lift
PUT api/lift/generateCSV
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/lift/generateCSV"
);
const params = {
"title": "Naziv",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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.
POST api/lift/generatePDF
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/lift/generatePDF"
);
const params = {
"title": "Naziv",
"orientation": "portrait",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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/lift/stats
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/lift/stats"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 175
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/lift/batchUpdate
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/lift/batchUpdate"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3",
"isActive": 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.
POST api/lift/batchDelete
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/lift/batchDelete"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3"
};
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/lift
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/lift"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 174
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/lift
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/lift"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"naziv": "Lift 1",
"grad": "Krusevac",
"adresa": "Vidovdanska bb",
"sifraProizvodjaca": "ABC-1234",
"tip": 1,
"vrstaLifta": 1,
"nosivost": "250",
"godinaProizvodnje": 2020,
"brojStanica": "10",
"vrstaMasine": "Vrsta 1",
"saKucicom": false,
"isActive": 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.
GET api/lift/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/lift/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 173
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/lift/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/lift/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"naziv": "Lift 1",
"grad": "Krusevac",
"adresa": "Vidovdanska bb",
"sifraProizvodjaca": "ABC-1234",
"tip": 1,
"vrstaLifta": 1,
"nosivost": "250",
"godinaProizvodnje": 2020,
"brojStanica": "10",
"vrstaMasine": "Vrsta 1",
"saKucicom": false,
"isActive": false
};
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/lift/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/lift/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
Marza
PUT api/marza/generateCSV
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/marza/generateCSV"
);
const params = {
"title": "Naziv",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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.
POST api/marza/generatePDF
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/marza/generatePDF"
);
const params = {
"title": "Naziv",
"orientation": "portrait",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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/marza/stats
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/marza/stats"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 193
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/marza/batchUpdate
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/marza/batchUpdate"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3",
"isActive": 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.
POST api/marza/batchDelete
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/marza/batchDelete"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3"
};
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/marza
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/marza"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 192
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/marza
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/marza"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"naziv": "30%",
"vrednost": 30,
"isActive": 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.
GET api/marza/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/marza/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 191
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/marza/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/marza/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"naziv": "30%",
"vrednost": 30,
"isActive": false
};
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/marza/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/marza/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
Ponuda
PUT api/ponuda/generateCSV
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponuda/generateCSV"
);
const params = {
"title": "Naziv",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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.
POST api/ponuda/generatePDF
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponuda/generatePDF"
);
const params = {
"title": "Naziv",
"orientation": "portrait",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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/ponuda/stats
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponuda/stats"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 159
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/ponuda/batchUpdate
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponuda/batchUpdate"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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/ponuda/batchDelete
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponuda/batchDelete"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
PUT api/ponuda/storniraj/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponuda/storniraj/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
GET api/ponuda/roba-usluga-list
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponuda/roba-usluga-list"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 158
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
GET api/ponuda
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponuda"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 157
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/ponuda
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponuda"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"brojDokumenta": "10\/23",
"datumPonude": "2023-10-25",
"rokVazenja": "2023-11-30",
"saPDV": false,
"status": 0,
"napomena": "Ne radi levi lift",
"isActive": false,
"zahtev_za_ponudu_id": 1,
"lift_id": 1,
"komitent_id": 1,
"kategorija_id": 1,
"ponuda_stavke": [
{
"ponuda_id": 1,
"roba_id": 1,
"usluga_id": null,
"naziv": "Stavka 1",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 10
},
{
"ponuda_id": 1,
"roba_id": null,
"usluga_id": 1,
"naziv": "Stavka 2",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 20
},
{
"ponuda_id": 1,
"roba_id": 2,
"usluga_id": null,
"naziv": "Stavka 3",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 30
}
]
};
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/ponuda/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponuda/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 156
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/ponuda/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponuda/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"brojDokumenta": "10\/23",
"datumPonude": "2023-10-25",
"rokVazenja": "2023-11-30",
"saPDV": false,
"status": 0,
"napomena": "Ne radi levi lift",
"isActive": false,
"zahtev_za_ponudu_id": 1,
"lift_id": 1,
"komitent_id": 1,
"kategorija_id": 1,
"ponuda_stavke": [
{
"ponuda_id": 1,
"roba_id": 1,
"usluga_id": null,
"naziv": "Stavka 1",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 10
},
{
"ponuda_id": 1,
"roba_id": null,
"usluga_id": 1,
"naziv": "Stavka 2",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 20
},
{
"ponuda_id": 1,
"roba_id": 2,
"usluga_id": null,
"naziv": "Stavka 3",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 30
}
]
};
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/ponuda/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponuda/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
PonudaStavke
GET api/ponudaStavke
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponudaStavke"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 155
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/ponudaStavke
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponudaStavke"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ponuda_id": 1,
"roba_id": 1,
"usluga_id": 1,
"naziv": "Stavka 1",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 10
};
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/ponudaStavke/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponudaStavke/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 154
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/ponudaStavke/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponudaStavke/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ponuda_id": 1,
"roba_id": 1,
"usluga_id": 1,
"naziv": "Stavka 1",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 10
};
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/ponudaStavke/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ponudaStavke/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
Proizvodjac
PUT api/proizvodjac/generateCSV
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/proizvodjac/generateCSV"
);
const params = {
"title": "Naziv",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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.
POST api/proizvodjac/generatePDF
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/proizvodjac/generatePDF"
);
const params = {
"title": "Naziv",
"orientation": "portrait",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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/proizvodjac/stats
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/proizvodjac/stats"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 190
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/proizvodjac/batchUpdate
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/proizvodjac/batchUpdate"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3",
"isActive": 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.
POST api/proizvodjac/batchDelete
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/proizvodjac/batchDelete"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3"
};
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/proizvodjac
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/proizvodjac"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 189
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/proizvodjac
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/proizvodjac"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"naziv": "Proizvodjac 1",
"isActive": 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.
GET api/proizvodjac/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/proizvodjac/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 188
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/proizvodjac/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/proizvodjac/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"naziv": "Proizvodjac 1",
"isActive": false
};
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/proizvodjac/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/proizvodjac/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
RadniNalog
PUT api/radniNalog/generateCSV
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radniNalog/generateCSV"
);
const params = {
"title": "Naziv",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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.
POST api/radniNalog/generatePDF
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radniNalog/generatePDF"
);
const params = {
"title": "Naziv",
"orientation": "portrait",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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/radniNalog/stats
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radniNalog/stats"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 162
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/radniNalog/batchUpdate
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radniNalog/batchUpdate"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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/radniNalog/batchDelete
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radniNalog/batchDelete"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
PUT api/radniNalog/storniraj/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radniNalog/storniraj/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
GET api/radniNalog
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radniNalog"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 161
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/radniNalog
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radniNalog"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"brojDokumenta": "10\/23",
"status": 0,
"radnici_ids": "1,2",
"brojRadnihSatiPoRadniku": 120,
"cenaRadnogSataIzUgovora": 250,
"napomena": "Ne radi levi lift",
"isActive": false,
"zahtev_za_radni_nalog_id": 1,
"lift_id": 1,
"kategorija_id": 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.
GET api/radniNalog/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radniNalog/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 160
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/radniNalog/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radniNalog/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"brojDokumenta": "10\/23",
"status": 0,
"radnici_ids": "1,2",
"brojRadnihSatiPoRadniku": 120,
"cenaRadnogSataIzUgovora": 250,
"napomena": "Ne radi levi lift",
"isActive": false,
"zahtev_za_radni_nalog_id": 1,
"lift_id": 1,
"kategorija_id": 1
};
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/radniNalog/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radniNalog/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
Radnik
PUT api/radnik/generateCSV
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radnik/generateCSV"
);
const params = {
"title": "Naziv",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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.
POST api/radnik/generatePDF
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radnik/generatePDF"
);
const params = {
"title": "Naziv",
"orientation": "portrait",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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/radnik/stats
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radnik/stats"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 196
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/radnik/changeGeneral/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radnik/changeGeneral/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"imePrezime": "John Doe",
"grad": "Krusevac",
"adresa": "Adresa firme bb",
"email": "user1@gmail.com"
};
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/radnik/changePassword/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radnik/changePassword/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"password": "ABC$123456"
};
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.
POST api/radnik/uploadLogo/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radnik/uploadLogo/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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/radnik/removeLogo/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radnik/removeLogo/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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/radnik/batchUpdate
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radnik/batchUpdate"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3",
"isActive": 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.
POST api/radnik/batchDelete
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radnik/batchDelete"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3"
};
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/radnik
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radnik"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 195
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/radnik
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radnik"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"imePrezime": "John Doe",
"grad": "Krusevac",
"adresa": "Vidovdanska bb",
"brojTelefona": "06X\/XXX-XX-XX",
"uloga": 2,
"tip": 1,
"isActive": false,
"email": "radnik1@gmail.com",
"password": "ABC$123456"
};
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/radnik/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radnik/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 194
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/radnik/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radnik/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"imePrezime": "John Doe",
"grad": "Krusevac",
"adresa": "Vidovdanska bb",
"brojTelefona": "06X\/XXX-XX-XX",
"uloga": 2,
"tip": 1,
"isActive": false,
"email": "radnik1@gmail.com",
"password": "ABC$123456"
};
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/radnik/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/radnik/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
Roba
PUT api/roba/generateCSV
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/roba/generateCSV"
);
const params = {
"title": "Naziv",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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.
POST api/roba/generatePDF
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/roba/generatePDF"
);
const params = {
"title": "Naziv",
"orientation": "portrait",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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/roba/stats
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/roba/stats"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 187
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/roba/batchUpdate
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/roba/batchUpdate"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3",
"isActive": 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.
POST api/roba/batchDelete
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/roba/batchDelete"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3"
};
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/roba
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/roba"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 186
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/roba
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/roba"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"naziv": "Roba 1",
"jedinicaMere": 1,
"cena": 250,
"isActive": false,
"marza_id": 1,
"proizvodjac_id": 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.
GET api/roba/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/roba/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 185
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/roba/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/roba/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"naziv": "Roba 1",
"jedinicaMere": 1,
"cena": 250,
"isActive": false,
"marza_id": 1,
"proizvodjac_id": 1
};
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/roba/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/roba/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
Ugovor
GET api/ugovor
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ugovor"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 141
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/ugovor
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ugovor"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"brojDokumenta": "10\/23",
"vaziDo": "2023-10-25",
"zakljucan": false,
"isActive": false,
"upravnik_id": 1,
"komitent_id": 1,
"kategorija_id": 1,
"ugovor_lift": [
{
"lift_id": 1,
"cenaServisa": 10,
"cenaRadnogSataSmena1": 10,
"cenaRadnogSataSmena2": 10,
"cenaRadnogSataSmena3": 10
},
{
"lift_id": 1,
"cenaServisa": 20,
"cenaRadnogSataSmena1": 20,
"cenaRadnogSataSmena2": 20,
"cenaRadnogSataSmena3": 20
},
{
"lift_id": 1,
"cenaServisa": 30,
"cenaRadnogSataSmena1": 30,
"cenaRadnogSataSmena2": 30,
"cenaRadnogSataSmena3": 30
}
]
};
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/ugovor/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ugovor/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 140
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/ugovor/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ugovor/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"brojDokumenta": "10\/23",
"vaziDo": "2023-10-25",
"zakljucan": false,
"isActive": false,
"upravnik_id": 1,
"komitent_id": 1,
"kategorija_id": 1,
"ugovor_lift": [
{
"lift_id": 1,
"cenaServisa": 10,
"cenaRadnogSataSmena1": 10,
"cenaRadnogSataSmena2": 10,
"cenaRadnogSataSmena3": 10
},
{
"lift_id": 1,
"cenaServisa": 20,
"cenaRadnogSataSmena1": 20,
"cenaRadnogSataSmena2": 20,
"cenaRadnogSataSmena3": 20
},
{
"lift_id": 1,
"cenaServisa": 30,
"cenaRadnogSataSmena1": 30,
"cenaRadnogSataSmena2": 30,
"cenaRadnogSataSmena3": 30
}
]
};
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/ugovor/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ugovor/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
UgovorLift
GET api/ugovorLift
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ugovorLift"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 143
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/ugovorLift
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ugovorLift"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ugovor_id": 1,
"lift_id": 1,
"cenaServisa": 250,
"cenaRadnogSataSmena1": 10,
"cenaRadnogSataSmena2": 20,
"cenaRadnogSataSmena3": 30
};
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/ugovorLift/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ugovorLift/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 142
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/ugovorLift/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ugovorLift/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ugovor_id": 1,
"lift_id": 1,
"cenaServisa": 250,
"cenaRadnogSataSmena1": 10,
"cenaRadnogSataSmena2": 20,
"cenaRadnogSataSmena3": 30
};
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/ugovorLift/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/ugovorLift/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
Upravnik
PUT api/upravnik/generateCSV
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/upravnik/generateCSV"
);
const params = {
"title": "Naziv",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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.
POST api/upravnik/generatePDF
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/upravnik/generatePDF"
);
const params = {
"title": "Naziv",
"orientation": "portrait",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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/upravnik/stats
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/upravnik/stats"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 178
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/upravnik/batchUpdate
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/upravnik/batchUpdate"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3",
"isActive": 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.
POST api/upravnik/batchDelete
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/upravnik/batchDelete"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3"
};
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/upravnik
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/upravnik"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
"tip": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 177
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/upravnik
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/upravnik"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"imePrezime": "John Doe",
"grad": "Krusevac",
"adresa": "Vidovdanska bb",
"brojTelefona": "06X\/XXX-XX-XX",
"uloga": 4,
"tip": 1,
"isActive": false,
"email": "upravnik1@gmail.com",
"password": "ABC$123456"
};
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/upravnik/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/upravnik/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 176
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/upravnik/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/upravnik/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"imePrezime": "John Doe",
"grad": "Krusevac",
"adresa": "Vidovdanska bb",
"brojTelefona": "06X\/XXX-XX-XX",
"uloga": 4,
"tip": 1,
"isActive": false,
"email": "upravnik1@gmail.com",
"password": "ABC$123456"
};
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/upravnik/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/upravnik/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
Usluga
PUT api/usluga/generateCSV
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/usluga/generateCSV"
);
const params = {
"title": "Naziv",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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.
POST api/usluga/generatePDF
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/usluga/generatePDF"
);
const params = {
"title": "Naziv",
"orientation": "portrait",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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/usluga/stats
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/usluga/stats"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 181
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/usluga/batchUpdate
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/usluga/batchUpdate"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3",
"isActive": 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.
POST api/usluga/batchDelete
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/usluga/batchDelete"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3"
};
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/usluga
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/usluga"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
"tipUsluge": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 180
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/usluga
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/usluga"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"naziv": "Usluga 1",
"tipUsluge": 1,
"cena": 200,
"brojRadnihSati": 6,
"isActive": 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.
GET api/usluga/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/usluga/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 179
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/usluga/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/usluga/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"naziv": "Usluga 1",
"tipUsluge": 1,
"cena": 200,
"brojRadnihSati": 6,
"isActive": false
};
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/usluga/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/usluga/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
ZahtevZaPonudu
PUT api/zahtevZaPonudu/generateCSV
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaPonudu/generateCSV"
);
const params = {
"title": "Naziv",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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.
POST api/zahtevZaPonudu/generatePDF
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaPonudu/generatePDF"
);
const params = {
"title": "Naziv",
"orientation": "portrait",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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/zahtevZaPonudu/stats
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaPonudu/stats"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 165
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/zahtevZaPonudu/batchUpdate
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaPonudu/batchUpdate"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3",
"isActive": 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.
POST api/zahtevZaPonudu/batchDelete
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaPonudu/batchDelete"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3"
};
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/zahtevZaPonudu/storniraj/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaPonudu/storniraj/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
GET api/zahtevZaPonudu
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaPonudu"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
"status": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 164
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/zahtevZaPonudu
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaPonudu"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"brojDokumenta": "10\/23",
"napomena": "Opis ponude",
"status": 0,
"isActive": false,
"lift_id": 1,
"kategorija_id": 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.
GET api/zahtevZaPonudu/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaPonudu/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 163
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/zahtevZaPonudu/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaPonudu/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"brojDokumenta": "10\/23",
"napomena": "Opis ponude",
"status": 0,
"isActive": false,
"lift_id": 1,
"kategorija_id": 1
};
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/zahtevZaPonudu/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaPonudu/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
ZahtevZaRadniNalog
PUT api/zahtevZaRadniNalog/generateCSV
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaRadniNalog/generateCSV"
);
const params = {
"title": "Naziv",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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.
POST api/zahtevZaRadniNalog/generatePDF
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaRadniNalog/generatePDF"
);
const params = {
"title": "Naziv",
"orientation": "portrait",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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/zahtevZaRadniNalog/stats
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaRadniNalog/stats"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 168
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/zahtevZaRadniNalog/batchUpdate
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaRadniNalog/batchUpdate"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3",
"isActive": 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.
POST api/zahtevZaRadniNalog/batchDelete
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaRadniNalog/batchDelete"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": "1,2,3"
};
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/zahtevZaRadniNalog/changeStatus/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaRadniNalog/changeStatus/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": 0
};
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/zahtevZaRadniNalog/storniraj/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaRadniNalog/storniraj/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
GET api/zahtevZaRadniNalog
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaRadniNalog"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 167
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/zahtevZaRadniNalog
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaRadniNalog"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"brojDokumenta": "10\/23",
"licePodnosiocaZahteva": "Ime i prezime",
"napomena": "Ne radi levi lift",
"status": 0,
"isActive": false,
"lift_id": 1,
"kategorija_id": 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.
GET api/zahtevZaRadniNalog/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaRadniNalog/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 166
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/zahtevZaRadniNalog/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaRadniNalog/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"brojDokumenta": "10\/23",
"licePodnosiocaZahteva": "Ime i prezime",
"napomena": "Ne radi levi lift",
"status": 0,
"isActive": false,
"lift_id": 1,
"kategorija_id": 1
};
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/zahtevZaRadniNalog/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zahtevZaRadniNalog/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
ZavrsnaFaktura
PUT api/zavrsnaFaktura/generateCSV
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zavrsnaFaktura/generateCSV"
);
const params = {
"title": "Naziv",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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.
POST api/zavrsnaFaktura/generatePDF
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zavrsnaFaktura/generatePDF"
);
const params = {
"title": "Naziv",
"orientation": "portrait",
"ids": "1,2,3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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/zavrsnaFaktura/stats
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zavrsnaFaktura/stats"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 148
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/zavrsnaFaktura/batchUpdate
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zavrsnaFaktura/batchUpdate"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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/zavrsnaFaktura/batchDelete
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zavrsnaFaktura/batchDelete"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
PUT api/zavrsnaFaktura/storniraj/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zavrsnaFaktura/storniraj/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
GET api/zavrsnaFaktura
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zavrsnaFaktura"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 147
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/zavrsnaFaktura
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zavrsnaFaktura"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"brojDokumenta": "10\/23",
"datumIzdavanja": "2023-10-25",
"datumDospeca": "2023-11-26",
"brojDana": 4,
"rokPlacanja": "2023-11-30",
"nacinPlacanja": 1,
"saPDV": false,
"status": 0,
"napomena": "Ne radi levi lift",
"isActive": false,
"ponuda_id": 1,
"radni_nalog_id": 1,
"lift_id": 1,
"komitent_id": 1,
"kategorija_id": 1,
"zavrsna_faktura_stavke": [
{
"zavrsna_faktura_id": 1,
"roba_id": 1,
"usluga_id": null,
"naziv": "Stavka 1",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 10
},
{
"zavrsna_faktura_id": 1,
"roba_id": null,
"usluga_id": 1,
"naziv": "Stavka 2",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 20
},
{
"zavrsna_faktura_id": 1,
"roba_id": 2,
"usluga_id": null,
"naziv": "Stavka 3",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 30
}
]
};
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/zavrsnaFaktura/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zavrsnaFaktura/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 146
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/zavrsnaFaktura/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zavrsnaFaktura/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"brojDokumenta": "10\/23",
"datumIzdavanja": "2023-10-25",
"datumDospeca": "2023-11-26",
"brojDana": 4,
"rokPlacanja": "2023-11-30",
"nacinPlacanja": 1,
"saPDV": false,
"status": 0,
"napomena": "Ne radi levi lift",
"isActive": false,
"ponuda_id": 1,
"radni_nalog_id": 1,
"lift_id": 1,
"komitent_id": 1,
"kategorija_id": 1,
"zavrsna_faktura_stavke": [
{
"zavrsna_faktura_id": 1,
"roba_id": 1,
"usluga_id": null,
"naziv": "Stavka 1",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 10
},
{
"zavrsna_faktura_id": 1,
"roba_id": null,
"usluga_id": 1,
"naziv": "Stavka 2",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 20
},
{
"zavrsna_faktura_id": 1,
"roba_id": 2,
"usluga_id": null,
"naziv": "Stavka 3",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 30
}
]
};
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/zavrsnaFaktura/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zavrsnaFaktura/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.
ZavrsnaFakturaStavke
GET api/zavrsnaFakturaStavke
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zavrsnaFakturaStavke"
);
const params = {
"currentPage": "1",
"pageSize": "10",
"fromDate": "2022-01-01",
"toDate": "2023-12-31",
"searchQuery": "null",
"isActive": "1",
"sortColumn": "created_at",
"sortDir": "asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 145
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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/zavrsnaFakturaStavke
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zavrsnaFakturaStavke"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"zavrsna_faktura_id": 1,
"roba_id": 1,
"usluga_id": 1,
"naziv": "Stavka 1",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 10
};
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/zavrsnaFakturaStavke/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zavrsnaFakturaStavke/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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: 200
x-ratelimit-remaining: 144
access-control-allow-origin: *
{
"error": "Unauthorised",
"logedUser": 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.
PUT api/zavrsnaFakturaStavke/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zavrsnaFakturaStavke/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"zavrsna_faktura_id": 1,
"roba_id": 1,
"usluga_id": 1,
"naziv": "Stavka 1",
"kolicina": 1,
"jedinicaMere": 1,
"cena": 10
};
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/zavrsnaFakturaStavke/{id}
requires authentication
Example request:
const url = new URL(
"http://localhost:8000/api/zavrsnaFakturaStavke/1"
);
const headers = {
"Authorization": "Bearer {{token}}",
"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.