fixing example commands

pull/1/head
lance 5 years ago
parent 942789e2a9
commit 3197156c2f

@ -67,10 +67,10 @@ With debug mode enabled you will be able to modify files and have Flask automati
``` ```
# POST a new secret # POST a new secret
$ curl "http://127.0.0.1:5000/secret/" \ $ curl http://127.0.0.1:5000/secret/ \
-X POST \ -X POST \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "{\"username\": \"lance\", \"password\": \"TopS3cr3t1!\"}" -d "{\"username\": \"lance\", \"password\": \"TopS3cr3t1\"}"
{ {
"token": "tpXv-Pk3W1lZJzY5v-6oEU8029IublWHjSs3BzbETW4" "token": "tpXv-Pk3W1lZJzY5v-6oEU8029IublWHjSs3BzbETW4"
@ -78,13 +78,11 @@ $ curl "http://127.0.0.1:5000/secret/" \
# GET an existing secret # GET an existing secret
$ curl "http://127.0.0.1:5000/secret/?token=tpXv-Pk3W1lZJzY5v-6oEU8029IublWHjSs3BzbETW4" \ $ curl http://127.0.0.1:5000/secret/?token=tpXv-Pk3W1lZJzY5v-6oEU8029IublWHjSs3BzbETW4
-X GET \
-H "Content-Type: application/json"
{ {
"username": "lance", "username": "lance",
"password": "TopS3cr3t1!", "password": "TopS3cr3t1",
"expiration": "2019-02-26T09:46:49.790153+00:00" "expiration": "2019-02-26T09:46:49.790153+00:00"
} }

Loading…
Cancel
Save