...
Code Block | ||
---|---|---|
| ||
"pathPattern": "/loadHoldings/status", "permissionsRequired": ["kb-ebsco.holdings.load.status.get"] |
The status enum includes three itemsthe following values :
Code Block |
---|
Started, In Progress, Completed, FailedNot Started - before the first start of loading holdings. Started - the request POST /{custid}/holdings was sent to RM API. In Progress - the loading is in progress. Both GET /{custid}/holdings/status and GET /{custid}/holdings are assumed as one action. Completed - loading is finished and holdings saved in database. Failed - some request failed. |
and saved as a class variable.
If the request returns an error from the RM API, it should be returned to the user???
...
Info |
---|
2. Add retry mechanism in case something fails - at least 3 retries |
...