mirror of
https://codeberg.org/scip/anydb.git
synced 2026-02-04 09:20:58 +01:00
Replace fiber with net.http.ServeMux (#23)
This commit is contained in:
@@ -569,7 +569,7 @@ Some curl example calls to the API:
|
||||
Post a new key:
|
||||
curl -X PUT localhost:8787/anydb/v1/ \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"key":"foo","val":"bar"}'
|
||||
-d '{"key":"foo","data":"bar"}'
|
||||
|
||||
Retrieve the value:
|
||||
|
||||
@@ -579,6 +579,11 @@ List all keys:
|
||||
|
||||
curl localhost:8787/anydb/v1/
|
||||
|
||||
Delete an entry:
|
||||
|
||||
curl -s -X DELETE http://localhost:8787/anydb/v1/foo
|
||||
|
||||
|
||||
=head1 BUGS
|
||||
|
||||
In order to report a bug, unexpected behavior, feature requests
|
||||
|
||||
Reference in New Issue
Block a user