Skip to content

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