ICRC
ICRC copied to clipboard
ICRC-23: http_request_namespacing
This ICRC is reserved to discuss the need for and definition of a standard for ICRC standards to reserve a path in http_request to deliver content, data, certification, and other items that may need to be accessible via https.
for example:
https://canister-id.icp0.io/-/icrc-3/ledger/{skip}/{take}
More later.
With a bit of investigation, I'm proposing the following syntax for reserving a path for ICRC HTTP designations:
https://{canisterid}.icp0.io/---/icrc{x}/{*}
Where:
- x is the ICRC number.
-
- is any available path is made available to the ICRC standard for designation
The triple dash is:
- Distinctive and easy to recognize.
- Unlikely to be used by other application
- The dash is separated so you can clearly see there are three of them.
- Provides an anchor point for developers on the platform to recognize that "something icrc-like is happening here, I should be able to look it up";
Example: https://{canisterid}.icp0.io/---/icrc3/block/53 for retrieving a representation of block 53 on an ICRC3 ledger.
Others considered:
- Single dash - we use this in perpetualOS so I went with something longer
- Triple or single underscore - it is a bit harder to see that there are multiple items.