Skip to content

telemark-arkiv/micro-loki-store

Repository files navigation

Build Status js-standard-style

micro-loki-store

Microservice for storing content with loki

API

Read from or write to store

GET

Returns values from a key

$ curl -v http://localhost:3000/{key}

POST

Saves data to a store

Required input: key, type and data

{
  key: '<key>'
  type: 'type',
  data: [
    'role1',
    'role2',
    'role3'
  ]
}
$ curl -d '{"key":"info", "type":"content", "data":{"user": "gasg", "type": "news", "list": ["aws"]}}' -v http://localhost:3000

Code

GitHub

License

MIT