tim-vandecasteele/grape-swagger — pull request #82 by jeromegn (2014-02-04 00:39:45+00:00)
Title: Follow Swagger 1.2 specs more precisely

Awesome library. I took the liberty of forking it a little bit to follow the new Swagger specs correctly.

---

#### Resource `path`s should not include the documentation `mount_path`.

> `apis`. This is an array of `api`s available to the caller, **and contain the relative `path` to the [API declaration](https://github.com/wordnik/swagger-core/wiki/API-Declaration)**. If no apis are available, an empty array should be returned.

*From here: https://github.com/wordnik/swagger-core/wiki/Resource-Listing*

---

#### Operations with the same path, but different HTTP methods should be listed as one `api` in the `apis` property.

> **All HTTP operations for a particular path should be grouped in a single api object**. There should be no duplicate HTTP methods for a single path.

*From here: https://github.com/wordnik/swagger-core/wiki/API-Declaration*