A web based database
curl "http://localhost:5555/"curl -X POST -H "Content-Type: application/json" -d "{\"key\":\"name\", \"value\":\"thisdata\"}" "http://localhost:5555/web1"
curl -X POST "http://localhost:5555/web1?key=name&value=dave"POST- used to set new keyvalue into dbweb1- table namekey- key value (string)value- data (string)
curl -X PUT -H "Content-Type: application/json" -d '{"key":"name", "value":"updated value"}' "http://localhost:5555/web1"
curl -X PUT "http://localhost:5555/web1?key=name&value=john"PUT- used to update value into dbweb1- table namekey- key value (string)value- data (string)
curl "http://localhost:5555/web1/name"
Here:
GET - used to get new keyvalue into db
web1 - table name
name - key value (string) curl "http://localhost:5555/web1"curl -X DELETE "http://localhost:5555/web1?key=name"
Here:
DELETE - used to delete keyvalue from db
web1 - table name
key - key value (string)