API
The Filepack server responds to the following API routes:
| method | path | description |
|---|---|---|
| POST | /api | Verify uploaded directory with hash. |
| GET | /api | Serve file with hash. |
| PUT | /api | Upload file with hash. |
| POST | /api | Delete files, directories, packages, and revisions not reachable by package number or mount. |
| HEAD | /api | Check whether revision is the head of a package. |
| POST | /api | Report which files the server lacks. |
| DELETE | /api | Delete package with number. |
| GET | /api | Return information about package with number. |
| GET | /api | List all package numbers. |
| HEAD | /api | Check whether package with fingerprint is present. |
| POST | /api | Verify uploaded package with fingerprint. |
| GET | /api | List all package fingerprints. |
| POST | /api | Verify uploaded revision and assign it a package number. |