Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/netzo/plugins/api/resources/mod.ts>Resource

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
type alias Resource
Re-export
import { type Resource } from "https://deno.land/x/netzo@0.4.49/plugins/api/resources/mod.ts";

Type Parameters

optional
T = unknown
definition: { [k: string]: unknown; type?: "denokv" | "http"; options?: Record<string, unknown>; find: (query?: Record<string, unknown>) => MaybePromise<T[]>; get: (id: Id) => MaybePromise<T>; create: (data: Partial<T>) => MaybePromise<T>; update: (id: Id, data: T) => MaybePromise<T>; patch: (id: Id, data: Partial<T>) => MaybePromise<T>; remove: (id: Id) => MaybePromise<{ ok: boolean; }>; }