API Changes
Following APIs are changed in stage 2
Accession
Accession Batch
Both Accession and Accession Batch has the following signature
{
"imsLocationCode":"RECAP", // RECAP for ReCAP Warehouse, HD for Harvard Depository
"accessionRequests":[
{
"customerCode":"PA",
"itemBarcode":"PULTST54340"
},
{
"customerCode":"PA",
"itemBarcode":"PULTST54341"
},
{
"customerCode":"PA",
"itemBarcode":"PULTST54342"
}
]
}
New REST APIs developed by ReCAP LAS
Heartbeat API : An API which will inform SCSB that LAS is up and running and ready to take requests
Request API:Â An API which will take the request and process at LAS side and send proper response
Heartbeat API:
Request Body
{
"imsLocationCode": "RECAP"
}
  Response Body for success
{
  "success": true
}
 Response Body for failure
If DB is down
if location empty
if location is invalid
Request API :
a)Â Example of Request Body for Retrieval Request (Same as current ActiveMQ Message)
Example of Response Body for Retrieval Request (Same as current ActiveMQ Message)
b)Â Â Example request body for EDD request ( Same as current ActiveMQ Message)
Example response body for EDD requests
Â