-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EDGPATRON-119 Initial implementation
- Loading branch information
1 parent
a18077a
commit 2570ca8
Showing
13 changed files
with
201 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"requires": [ | ||
{ | ||
"id": "patron", | ||
"version": "4.2 5.0" | ||
"version": "4.2 5.1" | ||
}, | ||
{ | ||
"id": "circulation", | ||
|
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,27 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"type": ["array", "null"], | ||
"description": "List of allowed pickup service points", | ||
"default": null, | ||
"minItems": 1, | ||
"uniqueItems": true, | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "UUID string", | ||
"$ref": "raml-util/schemas/uuid.schema" | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "Service point name" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"id", | ||
"name" | ||
] | ||
} | ||
} |
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#", | ||
"description": "Allowed pickup service points grouped by request type", | ||
"type": "object", | ||
"properties": { | ||
"allowedServicePoints": { | ||
"description": "Allowed pickup service point IDs for Page requests", | ||
"type": "array", | ||
"$ref": "allowed-service-point.json" | ||
} | ||
}, | ||
"required": [ | ||
"allowedServicePoints" | ||
] | ||
} |
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,9 @@ | ||
{ | ||
"allowedServicePoints" : [ { | ||
"id" : "3a40852d-49fd-4df2-a1f9-6e2641a6e91f", | ||
"name" : "Circ Desk 1" | ||
}, { | ||
"id" : "c4c90014-c8c9-4ade-8f24-b5e313319f4b", | ||
"name" : "Circ Desk 2" | ||
} ] | ||
} |
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
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 @@ | ||
{ | ||
"code": 422, | ||
"errorMessage": "Instance with ID d5a2f197-23d9-4153-9d79-da7a9f2d4a0d was not found" | ||
} |
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,8 @@ | ||
{ | ||
"errors": [ | ||
{ | ||
"message": "Instance with ID d5a2f197-23d9-4153-9d79-da7a9f2d4a0d was not found", | ||
"parameters": [] | ||
} | ||
] | ||
} |
12 changes: 12 additions & 0 deletions
12
src/test/resources/allowed_sp_mod_patron_expected_response.json
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,12 @@ | ||
{ | ||
"allowedServicePoints" : [ { | ||
"id" : "3a40852d-49fd-4df2-a1f9-6e2641a6e91f", | ||
"name" : "Circ Desk 1" | ||
}, { | ||
"id" : "c4c90014-c8c9-4ade-8f24-b5e313319f4b", | ||
"name" : "Circ Desk 2" | ||
}, { | ||
"id" : "7c5abc9f-f3d7-4856-b8d7-6712462ca007", | ||
"name" : "Online" | ||
} ] | ||
} |