Sha256: 5da2e3eb924c29a114ac8119e8a7ae27f7533baa0f0ab568170e85a4a7cc3b31

Contents?: true

Size: 306 Bytes

Versions: 4

Compression:

Stored size: 306 Bytes

Contents

module DiscourseApi
  module API
    module Uploads
      def upload_post_image(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

4 entries across 4 versions & 1 rubygems

Version Path
discourse_api-0.15.0 lib/discourse_api/api/uploads.rb
discourse_api-0.14.1 lib/discourse_api/api/uploads.rb
discourse_api-0.14.0 lib/discourse_api/api/uploads.rb
discourse_api-0.13.0 lib/discourse_api/api/uploads.rb