-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into CIRCSTORE-377
- Loading branch information
Showing
70 changed files
with
2,616 additions
and
294 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -325,7 +325,6 @@ | |
"required": [ | ||
"lossType", | ||
"lossDate", | ||
"expirationDate", | ||
"user", | ||
"loan", | ||
"item", | ||
|
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,13 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"type": ["array", "null"], | ||
"description": "List of allowed pickup service point IDs", | ||
"default": null, | ||
"minItems": 1, | ||
"uniqueItems": true, | ||
"items": { | ||
"description": "UUID string", | ||
"type": "string", | ||
"$ref": "raml-util/schemas/uuid.schema" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"type": "object", | ||
"description": "Checkout Lock", | ||
"properties": { | ||
"userId": { | ||
"description": "ID of the patron the lock is created for", | ||
"$ref": "raml-util/schemas/uuid.schema" | ||
}, | ||
"ttlMs": { | ||
"description": "Time to live for lock object", | ||
"type": "integer" | ||
} | ||
} | ||
} |
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,98 @@ | ||
#%RAML 1.0 | ||
title: Checkout Lock Storage | ||
version: v1.0 | ||
protocols: [ HTTP, HTTPS ] | ||
baseUri: http://localhost:9130 | ||
|
||
documentation: | ||
- title: Checkout Lock API | ||
content: <b>Storage for checkout lock</b> | ||
|
||
types: | ||
checkout-lock: !include checkout-lock.json | ||
checkout-locks: !include checkout-locks.json | ||
checkout-lock-request: !include checkout-lock-request.json | ||
errors: !include raml-util/schemas/errors.schema | ||
|
||
traits: | ||
validate: !include raml-util/traits/validation.raml | ||
|
||
/check-out-lock-storage: | ||
displayName: Checkout lock storage | ||
get: | ||
description: "Retrieve a list of checkout lock items" | ||
queryParameters: | ||
userId: | ||
description: Filter locks by user ID. | ||
type: string | ||
offset: | ||
description: The number of items to skip in the result set. | ||
type: integer | ||
limit: | ||
description: The maximum number of locks to return. | ||
type: integer | ||
responses: | ||
200: | ||
description: "Returns a list of checkout lock items" | ||
body: | ||
application/json: | ||
type: checkout-locks | ||
422: | ||
description: "Invalid Parameters" | ||
body: | ||
text/plain: | ||
example: "Invalid Parameters" | ||
post: | ||
is: [validate] | ||
description: "Create a lock for the given userid" | ||
body: | ||
application/json: | ||
type: checkout-lock-request | ||
example: !include examples/checkout-lock-request.json | ||
responses: | ||
201: | ||
description: "Checkout lock is created" | ||
body: | ||
application/json: | ||
type: checkout-lock | ||
example: !include examples/checkout-lock.json | ||
400: | ||
description: "Bad Request" | ||
body: | ||
text/plain: | ||
500: | ||
description: "Internal server error" | ||
body: | ||
text/plain: | ||
example: "Internal server error" | ||
503: | ||
description: "Failed to create lock for patron {userId}" | ||
body: | ||
text/plain: | ||
example: "Failed to create lock for patron " | ||
/{lockId}: | ||
get: | ||
description: "Get checkout lock" | ||
responses: | ||
200: | ||
description: "Returns item with a given ID" | ||
body: | ||
application/json: | ||
type: checkout-lock | ||
example: !include examples/checkout-lock.json | ||
400: | ||
description: "Bad Request" | ||
body: | ||
text/plain: | ||
404: | ||
description: "Item with a given ID not found" | ||
delete: | ||
description: "Delete checkout lock" | ||
responses: | ||
204: | ||
description: "Item deleted successfully" | ||
500: | ||
description: "Internal Server error" | ||
body: | ||
text/plain: | ||
example: "Internal server error" |
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,20 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"type": "object", | ||
"description": "Checkout Lock", | ||
"properties": { | ||
"id": { | ||
"description": "ID of the lock", | ||
"$ref": "raml-util/schemas/uuid.schema" | ||
}, | ||
"userId": { | ||
"description": "ID of the patron the lock is created for", | ||
"$ref": "raml-util/schemas/uuid.schema" | ||
}, | ||
"creationDate": { | ||
"description": "Date and time of lock creation", | ||
"type": "string", | ||
"format": "date-time" | ||
} | ||
} | ||
} |
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,23 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"description": "Collection of checkoutLocks", | ||
"type": "object", | ||
"properties": { | ||
"checkoutLocks": { | ||
"description": "List of checkoutLocks", | ||
"id": "checkoutLocks", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"$ref": "checkout-lock.json" | ||
} | ||
}, | ||
"totalRecords": { | ||
"type": "integer" | ||
} | ||
}, | ||
"required": [ | ||
"checkoutLocks", | ||
"totalRecords" | ||
] | ||
} |
Oops, something went wrong.