# Check the arguments are sane
raise OSM::APIBadUserInput, "No id was given" unless params[:id]
raise OSM::APIBadUserInput, "No text was given" if params[:text].blank?
# Check the arguments are sane
raise OSM::APIBadUserInput, "No id was given" unless params[:id]
raise OSM::APIBadUserInput, "No text was given" if params[:text].blank?
# Add a comment to the changeset
comment = changeset.comments.create(:changeset => changeset,
# Add a comment to the changeset
comment = changeset.comments.create(:changeset => changeset,
# Return a copy of the updated changeset
@changeset = comment.changeset
render "api/changesets/changeset"
# Return a copy of the updated changeset
@changeset = comment.changeset
render "api/changesets/changeset"
# Return a copy of the updated changeset
@changeset = comment.changeset
render "api/changesets/changeset"
# Return a copy of the updated changeset
@changeset = comment.changeset
render "api/changesets/changeset"