Self-hosted API for creating/querying json files on different storage providers (local, S3, MinIO, ...). Typical use cases are (1) quick/flexible data storage in personal projects (2) mocking APIs (3) having a ‘data scratchpad’ for various scripts. You can install emmer through ‘go install’ or ‘docker pull’, more information available on GitHub.
Examples
The API is based on your json structure. So the example below is for CRUD-ing [geralt][city] in file.json. The value (which can be anything) is then added to the body of the request. Moreover, there are helper functions for appending and incrementing values.
DELETE/PUT/GET: /api/users/geralt/city
A get request that gets a json key in the fil…
Self-hosted API for creating/querying json files on different storage providers (local, S3, MinIO, ...). Typical use cases are (1) quick/flexible data storage in personal projects (2) mocking APIs (3) having a ‘data scratchpad’ for various scripts. You can install emmer through ‘go install’ or ‘docker pull’, more information available on GitHub.
Examples
The API is based on your json structure. So the example below is for CRUD-ing [geralt][city] in file.json. The value (which can be anything) is then added to the body of the request. Moreover, there are helper functions for appending and incrementing values.
DELETE/PUT/GET: /api/users/geralt/city
A get request that gets a json key in the file users.json. Note how the URL path matches the file name and json key.
A put request (using append mode) that adds a city. Note how it turns the value into a list before it appends the value.