-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
featureA completely new feature requestA completely new feature request
Description
Allow for the top level doc block to use a template.
This would be useful to define a few default responses that come back with a certain type of request etc.
Possibly something like the below:
SinatraDoc.configure do
doc_template :list do
response code: 404 do
prop :message, :string, "A message explaining that the resource was not found"
end
end
end
doc template: :list do
...
end
get "/items" do
...
endMetadata
Metadata
Assignees
Labels
featureA completely new feature requestA completely new feature request