-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a diagram showing what the request flow looks like
- Loading branch information
1 parent
31e2556
commit 6e52a35
Showing
2 changed files
with
39 additions
and
1 deletion.
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,36 @@ | ||
# How users request items | ||
|
||
Users can use the website to request items to view in the library; we provide a series of APIs to help them do that. | ||
|
||
This is what the flow looks like: | ||
|
||
```mermaid | ||
sequenceDiagram | ||
participant user | ||
participant front end | ||
participant works API | ||
participant items API | ||
participant requests API | ||
participant Sierra | ||
user->>front end: views a works page<br/> with items | ||
front end->>works API: get information about<br/>items on a work | ||
works API->>front end: | ||
front end->>items API: get up-to-date status of items<br/>using catalogue ID | ||
items API->>works API: get matching Sierra IDs<br/>for catalogue IDs | ||
works API->>items API: | ||
items API->>Sierra: get latest Sierra item data | ||
Sierra->>items API: | ||
items API->>front end: returns items with up-to-date status | ||
front end->>front end: render items with<br/>updated information | ||
user->>front end: clicks "Request item" | ||
front end->>requests API: request an item using catalogue ID | ||
requests API->>works API: get matching Sierra IDs<br/>for catalogue IDs | ||
works API->>requests API: | ||
requests API->>Sierra: place request in<br/>Sierra | ||
Sierra->>requests API: | ||
requests API->>front end: return result of request to user | ||
``` |