method

api_only?

rails latest stable - Class: ActionDispatch::Routing::Mapper::Mapping::Resources