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.
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
- Dernière version: 0.1.1
- Licence: MIT
- Éditeur: yaamin
- Prérequis: EmDash
>=1.0.0 - Dépôt source: https://github.com/yaaamin/payload-openapi
- Paquet npm: emdash-plugin-openapi