1 # The ChangesetController is the RESTful interface to Changeset objects
3 class ChangesetController < ApplicationController
6 before_filter :authorize, :only => [:create, :update, :delete]
7 before_filter :check_write_availability, :only => [:create, :update, :delete]
8 before_filter :check_read_availability, :except => [:create, :update, :delete]
10 # Create a changeset from XML.
13 cs = Changeset.from_xml(request.raw_post, true)
18 render :text => cs.id.to_s, :content_type => "text/plain"
20 render :nothing => true, :status => :bad_request
23 render :nothing => true, :status => :method_not_allowed