fredwu / api_taster

A quick and easy way to visually test your Rails application's API.
http://fredwu.github.com/api_taster
727 stars 85 forks source link

Support uploading files #32

Closed bongole closed 12 years ago

bongole commented 12 years ago

This patch supports uploading files.

To upload file, you should write routes.rb like below:

ApiTaster.routes do
   post '/items', {
        :item => {
           :title => 'test',
           :content => :file  # this generates file upload form.
         }
    }
end
fredwu commented 12 years ago

Very nice! Merge, thanks!