@scalar/fastify-api-reference 0.6.55 → 0.6.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +10 -0
- package/dist/templates/fastify-api-reference.js +1424 -1391
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @scalar/fastify-api-reference
|
|
2
2
|
|
|
3
|
+
## 0.6.57
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [75df2d2]
|
|
8
|
+
- Updated dependencies [c97e8e6]
|
|
9
|
+
- Updated dependencies [52c20e5]
|
|
10
|
+
- Updated dependencies [b1fe23c]
|
|
11
|
+
- Updated dependencies [1208a7f]
|
|
12
|
+
- @scalar/api-reference@1.1.3
|
|
13
|
+
|
|
14
|
+
## 0.6.56
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [d062fd9]
|
|
19
|
+
- @scalar/api-reference@1.1.2
|
|
20
|
+
|
|
3
21
|
## 0.6.55
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -7,12 +7,22 @@
|
|
|
7
7
|
|
|
8
8
|
This plugin provides an easy way to render a beautiful API reference based on a OpenAPI/Swagger file with Fastify.
|
|
9
9
|
|
|
10
|
+
[](https://docs.scalar.com/swagger-editor)
|
|
11
|
+
|
|
10
12
|
## Installation
|
|
11
13
|
|
|
12
14
|
```bash
|
|
13
15
|
npm install @scalar/fastify-api-reference
|
|
14
16
|
```
|
|
15
17
|
|
|
18
|
+
And then register it with Fastify:
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
await fastify.register(require('@scalar/fastify-api-reference'), {
|
|
22
|
+
routePrefix: '/reference',
|
|
23
|
+
})
|
|
24
|
+
```
|
|
25
|
+
|
|
16
26
|
## Usage
|
|
17
27
|
|
|
18
28
|
If you have a OpenAPI/Swagger file already, you can pass an URL to the plugin:
|