tim-vandecasteele/grape-swagger — pull request #10 by agileanimal (2012-08-18 00:05:57+00:00)
Title: Custom header support

Allows the passing of a headers hash inside the desc block with the notes:

```ruby
desc "Return super-secret information", {
notes: "SUPER SECRET",
headers: {
"XAuthToken" => {
description: "Valdates your identity",
required: true
},
XOptionalHeader" => {
description: "Not reallly needed",
required: false
}
}
}
```

Swagger is then able to add header parameters as appropriate.

I have added information to the README to cover this.

This also adds tests to the helpers so that they can be tested independently.