Skip to content

Wrong route ordering #921

Open
Open
@pavelbabin

Description

@pavelbabin

There is wrong ordering of routes.

For example - there is ordering in the resource I've set:

  1. GET users/
  2. GET users/:id
  3. POST users/
  4. POST users/:id/restore
  5. PUT users/:id
  6. DELETE users/:id

But grape-swagger is generating it like this:

  1. GET users/
  2. POST users/
  3. DELETE users/:id
  4. GET users/:id
  5. PUT users/:id
  6. POST users/:id/restore

The fix from #859 doesn't fix it completely. The order is still not the same as it was "declared"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions