File tree 2 files changed +7
-0
lines changed 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 13
13
* [ #580 ] ( https://github.com/ruby-grape/grape-swagger/pull/580 ) : Issue #578 : fixes duplicated path params - [ @LeFnord ] ( https://github.com/LeFnord ) .
14
14
* [ #585 ] ( https://github.com/ruby-grape/grape-swagger/pull/585 ) : Issue #584 : do not mutate route.path - [ @LeFnord ] ( https://github.com/LeFnord ) .
15
15
* [ #586 ] ( https://github.com/ruby-grape/grape-swagger/pull/586 ) : Issue #587 : Parameters delimited by dash cause exception - [ @risa ] ( https://github.com/risa ) .
16
+ * [ #593 ] ( https://github.com/ruby-grape/grape-swagger/pull/593 ) : Clarify hidden option in readme - [ @thogg4 ] ( https://github.com/thogg4 ) .
16
17
17
18
* Your contribution here.
18
19
Original file line number Diff line number Diff line change @@ -444,6 +444,12 @@ You can hide an endpoint by adding ```hidden: true``` in the description of the
444
444
desc 'Hide this endpoint', hidden: true
445
445
` ` `
446
446
447
+ Or by adding ` ` ` hidden: true` ` ` on the verb method of the endpoint, such as ` get` , ` post` and ` put` :
448
+
449
+ ` ` ` ruby
450
+ get '/kittens', hidden: true do
451
+ ` ` `
452
+
447
453
Endpoints can be conditionally hidden by providing a callable object such as a lambda which evaluates to the desired
448
454
state:
449
455
You can’t perform that action at this time.
0 commit comments