OpenAPI

Plugin EmDash CMS qui génère un document OpenAPI 3.1 adapté aux collections et propose Swagger UI et les références d'API Scalar.

Extension

OpenAPI

Plugin EmDash CMS qui génère un document OpenAPI 3.1 adapté aux collections et propose Swagger UI et les références d'API Scalar.

  • Catégorie: Intégrations
  • Statut: Disponible
  • Version: 0.1.1
  • Prix: Inconnu
  • Source: Package npm
  • Installation: Intégration native npm
  • Vérifié: 2026-11-01

Plugin EmDash CMS qui génère un document OpenAPI 3.1 adapté aux collections et propose Swagger UI et les références d’API Scalar.

Installation

Installez le paquet depuis npm :

npm install emdash-plugin-openapi

Enregistrez le plugin dans votre configuration Astro :

// astro.config.mjs
import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import { openapiPlugin } from "emdash-plugin-openapi";
import { openapiDocs } from "emdash-plugin-openapi/docs";

export default defineConfig({
  integrations: [
    emdash({
      // ...database, storage, etc.
      plugins: [openapiPlugin()],
    }),
    openapiDocs(), // optional: Scalar + Swagger UI at /api-docs
  ],
});

Détails