[
https://issues.apache.org/jira/browse/USERGRID-987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jeffrey updated USERGRID-987:
------------------------------
Description:
We need a BATCH API which can accept 'n' operations. We should look at the
ElasticSearch Batch API and others for inspiration.
As a starting point, the payload could look something like this:
{code}
HTTP-VERB /{path}
{payload on a single line, if applicable, otherwise blank line}
{code}
Example:
{code}
POST /{collection}
{payload} -- create entity
PATCH /{collection}/{name|uuid}
{payload} -- update entity, partial
PUT /{collection}/{name|uuid}
{payload} -- replace entity
DELETE /{collection}/{name|uuid}
\n
POST /{collection}/{name|uuid}/{connection}/{uuid}
{payload} -- yes, we will get there eventually
POST /{collection}/{name|uuid}/{connection}/{collection}/{uuid}
{payload} -- yes, we will get there eventually
DELETE /{collection}/{name|uuid}/{connection}/{uuid}
\n
{code}
was:
We need a BATCH API which can accept 'n' operations. We should look at the
ElasticSearch Batch API and others for inspiration.
As a starting point, the payload could look something like this:
{code}
POST /{collection}
{payload} -- create entity
PATCH /{collection}/{name|uuid}
{payload} -- update entity, partial
PUT /{collection}/{name|uuid}
{payload} -- replace entity
DELETE /{collection}/{name|uuid}
\n
POST /{collection}/{name|uuid}/{connection}/{uuid}
{payload} -- yes, we will get there eventually
POST /{collection}/{name|uuid}/{connection}/{collection}/{uuid}
{payload} -- yes, we will get there eventually
DELETE /{collection}/{name|uuid}/{connection}/{uuid}
\n
{code}
> Batch REST API Endpoint and Semantic
> ------------------------------------
>
> Key: USERGRID-987
> URL: https://issues.apache.org/jira/browse/USERGRID-987
> Project: Usergrid
> Issue Type: Story
> Reporter: Jeffrey
>
> We need a BATCH API which can accept 'n' operations. We should look at the
> ElasticSearch Batch API and others for inspiration.
> As a starting point, the payload could look something like this:
> {code}
> HTTP-VERB /{path}
> {payload on a single line, if applicable, otherwise blank line}
> {code}
> Example:
> {code}
> POST /{collection}
> {payload} -- create entity
> PATCH /{collection}/{name|uuid}
> {payload} -- update entity, partial
> PUT /{collection}/{name|uuid}
> {payload} -- replace entity
> DELETE /{collection}/{name|uuid}
> \n
> POST /{collection}/{name|uuid}/{connection}/{uuid}
> {payload} -- yes, we will get there eventually
> POST /{collection}/{name|uuid}/{connection}/{collection}/{uuid}
> {payload} -- yes, we will get there eventually
> DELETE /{collection}/{name|uuid}/{connection}/{uuid}
> \n
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)