diff --git a/src/http-gateways/path-gateway.md b/src/http-gateways/path-gateway.md index f024fcab..ca89bb61 100644 --- a/src/http-gateways/path-gateway.md +++ b/src/http-gateways/path-gateway.md @@ -254,11 +254,23 @@ A Gateway SHOULD include the ### `dag-scope` (request query parameter) -Only used on CAR requests, same as :ref[dag-scope] from :cite[trustless-gateway]. +Optional, can be used to limit the scope of verifiable DAG requests such as CAR, same as :ref[dag-scope] from :cite[trustless-gateway]. ### `entity-bytes` (request query parameter) -Only used on CAR requests, same as :ref[entity-bytes] from :cite[trustless-gateway]. +Optional, can be used to limit the scope of verifiable DAG requests such as CAR, same as :ref[entity-bytes] from :cite[trustless-gateway]. + +### `car-version` (request query parameter) + +Optional, specific to CAR requests, same as :ref[car-version] from :cite[trustless-gateway]. + +### `car-order` (request query parameter) + +Optional, specific to CAR requests, same as :ref[car-order] from :cite[trustless-gateway]. + +### `car-dups` (request query parameter) + +Optional, specific to CAR requests, same as :ref[car-dups] from :cite[trustless-gateway]. # HTTP Response diff --git a/src/http-gateways/trustless-gateway.md b/src/http-gateways/trustless-gateway.md index eaa59f5c..4e728d5d 100644 --- a/src/http-gateways/trustless-gateway.md +++ b/src/http-gateways/trustless-gateway.md @@ -194,6 +194,30 @@ returned: returned to the client, the HTTP status code has already been sent to the client. +### :dfn[`car-version`] (request query parameter) + +Optional, only used on CAR requests. + +Serves same purpose as [CAR `version` content type parameter](#car-version-content-type-parameter). + +In case both are present in the request, the value from the [`Accept`](#accept-request-header) HTTP Header has priority and a matching [`Content-Location`](#content-location-response-header) SHOULD be returned with the response. + +### :dfn[`car-order`] (request query parameter) + +Optional, only used on CAR requests. + +Serves same purpose as [CAR `order` content type parameter](#car-order-content-type-parameter). + +In case both are present in the request, the value from the [`Accept`](#accept-request-header) HTTP Header has priority and a matching [`Content-Location`](#content-location-response-header) SHOULD be returned with the response. + +### :dfn[`car-dups`] (request query parameter) + +Optional, only used on CAR requests. + +Serves same purpose as [CAR `dups` content type parameter](#car-dups-content-type-parameter). + +In case both are present in the request, the value from the [`Accept`](#accept-request-header) HTTP Header has priority and a matching [`Content-Location`](#content-location-response-header) SHOULD be returned with the response. + # HTTP Response Below MUST be implemented **in addition** to "HTTP Response" of :cite[path-gateway]. @@ -234,7 +258,7 @@ A CAR stream for the requested content type (with optional `order` and `dups` params), path and optional `dag-scope` and `entity-bytes` URL parameters. -## CAR version (content type parameter) +## CAR `version` (content type parameter) Value returned in [`CarV1Header.version`](https://ipld.io/specs/transport/car/carv1/#header)