Minden terméknek ezek a mezői vannak. A nem kötelezők üresen kimaradnak.
id · string- Állandó azonosító, egyben a termékoldal címének vége.
name · string- A termék neve.
description · string- Egymondatos leírás.
audience · string[]- Kinek szól: b2b, individual vagy mindkettő.
country · string- Származási ország.
website · uri- A termék weboldala.
longDescription · string- Néhány bekezdés a termékről.
features · string[]- Fő funkciók.
useCases · string[]- Egy–négy felhasználási terület azonosítója.
category · string- Kategóriaazonosító, mint a /categories/{id} címben.
verified · boolean- nem kötelező · true, ha a készítő igazolta a tulajdonjogot; különben hiányzik.
logoUrl · uri- nem kötelező · Logó (PNG, JPEG vagy WebP); hiányzik, ha nincs.
Ugyanez TypeScript-típusokként:
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[];
}