-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathinstance-sync-unsafe.raml
40 lines (37 loc) · 1.71 KB
/
instance-sync-unsafe.raml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#%RAML 1.0
title: Inventory Storage Instance Batch Sync Unsafe API
version: v3.0
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost
documentation:
- title: "Inventory Storage Instance Batch Sync Unsafe API"
content: <b>Batch API for synchronously uploading instances into the inventory with optimistic locking disabled</b>
types:
errors: !include raml-util/schemas/errors.schema
instances_post: !include instances_post.json
/instance-storage/batch/synchronous-unsafe:
displayName: Instances Batch Upload Sync API With Optimistic Locking Disabled
post:
description: "Create or update a collection of instances in a single synchronous request; if any instance fails the complete batch will be rejected (all or nothing). Environment variable DB_ALLOW_SUPPRESS_OPTIMISTIC_LOCKING is required, see https://github.com/folio-org/raml-module-builder#environment-variables for details. The _version property is ignored, optimistic locking is disabled - this is known to lead to data loss in some cases, don't use in production, you have been warned!"
body:
application/json:
type: instances_post
example: !include examples/instances_post.json
responses:
201:
description: "All instances have been successfully created or updated"
413:
description: "Payload too large or not allowed by DB_ALLOW_SUPPRESS_OPTIMISTIC_LOCKING environment variable"
body:
text/plain:
example: "Payload Too Large"
422:
description: "Unprocessable Entity"
body:
application/json:
type: errors
500:
description: "Internal server error"
body:
text/plain:
example: "Internal server error"