Sha256: a03b63098c138f56fbcb0d8fb0d9fb462648bd2e8c5c509446c1466ecf8afaca

Contents?: true

Size: 300 Bytes

Versions: 1

Compression:

Stored size: 300 Bytes

Contents

module DiscourseApi
  module API
    module Uploads
      def upload_file(args)
        args = API.params(args)
                  .optional(:file, :url)
                  .default(type: 'composer', synchronous: true)
                  .to_h
        post('/uploads', args)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
discourse_api-0.16.0 lib/discourse_api/api/uploads.rb