Profil și preferințe
37 de rute, cu exemplu de cerere pentru fiecare.
Adresa de bază: https://app.ilustromania.com/nucleu. Autentificarea, formatul și erorile sunt în Prezentarea API-ului.
Modulul eu
GET/v1/eu
Cine sunt eu
Contul din sesiune: identitate, firmă activă, rol și paginile permise.
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
contId | string | da | nevid |
nume | string | da | — |
rol | string | da | una din: admin, bucatar, casier, gestiune, patron, marketing, angajat, finante |
admin | boolean | da | — |
sursa | string | da | una din: baza, sesiune |
firma | object | da | — |
firma.id | string | da | UUID |
firma.nume | string | da | — |
firma.tip | string | da | una din: restaurant, agentie, gol |
firma.module | string[] | da | — |
firma.cui | string | nu | — |
firma.regCom | string | nu | — |
firma.sediu | string | nu | — |
trebuieParolaNoua | boolean | da | implicit false |
trebuieBunVenit | boolean | da | implicit false |
asistentPrezentat | boolean | da | implicit true |
areEmail | boolean | da | implicit true |
poza | string | da | cel mult 200 caractere; implicit null |
pagini | string[] | da | implicit [] |
rolurileFirmei | object[] | da | implicit [] |
rolurileFirmei[].cheie | string | da | — |
rolurileFirmei[].nume | string | da | între 1 și 60 caractere |
rolurileFirmei[].sistem | boolean | da | — |
adminReal | boolean | da | implicit false |
caRol | string | da | implicit null |
vedeEvidenta | boolean | da | implicit false |
vedeArhiva | boolean | da | implicit false |
vedeFinder | boolean | da | implicit false |
vedeDispozitive | boolean | da | implicit false |
vedePlante | boolean | da | implicit false |
vedeStatisticiLivrare | boolean | da | implicit false |
curl https://app.ilustromania.com/nucleu/v1/eu \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/eu", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/eu",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json(){
"contId": "text",
"nume": "text",
"rol": "admin",
"admin": true,
"sursa": "baza",
"firma": {
"id": "3f0c2a8e-6b1d-4c3a-9e2f-1a2b3c4d5e6f",
"nume": "text",
"tip": "restaurant",
"module": [
"text"
],
"cui": "text",
"regCom": "text",
"sediu": "text"
},
"trebuieParolaNoua": false,
"trebuieBunVenit": false,
"asistentPrezentat": true,
"areEmail": true,
"poza": null,
"pagini": []
}POST/v1/eu/firma
Comută firma activă
Schimbă firma activă a sesiunii; 403 fără acces la firma cerută.
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
firmaId | string | da | UUID |
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
firmaId | string | da | UUID |
rol | string | da | una din: admin, bucatar, casier, gestiune, patron, marketing, angajat, finante |
curl -X POST https://app.ilustromania.com/nucleu/v1/eu/firma \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{
"firmaId": "3f0c2a8e-6b1d-4c3a-9e2f-1a2b3c4d5e6f"
}'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/eu/firma", {
method: "POST",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"firmaId": "3f0c2a8e-6b1d-4c3a-9e2f-1a2b3c4d5e6f"
}),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.post(
"https://app.ilustromania.com/nucleu/v1/eu/firma",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={
"firmaId": "3f0c2a8e-6b1d-4c3a-9e2f-1a2b3c4d5e6f",
},
)
date = raspuns.json(){
"firmaId": "3f0c2a8e-6b1d-4c3a-9e2f-1a2b3c4d5e6f",
"rol": "admin"
}GET/v1/eu/firme
Firmele contului
Firmele la care are acces contul, pentru comutatorul de firmă.
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
firme | object[] | da | — |
firme[].firmaId | string | da | UUID |
firme[].nume | string | da | — |
firme[].rol | string | da | una din: admin, bucatar, casier, gestiune, patron, marketing, angajat, finante |
firme[].activa | boolean | da | — |
firme[].tip | string | da | una din: restaurant, agentie, gol |
firme[].module | string[] | da | — |
curl https://app.ilustromania.com/nucleu/v1/eu/firme \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/eu/firme", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/eu/firme",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json(){
"firme": [
{
"firmaId": "3f0c2a8e-6b1d-4c3a-9e2f-1a2b3c4d5e6f",
"nume": "text",
"rol": "admin",
"activa": true,
"tip": "restaurant",
"module": []
}
]
}GET/v1/eu/flux
Fluxul live al contului
Flux SSE care retrimite răspunsul /v1/eu/tot când se schimbă ceva.
curl https://app.ilustromania.com/nucleu/v1/eu/flux \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/eu/flux", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/eu/flux",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()GET/v1/eu/pagini-noi
Paginile noi pentru mine
Paginile omului pe firma activă pe care nu le-a văzut încă.
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
pagini | string[] | da | — |
curl https://app.ilustromania.com/nucleu/v1/eu/pagini-noi \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/eu/pagini-noi", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/eu/pagini-noi",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json(){
"pagini": [
"text"
]
}POST/v1/eu/pagini-noi/vazut
Marchează paginile văzute
Marchează paginile date ca văzute, pe toate dispozitivele omului.
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
pagini | string[] | da | cel mult 200 elemente |
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
marcate | integer | da | între 0 și 9007199254740991 |
curl -X POST https://app.ilustromania.com/nucleu/v1/eu/pagini-noi/vazut \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{
"pagini": [
"text"
]
}'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/eu/pagini-noi/vazut", {
method: "POST",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"pagini": [
"text"
]
}),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.post(
"https://app.ilustromania.com/nucleu/v1/eu/pagini-noi/vazut",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={
"pagini": [
"text",
],
},
)
date = raspuns.json(){
"marcate": 1
}GET/v1/eu/tot
Tot ce trebuie shell-ului
Contul, firmele, paginile și prezența într-un singur răspuns pentru shell.
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
eu | object | da | — |
eu.contId | string | da | nevid |
eu.nume | string | da | — |
eu.rol | string | da | una din: admin, bucatar, casier, gestiune, patron, marketing, angajat, finante |
eu.admin | boolean | da | — |
eu.sursa | string | da | una din: baza, sesiune |
eu.firma | object | da | — |
eu.firma.id | string | da | UUID |
eu.firma.nume | string | da | — |
eu.firma.tip | string | da | una din: restaurant, agentie, gol |
eu.firma.module | string[] | da | — |
eu.firma.cui | string | nu | — |
eu.firma.regCom | string | nu | — |
eu.firma.sediu | string | nu | — |
eu.trebuieParolaNoua | boolean | da | implicit false |
eu.trebuieBunVenit | boolean | da | implicit false |
eu.asistentPrezentat | boolean | da | implicit true |
eu.areEmail | boolean | da | implicit true |
eu.poza | string | da | cel mult 200 caractere; implicit null |
eu.pagini | string[] | da | implicit [] |
eu.rolurileFirmei | object[] | da | implicit [] |
eu.rolurileFirmei[].cheie | string | da | — |
eu.rolurileFirmei[].nume | string | da | între 1 și 60 caractere |
eu.rolurileFirmei[].sistem | boolean | da | — |
eu.adminReal | boolean | da | implicit false |
eu.caRol | string | da | implicit null |
eu.vedeEvidenta | boolean | da | implicit false |
eu.vedeArhiva | boolean | da | implicit false |
eu.vedeFinder | boolean | da | implicit false |
eu.vedeDispozitive | boolean | da | implicit false |
eu.vedePlante | boolean | da | implicit false |
eu.vedeStatisticiLivrare | boolean | da | implicit false |
firme | object | da | — |
firme.firme | object[] | da | — |
firme.firme[].firmaId | string | da | UUID |
firme.firme[].nume | string | da | — |
firme.firme[].rol | string | da | una din: admin, bucatar, casier, gestiune, patron, marketing, angajat, finante |
firme.firme[].activa | boolean | da | — |
firme.firme[].tip | string | da | una din: restaurant, agentie, gol |
firme.firme[].module | string[] | da | — |
curl https://app.ilustromania.com/nucleu/v1/eu/tot \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/eu/tot", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/eu/tot",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json(){
"eu": {
"contId": "text",
"nume": "text",
"rol": "admin",
"admin": true,
"sursa": "baza",
"firma": {
"id": "3f0c2a8e-6b1d-4c3a-9e2f-1a2b3c4d5e6f",
"nume": "text",
"tip": "restaurant",
"module": [],
"cui": "text",
"regCom": "text",
"sediu": "text"
},
"trebuieParolaNoua": false,
"trebuieBunVenit": false,
"asistentPrezentat": true,
"areEmail": true,
"poza": null,
"pagini": []
},
"firme": {
"firme": [
{}
]
},
"alerte": {
"scris_la": "text",
"alerte": [
{}
]
},
"alerteStare": "ok",
"oameni": {
"prezentaLa": "2026-11-12T09:30:00.000Z",
"oameni": [
{}
]
}
}POST/v1/eu/vezi-ca
Vezi aplicația ca alt rol
Administratorul real comută sesiunea curentă să vadă aplicația ca alt rol sau revine (null).
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
rol | string | da | — |
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
caRol | string | da | — |
curl -X POST https://app.ilustromania.com/nucleu/v1/eu/vezi-ca \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{
"rol": "text"
}'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/eu/vezi-ca", {
method: "POST",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"rol": "text"
}),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.post(
"https://app.ilustromania.com/nucleu/v1/eu/vezi-ca",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={
"rol": "text",
},
)
date = raspuns.json(){
"caRol": "text"
}GET/v1/oameni
Oamenii firmei active
Lista oamenilor din firma activă, cu prezența lor.
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
prezentaLa | string | da | moment ISO 8601 |
oameni | object[] | da | — |
oameni[].contId | string | da | UUID |
oameni[].nume | string | da | nevid |
oameni[].initiale | string | da | — |
oameni[].activ | boolean | da | — |
oameni[].esteEu | boolean | da | — |
oameni[].agent | boolean | nu | — |
oameni[].rol | string | nu | una din: admin, bucatar, casier, gestiune, patron, marketing, angajat, finante |
oameni[].ultimaActivitate | string | nu | moment ISO 8601 |
oameni[].email | string | nu | — |
oameni[].pagina | string | nu | — |
oameni[].sesiuneDin | string | nu | moment ISO 8601 |
curl https://app.ilustromania.com/nucleu/v1/oameni \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/oameni", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/oameni",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json(){
"prezentaLa": "2026-11-12T09:30:00.000Z",
"oameni": [
{
"contId": "3f0c2a8e-6b1d-4c3a-9e2f-1a2b3c4d5e6f",
"nume": "text",
"initiale": "text",
"activ": true,
"esteEu": true,
"agent": true,
"rol": "admin",
"ultimaActivitate": "2026-11-12T09:30:00.000Z",
"email": "text",
"pagina": "text",
"sesiuneDin": "2026-11-12T09:30:00.000Z"
}
]
}POST/v1/prezenta/bataie
Sunt aici
Bătaia de prezență a contului din sesiune; cel mult o scriere pe interval.
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
pagina | string | da | — |
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
scrisa | boolean | da | — |
bataieLa | string | da | moment ISO 8601 |
curl -X POST https://app.ilustromania.com/nucleu/v1/prezenta/bataie \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{
"pagina": "text"
}'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/prezenta/bataie", {
method: "POST",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"pagina": "text"
}),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.post(
"https://app.ilustromania.com/nucleu/v1/prezenta/bataie",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={
"pagina": "text",
},
)
date = raspuns.json(){
"scrisa": true,
"bataieLa": "2026-11-12T09:30:00.000Z"
}Modulul profil
GET/v1/profil/bun-venit
Profilul de bun venit
Profilul de bun venit al omului logat (inclusiv ciorna); 403 fără profil în firmă.
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
firma | string | da | — |
numeComplet | string | da | — |
functie | string | da | — |
program | object[] | da | cel mult 7 elemente |
program[].zi | integer | da | între 1 și 7 |
program[].de | string | da | — |
program[].pana | string | da | — |
pozaUrl | string | da | — |
terminat | boolean | da | — |
curl https://app.ilustromania.com/nucleu/v1/profil/bun-venit \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/profil/bun-venit", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/profil/bun-venit",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json(){
"firma": "text",
"numeComplet": "text",
"functie": "text",
"program": [
{
"zi": 1,
"de": "text",
"pana": "text"
}
],
"pozaUrl": "text",
"terminat": true
}PATCH/v1/profil/bun-venit
Salvează ciorna de bun venit
Scrie ciorna profilului de bun venit, fără să o finalizeze; 204.
curl -X PATCH https://app.ilustromania.com/nucleu/v1/profil/bun-venit \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/profil/bun-venit", {
method: "PATCH",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.patch(
"https://app.ilustromania.com/nucleu/v1/profil/bun-venit",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()PUT/v1/profil/bun-venit
Finalizează profilul de bun venit
Scrie profilul de bun venit complet și îl marchează terminat; 204, 400 date nevalide.
curl -X PUT https://app.ilustromania.com/nucleu/v1/profil/bun-venit \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/profil/bun-venit", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/profil/bun-venit",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()DELETE/v1/profil/poza
Scoate poza de profil
Scoate poza proprie; fișierul se mută în arhivă, nu se șterge. 204.
curl -X DELETE https://app.ilustromania.com/nucleu/v1/profil/poza \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/profil/poza", {
method: "DELETE",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.delete(
"https://app.ilustromania.com/nucleu/v1/profil/poza",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()curl https://app.ilustromania.com/nucleu/v1/profil/poza \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/profil/poza", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/profil/poza",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()PUT/v1/profil/poza
Încarcă poza de profil
Primește poza proprie (multipart, cu plafon de mărime) și o pune pe cont.
curl -X PUT https://app.ilustromania.com/nucleu/v1/profil/poza \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/profil/poza", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/profil/poza",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()GET/v1/profil/poza/{contId}
Poza unui coleg
Poza unui om din aceeași firmă activă (panoul „cine are acces”); nimic altceva din profil. 404 fără poză.
| Nume | Tip | Descriere |
|---|---|---|
contId | string | valoarea din cale |
curl https://app.ilustromania.com/nucleu/v1/profil/poza/{contId} \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/profil/poza/{contId}", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/profil/poza/{contId}",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()Modulul preferinte
GET/v1/preferinte/accent
Accentul meu
Culoarea de accent aleasă din Setări, pe cont și firma activă, sau null.
curl https://app.ilustromania.com/nucleu/v1/preferinte/accent \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/preferinte/accent", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/preferinte/accent",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()curl -X PUT https://app.ilustromania.com/nucleu/v1/preferinte/accent \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/preferinte/accent", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/preferinte/accent",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()PUT/v1/preferinte/asistent_prezentat
Asistentul a fost prezentat
Notează că prezentarea asistentului nu se mai arată pe firma activă.
curl -X PUT https://app.ilustromania.com/nucleu/v1/preferinte/asistent_prezentat \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/preferinte/asistent_prezentat", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/preferinte/asistent_prezentat",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()GET/v1/preferinte/coloane
Coloanele alese într-un tabel
Coloanele alese de om pentru tabelul ?tabel=, sau null pentru cele implicite.
curl https://app.ilustromania.com/nucleu/v1/preferinte/coloane \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/preferinte/coloane", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/preferinte/coloane",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()PUT/v1/preferinte/coloane
Salvează coloanele unui tabel
Scrie coloanele alese pentru un tabel; null revine la implicit.
curl -X PUT https://app.ilustromania.com/nucleu/v1/preferinte/coloane \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/preferinte/coloane", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/preferinte/coloane",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()GET/v1/preferinte/design-system.de-sters
Elementele marcate de șters în design system
Lista elementelor din design system marcate de om pentru ștergere.
curl https://app.ilustromania.com/nucleu/v1/preferinte/design-system.de-sters \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/preferinte/design-system.de-sters", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/preferinte/design-system.de-sters",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()PUT/v1/preferinte/design-system.de-sters
Salvează elementele de șters
Înlocuiește lista elementelor marcate de șters (cel mult 200, fără dubluri).
curl -X PUT https://app.ilustromania.com/nucleu/v1/preferinte/design-system.de-sters \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/preferinte/design-system.de-sters", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/preferinte/design-system.de-sters",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()GET/v1/preferinte/meniu_inchise
Grupurile închise din meniul lateral
Grupurile pe care omul le ține închise în meniul lateral.
curl https://app.ilustromania.com/nucleu/v1/preferinte/meniu_inchise \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/preferinte/meniu_inchise", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/preferinte/meniu_inchise",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()PUT/v1/preferinte/meniu_inchise
Salvează grupurile închise
Scrie lista grupurilor închise, fără dubluri; 400 listă invalidă.
curl -X PUT https://app.ilustromania.com/nucleu/v1/preferinte/meniu_inchise \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/preferinte/meniu_inchise", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/preferinte/meniu_inchise",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()GET/v1/preferinte/notificari_citite
Notificările marcate citite
Id-urile notificărilor marcate citite de om.
curl https://app.ilustromania.com/nucleu/v1/preferinte/notificari_citite \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/preferinte/notificari_citite", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/preferinte/notificari_citite",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()PUT/v1/preferinte/notificari_citite
Salvează notificările citite
Înlocuiește lista notificărilor citite (cel mult 200, fără dubluri; 400 peste plafon).
curl -X PUT https://app.ilustromania.com/nucleu/v1/preferinte/notificari_citite \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/preferinte/notificari_citite", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/preferinte/notificari_citite",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()curl https://app.ilustromania.com/nucleu/v1/preferinte/tema \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/preferinte/tema", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/preferinte/tema",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()curl -X PUT https://app.ilustromania.com/nucleu/v1/preferinte/tema \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/preferinte/tema", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/preferinte/tema",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()GET/v1/preferinte/vedere
Vederea aleasă pe o pagină
Vederea galerie sau lista aleasă pentru pagina ?pagina=, sau null.
curl https://app.ilustromania.com/nucleu/v1/preferinte/vedere \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/preferinte/vedere", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/preferinte/vedere",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()curl -X PUT https://app.ilustromania.com/nucleu/v1/preferinte/vedere \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/preferinte/vedere", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/preferinte/vedere",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()Modulul preferinte-cont
GET/v1/eu/aranjament/dashboard
Aranjamentul dashboardului meu
Ordinea cardurilor din dashboard pentru omul logat; fără salvare, lista goală.
curl https://app.ilustromania.com/nucleu/v1/eu/aranjament/dashboard \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/eu/aranjament/dashboard", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/eu/aranjament/dashboard",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()PUT/v1/eu/aranjament/dashboard
Salvează aranjamentul dashboardului
Scrie ordinea cardurilor din dashboard; 400 aranjament invalid, 403 pe contul fără preferințe.
curl -X PUT https://app.ilustromania.com/nucleu/v1/eu/aranjament/dashboard \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/eu/aranjament/dashboard", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/eu/aranjament/dashboard",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()curl https://app.ilustromania.com/nucleu/v1/eu/preferinte \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/eu/preferinte", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/eu/preferinte",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()PUT/v1/eu/preferinte
Salvează preferințele contului
Scrie preferințele contului și le întoarce recitite din bază; 403 pe contul fără preferințe.
curl -X PUT https://app.ilustromania.com/nucleu/v1/eu/preferinte \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/eu/preferinte", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/eu/preferinte",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()Modulul flaguri
GET/v1/flaguri
Flagurile active
Funcțiile pornite pentru omul din sesiune.
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
flaguri | object | da | — |
curl https://app.ilustromania.com/nucleu/v1/flaguri \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/flaguri", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/flaguri",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json(){
"flaguri": {}
}