-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MODTLR-12 Change schema, response type
- Loading branch information
1 parent
5c2d694
commit 44a79cd
Showing
6 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/main/resources/swagger.api/schemas/transactionStatus.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
TransactionStatus: | ||
type: object | ||
properties: | ||
status: | ||
type: string | ||
enum: | ||
- CREATED #Created by DCB | ||
- OPEN #Item checked in at lending library | ||
- AWAITING_PICKUP #Item checked in at borrowing/Pickup library | ||
- ITEM_CHECKED_OUT #Item checkout by patron. Request is fulfilled and loan is created | ||
- ITEM_CHECKED_IN #Item returned to borrowing/Pickup library | ||
- CLOSED #Item returned to lending library | ||
- CANCELLED #Request was cancelled | ||
- ERROR #Error occurred | ||
message: | ||
type: string |
4 changes: 4 additions & 0 deletions
4
src/main/resources/swagger.api/schemas/transactionStatusResponse.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
TransactionStatusResponse: | ||
allOf: | ||
- $ref: 'transactionStatus.yaml#/TransactionStatus' | ||
- $ref: 'dcbTransaction.yaml#/DcbTransaction' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters