You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Release Notes for Version 9.0.x which only supports hapi v17 and above.
12
+
Note: For hapi versions below v17, you must use versions [v7.x.x](https://github.com/glennjones/hapi-swagger/tree/v7.x) of this module.
11
13
12
14
# Install
13
15
@@ -111,7 +113,4 @@ Read the [contributing guidelines](https://github.com/glennjones/hapi-swagger/bl
111
113
112
114
113
115
# Thanks
114
-
I would like to thank all that have contributed to the project over the last couple ofyears. This is a hard project to maintain, getting HAPI to work with Swagger
115
-
is like putting a round plug in a square hole. Without the help of others it would not be possible.
116
-
117
-
116
+
I would like to thank all that have contributed to the project over the last couple ofyears. This is a hard project to maintain, getting HAPI to work with Swagger is like putting a round plug in a square hole. Without the help of others it would not be possible.
Copy file name to clipboardExpand all lines: usageguide.md
+12-21
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# 7.9.0 Usage Guide
1
+
# 9.0.0 Usage Guide
2
2
3
3
### Content
4
4
*[JSON body](#json-body)
@@ -309,17 +309,17 @@ config: {
309
309
tags: ['api'],
310
310
notes: ['Adds together two numbers and return the result'],
311
311
plugins: {
312
-
'hapi-swagger': {
313
-
responses: {
314
-
'200': {
315
-
'description':'Success',
316
-
'schema':Joi.object({
317
-
equals:Joi.number(),
318
-
}).label('Result')
319
-
},
320
-
'400': {'description':'Bad Request'}
321
-
}
322
-
},
312
+
'hapi-swagger': {
313
+
responses: {
314
+
'200': {
315
+
'description':'Success',
316
+
'schema':Joi.object({
317
+
equals:Joi.number(),
318
+
}).label('Result')
319
+
},
320
+
'400': {'description':'Bad Request'}
321
+
}
322
+
},
323
323
validate: {
324
324
params: {
325
325
a:Joi.number()
@@ -669,10 +669,6 @@ This will load all routes that have one or more of the given tags (`foo` or `bar
669
669
?tags=mountains,+beach,-horses
670
670
this will show routes WITH 'mountains' AND 'beach' AND NO 'horses'
671
671
672
-
673
-
674
-
675
-
676
672
# Example code in project
677
673
There are a number of examples of different uses of `hapi-swagger` in the examples directory. These files contain a full HAPI node app:
678
674
@@ -686,11 +682,6 @@ There are a number of examples of different uses of `hapi-swagger` in the exampl
686
682
* [`upload-file.js`](examples/upload-file.js) - how create documenation for a file upload
687
683
* [`versions.js`](examples/versions.js) - how to use the plug-in with `hapi-api-version` for versioning of an API
688
684
689
-
690
-
691
-
692
-
693
-
694
685
# External example projects
695
686
Both these example use a custom HTML page
696
687
* [`be-more-hapi`](https://github.com/glennjones/be-more-hapi) - talk from Async.js on the October 2013 - old `hapi-swagger` example project, but keep update
0 commit comments