Download OpenAPI specification:
List of endpoints and interfaces available to Logos Storage API users
{- "content": [
- {
- "cid": "QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N",
- "manifest": {
- "treeCid": "QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N",
- "datasetSize": 0,
- "blockSize": 0,
- "filename": "storage.png",
- "mimetype": "image/png"
}
}
]
}| advertise | boolean Default: true When false, the dataset is neither announced to the DHT nor served to peers. Defaults to true. |
| content-type | string Example: image/png The content type of the file. Must be valid. |
| content-disposition | string Example: attachment; filename="storage.png" The content disposition used to send the filename. |
| cid required | string (Cid) Example: QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N File to be downloaded. |
| advertise | boolean Default: true When false, the dataset is neither announced to the DHT nor served to peers. Defaults to true. |
{- "cid": "QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N",
- "manifest": {
- "treeCid": "QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N",
- "datasetSize": 0,
- "blockSize": 0,
- "filename": "storage.png",
- "mimetype": "image/png"
}
}| cid required | string (Cid) Example: QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N File to be downloaded. |
| advertise | boolean Default: true When false, the dataset is neither announced to the DHT nor served to peers. Defaults to true. |
| cid required | string (Cid) Example: QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N File for which the manifest is to be downloaded. |
| advertise | boolean Default: true When false, the dataset is neither announced to the DHT nor served to peers. Defaults to true. |
{- "cid": "QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N",
- "manifest": {
- "treeCid": "QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N",
- "datasetSize": 0,
- "blockSize": 0,
- "filename": "storage.png",
- "mimetype": "image/png"
}
}| cid required | string (Cid) Example: QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N Dataset to be checked. |
{- "cid": "QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N",
- "advertise": true
}| cid required | string (Cid) Example: QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N Dataset to be announced or hidden. |
| advertise required | boolean When false, the dataset is neither announced to the DHT nor served to peers. |
{- "cid": "QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N",
- "advertise": true
}If addrs param is supplied, it will be used to dial the peer, otherwise the peerId is used
to invoke peer discovery, if it succeeds the returned addresses will be used to dial.
| peerId required | string (PeerId) Example: QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N Peer that should be dialed. |
| addrs | Array of strings or null (MultiAddress) Example: addrs=/ip4/127.0.0.1/tcp/8080 If supplied, it will be used to dial the peer.
The address has to target the listening address of the peer,
which is /ip4/ |
{- "id": "QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N",
- "addrs": [
- "/ip4/127.0.0.1/tcp/8080"
], - "spr": "string",
- "libp2pPubKey": "string",
- "mixPubKey": "string",
- "table": {
- "localNode": {
- "peerId": "string",
- "addresses": [
- "/ip4/127.0.0.1/tcp/8080"
], - "lastSeen": 0
}, - "nodes": [
- {
- "peerId": "string",
- "addresses": [
- "/ip4/127.0.0.1/tcp/8080"
], - "lastSeen": 0
}
]
}, - "storage": {
- "version": "v0.1.7",
- "revision": "0c647d8"
}, - "nat": {
- "reachability": "Unknown",
- "clientMode": true,
- "relayRunning": true,
- "portMapping": "none"
}, - "connections": [
- {
- "peerId": "QmYyQSo1c1Ym7orWxLYvCrM2EmxFTANf8wXmmE7DWjhx5N",
- "direct": true
}
]
}