Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

/api/revision/{revision}

GET

Return information about revision.

propertyvalue
authorization requiredfalse
range requests supportedfalse

Parameters

parametertypedescription
revisionrevision hashHash of the uploaded revision.

Response Body

A deco-encoded struct:

nfieldtypeoptionaldescription
1numbersa sorted set of UnsignedIntegerfalseNumbers of the packages whose head is the revision.
2signaturesa sorted set of HashfalseHashes of the signatures over the revision.

POST

Verify uploaded revision and assign it a package number.

propertyvalue
authorization requiredtrue
range requests supportedfalse

Parameters

parametertypedescription
revisionrevision hashHash of the uploaded revision.

Request Body

A deco-encoded struct of at most 1048576 bytes:

nfieldtypeoptionaldescription
1modeModefalseHow the uploaded package relates to existing packages.

Response Body

A deco-encoded struct:

nfieldtypeoptionaldescription
1numberUnsignedIntegerfalseNumber assigned to the uploaded package.