Hvert produkt har disse felter. Valgfrie felter udelades, når de er tomme.
id · string- Fast id, også slutningen af adressen på produktsiden.
name · string- Produktnavn.
description · string- Beskrivelse i én sætning.
audience · string[]- Hvem det er til: b2b, individual eller begge.
country · string- Oprindelsesland.
website · uri- Produktets website.
longDescription · string- Et par afsnit om produktet.
features · string[]- Vigtigste funktioner.
useCases · string[]- Et til fire id’er for anvendelser.
category · string- Kategori-id, som i /categories/{id}.
verified · boolean- valgfrit · true, når skaberen har bekræftet ejerskabet; ellers mangler feltet.
logoUrl · uri- valgfrit · Logo (PNG, JPEG eller WebP); mangler, når der ikke er et.
Det samme som TypeScript-typer:
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[];
}