static

command
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2020 License: MIT Imports: 9 Imported by: 0

README

Manifiesta Static JSON

File Manifest Server in Go, backed by static JSON files.

Adding your Manifest

To add a manifest, create a json file with the _manifest.json suffix in the application directory. Json must follow schema: 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, begin with ":"

CERT_FILE Path to Cert File, required for TLS

KEY_FILE Path to Key File, required for TLS

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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL