-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.raml
More file actions
380 lines (380 loc) · 8.91 KB
/
api.raml
File metadata and controls
380 lines (380 loc) · 8.91 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
#%RAML 1.0
title: Multrees WebAPI
version: 1
baseUri: https://api.multrees.com/v{version}/{fi}
baseUriParameters:
fi:
type: string
description: The Financial Institute's short-code, supplied by Multrees.
displayName: Financial Institute
protocols: [ HTTPS ]
mediaType:
- application/json
description: |
Disruption
Open
Breakthrough
Gamechanger
Innovative
Millennial
Leverage
Next Generation
Platform
Legacy
Digital
Democratisation
Anything … as-a-service
Marketplace
types:
Account:
displayName: Account
description: An account.
type: object
properties:
customerId:
type: string
required: true
accountName:
type: string
required: true
example:
customerId : "TODO"
accountName : "TODO"
Accounts:
description: An array of accounts.
type: Account[]
minItems: 1
Beneficiary:
description: A beneficiary.
properties:
customerId:
type: string
required: true
accountName:
type: string
required: true
date:
type: date-only
required: true
internal:
type: boolean
required: true
relationship:
type: string
example:
customerId : "TODO"
date: "2017-01-20"
accountName : "TODO"
internal: true
relationship: ""
Beneficiaries:
description: An array of beneficiaries.
type: Beneficiary[]
minItems: 1
Client:
description: A client.
properties:
customerId:
type: string
required: true
accountName:
type: string
required: true
example:
customerId : "TODO"
accountName : "TODO"
Clients:
description: An array of clients.
type: Client[]
minItems: 1
Holding:
description: A holding ... [TODO]
properties:
customerId:
type: string
required: true
accountName:
type: string
required: true
example:
customerId : "TODO"
accountName : "TODO"
Holdings:
description: An array of holdings.
type: Holding[]
minItems: 1
Payment:
description: A payment ... [TODO]
properties:
customerId:
type: string
required: true
accountName:
type: string
required: true
notice:
type: date-only
required: false
displayName: Advanced Notice
description: |
If this is an advanced notice then this is the settlement date.
Otherwise it is the date of the payment.
repeat:
type: string
required: false
displayName: Regular Payment
description: If this is a regular payment then describe the repeat.
example:
customerId : "TODO"
accountName : "TODO"
repeat: "first day of month"
notice: "2017-02-28"
Payments:
description: An array of payments.
type: Payment[]
minItems: 1
Trade:
description: A trade.
properties:
customerId:
type: string
required: true
accountName:
type: string
required: true
example:
customerId : "TODO"
accountName : "TODO"
Trades:
description: An array of trades.
type: Trade[]
minItems: 1
resourceTypes:
/clients:
displayName: Clients
description: Collection of all clients ... [TODO]
get:
description: Retrieve all clients.
responses:
200:
body:
application/json:
type: Clients
# post:
# description: Create a number of clients.
# put:
# description: Update a number of clients.
# delete:
# description: Remove a number of clients.
/{client}:
displayName: Client
description: A client ... [TODO]
get:
description: Retrieve a client.
responses:
200:
body:
application/json:
type: Client
# post:
# description: Create a client.
# put:
# description: Update a client.
# delete:
# description: Remove a client.
/accounts:
displayName: Accounts
description: Collection of all accounts ... [TODO]
get:
description: Retrieve all accounts.
responses:
200:
body:
application/json:
type: Accounts
# post:
# description: Create a number of accounts.
# put:
# description: Update a number of accounts.
# delete:
# description: Remove a number of accounts.
/{account}:
displayName: Account
description: An account ... [TODO]
get:
description: Retrieve an account.
responses:
200:
body:
application/json:
type: Account
# post:
# description: Create an account.
# put:
# description: Update an account.
# delete:
# description: Remove an account.
/beneficiaries:
displayName: Beneficiaries
description: Collection of all beneficiaries ... [TODO]
get:
description: Retrieve all beneficiaries.
responses:
200:
body:
application/json:
type: Beneficiaries
# post:
# description: Create a number of beneficiaries.
# put:
# description: Update a number of beneficiaries.
# delete:
# description: Remove a number of beneficiaries.
/{beneficiary}:
displayName: Beneficiary
description: A beneficiary ... [TODO]
get:
description: Retrieve a beneficiary.
responses:
200:
body:
application/json:
type: Beneficiary
# post:
# description: Create a beneficiary.
# put:
# description: Update a beneficiary.
# delete:
# description: Remove a beneficiary.
/holdings:
displayName: Holdings
description: Collection of all holdings.
get:
description: Retrieve all holdings.
queryParameters:
extractDate:
displayName: Extract Date
type: datetime
description: TODO
required: false
responses:
200:
body:
application/json:
type: Holdings
/{holding}:
displayName: Holding
description: A holding ... [TODO]
get:
responses:
200:
body:
application/json:
type: Holding
# post:
# body:
# application/json:
# schema: Holding
# responses:
# 200:
/classifications/{classification}:
get:
responses:
200:
body:
application/json:
type: Holdings
/accounts/{account}:
get:
responses:
200:
body:
application/json:
type: Holdings
/payments:
displayName: Payments
description: Collection of all payments.
get:
description: Retrieve all payments.
queryParameters:
responses:
200:
body:
application/json:
type: Payments
# post:
# description: Create a number of payments.
# put:
# description: Update a number of payments.
# delete:
# description: Remove a number of payments.
/{payment}:
description: A single payment ... [TODO]
get:
description: Retrieve a payment.
responses:
200:
body:
application/json:
type: Payment
# post:
# description: Create a payment.
# put:
# description: Update a payment.
# delete:
# description: Remove a payment.
/trades:
displayName: Trades
description: Collection of all trades.
get:
description: Retrieve all trades.
queryParameters:
responses:
200:
body:
application/json:
type: Trades
# post:
# description: Create a number of trades.
# put:
# description: Update a number of trades.
# delete:
# description: Remove a number of trades.
/{trade}:
displayName: Trade
description: A trade ... [TODO]
get:
description: Retrieve a single trade.
responses:
200:
body:
application/json:
type: Trade
# post:
# description: Create a trade.
# put:
# description: Update a trade.
# delete:
# description: Remove a trade.
/users:
displayName: Users
description: Collection of all users.
get:
description: Retrieve all users.
# post:
# description: Create a number of users.
# put:
# description: Update a number of users.
# delete:
# description: Remove a number of users.
/{user}:
displayName: User
description: A user ... [TODO]
get:
description: Retieve a user.
# post:
# description: Create a user.
# put:
# description: Update a user.
# delete:
# description: Remove a user.