|
Subject: REST API: how to create a document name automatically? Newsgroups: gmane.text.xml.exist Date: 2006-10-05 14:48:23 GMT (2 years, 1 week, 3 days, 17 hours and 59 minutes ago) All, The XML:DB allows you to insert a document and have eXist automatically assign a name to the new document in the collection. Is this possible with the REST API? It doesn't seem to be the case at the moment, but please correct me if I am wrong. I note BTW a different in the way REST is used in eXist compared for example with the Atom Publishing Protocol (APP) [1]. Atom uses POST to create new resources, and PUT to update them. When using POST, the returned Location header contains the URI of the newly created resource: "If a Member Resource was created in the Collection which received the POST, its Member Entry URI MUST be returned in an HTTP Location header." It would be great if we could do something similar with eXist, whether using PUT or POST. POST is currently used to submit queries, so I guess we should still use PUT, but support returning a Location header. On the other hand, it would be great to harmonize method usage with APP. Any thoughts? -Erik [1] http://www.ietf.org/internet-drafts/draft-ietf-atompub-protocol-10.txt ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV |
|
|