You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/routing/http-routing-v1.md
+15-9
Original file line number
Diff line number
Diff line change
@@ -13,21 +13,21 @@ order: 0
13
13
tags: ['routing']
14
14
---
15
15
16
-
"Delegated content routing" is a mechanism for IPFS implementations to use for offloading content routing to another process/server. This spec describes an HTTP API for delegated content routing.
16
+
"Delegated content routing" is a mechanism for IPFS implementations to use for offloading content routing to another process/server. This specification describes an HTTP API for delegated content routing.
17
17
18
18
## API Specification
19
19
20
20
The Delegated Content Routing Routing HTTP API uses the `application/json` content type by default.
21
21
22
-
As such, human-readable encodings of types are preferred. This spec may be updated in the future with a compact `application/cbor` encoding, in which case compact encodings of the various types would be used.
22
+
As such, human-readable encodings of types are preferred. This specification may be updated in the future with a compact `application/cbor` encoding, in which case compact encodings of the various types would be used.
23
23
24
24
## Common Data Types
25
25
26
-
- CIDs are always string-encoded using a [multibase](https://github.com/multiformats/multibase)-encoded [CIDv1](https://github.com/multiformats/cid#cidv1).
27
-
- Multiaddrs are string-encoded according to the [human-readable multiaddr specification](https://github.com/multiformats/multiaddr#specification)
28
-
- Peer IDs are string-encoded according [PeerID string representation specification](https://github.com/libp2p/specs/blob/master/peer-ids/peer-ids.md#string-representation)
29
-
- Multibase bytes are string-encoded according to [the Multibase spec](https://github.com/multiformats/multibase), and *should* use base64.
30
-
- Timestamps are Unix millisecond epoch timestamps
26
+
- CIDs are always string-encoded using a [multibase]-encoded [CIDv1].
27
+
- Multiaddrs are string-encoded according to the [human-readable multiaddr specification][multiaddr].
28
+
- Peer IDs are string-encoded according [PeerID string representation specification][peer-id-representation].
29
+
- Multibase bytes are string-encoded according to [the Multibase spec][multibase], and SHOULD use base64.
30
+
- Timestamps are Unix millisecond epoch timestamps.
31
31
32
32
Until required for business logic, servers should treat these types as opaque strings, and should preserve unknown JSON fields.
-`Addrs`: a list of known multiaddrs for the provider
174
174
-`PieceCID`: the CID of the [piece](https://spec.filecoin.io/systems/filecoin_files/piece/#section-systems.filecoin_files.piece) within which the data is stored
175
175
-`VerifiedDeal`: whether the deal corresponding to the data is verified
176
176
-`FastRetrieval`: whether the provider claims there is an unsealed copy of the data available for fast retrieval
0 commit comments