golang_midterm

A little bit documentation:

  1. http://localhost:8080/store - by this get request we can get all our key-value pair. example below: image

  2. http://localhost:8080/store/:key –by this get request we can get specific key-value pair with key image

  3. http://localhost:8080/store - by this POST request we can create new key-value pair. we should send json data(both required) in the body of request like this: image

  4. http://localhost:8080/store/:key - by this PUT request we can edit existing key-value pair. example below: image image

  5. http://localhost:8080/store/:key – by this DELETE request we can delete existing key-value pair. example below: image