Skip to content
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

add headers in desc support #48

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Skipper1992
Copy link

No description provided.

@falood
Copy link
Member

falood commented Feb 9, 2017

Thank you, it's a good idea!
I think we can not just make header a part of description, we can make it works as the same as params, parse parameters from header and generate document.
The DSL should be like this:

desc "this is description" 
header do
  requires :session_id, type: String
end
params do
  requires :param1, type: Integer
end
post do
  ...
end

@jalcine
Copy link
Contributor

jalcine commented Oct 14, 2017

Hey @Skipper1992; are you considering incorporating the feedback above?

@jalcine
Copy link
Contributor

jalcine commented Apr 26, 2018

It looks like this was slightly abandoned. If you're cool with it @falood, I can re-open a new PR for this.

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.

3 participants