You've already forked code_examples_server
mirror of
https://github.com/AdaCore/code_examples_server.git
synced 2026-02-12 12:45:18 -08:00
Add a couple of notes
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user