@koumoul/vue-openapi

Display API documentation that follow the OpenAPI 3.0 Specification
1,110 94
Install
npm install @koumoul/vue-openapi
Latest Version:0.12.5
Vue:2
License:MIT
Last Updated:Jun 5, 2026
Links: GitHub  ·  npm
Maintainer: albanm

OpenAPI viewer component for VueJS

This Vue.js component is designed to easily browse and test a REST API described with the OpenAPI 3.0 Specification (formerly known as Swagger Specification). This component follows Google Material Design principles and relies on the Vue Material framework. It also relies on vue-resource to perform API requests.

See it in action :

Install

npm :

$ npm install --save vue-openapi

Usage

import Vue from 'vue'
import VueMaterial from 'vue-material'
import OpenApi from 'vue-openapi'
import 'vue-material/dist/vue-material.css'
import VueResource from 'vue-resource'

import jsonApi from './swagger.json'

Vue.use(VueMaterial)
Vue.use(VueResource)

new Vue({
  el: '#app',
  template: '<open-api v-if="jsonApi" :api="jsonApi" md-theme="\'default\'" :query-params="queryParams" :headers="headers"></open-api>',
  data: () => ({
    jsonApi: jsonApi,
    queryParams: {
      userId: 'john_doe'
    },
    headers: {
      api_key: 'my_api_key'
    }
  }),
  components: {
    OpenApi
  }
})

Develop

Run webpack in watch mode:

npm run dev

Then open test/index.html in your browser.

To switch between examples, modify the import "jsonApi" in test/app.js.

License

MIT License

Resources

Similar projects

This project has been inspired by the following projects :

Related Packages

@comet-cli/plugin-documentation

Plugin for generating API documentation

6,405 0
vitepress-openapi-docs

Interactive OpenAPI documentation for VitePress. Lightweight, Vue-native, compos...

3,376 6
@scalar/swagger-editor

an editor which is tailored to write OpenAPI spec

58,866 16,316
@scalar/api-reference

Generate beautiful API references from OpenAPI documents

21,031,808 16,329
@braydenyang/fdoc

Embeddable OpenAPI 3.x documentation & debug UI

6,243

Version History

Version Released Vue License
0.12.5 ^2.5.16 MIT
0.12.4 ^2.5.16 MIT
0.12.3 ^2.5.16 MIT
0.12.2 ^2.5.16 MIT
0.12.1 ^2.5.16 MIT