api de gestion de ticket, basé sur php-crud-api. Le but est de décorrélé les outils de gestion des données, afin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

get_table.sh 468B

1234567891011121314151617181920212223242526
  1. #/bin/sh
  2. help() {
  3. echo "Syntaxe"
  4. echo "‾‾‾‾‾‾‾"
  5. echo "sh $0 [ adresse ] [ tablename ]\n"
  6. }
  7. if [ "$1" ]
  8. then
  9. address=$1
  10. fi
  11. if [ "$2" ]
  12. then
  13. tablename=$2
  14. fi
  15. . ./config.sh
  16. . ./dep/address.sh
  17. . ./dep/tablename.sh
  18. . ./tools/title.sh
  19. echo "List entries from table $tablename"
  20. result=`curl --header "Content-Type: application/json" -b cookie.txt $address/api.php/records/$tablename 2>/dev/null`
  21. sh tools/show_result.sh $result
  22. echo "\n"