/
banking_accoun_type.raml
59 lines (53 loc) · 1.99 KB
/
banking_accoun_type.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#%RAML 1.0
title: "Banking account types"
baseUri: https://github.com/folio-org/mod-organizations-storage
version: v1.0
documentation:
- title: Banking account types
content: <b>CRUD APIs used to manage banking account types.</b>
types:
banking_account_type: !include acq-models/mod-orgs/schemas/banking_account_type.json
banking_account_type_collection: !include acq-models/mod-orgs/schemas/banking_account_type_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:
orderable: !include raml-util/traits/orderable.raml
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.raml
collection-item: !include raml-util/rtypes/item-collection.raml
/organizations-storage/banking-account-types:
type:
collection:
exampleCollection: !include acq-models/mod-orgs/examples/banking_account_type_collection.sample
exampleItem: !include acq-models/mod-orgs/examples/banking_account_type_post.sample
schemaCollection: banking_account_type_collection
schemaItem: banking_account_type
get:
description: Get a list of banking account types
is: [
searchable: { description: "CQL query", example: "name=Personal" },
pageable
]
post:
description: Create a banking account type
is: [ validate ]
/{id}:
uriParameters:
id:
description: The UUID of a banking account type
type: UUID
type:
collection-item:
exampleItem: !include acq-models/mod-orgs/examples/banking_account_type_get.sample
schema: banking_account_type
put:
description: Update a banking account type by id
is: [ validate ]
delete:
description: Delete a banking account type by id
is: [ validate ]