A naive key value store implemented in Go, serving over HTTP.
- Uses the enhanced routing patterns Go 1.22, see
- Minimal dependencies, only uses the Go standard library.
- Best-attempt tries to implement a RESTful API.
- Uses OpenAPI 3 for API documentation.
Update the key testKey
to the value testValue
by sending a POST request. This is modelled as a POST
request because it is a non-idempotent operation: the key's history is updated.
curl -X POST 'localhost:8080/entries/testKey' -d '{"value":"testValue"}'
Get the value of the key testKey
by sending a GET request.
curl -X GET 'localhost:8080/entries/testKey'
curl -X GET 'localhost:8080/entries/testKey/history'
curl -X DELETE 'localhost:8080/entries/testKey/history'