Get items by ID
Returns an archived item by ID with the service.
Endpoint
{base_url}/items/{id}
Parameters
- id - ID of the item you want to fetch from the Keepit service.
Request headers
None
Request body
None
Response body
{
"id": 4,
"title": "Oral history about Austin music scene",
"creationDate": "2005-04-12",
"accessionDate": "2018-08-22",
"format": "MP3",
"collection": "Texas Oral Histories"
}
Examples
GET example request
curl http://localhost:3000/items/4
GET example response
{
"id": 4,
"title": "Oral history about Austin music scene",
"creationDate": "2005-04-12",
"accessionDate": "2018-08-22",
"format": "MP3",
"collection": "Texas Oral Histories"
}
Response status
| HTTP status value | Description |
|---|---|
| 200 | Success: Requested data returned successfully |
| ECONNREFUSED | Service is offline. Start, or restart the service and try again. |