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
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,11 +38,11 @@ As such, human-readable encodings of types are preferred. This specification may
38
38
39
39
Until required for business logic, servers should treat these types as opaque strings, and should preserve unknown JSON fields.
40
40
41
-
###Versioning
41
+
## Versioning
42
42
43
43
This API uses a standard version prefix in the path, such as `/v1/...`. If a backwards-incompatible change must be made, then the version number should be increased.
44
44
45
-
## Content Providers API
45
+
## Content Routing API
46
46
47
47
### `GET /routing/v1/providers/{cid}`
48
48
@@ -72,11 +72,11 @@ This API uses a standard version prefix in the path, such as `/v1/...`. If a bac
72
72
}
73
73
```
74
74
75
-
Response limit: 100 providers.
75
+
Responses SHOULD be limited to 100 providers. This endpoint MAY support [streaming](#streaming).
76
76
77
-
Each object in the `Providers` list is a record confirming to the [Peer Schema](#peer).
77
+
Each object in the `Providers` list is a record conforming to the [Peer Schema](#peer).
78
78
79
-
## Peers API
79
+
## Peer Routing API
80
80
81
81
### `GET /routing/v1/peers/{peer-id}`
82
82
@@ -107,9 +107,9 @@ represented as a CIDv1 encoded with `libp2p-key` codec.
107
107
}
108
108
```
109
109
110
-
Response limit: 100 peer records.
110
+
Responses SHOULD be limited to 100 providers. This endpoint MAY support [streaming](#streaming).
111
111
112
-
Each object in the `Peers` list is a record confirming to the [Peer Schema](#peer).
112
+
Each object in the `Peers` list is a record conforming to the [Peer Schema](#peer).
113
113
114
114
## IPNS API
115
115
@@ -172,7 +172,7 @@ with one result per line:
172
172
173
173
:::note
174
174
175
-
Streaming is opt-in and backwards-compatibile with clients and servers that do
175
+
Streaming is opt-in and backwards-compatible with clients and servers that do
176
176
not support streaming:
177
177
178
178
- Requests without the `Accept: application/x-ndjson` header MUST default to
0 commit comments