Fiecare produs are aceste câmpuri. Cele opționale lipsesc când sunt goale.
id · string- Id stabil, și finalul adresei paginii produsului.
name · string- Numele produsului.
description · string- Descriere într-o propoziție.
audience · string[]- Pentru cine este: b2b, individual sau ambele.
country · string- Țara de origine.
website · uri- Site-ul produsului.
longDescription · string- Câteva paragrafe despre produs.
features · string[]- Funcții principale.
useCases · string[]- Între unul și patru id-uri de utilizări.
category · string- Id-ul categoriei, ca în /categories/{id}.
verified · boolean- opțional · true când creatorul a confirmat proprietatea; altfel lipsește.
logoUrl · uri- opțional · Siglă (PNG, JPEG sau WebP); lipsește când nu există.
Același lucru ca tipuri TypeScript:
export interface Software {
/** Stable id, also the end of the product’s page address. */
id: string;
/** Product name. */
name: string;
/** One-sentence description. */
description: string;
/** Who it’s for: b2b, individual or both. */
audience: ("b2b" | "individual")[];
/** Country of origin. */
country: string;
/** The product’s website. */
website: string;
/** A few paragraphs about the product. */
longDescription: string;
/** Main features. */
features: string[];
/** One to four use-case ids. */
useCases: string[];
/** Category id, as in /categories/{id}. */
category: string;
/** true when the maker verified ownership; absent otherwise. */
verified?: true;
/** Logo (PNG, JPEG or WebP); absent when there is none. */
logoUrl?: string;
}
/** countries.json, GET /api/software/countries */
export type Countries = string[];
/** categories.json, GET /api/categories/counts */
export type CategoryCounts = Record<string, number>;
/** One entry of alternatives.json */
export interface Alternative {
tool: string;
name: string;
page: string;
ids: string[];
}