@woldtwerk/nuxt-openapi
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Nuxt OpenApi

npm version npm downloads License Nuxt

This module adds a Tab to nuxt devtools. It shows your OpenApi spec.

nuxt-openapi

Features

  • ⛰  SwaggerUI or Redoc
  • 🚠  Autoconfig for nuxt-drupal

Quick Setup

  1. Add @woldtwerk/nuxt-openapi dependency to your project
# Using pnpm
pnpm add -D @woldtwerk/nuxt-openapi

# Using yarn
yarn add --dev @woldtwerk/nuxt-openapi

# Using npm
npm install --save-dev @woldtwerk/nuxt-openapi
  1. Add @woldtwerk/nuxt-openapi to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    '@woldtwerk/nuxt-openapi'
  ]
})
  1. Add your openapi url.
export default defineNuxtConfig({
  openapi: {
    url: 'https://myapi'
  },
})

That's it! You can now use Nuxt OpenApi in your Nuxt app ✨

Drupal

If you use @woldtwerk/nuxt-drupal no configuration is needed. In your drupal you need to install openapi and openapi_ui.

Development

# Install dependencies
pnpm install

# Generate type stubs
pnpm run dev:prepare

# Develop with the playground
pnpm run dev

# Build the playground
pnpm run dev:build

# Run ESLint
pnpm run lint

# Run Vitest
pnpm run test
pnpm run test:watch

# Release new version
pnpm run release

Readme

Keywords

none

Package Sidebar

Install

npm i @woldtwerk/nuxt-openapi

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

14.1 kB

Total Files

13

Last publish

Collaborators

  • woldtwerk