Skip to content

clarify hidden option in readme #593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 7, 2017
Merged

clarify hidden option in readme #593

merged 3 commits into from
Mar 7, 2017

Conversation

thogg4
Copy link
Contributor

@thogg4 thogg4 commented Mar 7, 2017

No description provided.

README.md Outdated
@@ -438,10 +438,10 @@ desc "Return super-secret information", {
<a name="hiding" />
#### Hiding an Endpoint

You can hide an endpoint by adding ```hidden: true``` in the description of the endpoint:
You can hide an endpoint by adding ```hidden: true``` on the verb method of the endpoint, such as `get`, `post` and `put`:
Copy link
Member

@LeFnord LeFnord Mar 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thogg4 … thanks for contribution …
please don't replace existed documentation, it is still correct, only add additional possibility to hide an endpoint

@thogg4
Copy link
Contributor Author

thogg4 commented Mar 7, 2017

Hey @LeFnord I couldn't get the existing example to work, but as requested I added it back. The readme now has both.

@LeFnord
Copy link
Member

LeFnord commented Mar 7, 2017

thanks @thogg4 … yeah the example … what I mean is this version to hide an endpoint:

desc 'put specific foo', hidden: true
put ':id' do
  # your code goes here
end

and your version of it – this is new to me 😉

patch ':id', hidden:true do
  # your code goes here
end

@LeFnord LeFnord merged commit 5ce2c97 into ruby-grape:master Mar 7, 2017
LeFnord pushed a commit to LeFnord/grape-swagger that referenced this pull request Feb 9, 2019
* clarify hidden option in readme

* update changelog

* add both ways to hide an endpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants