Skip to content

Commit 7e7071a

Browse files
committed
feat: include peer routing endpoint
1 parent 1d58c19 commit 7e7071a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ipips/ipip-0484.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tags: ['ipips']
1616

1717
## Summary
1818

19-
Add opt-in support for filtering specific network transports and/or transfer protocols to the Delegated Routing v1 HTTP endpoint via HTTP GET parameters.
19+
Add opt-in support for filtering specific network transports and/or transfer protocols to the Delegated Routing v1 HTTP endpoints via HTTP GET parameters.
2020

2121
## Motivation
2222

@@ -44,7 +44,7 @@ In the context of this IPIP, we refer to the network layer transport protocol, e
4444

4545
### Network Transport Protocol Filtering
4646

47-
The proposed change is to add a `?filter-addrs` parameter to the `GET /routing/v1/providers/{cid}` endpoint of :cite[http-routing-v1]:
47+
The proposed change is to add a `?filter-addrs` parameter to the `GET /routing/v1/providers/{cid}` and `GET /routing/v1/peers/{peer-id}` endpoints of :cite[http-routing-v1]:
4848

4949
- Add a `?filter-addrs=<comma-separated-list>` optional parameter to `GET /routing/v1/providers/{CID}` that indicates which network transports to return by filtering the multiaddrs in the `Addrs` field of the [Peer schema].
5050
- The value of the `filter-addrs` parameter is a comma-separated list of network transport protocol _name strings_ as defined in the [multiaddr protocol registry](https://github.com/multiformats/multiaddr/blob/master/protocols.csv), e.g. `?filter-addrs=webtransport`.
@@ -59,7 +59,7 @@ The proposed change is to add a `?filter-addrs` parameter to the `GET /routing/v
5959

6060
### Transfer Protocol Filtering
6161

62-
The proposed change is to add a `?filter-protocols` parameter to the `GET /routing/v1/providers/{cid}` endpoint of :cite[http-routing-v1]:
62+
The proposed change is to add a `?filter-protocols` parameter to the `GET /routing/v1/providers/{cid}` and `GET /routing/v1/peers/{peer-id}` endpoints of :cite[http-routing-v1]:
6363

6464
- Add a `?filter-protocols=<comma-separated-list>` optional parameter to `GET /routing/v1/providers/{CID}` to filter providers based on the `Protocol` field of the [Peer schema] .
6565
- The `filter-protocols` parameter is a comma-separated list of transfer protocol names, e.g. `?filter-protocols=transport-bitswap`.

0 commit comments

Comments
 (0)