Orbeon - Does the persistence API not support a POST to create form data? -
the persistence api documentation says:
when using get, put , delete deal resources, body of http requests contains resource handle.
this seems indicate post not supported operation. documentation mentions get, put , delete.
i have read elsewhere (i can't remember where) possible post to:
http://[server]/orbeon/fr/[app_name]/[form_name]/new
i have tested , works, not using rest api. returns page intended user begin editing form data. isn't i'm looking for. have expected able post to
http://[server]/orbeon/fr/service/persistence/crud/[app_name]/[form_name]/data/
and location of newly created form data (including document id) returned in location
header of response. doing post returns 500 error. stack trace seems indicate validation exception of kind. not supported?
correct, persistence api doesn't support post, , can post /new page, 2 different things.
so, if want call persistence api directly, , want create new document, need "pick" document id. using same code form runner calls: secure:randomhexid()
, implemented in secureutils.scala
.
Comments
Post a Comment