-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathexchange_rate_source.raml
More file actions
79 lines (75 loc) · 2.36 KB
/
Copy pathexchange_rate_source.raml
File metadata and controls
79 lines (75 loc) · 2.36 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#%RAML 1.0
title: "mod-finance-storage"
baseUri: https://github.com/folio-org/mod-finance-storage
version: v1
documentation:
- title: mod-finance-storage (Exchange Rate Sources)
content: <b>CRUD APIs used to manage expense rate sources.</b>
types:
exchange-rate-source: !include acq-models/mod-finance/schemas/exchange_rate_source.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:
validate: !include raml-util/traits/validation.raml
/finance-storage/exchange-rate-source:
get:
description: Get exchange rate source
responses:
200:
description: "Exchange rate source successfully retrieved"
404:
description: "Exchange rate source not found"
body:
application/json:
type: errors
post:
description: Save exchange rate source
is: [validate]
body:
application/json:
type: exchange-rate-source
example: !include acq-models/mod-finance/examples/exchange_rate_source.sample
responses:
201:
description: "Exchange rate source successfully created"
body:
application/json:
type: exchange-rate-source
example: !include acq-models/mod-finance/examples/exchange_rate_source.sample
409:
description: "Exchange rate source already exists"
body:
application/json:
type: errors
/{id}:
uriParameters:
id:
description: The UUID of the exchange rate source
type: UUID
is: [validate]
put:
description: Update exchange rate source
body:
application/json:
type: exchange-rate-source
example: !include acq-models/mod-finance/examples/exchange_rate_source.sample
responses:
204:
description: "Exchange rate source successfully updated"
404:
description: "Exchange rate source not found"
body:
application/json:
type: errors
delete:
description: Delete exchange rate source
responses:
204:
description: "Exchange rate source successfully deleted"
404:
description: "Exchange rate source not found"
body:
application/json:
type: errors