init
Should be able to connect with telnet
to interact with the database
Commands should follow COMMAND KEY VALUE
space separated pattern:
get key
returns value to the connected clientset key value
del key
keys
returns a list of keysquit
: closes the tcp connectionShould be able to use Postman, curl
, or any other HTTP-based program
Commands should map to HTTP methods:
GET /key
returns value in the body responsePOST /key
with value in the request bodyDELETE /key
GET /
returns all keys in the body response