API Docs for RESTful Ingest
Panel |
---|
|
Create BagGet All Bags- Purpose: Provides the current version of the Bridge App
- Request:
GET https://host:port/api/bags/ - Response Code: 200 (on success)
Response Body: JSON: Code Block |
---|
{[{
"id": 1,
"name": "bag-0",
"depositor": "test-depositor",
"location": "bags/test-bag-0",
"tokenLocation": "tokens/test-bag-0-tokens",
"fixityAlgorithm": "SHA-256",
"size": 14821
},...
]} |
Get A Single Bag- Purpose: Get information about a single bag
- Request:
GET https://host:port/api/bags/ {bagID} - Response Code: 200 (on success)
Response Body: JSON: Code Block |
---|
{
"id": 1,
"name": "bag-0",
"depositor": "test-depositor",
"location": "bags/test-bag-0",
"tokenLocation": "tokens/test-bag-0-tokens",
"fixityAlgorithm": "SHA-256",
"size": 14821
} |
Get Replication Requests- Purpose: Get all replication requests for your node
- Request:
GET https://host:port/api/replications - Response Code: 200 (on success)
Response Body: JSON: Code Block |
---|
{[{
"id": 1,
"name": "bag-0",
"depositor": "test-depositor",
"location": "bags/test-bag-0",
"tokenLocation": "tokens/test-bag-0-tokens",
"fixityAlgorithm": "SHA-256",
"size": 14821
},...
]} |
|