Add a couple of notes

This commit is contained in:
Nicolas Setton
2017-07-19 16:41:51 -04:00
parent a0e20910ad
commit 8cee2d0f8a

View File

@@ -1,5 +1,16 @@
Notes just for myself
# Command to use curl to check a program
# Add -u <login>:<password> when using authentication
# launch a shell
./manage.py shell
#################
# Curl commands #
#################
Add -u <login>:<password> 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"