-
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.
CIRCSTORE- 514 Implement Post API to fetch print Event Details (#471)
* CIRCSTORE-514 Adding a plain index for requestId field of jsonb column * CIRCSTORE-514 Adding a new endpoint to fetch request print details * CIRCSTORE-514 Adding new endpoint in module descriptor * CIRCSTORE-514 Adding test cases, example json files * CIRCSTORE-514 Adding try catch and loggers
- Loading branch information
1 parent
2ade190
commit 117f2c3
Showing
12 changed files
with
363 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"requestIds" : [ | ||
"fbbbe691-d6c6-4f40-b9dd-7364ccb1518a", | ||
"fd831be3-f05f-4b6f-b68f-1a976ea1ab0f" | ||
] | ||
} |
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,7 @@ | ||
{ | ||
"requestId": "fbbbe691-d6c6-4f40-b9dd-7364ccb1518a", | ||
"requesterId": "44642483-f4d4-4a29-a2ba-8eefcf53de16", | ||
"requesterName": "vignesh", | ||
"count": 2, | ||
"printEventDate": "2024-07-04T07:07:00.000+00:00" | ||
} |
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,19 @@ | ||
{ | ||
"printEventsStatusResponses": [ | ||
{ | ||
"requestId": "fbbbe691-d6c6-4f40-b9dd-7364ccb1518a", | ||
"requesterId": "44642483-f4d4-4a29-a2ba-8eefcf53de16", | ||
"requesterName": "vignesh", | ||
"count": 2, | ||
"printEventDate": "2024-07-04T07:07:00.000+00:00" | ||
}, | ||
{ | ||
"requestId": "fd831be3-f05f-4b6f-b68f-1a976ea1ab0f", | ||
"requesterId": "44642483-f4d4-4a29-a2ba-8eefcf53de17", | ||
"requesterName": "siddhu", | ||
"count": 5, | ||
"printEventDate": "2024-07-05T07:07:00.000+00:00" | ||
} | ||
], | ||
"totalRecords": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"description": "Print Events Request", | ||
"type": "object", | ||
"properties": { | ||
"requestIds": { | ||
"description": "List of request IDs", | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"type": "string", | ||
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$" | ||
} | ||
} | ||
} | ||
} | ||
|
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,28 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"description": "Print events details", | ||
"type": "object", | ||
"properties": { | ||
"requestId": { | ||
"description": "ID of the request", | ||
"type": "string" | ||
}, | ||
"requesterId": { | ||
"description": "ID of the requester", | ||
"type": "string" | ||
}, | ||
"requesterName": { | ||
"description": "Name of the requester", | ||
"type": "string" | ||
}, | ||
"count": { | ||
"description": "No of times the request is printed", | ||
"type": "integer" | ||
}, | ||
"printEventDate": { | ||
"description": "Date and time when the print command is executed", | ||
"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 print events details", | ||
"type": "object", | ||
"properties": { | ||
"printEventsStatusResponses": { | ||
"description": "List of print events details", | ||
"id": "printEvents", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"$ref": "print-events-status-response.json" | ||
} | ||
}, | ||
"totalRecords": { | ||
"type": "integer" | ||
} | ||
}, | ||
"required": [ | ||
"printEventsStatusResponses", | ||
"totalRecords" | ||
] | ||
} |
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.