MongoDB
Collections are created on first write. Mongo is the default backend.
resources-mongo.yaml
resources:
- name: tags
collection: tags
backend: mongo
resource_methods: [get, post]
item_methods: [get, patch]
schema:
name: {type: string, required: true}
slug: {type: string, required: true, unique: true}
BACKEND=mongo CONFIG_FILE=config-mongo.json \
RESOURCES_FILE=resources-mongo.yaml PORT=8080 \
go run ./cmd/hyrule-serve