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

The Filepack server responds to the following API routes:

methodpathdescription
POST/api/directory/{hash}Verify uploaded directory with hash.
GET/api/file/{hash}Serve file with hash.
PUT/api/file/{hash}Upload file with hash.
POST/api/gcDelete files, directories, packages, and revisions not reachable by package number or mount.
HEAD/api/head/{revision}Check whether revision is the head of a package.
POST/api/missingReport which files the server lacks.
DELETE/api/number/{number}Delete package with number.
GET/api/number/{number}Return information about package with number.
GET/api/numbersList all package numbers.
HEAD/api/package/{fingerprint}Check whether package with fingerprint is present.
POST/api/package/{fingerprint}Verify uploaded package with fingerprint.
GET/api/packagesList all package fingerprints.
POST/api/revision/{revision}Verify uploaded revision and assign it a package number.