-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathexport_history.raml
More file actions
40 lines (33 loc) · 1.43 KB
/
export_history.raml
File metadata and controls
40 lines (33 loc) · 1.43 KB
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: Export history
baseUri: https://github.com/folio-org/mod-orders
version: v1
protocols: [ HTTP, HTTPS ]
documentation:
- title: Export history Logic API
content: <b>API for managing export history</b>
types:
export-history: !include acq-models/mod-orders-storage/schemas/export_history.json
export-history-collection: !include acq-models/mod-orders-storage/schemas/export_history_collection.json
errors: !include raml-util/schemas/errors.schema
UUID:
type: string
pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$
traits:
pageable: !include raml-util/traits/pageable.raml
searchable: !include raml-util/traits/searchable.raml
validate: !include raml-util/traits/validation.raml
resourceTypes:
collection: !include raml-util/rtypes/collection-with-json-response.raml
collection-item: !include raml-util/rtypes/item-collection-with-json-response.raml
collection-get: !include raml-util/rtypes/collection-get.raml
/orders/export-history:
displayName: Pieces
description: Create export-history record
type:
collection-get:
exampleCollection: !include acq-models/mod-orders-storage/examples/export_history_collection.sample
schemaCollection: export-history-collection
is: [ validate ]
get:
is: [ pageable, searchable: { description: "using CQL (indexes for export-history records)", example: "exportType==\"EDIFACT_ORDERS_EXPORT\"" } ]