-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MODORDERS-1138] Implement endpoint to fetch Circulation requests for…
… pieces (#974) * [MODORDERS-1138] Implement endpoint to fetch Circulation requests for pieces * [MODORDERS-1138] Implement endpoint to fetch Circulation requests for pieces * [MODORDERS-1138] Add tenantId to requests * [MODORDERS-1138] Pass locationContext when fetching requests * [MODORDERS-1138] Fix sonarcloud * [MODORDERS-1138] Add /pieces-requests in a separate raml file
- Loading branch information
1 parent
3b28311
commit bc235ad
Showing
11 changed files
with
187 additions
and
23 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
Submodule acq-models
updated
2 files
+54 −0 | mod-orders/examples/circulationRequestsCollection.sample | |
+25 −0 | mod-orders/schemas/circulationRequestsCollection.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,33 @@ | ||
#%RAML 1.0 | ||
title: Pieces Requests | ||
baseUri: https://github.com/folio-org/mod-orders | ||
version: v1 | ||
protocols: [ HTTP, HTTPS ] | ||
|
||
documentation: | ||
- title: Endpoint for fetching Circulation Requests for Pieces | ||
content: <b>Endpoint for fetching Circulation Requests for Pieces</b> | ||
|
||
types: | ||
requests-collection: !include acq-models/mod-orders/schemas/circulationRequestsCollection.json | ||
errors: !include raml-util/schemas/errors.schema | ||
UUID: | ||
type: string | ||
pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$ | ||
|
||
/orders/pieces-requests: | ||
get: | ||
description: Return a collection of circulation requests by Piece IDs | ||
queryParameters: | ||
pieceIds: | ||
displayName: IDs of the pieces associated with the requests | ||
type: string[] | ||
description: IDs of the pieces associated with the requests | ||
example: [ 7e74f1f1-f19e-482e-a02a-669fd632c5e0, afd0c802-2d9c-49ed-be89-770b7ef564b5 ] | ||
required: true | ||
status: | ||
displayName: Status by which the requests should be filtered | ||
type: string | ||
description: Status by which the requests should be filtered | ||
example: Open - In transit | ||
required: true |
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
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
Oops, something went wrong.