ipfs/kubo

Gateway: client opt-in JSON responses for directory listing

Open

#7,552 opened on 2020年7月19日

GitHub で見る
 (7 comments) (2 reactions) (0 assignees)Go (2,725 forks)batch import
P3effort/daysexp/intermediatehelp wantedkind/enhancementkind/featurestatus/readytopic/gateway

Repository metrics

Stars
 (13,906 stars)
PR merge metrics
 (平均マージ 4d 2h) (30d で 28 merged PRs)

説明

Followup to #7431, that was closed but had the valuable feature of accessing json manifest of folder

requests to a "folder", especially the root of a folder published to ipns such as http://bafzbeibxww7y6v5metkgmxeqkvls74uqvptbhommrb5b7xianigcicdvuy.ipns.localhost/ should be served the same response as https://ipfs.io/api/v0/ls?arg=bafzbeibxww7y6v5metkgmxeqkvls74uqvptbhommrb5b7xianigcicdvuy

IF the accept content type header is set to "application/json" that way there is no interference with existing gateway behaviour and with serving the index.html file at the root

コントリビューターガイド