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

x/netzo/plugins/api/plugin.ts>api

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

A fresh plugin that registers middleware and handlers to to mount RESTful API routes on the /api route path.

A fresh plugin that creates handlers for the following routes:

  • GET /api/{endpoint} find all records matching query
  • GET /api/{endpoint}/{id} get an entry by key
  • POST /api/{endpoint} create a new entry (auto-generates id)
  • PUT /api/{endpoint}/{id} update an entry by key
  • PATCH /api/{endpoint}/{id} patch an entry by key
  • DELETE /api/{endpoint}/{id} remove an entry by key