mirror of https://gitee.com/bigwinds/arangodb
23 lines
998 B
Plaintext
23 lines
998 B
Plaintext
<span class="hljs-meta">shell></span><span class="bash"> curl -X POST --header <span class="hljs-string">'x-arango-async: store'</span> --header <span class="hljs-string">'accept: application/json'</span> --data-binary @- --dump - http://localhost:8529/_api/transaction</span> <<EOF
|
|
{
|
|
<span class="hljs-string">"collections"</span> : {
|
|
<span class="hljs-string">"read"</span> : [
|
|
<span class="hljs-string">"_frontend"</span>
|
|
]
|
|
},
|
|
<span class="hljs-string">"action"</span> : <span class="hljs-string">"function () {require('internal').sleep(15.0);}"</span>
|
|
}
|
|
EOF
|
|
|
|
HTTP/1.1 Accepted
|
|
content-type: text/plain; charset=utf-8
|
|
x-arango-async-id: 131796
|
|
x-content-type-options: nosniff
|
|
|
|
<span class="hljs-meta">shell></span><span class="bash"> curl --header <span class="hljs-string">'accept: application/json'</span> --dump - http://localhost:8529/_api/job/131796</span>
|
|
|
|
HTTP/1.1 No Content
|
|
content-type: text/plain; charset=utf-8
|
|
x-content-type-options: nosniff
|
|
|