Jedes Produkt hat diese Felder. Optionale fehlen, wenn sie leer sind.
id · string- Feste ID, auch das Ende der Adresse der Produktseite.
name · string- Produktname.
description · string- Beschreibung in einem Satz.
audience · string[]- Für wen es ist: b2b, individual oder beides.
country · string- Herkunftsland.
website · uri- Die Website des Produkts.
longDescription · string- Ein paar Absätze über das Produkt.
features · string[]- Wichtigste Funktionen.
useCases · string[]- Eine bis vier Anwendungsfall-IDs.
category · string- Kategorie-ID, wie in /categories/{id}.
verified · boolean- optional · true, wenn der Macher den Besitz bestätigt hat; sonst fehlt das Feld.
logoUrl · uri- optional · Logo (PNG, JPEG oder WebP); fehlt, wenn es keins gibt.
Dasselbe als TypeScript-Typen:
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[];
}