-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathactual-cost-fee-fine.raml
68 lines (64 loc) · 2.03 KB
/
actual-cost-fee-fine.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
60
61
62
63
64
65
66
67
68
#%RAML 1.0
title: Actual cost fee/fine API
version: v0.3
baseUri: http://github.com/org/folio/mod-feesfines
documentation:
- title: Actual Cost Fee Fine API
content: This documents the Actual Cost Fee Fine API
types:
actualCostFeeFineCancel: !include actual-cost-fee-fine-cancel.json
actualCostFeeFineBill: !include actual-cost-fee-fine-bill.json
actualCostRecord: !include actual-cost-record.json
actualCostRecords: !include actual-cost-records.json
errors: !include raml-util/schemas/errors.schema
traits:
validate: !include raml-util/traits/validation.raml
/actual-cost-fee-fine:
/cancel:
post:
is: [validate]
description: "Cancel actual cost record"
body:
application/json:
schema: actualCostFeeFineCancel
example: !include examples/actual-cost-fee-fine-cancel.sample
responses:
201:
body:
application/json:
schema: actualCostRecord
example: !include examples/actual-cost-record.sample
422:
description: "Unprocessable entity"
body:
text/plain:
example: "Invalid request"
500:
description: "Internal server error, e.g. due to misconfiguration"
body:
text/plain:
example: "Internal server error"
/bill:
post:
is: [validate]
description: "Bill actual cost record"
body:
application/json:
schema: actualCostFeeFineBill
example: !include examples/actual-cost-fee-fine-bill.sample
responses:
201:
body:
application/json:
schema: actualCostRecord
example: !include examples/actual-cost-record.sample
422:
description: "Unprocessable entity"
body:
text/plain:
example: "Invalid request"
500:
description: "Internal server error, e.g. due to misconfiguration"
body:
text/plain:
example: "Internal server error"