{"action":"closed","issue":{"url":"https://api.github.com/repos/Apipie/apipie-rails/issues/570","repository_url":"https://api.github.com/repos/Apipie/apipie-rails","labels_url":"https://api.github.com/repos/Apipie/apipie-rails/issues/570/labels{/name}","comments_url":"https://api.github.com/repos/Apipie/apipie-rails/issues/570/comments","events_url":"https://api.github.com/repos/Apipie/apipie-rails/issues/570/events","html_url":"https://github.com/Apipie/apipie-rails/issues/570","id":273263538,"number":570,"title":"undefined method `api' for Api::V1::MyController:Class","user":{"login":"yoshiya0503","id":5334715,"avatar_url":"https://avatars2.githubusercontent.com/u/5334715?v=4","gravatar_id":"","url":"https://api.github.com/users/yoshiya0503","html_url":"https://github.com/yoshiya0503","followers_url":"https://api.github.com/users/yoshiya0503/followers","following_url":"https://api.github.com/users/yoshiya0503/following{/other_user}","gists_url":"https://api.github.com/users/yoshiya0503/gists{/gist_id}","starred_url":"https://api.github.com/users/yoshiya0503/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoshiya0503/subscriptions","organizations_url":"https://api.github.com/users/yoshiya0503/orgs","repos_url":"https://api.github.com/users/yoshiya0503/repos","events_url":"https://api.github.com/users/yoshiya0503/events{/privacy}","received_events_url":"https://api.github.com/users/yoshiya0503/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-12T20:45:42Z","updated_at":"2017-11-13T11:29:46Z","closed_at":"2017-11-13T11:29:45Z","author_association":"NONE","body":"```\r\n# Controller\r\n\r\nmodule Api\r\n  module V1\r\n    class MyContoller < ApplicationController\r\n      api :GET, '/api/v1/articles/:article_id/my'\r\n      def index\r\n        ...\r\n      end\r\n    end\r\n  end\r\nend\r\n\r\n# route.rb\r\nRails.application.routes.draw do\r\n  apipie unless Rails.env.production?\r\n\r\n  scope '/:name/xxx/' do\r\n    namespace :api, defaults: { format: :json } do\r\n      namespace :v1 do\r\n        resources :articles, only: [:index, :show] do\r\n          member do\r\n            resource :my, only: [:index]\r\n          end\r\n        end\r\n      end\r\n    end\r\n  end\r\nend\r\n```\r\n\r\nwe got `undefined method `api' for Api::V1::MyController:Class`\r\nwhats happen?"}}
{"actor":{"display_login":"yoshiya0503"}}