A little bit documentation:
-
http://localhost:8080/store - by this get request we can get all our key-value pair. example below:
-
http://localhost:8080/store/:key –by this get request we can get specific key-value pair with key
-
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:
-
http://localhost:8080/store/:key - by this PUT request we can edit existing key-value pair. example below:
-
http://localhost:8080/store/:key – by this DELETE request we can delete existing key-value pair. example below: