[wiki.georest] push by - Edited wiki page ApiMethods through web user interface. on 2010-11-17 17:02 GMT

1 view
Skip to first unread message

geo...@googlecode.com

unread,
Nov 17, 2010, 12:02:52 PM11/17/10
to georest...@googlegroups.com
Revision: b58f4e0be3
Author: gordon.luckett
Date: Wed Nov 17 09:02:18 2010
Log: Edited wiki page ApiMethods through web user interface.
http://code.google.com/p/georest/source/detail?repo=wiki&r=b58f4e0be3

Modified:
/ApiMethods.wiki

=======================================
--- /ApiMethods.wiki Sun Jul 25 01:36:57 2010
+++ /ApiMethods.wiki Wed Nov 17 09:02:18 2010
@@ -240,6 +240,12 @@
GeoREST uses POST method for data *INSERT*. GeoREST reads the data from
the HTTP message body and executes INSERT statement if the data in an HTTP
message are correct.
Message body data must be an XML document.
XML document definition must conform to XML definition described in
[RenderersXml XML Renderer Information].
+{{{
+NOTE: you must configure your XML Renderer to accept POST as a method:
+<Representation renderer="XML" pattern=".xml">
+ <Method name="POST" />
+</Representation>
+}}}

* Example of XML document data for insert.
{{{
@@ -328,6 +334,15 @@
The "PUT" method is similar to the POST method in that it can cause
information to be updated on the server. GeoREST uses PUT method for data
*UPDATE*.
GeoREST reads the data from the HTTP message body and executes UPDATE
statement if the data in an HTTP message are correct.
Message body data must be an XML document.
+
+{{{
+NOTE: you must configure your XML Renderer to accept POST as a method:
+<Representation renderer="XML" pattern=".xml">
+ <Method name="PUT" />
+</Representation>
+}}}
+
+
To update specific features also additional filter parameters can be added
to URL.
The best way to update one feature is to add feature ID (primary key
value) of the feature to be updated before ".xml" (representation pattern).
{{{
@@ -425,6 +440,16 @@

===DELETE Method===
The DELETE method requests that the GeoREST deletes the resource
identified by the Request-URI.
+
+
+{{{
+NOTE: you must configure your XML Renderer to accept POST as a method:
+<Representation renderer="XML" pattern=".xml">
+ <Method name="DELETE" />
+</Representation>
+}}}
+
+
To delete desired features from data source an filter parameter must be
used with URI. How to use parameters read [URIPARAMS Describes URI
parameters].

* Javascript jQuery example of deleting feature with parcelnum equal to
123.

Reply all
Reply to author
Forward
0 new messages