From 8cee2d0f8a6ae13b32b9e6be8fea1a646c412a91 Mon Sep 17 00:00:00 2001 From: Nicolas Setton Date: Wed, 19 Jul 2017 16:41:51 -0400 Subject: [PATCH] Add a couple of notes --- design/notes.txt | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/design/notes.txt b/design/notes.txt index ee7f9cd..09bfb30 100644 --- a/design/notes.txt +++ b/design/notes.txt @@ -1,5 +1,16 @@ Notes just for myself -# Command to use curl to check a program -# Add -u : when using authentication +# launch a shell +./manage.py shell + +################# +# Curl commands # +################# + +Add -u : when using authentication + +# check a program curl -H 'Accept: application/json; indent=4' http://127.0.0.1:8000/check_program/ --data "{\"program\": \"hello\"}" --header "Content-Type:application/json" + +# get the examples + curl -H 'Accept: application/json; indent=4' http://127.0.0.1:8000/examples/ --header "Content-Type:application/json"