README
¶
Manifiesta MongoDB
File Manifest Server in Go, backed by MongoDB
Adding your Manifest
To add a manifest, insert bson documents into a mongo collection that follows the json schema at https://github.com/Archnoc/manifiesta/blob/master/manifest_schema.json
Environment Variables
Manifiesta will read the .env file in your application folder on startup and assign environment variables.
PORT
Port to listen on for http requests, must begin with ":".
CERT_FILE
Path to cert file, required for TLS.
KEY_FILE
Path to key file, required for TLS.
MONGODB_URI
URI to connect to Mongo DB, See: https://docs.mongodb.com/manual/reference/connection-string/
MONGODB_DB
Mongo database name of the collection below.
MONGODB_COLLECTION
Mongo collection containing the manifest documents.
Resource Paths
GET /manifest/{name}
Returns the entire manifest.
GET /manifests/metadata
Returns the metadata of all available manifests.
GET /manifest/{name}/metadata
Returns the metadata of the manifest.
GET /manifests/{name}/files
Returns all files associated with the manifest.
GET /manifests/{name}/files/{index}
Returns a detailed view of the file.
Documentation
¶
There is no documentation for this package.