{"action":"closed","issue":{"url":"https://api.github.com/repos/tim-vandecasteele/grape-swagger/issues/224","labels_url":"https://api.github.com/repos/tim-vandecasteele/grape-swagger/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/tim-vandecasteele/grape-swagger/issues/224/comments","events_url":"https://api.github.com/repos/tim-vandecasteele/grape-swagger/issues/224/events","html_url":"https://github.com/tim-vandecasteele/grape-swagger/issues/224","id":60331455,"number":224,"title":"When using the option format :json in Grape API","user":{"login":"ristovskiv","id":8341607,"avatar_url":"https://avatars.githubusercontent.com/u/8341607?v=3","gravatar_id":"","url":"https://api.github.com/users/ristovskiv","html_url":"https://github.com/ristovskiv","followers_url":"https://api.github.com/users/ristovskiv/followers","following_url":"https://api.github.com/users/ristovskiv/following{/other_user}","gists_url":"https://api.github.com/users/ristovskiv/gists{/gist_id}","starred_url":"https://api.github.com/users/ristovskiv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ristovskiv/subscriptions","organizations_url":"https://api.github.com/users/ristovskiv/orgs","repos_url":"https://api.github.com/users/ristovskiv/repos","events_url":"https://api.github.com/users/ristovskiv/events{/privacy}","received_events_url":"https://api.github.com/users/ristovskiv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tim-vandecasteele/grape-swagger/labels/bug?","name":"bug?","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-09T11:42:30Z","updated_at":"2015-04-08T11:12:30Z","closed_at":"2015-04-08T11:12:30Z","body":"In some cases when I use the option from Grape \"format :json\" the api calls aren't shown in the swagger doc, and for some cases it works. For the example bellow it doesn't, can't figure it out what seems to be the problem.\r\n\r\n```ruby\r\nmodule Resources\r\n  class Users::Index < Grape::API\r\n\r\n    helpers APIHelpers\r\n\r\n    resource :users do\r\n      version 'v1', using: :path\r\n      format :json\r\n\r\n      before do\r\n        authenticated_user\r\n      end\r\n\r\n      desc 'Fetch all users'\r\n      get  do\r\n        User.all\r\n      end\r\n    end\r\n  end\r\nend\r\n```"}}