-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Gateway support for /ipfs/{cid}?format=car|raw|... #8234
Copy link
Copy link
Closed
Labels
P1High: Likely tackled by core team if no one steps upHigh: Likely tackled by core team if no one steps upeffort/weeksEstimated to take multiple weeksEstimated to take multiple weekskind/enhancementA net-new feature or improvement to an existing featureA net-new feature or improvement to an existing featurekind/featureA new featureA new feature
Milestone
Metadata
Metadata
Assignees
Labels
P1High: Likely tackled by core team if no one steps upHigh: Likely tackled by core team if no one steps upeffort/weeksEstimated to take multiple weeksEstimated to take multiple weekskind/enhancementA net-new feature or improvement to an existing featureA net-new feature or improvement to an existing featurekind/featureA new featureA new feature
This is a meta issue for streamlining various feature requests and needs under a single opt-in query parameter that enables gateway users to fetch a specific representation of a specific content path.
Support for each format can be discussed/added via a separate issue/PR – this issue is just for tracking the bigger picture around unified
formatparamerer.Note: if you need CARs from an ipfs gateway today, POST to
/v0/api/dag/export?arg=<cid>, see: https://docs.ipfs.io/reference/http/api/#api-v0-dag-exportMVP formats
Ability to fetch every CID as full DAG in CAR or a single Block
This is the key feature to enable Verifiable Gateway Responses and "HTTP-based transport for IPFS" (mobile browsers, IoT) without introducing even more dependency on
/api/v0, and giving us flexibility for adding new features in the future.?format=car– implemented in feat(gateway): Block and CAR response formats #8758/api/v0/dag/export, but with better UX:/api/v0content-dispositiondefaults to{filename|cid}.car?format=block?format=raw– implemented in feat(gateway): Block and CAR response formats #8758/api/v0/block/get, but with better UX:/api/v0content-dispositiondefaults to{cid}.binCBOR / JSON
Moved to #8823
Future ideas / lower priorities
?format=tar|zip?format=share-img?format=unixfs-statsshare-imgbut indag-jsonformat, could provide information about Size and Type (dir/file) and be leveraged for efficient pagination of huge directories (Gateway directory listings should be paginated #8455, Get some info about UnixFS objects on public IPFS HTTP API #8528)Behaviors
?formatmissingdag-pborrawreturn file/directory(current gateway behavior)
?format=car|block|..