From 138e239b8aed580c5fd39c05cad3fe1436e1b22a Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Fri, 19 Apr 2024 19:40:50 +0200 Subject: [PATCH] Update README --- README.org | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.org b/README.org index b636d8d..d8b64d6 100644 --- a/README.org +++ b/README.org @@ -10,21 +10,24 @@ This project was inspired by Snappass and was previously licensed under MIT. ** Tests :verb: -*** Store secret -POST http://localhost:8000 +# To run this tests you need to have Emacs and the package [[https://github.com/federicotdn/verb][verb]] installed. +# Then you can press the following key combination on the headings {C-c C-r C-r}. + +template http://localhost:8000 Accept: application/json Content-Type: application/json +*** Store secret +POST / + { "ttl": 604800, "password": "Foo" } *** Retrieve secret -POST http://localhost:8000/get-secret -Accept: application/json -Content-Type: application/json +POST /get-secret { -"key": "snappass941ad23f9e4b4e7fa699854e48f83ff9~tQVYlz56h1bzXVlrCY5W8rYER1sXGtvYtRHrMyXLhSc=" +"key": "{{(verb-json-get (oref verb-last body) "key")}}" }