@hnluu8/vue-redoc-wrapper
vue-redoc-wrapper
A Vue.js wrapper component for ReDoc.
Installation
npm install @hnluu8/vue-redoc-wrapper --save
Usage
Pass the OpenAPI definitions of your API to the spec-or-spec-url attribute of the component. The attribute value can be given as an object or as a URL to the JSON or YAML file for your API documentation.
<template>
<div id="app">
<redoc-wrapper :spec-or-spec-url="'http://petstore.swagger.io/v2/swagger.json'"></redoc-wrapper>
</div>
</template>
<script>
import RedocWrapper from '@hnluu8/vue-redoc-wrapper'
export default {
name: 'app',
components: {
RedocWrapper
}
}
</script>
Component Props
The component exposes two props: specOrSpecUrl (required) and options (optional). Please visit the documentation for ReDoc's standalone version for more information on their usage.
Demo
vue serve demo/components/SpecUrlExample.vue
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.1.15 | ^2.6.10 | MIT | |
| 0.1.14 | ^2.6.10 | MIT | |
| 0.1.13 | ^2.6.10 | MIT | |
| 0.1.12 | ^2.6.10 | MIT | |
| 0.1.11 | ^2.6.10 | MIT | |
| 0.1.10 | ^2.6.10 | MIT | |
| 0.1.9 | ^2.6.10 | MIT | |
| 0.1.8 | ^2.6.10 | MIT | |
| 0.1.7 | ^2.6.10 | MIT | |
| 0.1.6 | ^2.6.10 | MIT | |
| 0.1.5 | ^2.6.10 | MIT | |
| 0.1.4 | ^2.6.10 | MIT | |
| 0.1.3 | ^2.6.10 |