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
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 asparams
, parse parameters from header and generate document. The DSL should be like this: