Sha256: e8c511640053e6bf22aa0d99bd44b21c0ebe9a52a241c0c0dd5b45181e26af5a

Contents?: true

Size: 485 Bytes

Versions: 14

Compression:

Stored size: 485 Bytes

Contents

module RestFtpDaemon
  module API
    class Root < Grape::API

####### GET /debug

      get '/debug' do
        info "GET /debug"
        begin
          raise RestFtpDaemon::DummyException
        rescue RestFtpDaemon::RestFtpDaemonException => exception
          status 501
          api_error exception
        rescue Exception => exception
          status 501
          api_error exception
        else
          status 200
          {}
        end
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rest-ftp-daemon-0.210.2 lib/rest-ftp-daemon/api/debug.rb
rest-ftp-daemon-0.210.1 lib/rest-ftp-daemon/api/debug.rb
rest-ftp-daemon-0.210.0 lib/rest-ftp-daemon/api/debug.rb
rest-ftp-daemon-0.202.2 lib/rest-ftp-daemon/api/debug.rb
rest-ftp-daemon-0.202.1 lib/rest-ftp-daemon/api/debug.rb
rest-ftp-daemon-0.202 lib/rest-ftp-daemon/api/debug.rb
rest-ftp-daemon-0.200 lib/rest-ftp-daemon/api/debug.rb
rest-ftp-daemon-0.104.5 lib/rest-ftp-daemon/api/debug.rb
rest-ftp-daemon-0.103.1 lib/rest-ftp-daemon/api/debug.rb
rest-ftp-daemon-0.101 lib/rest-ftp-daemon/api/debug.rb
rest-ftp-daemon-0.100.2 lib/rest-ftp-daemon/api/debug.rb
rest-ftp-daemon-0.100 lib/rest-ftp-daemon/api/debug.rb
rest-ftp-daemon-0.95.2 lib/rest-ftp-daemon/api/debug.rb
rest-ftp-daemon-0.94.4 lib/rest-ftp-daemon/api/debug.rb