Question regarding Wiki Section "RESTful Scaffolding"

6 views
Skip to first unread message

Atastor

unread,
May 3, 2012, 9:34:35 AM5/3/12
to actives...@googlegroups.com
The above mentioned section explains how to access various formats via active_scaffold.

Two of the examples given describe how to create new objects, e.g. by uploading an xml file:

PUT a new thing in XML
  • data = <?xml version='1.0' encoding='UTF-8'?><record><designation>special thing</designation><quantity>3</quantity></record>
  • content_type => :xml
Isn't this wrong? Shouldn't this be POST and not PUT?
Regards, Michael


Sergio Cambra

unread,
May 3, 2012, 9:50:45 AM5/3/12
to actives...@googlegroups.com
On Jueves, 3 de mayo de 2012 06:34:35 Atastor escribió:
> The above mentioned section explains how to access various formats via
> active_scaffold.
>
> Two of the examples given describe how to create new objects, e.g. by
> uploading an xml file:
>
> PUT a new thing in XML
>
> > - PUT http://my-server/things.xml
> >
> >
> > - data = <?xml version='1.0'
> > encoding='UTF-8'?><record><designation>special
> > thing</designation><quantity>3</quantity></record>
> >
> >
> > - content_type => :xml
> >
> > Isn't this wrong? Shouldn't this be POST and not PUT?
>
> Regards, Michael

I think so, but I haven't used it
Reply all
Reply to author
Forward
0 new messages