datanucleus / datanucleus-api-rest

Support for DataNucleus persistence using a REST-based API
6 stars 8 forks source link

Change "jdoql" / "jpql" modes so that they take parameter "query" with the encoded query #4

Closed andyjefferson closed 8 years ago

andyjefferson commented 8 years ago

Currently we have a URL like /jdoql?{JDOQL-single-string-query}[&fetchGroup={fetchGroupName}][&maxFetchDepth={depth}]

but this then makes it harder to extract the JDOQL. Would be better like /jdoql?query={JDOQL-single-string-query}[&fetchGroup={fetchGroupName}][&maxFetchDepth={depth}]

Same for JPQL URLs. Similarly for the case which accepts a filter, set the parameter to be "filter="