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"